mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-07 17:04:58 +01:00
Updated features to use included icons files
This commit is contained in:
parent
31032051fc
commit
031afce603
5 changed files with 6 additions and 18 deletions
|
|
@ -12,7 +12,7 @@ interface BooleanParams {
|
|||
const BooleanOperation: OperationDescriptor<BooleanParams> = {
|
||||
id: 'boolean_tool',
|
||||
label: 'Boolean',
|
||||
icon: 'img/cad/Boolean',
|
||||
icon: 'img/cad/intersection',
|
||||
info: 'Booleans 2D sketch',
|
||||
paramsInfo: ({tools, boolean}) => `(${r(tools)} ${r(boolean)})`,
|
||||
run: (params: BooleanParams, ctx: ApplicationContext) => {
|
||||
|
|
|
|||
|
|
@ -2,25 +2,13 @@ import { ApplicationContext } from 'context';
|
|||
import { MBrepShell } from 'cad/model/mshell';
|
||||
import { roundValueForPresentation as r } from 'cad/craft/operationHelper';
|
||||
import { occ2brep } from 'cad/occ/occ2models';
|
||||
import icon32 from './icon32.png';
|
||||
import icon96 from './icon96.png';
|
||||
|
||||
import { EntityKind } from "cad/model/entities";
|
||||
|
||||
export default {
|
||||
id: 'fillet_tool',
|
||||
label: 'Fillet/Chapher',
|
||||
icon: {
|
||||
iconSet: {
|
||||
medium: {
|
||||
iconType: 'image',
|
||||
iconContent: icon32
|
||||
},
|
||||
large: {
|
||||
iconType: 'image',
|
||||
iconContent: icon96
|
||||
}
|
||||
},
|
||||
},
|
||||
icon: 'img/cad/fillet',
|
||||
info: 'Fillet/Champher',
|
||||
mutualExclusiveFields: [],
|
||||
paramsInfo: ({ size, opperationType, }) => `(${r(size)} ${r(opperationType)}})`,
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ interface PrimitiveBoxParams {
|
|||
const PrimitiveBoxOperation: OperationDescriptor<PrimitiveBoxParams> = {
|
||||
id: 'primitive_box',
|
||||
label: 'Primitive Box',
|
||||
icon: 'img/cad/extrude',
|
||||
icon: 'img/cad/cube',
|
||||
info: 'Primitive Box',
|
||||
paramsInfo: ({x, y, z}) => `(${r(x)} , ${r(y)} , ${r(z)})`,
|
||||
form: [
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ interface RevolveParams {
|
|||
const RevolveOperation: OperationDescriptor<RevolveParams> = {
|
||||
id: 'Revolve',
|
||||
label: 'Revolve',
|
||||
icon: 'img/cad/Revolve',
|
||||
icon: 'img/cad/revolve',
|
||||
info: 'Revolves 2D sketch',
|
||||
paramsInfo: ({angle}) => `(${r(angle)})`,
|
||||
run: (params: RevolveParams, ctx: ApplicationContext) => {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ interface ShellParams {
|
|||
const ShellOperation: OperationDescriptor<ShellParams> = {
|
||||
id: 'shell_tool',
|
||||
label: 'Shell',
|
||||
icon: 'img/cad/Shell',
|
||||
icon: 'img/cad/shell',
|
||||
info: 'Shells 2D sketch',
|
||||
paramsInfo: ({thickness}) => `(${r(thickness)})`,
|
||||
run: (params: ShellParams, ctx: ApplicationContext) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue