mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-29 20:07:01 +01:00
add boolean option to schema for primitive operations
This commit is contained in:
parent
45c5841430
commit
330ea158b0
6 changed files with 22 additions and 4 deletions
5
web/app/cad/craft/primitives/booleanOptionSchema.js
Normal file
5
web/app/cad/craft/primitives/booleanOptionSchema.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
export default {
|
||||
type: 'enum',
|
||||
optional: true,
|
||||
values: ['INTERSECT', 'SUBTRACT', 'UNION']
|
||||
};
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
import booleanOptionSchema from '../booleanOptionSchema';
|
||||
|
||||
export default {
|
||||
datum: {
|
||||
type: 'datum',
|
||||
|
|
@ -18,5 +20,6 @@ export default {
|
|||
type: 'number',
|
||||
defaultValue: 500,
|
||||
min: 0
|
||||
}
|
||||
},
|
||||
boolean: booleanOptionSchema
|
||||
}
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
import booleanOptionSchema from '../booleanOptionSchema';
|
||||
|
||||
export default {
|
||||
datum: {
|
||||
type: 'datum',
|
||||
|
|
@ -18,5 +20,6 @@ export default {
|
|||
type: 'number',
|
||||
defaultValue: 250,
|
||||
min: 0
|
||||
}
|
||||
},
|
||||
boolean: booleanOptionSchema
|
||||
}
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
import booleanOptionSchema from '../booleanOptionSchema';
|
||||
|
||||
export default {
|
||||
datum: {
|
||||
type: 'datum',
|
||||
|
|
@ -14,5 +16,5 @@ export default {
|
|||
defaultValue: 250,
|
||||
min: 0
|
||||
},
|
||||
|
||||
boolean: booleanOptionSchema
|
||||
}
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
import booleanOptionSchema from '../booleanOptionSchema';
|
||||
|
||||
export default {
|
||||
datum: {
|
||||
type: 'datum',
|
||||
|
|
@ -9,4 +11,5 @@ export default {
|
|||
defaultValue: 250,
|
||||
min: 0
|
||||
},
|
||||
boolean: booleanOptionSchema
|
||||
}
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
import booleanOptionSchema from '../booleanOptionSchema';
|
||||
|
||||
export default {
|
||||
datum: {
|
||||
type: 'datum',
|
||||
|
|
@ -14,5 +16,5 @@ export default {
|
|||
defaultValue: 50,
|
||||
min: 0
|
||||
},
|
||||
|
||||
boolean: booleanOptionSchema
|
||||
}
|
||||
Loading…
Reference in a new issue