mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-13 20:02:41 +01:00
Made edge selection first field in fillet form.
This commit is contained in:
parent
b47c55bda9
commit
0249c2b5b7
1 changed files with 29 additions and 29 deletions
|
|
@ -20,39 +20,13 @@ export const FilletOperation: OperationDescriptor<any> = {
|
|||
icon: 'img/cad/fillet',
|
||||
info: 'Fillet/Champher',
|
||||
paramsInfo: ({size, opperationType,}) => `(${r(size)} ${r(opperationType)}})`,
|
||||
form: [
|
||||
{
|
||||
type: 'selection',
|
||||
name: 'edges',
|
||||
capture: [EntityKind.EDGE],
|
||||
label: 'edges',
|
||||
multi: true,
|
||||
defaultValue: {
|
||||
usePreselection: true,
|
||||
preselectionIndex: 0
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'choice',
|
||||
style: "dropdown",
|
||||
label: 'opperationType',
|
||||
name: 'opperationType',
|
||||
values: ["Fillet", "Champher"],
|
||||
defaultValue: "Fillet",
|
||||
},
|
||||
{
|
||||
type: 'number',
|
||||
label: 'size',
|
||||
name: 'size',
|
||||
defaultValue: 5,
|
||||
},
|
||||
],
|
||||
|
||||
run: (params: FilletParams, ctx: ApplicationContext) => {
|
||||
|
||||
const occ = ctx.occService;
|
||||
const oci = occ.commandInterface;
|
||||
|
||||
console.log(params.edges);
|
||||
|
||||
//add all the edges and size to seperate arrays for each shell that edges are selected from
|
||||
|
||||
const groups = new Map<MShell, any[]>()
|
||||
|
|
@ -99,6 +73,32 @@ export const FilletOperation: OperationDescriptor<any> = {
|
|||
|
||||
return result;
|
||||
},
|
||||
|
||||
form: [
|
||||
{
|
||||
type: 'selection',
|
||||
name: 'edges',
|
||||
capture: [EntityKind.EDGE],
|
||||
label: 'edges',
|
||||
multi: true,
|
||||
defaultValue: {
|
||||
usePreselection: true,
|
||||
preselectionIndex: 0
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'choice',
|
||||
style: "dropdown",
|
||||
label: 'opperationType',
|
||||
name: 'opperationType',
|
||||
values: ["Fillet", "Champher"],
|
||||
defaultValue: "Fillet",
|
||||
},
|
||||
{
|
||||
type: 'number',
|
||||
label: 'size',
|
||||
name: 'size',
|
||||
defaultValue: 5,
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue