Merge pull request #10 from mmiscool/master

Master
This commit is contained in:
xibyte 2016-12-18 14:52:43 -08:00 committed by GitHub
commit 1a84adb397
6 changed files with 11 additions and 9 deletions

View file

@ -2,7 +2,7 @@ import * as ActionHelpers from './action-helpers'
export const EditFace = {
cssIcons: ['file-picture-o'],
label: 'edit',
label: 'edit sketch',
icon96: 'img/3d/face-edit96.png',
info: 'open sketcher for a face/plane',
listens: ['selection'],

View file

@ -13,7 +13,7 @@ export const PAD = {
};
export const REVOLVE = {
icon: 'img/3d/shell',
icon: 'img/3d/revolve',
label: 'Revolve',
info: (p) => '(' + p.angle + ')'
};

View file

@ -60,12 +60,14 @@ function UI(app) {
UI.prototype.createCraftToolBar = function (vertPos) {
var toolBar = new ToolBar(this.app);
toolBar.add(this.app.actionManager.actions['EditFace']);
toolBar.add(this.app.actionManager.actions['CUT']);
toolBar.add(this.app.actionManager.actions['PAD']);
toolBar.add(this.app.actionManager.actions['PLANE']);
toolBar.add(this.app.actionManager.actions['BOX']);
toolBar.add(this.app.actionManager.actions['SPHERE']);
toolBar.add(this.app.actionManager.actions['EditFace']);
toolBar.add(this.app.actionManager.actions['PAD']);
toolBar.add(this.app.actionManager.actions['CUT']);
toolBar.add(this.app.actionManager.actions['REVOLVE']);
$('#viewer-container').append(toolBar.node);
toolBar.node.css({left: '10px',top : vertPos + 'px'});
return toolBar;

BIN
web/img/3d/revolve23.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,014 B

BIN
web/img/3d/revolve96.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB