mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-06 16:33:15 +01:00
Added delete body tool
This commit is contained in:
parent
71489032c2
commit
b27869327c
2 changed files with 4 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ interface DeleteBodyParams {
|
|||
export const DeleteBodyOperation: OperationDescriptor<DeleteBodyParams> = {
|
||||
id: 'DELETE_BODY',
|
||||
label: 'DeleteBody',
|
||||
icon: 'img/cad/deleteBody',
|
||||
icon: 'img/cad/intersection',
|
||||
info: 'Delete Bodies',
|
||||
paramsInfo: ({ tools, DeleteBody }) => `(${r(tools)} ${r(DeleteBody)})`,
|
||||
run: (params: DeleteBodyParams, ctx: ApplicationContext) => {
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ import { MirrorBodyOperation} from "./features/mirrorBody/mirrorBody.operation";
|
|||
import { PatternLinearOperation } from "./features/patternLinear/patternLinear.operation";
|
||||
import { PatternRadialOperation } from "./features/patternRadial/patternRadial.operation";
|
||||
import { ImportModelOpperation } from "./features/importModel/importModel.operation";
|
||||
import { DeleteBodyOperation } from "./features/deleteBody/deleteBody.operation";
|
||||
//imports of action type commands
|
||||
import { GetVolume } from './actions/getVolume/getVolume.action';
|
||||
import {GiCubes} from "react-icons/gi";
|
||||
|
|
@ -46,6 +47,7 @@ export const ModelerWorkspace: WorkbenchConfig = {
|
|||
PatternLinearOperation,
|
||||
PatternRadialOperation,
|
||||
ImportModelOpperation,
|
||||
DeleteBodyOperation,
|
||||
],
|
||||
ui: {
|
||||
toolbar: [
|
||||
|
|
@ -55,7 +57,7 @@ export const ModelerWorkspace: WorkbenchConfig = {
|
|||
"SHELL_TOOL", "FILLET_TOOL", "SCALE_BODY","-",
|
||||
"MIRROR_BODY", "PATTERN_LINEAR", "PATTERN_RADIAL", "-",
|
||||
"CYLINDER", "BOX", "CONE", "SPHERE", "TORUS", "-",
|
||||
"HOLE_TOOL", "-", 'GET_VOLUME', "IMPORT_MODEL"
|
||||
"HOLE_TOOL", "-", 'GET_VOLUME', "IMPORT_MODEL","DELETE_BODY"
|
||||
]
|
||||
},
|
||||
icon: GiCubes
|
||||
|
|
|
|||
Loading…
Reference in a new issue