diff --git a/web/app/cad/craft/primitives/booleanOptionSchema.js b/web/app/cad/craft/primitives/booleanOptionSchema.js new file mode 100644 index 00000000..f34ff11f --- /dev/null +++ b/web/app/cad/craft/primitives/booleanOptionSchema.js @@ -0,0 +1,5 @@ +export default { + type: 'enum', + optional: true, + values: ['INTERSECT', 'SUBTRACT', 'UNION'] +}; \ No newline at end of file diff --git a/web/app/cad/craft/primitives/box/boxOpSchema.js b/web/app/cad/craft/primitives/box/boxOpSchema.js index 3ce5dc1c..4803e3da 100644 --- a/web/app/cad/craft/primitives/box/boxOpSchema.js +++ b/web/app/cad/craft/primitives/box/boxOpSchema.js @@ -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 } \ No newline at end of file diff --git a/web/app/cad/craft/primitives/cone/coneOpSchema.js b/web/app/cad/craft/primitives/cone/coneOpSchema.js index 1ee5f25a..cedade85 100644 --- a/web/app/cad/craft/primitives/cone/coneOpSchema.js +++ b/web/app/cad/craft/primitives/cone/coneOpSchema.js @@ -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 } \ No newline at end of file diff --git a/web/app/cad/craft/primitives/cylinder/cylinderOpSchema.js b/web/app/cad/craft/primitives/cylinder/cylinderOpSchema.js index 66ec8e03..552d7649 100644 --- a/web/app/cad/craft/primitives/cylinder/cylinderOpSchema.js +++ b/web/app/cad/craft/primitives/cylinder/cylinderOpSchema.js @@ -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 } \ No newline at end of file diff --git a/web/app/cad/craft/primitives/sphere/sphereOpSchema.js b/web/app/cad/craft/primitives/sphere/sphereOpSchema.js index d133e674..e32b8d52 100644 --- a/web/app/cad/craft/primitives/sphere/sphereOpSchema.js +++ b/web/app/cad/craft/primitives/sphere/sphereOpSchema.js @@ -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 } \ No newline at end of file diff --git a/web/app/cad/craft/primitives/torus/torusOpSchema.js b/web/app/cad/craft/primitives/torus/torusOpSchema.js index 8d3c370f..25f4463f 100644 --- a/web/app/cad/craft/primitives/torus/torusOpSchema.js +++ b/web/app/cad/craft/primitives/torus/torusOpSchema.js @@ -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 } \ No newline at end of file