mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-08 09:24:18 +01:00
commit
1a84adb397
6 changed files with 11 additions and 9 deletions
|
|
@ -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'],
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ export const PAD = {
|
|||
};
|
||||
|
||||
export const REVOLVE = {
|
||||
icon: 'img/3d/shell',
|
||||
icon: 'img/3d/revolve',
|
||||
label: 'Revolve',
|
||||
info: (p) => '(' + p.angle + ')'
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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
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
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 |
Loading…
Reference in a new issue