@shapediver/viewer.shared.types 3.8.15 → 3.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/implementation/data/AnimationData.d.ts +2 -2
- package/dist/implementation/data/AnimationData.d.ts.map +1 -1
- package/dist/implementation/data/AnimationData.js +56 -49
- package/dist/implementation/data/AnimationData.js.map +1 -1
- package/dist/implementation/data/BoneData.d.ts +2 -2
- package/dist/implementation/data/BoneData.d.ts.map +1 -1
- package/dist/implementation/data/BoneData.js.map +1 -1
- package/dist/implementation/data/CustomData.d.ts +2 -2
- package/dist/implementation/data/CustomData.d.ts.map +1 -1
- package/dist/implementation/data/CustomData.js.map +1 -1
- package/dist/implementation/data/GeometryData.d.ts +5 -5
- package/dist/implementation/data/GeometryData.d.ts.map +1 -1
- package/dist/implementation/data/GeometryData.js +15 -13
- package/dist/implementation/data/GeometryData.js.map +1 -1
- package/dist/implementation/data/HTMLElementAnchorData.d.ts +7 -7
- package/dist/implementation/data/HTMLElementAnchorData.d.ts.map +1 -1
- package/dist/implementation/data/HTMLElementAnchorData.js +40 -28
- package/dist/implementation/data/HTMLElementAnchorData.js.map +1 -1
- package/dist/implementation/data/InstanceData.d.ts +4 -4
- package/dist/implementation/data/InstanceData.d.ts.map +1 -1
- package/dist/implementation/data/InstanceData.js.map +1 -1
- package/dist/implementation/material/AbstractMaterialData.d.ts +4 -4
- package/dist/implementation/material/AbstractMaterialData.d.ts.map +1 -1
- package/dist/implementation/material/AbstractMaterialData.js +2 -2
- package/dist/implementation/material/AbstractMaterialData.js.map +1 -1
- package/dist/implementation/material/MapData.d.ts +4 -4
- package/dist/implementation/material/MapData.d.ts.map +1 -1
- package/dist/implementation/material/MapData.js +32 -12
- package/dist/implementation/material/MapData.js.map +1 -1
- package/dist/implementation/material/MaterialBasicLineData.d.ts +2 -2
- package/dist/implementation/material/MaterialBasicLineData.d.ts.map +1 -1
- package/dist/implementation/material/MaterialBasicLineData.js +4 -4
- package/dist/implementation/material/MaterialBasicLineData.js.map +1 -1
- package/dist/implementation/material/MaterialGemData.d.ts +5 -5
- package/dist/implementation/material/MaterialGemData.d.ts.map +1 -1
- package/dist/implementation/material/MaterialGemData.js +8 -8
- package/dist/implementation/material/MaterialGemData.js.map +1 -1
- package/dist/implementation/material/MaterialLambertData.d.ts +23 -0
- package/dist/implementation/material/MaterialLambertData.d.ts.map +1 -0
- package/dist/implementation/material/MaterialLambertData.js +147 -0
- package/dist/implementation/material/MaterialLambertData.js.map +1 -0
- package/dist/implementation/material/MaterialMultiPointData.d.ts +4 -4
- package/dist/implementation/material/MaterialMultiPointData.d.ts.map +1 -1
- package/dist/implementation/material/MaterialMultiPointData.js +19 -19
- package/dist/implementation/material/MaterialMultiPointData.js.map +1 -1
- package/dist/implementation/material/MaterialPhongData.d.ts +28 -0
- package/dist/implementation/material/MaterialPhongData.d.ts.map +1 -0
- package/dist/implementation/material/MaterialPhongData.js +171 -0
- package/dist/implementation/material/MaterialPhongData.js.map +1 -0
- package/dist/implementation/material/MaterialPointData.d.ts +2 -2
- package/dist/implementation/material/MaterialPointData.d.ts.map +1 -1
- package/dist/implementation/material/MaterialPointData.js +4 -4
- package/dist/implementation/material/MaterialPointData.js.map +1 -1
- package/dist/implementation/material/MaterialShadowData.d.ts.map +1 -1
- package/dist/implementation/material/MaterialShadowData.js +1 -1
- package/dist/implementation/material/MaterialShadowData.js.map +1 -1
- package/dist/implementation/material/MaterialSpecularGlossinessData.d.ts +4 -4
- package/dist/implementation/material/MaterialSpecularGlossinessData.d.ts.map +1 -1
- package/dist/implementation/material/MaterialSpecularGlossinessData.js +5 -5
- package/dist/implementation/material/MaterialSpecularGlossinessData.js.map +1 -1
- package/dist/implementation/material/MaterialStandardData.d.ts +4 -4
- package/dist/implementation/material/MaterialStandardData.d.ts.map +1 -1
- package/dist/implementation/material/MaterialStandardData.js +9 -9
- package/dist/implementation/material/MaterialStandardData.js.map +1 -1
- package/dist/implementation/material/MaterialUnlitData.d.ts.map +1 -1
- package/dist/implementation/material/MaterialUnlitData.js +3 -3
- package/dist/implementation/material/MaterialUnlitData.js.map +1 -1
- package/dist/implementation/material/MaterialVariantsData.d.ts +3 -3
- package/dist/implementation/material/MaterialVariantsData.d.ts.map +1 -1
- package/dist/implementation/material/MaterialVariantsData.js +3 -2
- package/dist/implementation/material/MaterialVariantsData.js.map +1 -1
- package/dist/implementation/sdtf/SDTFAttributesData.d.ts +3 -3
- package/dist/implementation/sdtf/SDTFAttributesData.d.ts.map +1 -1
- package/dist/implementation/sdtf/SDTFAttributesData.js.map +1 -1
- package/dist/implementation/sdtf/SDTFItemData.d.ts +4 -4
- package/dist/implementation/sdtf/SDTFItemData.d.ts.map +1 -1
- package/dist/implementation/sdtf/SDTFItemData.js.map +1 -1
- package/dist/implementation/sdtf/SDTFOverviewData.d.ts +2 -2
- package/dist/implementation/sdtf/SDTFOverviewData.d.ts.map +1 -1
- package/dist/implementation/sdtf/SDTFOverviewData.js +8 -4
- package/dist/implementation/sdtf/SDTFOverviewData.js.map +1 -1
- package/dist/index.d.ts +76 -72
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +53 -49
- package/dist/index.js.map +1 -1
- package/dist/interfaces/data/IAnimationData.d.ts +2 -2
- package/dist/interfaces/data/IAnimationData.d.ts.map +1 -1
- package/dist/interfaces/data/IBoneData.d.ts.map +1 -1
- package/dist/interfaces/data/ICustomData.d.ts.map +1 -1
- package/dist/interfaces/data/IGeometryData.d.ts +2 -2
- package/dist/interfaces/data/IGeometryData.d.ts.map +1 -1
- package/dist/interfaces/data/IGeometryData.js.map +1 -1
- package/dist/interfaces/data/IHTMLElementAnchorData.d.ts +3 -3
- package/dist/interfaces/data/IHTMLElementAnchorData.d.ts.map +1 -1
- package/dist/interfaces/data/IInstanceData.d.ts +3 -3
- package/dist/interfaces/data/IInstanceData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMapData.d.ts +3 -3
- package/dist/interfaces/data/material/IMapData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMapData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialAbstractData.d.ts +6 -4
- package/dist/interfaces/data/material/IMaterialAbstractData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialAbstractData.js +2 -0
- package/dist/interfaces/data/material/IMaterialAbstractData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialBasicLineData.d.ts +1 -1
- package/dist/interfaces/data/material/IMaterialBasicLineData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialBasicLineData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialGemDataProperties.d.ts +4 -4
- package/dist/interfaces/data/material/IMaterialGemDataProperties.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialGemDataProperties.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialLambertData.d.ts +18 -0
- package/dist/interfaces/data/material/IMaterialLambertData.d.ts.map +1 -0
- package/dist/interfaces/data/material/IMaterialLambertData.js +3 -0
- package/dist/interfaces/data/material/IMaterialLambertData.js.map +1 -0
- package/dist/interfaces/data/material/IMaterialMultiPointData.d.ts +3 -3
- package/dist/interfaces/data/material/IMaterialMultiPointData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialMultiPointData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialPhongData.d.ts +21 -0
- package/dist/interfaces/data/material/IMaterialPhongData.d.ts.map +1 -0
- package/dist/interfaces/data/material/IMaterialPhongData.js +3 -0
- package/dist/interfaces/data/material/IMaterialPhongData.js.map +1 -0
- package/dist/interfaces/data/material/IMaterialPointData.d.ts +2 -2
- package/dist/interfaces/data/material/IMaterialPointData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialPointData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialShadowData.d.ts +1 -1
- package/dist/interfaces/data/material/IMaterialShadowData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialShadowData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialSpecularGlossinessDataProperties.d.ts +3 -3
- package/dist/interfaces/data/material/IMaterialSpecularGlossinessDataProperties.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialSpecularGlossinessDataProperties.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialStandardData.d.ts +3 -3
- package/dist/interfaces/data/material/IMaterialStandardData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialStandardData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialUnlitData.d.ts +2 -2
- package/dist/interfaces/data/material/IMaterialUnlitData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialUnlitData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialVariantsData.d.ts.map +1 -1
- package/dist/interfaces/events/EventResponseMapping.d.ts +9 -9
- package/dist/interfaces/events/EventResponseMapping.d.ts.map +1 -1
- package/dist/interfaces/events/ICameraEvent.d.ts +1 -1
- package/dist/interfaces/events/ICameraEvent.d.ts.map +1 -1
- package/dist/interfaces/events/IOutputEvent.d.ts +2 -2
- package/dist/interfaces/events/IOutputEvent.d.ts.map +1 -1
- package/dist/interfaces/events/IParameterEvent.d.ts +1 -1
- package/dist/interfaces/events/IParameterEvent.d.ts.map +1 -1
- package/dist/interfaces/events/IRenderingEvent.d.ts +1 -1
- package/dist/interfaces/events/IRenderingEvent.d.ts.map +1 -1
- package/dist/interfaces/events/ISceneEvent.d.ts +2 -2
- package/dist/interfaces/events/ISceneEvent.d.ts.map +1 -1
- package/dist/interfaces/events/ISessionEvent.d.ts +1 -1
- package/dist/interfaces/events/ISessionEvent.d.ts.map +1 -1
- package/dist/interfaces/events/ITaskEvent.d.ts +1 -1
- package/dist/interfaces/events/ITaskEvent.d.ts.map +1 -1
- package/dist/interfaces/events/ITaskEvent.js.map +1 -1
- package/dist/interfaces/events/IViewportEvent.d.ts +1 -1
- package/dist/interfaces/events/IViewportEvent.d.ts.map +1 -1
- package/dist/interfaces/parameter/IDraggingParameterSettings.d.ts +2 -2
- package/dist/interfaces/parameter/IDraggingParameterSettings.d.ts.map +1 -1
- package/dist/interfaces/parameter/IDrawingParametersSettings.d.ts +18 -18
- package/dist/interfaces/parameter/IDrawingParametersSettings.d.ts.map +1 -1
- package/dist/interfaces/parameter/IDrawingParametersSettings.js +13 -7
- package/dist/interfaces/parameter/IDrawingParametersSettings.js.map +1 -1
- package/dist/interfaces/parameter/IGumballParameterSettings.d.ts +2 -2
- package/dist/interfaces/parameter/IGumballParameterSettings.d.ts.map +1 -1
- package/dist/interfaces/parameter/IInteractionParameterSettings.d.ts +80 -80
- package/dist/interfaces/parameter/IInteractionParameterSettings.d.ts.map +1 -1
- package/dist/interfaces/parameter/IInteractionParameterSettings.js +54 -28
- package/dist/interfaces/parameter/IInteractionParameterSettings.js.map +1 -1
- package/dist/interfaces/parameter/IRestrictionSettings.d.ts +6 -6
- package/dist/interfaces/parameter/IRestrictionSettings.d.ts.map +1 -1
- package/dist/interfaces/parameter/IRestrictionSettings.js.map +1 -1
- package/dist/interfaces/parameter/ISelectionParameterSettings.d.ts +1 -1
- package/dist/interfaces/parameter/ISelectionParameterSettings.d.ts.map +1 -1
- package/dist/interfaces/renderingEngine/IIntersection.d.ts +3 -3
- package/dist/interfaces/renderingEngine/IIntersection.d.ts.map +1 -1
- package/dist/interfaces/renderingEngine/IIntersectionFilter.d.ts +2 -2
- package/dist/interfaces/renderingEngine/IIntersectionFilter.d.ts.map +1 -1
- package/dist/interfaces/renderingEngine/IRay.d.ts +1 -1
- package/dist/interfaces/renderingEngine/IRay.d.ts.map +1 -1
- package/dist/interfaces/renderingEngine/enums.d.ts +5 -3
- package/dist/interfaces/renderingEngine/enums.d.ts.map +1 -1
- package/dist/interfaces/renderingEngine/enums.js +4 -2
- package/dist/interfaces/renderingEngine/enums.js.map +1 -1
- package/dist/interfaces/sdtf/ISDTFAttributeVisualizationData.d.ts.map +1 -1
- package/dist/interfaces/sdtf/ISDTFAttributesData.d.ts +1 -1
- package/dist/interfaces/sdtf/ISDTFAttributesData.d.ts.map +1 -1
- package/dist/interfaces/sdtf/ISDTFItemData.d.ts +1 -1
- package/dist/interfaces/sdtf/ISDTFItemData.d.ts.map +1 -1
- package/dist/interfaces/sdtf/ISDTFOverviewData.d.ts +1 -1
- package/dist/interfaces/sdtf/ISDTFOverviewData.d.ts.map +1 -1
- package/dist/interfaces/sdtf/ISDTFOverviewData.js +0 -1
- package/dist/interfaces/sdtf/ISDTFOverviewData.js.map +1 -1
- package/dist/types.d.ts +5 -5
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +48 -48
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
export declare type InteractionParameterSettingsType =
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare type InteractionParameterSettingsType = "selection" | "gumball" | "dragging";
|
|
3
3
|
/**
|
|
4
4
|
* General properties of an interaction parameter.
|
|
5
5
|
*/
|
|
@@ -53,6 +53,10 @@ export declare const ISelectionParameterJsonSchema: z.ZodObject<{
|
|
|
53
53
|
activeText?: string | undefined;
|
|
54
54
|
}>>;
|
|
55
55
|
}>, "strip", z.ZodTypeAny, {
|
|
56
|
+
maximumSelection?: number | undefined;
|
|
57
|
+
minimumSelection?: number | undefined;
|
|
58
|
+
nameFilter?: string[] | undefined;
|
|
59
|
+
selectionColor?: string | undefined;
|
|
56
60
|
hover?: boolean | undefined;
|
|
57
61
|
hoverColor?: string | undefined;
|
|
58
62
|
prompt?: {
|
|
@@ -60,11 +64,11 @@ export declare const ISelectionParameterJsonSchema: z.ZodObject<{
|
|
|
60
64
|
activeTitle?: string | undefined;
|
|
61
65
|
activeText?: string | undefined;
|
|
62
66
|
} | undefined;
|
|
67
|
+
}, {
|
|
63
68
|
maximumSelection?: number | undefined;
|
|
64
69
|
minimumSelection?: number | undefined;
|
|
65
70
|
nameFilter?: string[] | undefined;
|
|
66
71
|
selectionColor?: string | undefined;
|
|
67
|
-
}, {
|
|
68
72
|
hover?: boolean | undefined;
|
|
69
73
|
hoverColor?: string | undefined;
|
|
70
74
|
prompt?: {
|
|
@@ -72,14 +76,14 @@ export declare const ISelectionParameterJsonSchema: z.ZodObject<{
|
|
|
72
76
|
activeTitle?: string | undefined;
|
|
73
77
|
activeText?: string | undefined;
|
|
74
78
|
} | undefined;
|
|
75
|
-
maximumSelection?: number | undefined;
|
|
76
|
-
minimumSelection?: number | undefined;
|
|
77
|
-
nameFilter?: string[] | undefined;
|
|
78
|
-
selectionColor?: string | undefined;
|
|
79
79
|
}>;
|
|
80
80
|
}, "strip", z.ZodTypeAny, {
|
|
81
81
|
type: "selection";
|
|
82
82
|
props: {
|
|
83
|
+
maximumSelection?: number | undefined;
|
|
84
|
+
minimumSelection?: number | undefined;
|
|
85
|
+
nameFilter?: string[] | undefined;
|
|
86
|
+
selectionColor?: string | undefined;
|
|
83
87
|
hover?: boolean | undefined;
|
|
84
88
|
hoverColor?: string | undefined;
|
|
85
89
|
prompt?: {
|
|
@@ -87,14 +91,14 @@ export declare const ISelectionParameterJsonSchema: z.ZodObject<{
|
|
|
87
91
|
activeTitle?: string | undefined;
|
|
88
92
|
activeText?: string | undefined;
|
|
89
93
|
} | undefined;
|
|
90
|
-
maximumSelection?: number | undefined;
|
|
91
|
-
minimumSelection?: number | undefined;
|
|
92
|
-
nameFilter?: string[] | undefined;
|
|
93
|
-
selectionColor?: string | undefined;
|
|
94
94
|
};
|
|
95
95
|
}, {
|
|
96
96
|
type: "selection";
|
|
97
97
|
props: {
|
|
98
|
+
maximumSelection?: number | undefined;
|
|
99
|
+
minimumSelection?: number | undefined;
|
|
100
|
+
nameFilter?: string[] | undefined;
|
|
101
|
+
selectionColor?: string | undefined;
|
|
98
102
|
hover?: boolean | undefined;
|
|
99
103
|
hoverColor?: string | undefined;
|
|
100
104
|
prompt?: {
|
|
@@ -102,10 +106,6 @@ export declare const ISelectionParameterJsonSchema: z.ZodObject<{
|
|
|
102
106
|
activeTitle?: string | undefined;
|
|
103
107
|
activeText?: string | undefined;
|
|
104
108
|
} | undefined;
|
|
105
|
-
maximumSelection?: number | undefined;
|
|
106
|
-
minimumSelection?: number | undefined;
|
|
107
|
-
nameFilter?: string[] | undefined;
|
|
108
|
-
selectionColor?: string | undefined;
|
|
109
109
|
};
|
|
110
110
|
}>;
|
|
111
111
|
export declare const IGumballParameterJsonSchema: z.ZodObject<{
|
|
@@ -174,7 +174,8 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
|
|
|
174
174
|
activeText?: string | undefined;
|
|
175
175
|
}>>;
|
|
176
176
|
}>, "strip", z.ZodTypeAny, {
|
|
177
|
-
|
|
177
|
+
nameFilter?: string[] | undefined;
|
|
178
|
+
selectionColor?: string | undefined;
|
|
178
179
|
hover?: boolean | undefined;
|
|
179
180
|
hoverColor?: string | undefined;
|
|
180
181
|
prompt?: {
|
|
@@ -182,8 +183,6 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
|
|
|
182
183
|
activeTitle?: string | undefined;
|
|
183
184
|
activeText?: string | undefined;
|
|
184
185
|
} | undefined;
|
|
185
|
-
nameFilter?: string[] | undefined;
|
|
186
|
-
selectionColor?: string | undefined;
|
|
187
186
|
enableRotation?: boolean | undefined;
|
|
188
187
|
enableRotationAxes?: {
|
|
189
188
|
x?: boolean | undefined;
|
|
@@ -202,9 +201,11 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
|
|
|
202
201
|
y?: boolean | undefined;
|
|
203
202
|
z?: boolean | undefined;
|
|
204
203
|
} | undefined;
|
|
204
|
+
scale?: number | undefined;
|
|
205
205
|
space?: "local" | "world" | undefined;
|
|
206
206
|
}, {
|
|
207
|
-
|
|
207
|
+
nameFilter?: string[] | undefined;
|
|
208
|
+
selectionColor?: string | undefined;
|
|
208
209
|
hover?: boolean | undefined;
|
|
209
210
|
hoverColor?: string | undefined;
|
|
210
211
|
prompt?: {
|
|
@@ -212,8 +213,6 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
|
|
|
212
213
|
activeTitle?: string | undefined;
|
|
213
214
|
activeText?: string | undefined;
|
|
214
215
|
} | undefined;
|
|
215
|
-
nameFilter?: string[] | undefined;
|
|
216
|
-
selectionColor?: string | undefined;
|
|
217
216
|
enableRotation?: boolean | undefined;
|
|
218
217
|
enableRotationAxes?: {
|
|
219
218
|
x?: boolean | undefined;
|
|
@@ -232,12 +231,14 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
|
|
|
232
231
|
y?: boolean | undefined;
|
|
233
232
|
z?: boolean | undefined;
|
|
234
233
|
} | undefined;
|
|
234
|
+
scale?: number | undefined;
|
|
235
235
|
space?: "local" | "world" | undefined;
|
|
236
236
|
}>;
|
|
237
237
|
}, "strip", z.ZodTypeAny, {
|
|
238
238
|
type: "gumball";
|
|
239
239
|
props: {
|
|
240
|
-
|
|
240
|
+
nameFilter?: string[] | undefined;
|
|
241
|
+
selectionColor?: string | undefined;
|
|
241
242
|
hover?: boolean | undefined;
|
|
242
243
|
hoverColor?: string | undefined;
|
|
243
244
|
prompt?: {
|
|
@@ -245,8 +246,6 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
|
|
|
245
246
|
activeTitle?: string | undefined;
|
|
246
247
|
activeText?: string | undefined;
|
|
247
248
|
} | undefined;
|
|
248
|
-
nameFilter?: string[] | undefined;
|
|
249
|
-
selectionColor?: string | undefined;
|
|
250
249
|
enableRotation?: boolean | undefined;
|
|
251
250
|
enableRotationAxes?: {
|
|
252
251
|
x?: boolean | undefined;
|
|
@@ -265,12 +264,14 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
|
|
|
265
264
|
y?: boolean | undefined;
|
|
266
265
|
z?: boolean | undefined;
|
|
267
266
|
} | undefined;
|
|
267
|
+
scale?: number | undefined;
|
|
268
268
|
space?: "local" | "world" | undefined;
|
|
269
269
|
};
|
|
270
270
|
}, {
|
|
271
271
|
type: "gumball";
|
|
272
272
|
props: {
|
|
273
|
-
|
|
273
|
+
nameFilter?: string[] | undefined;
|
|
274
|
+
selectionColor?: string | undefined;
|
|
274
275
|
hover?: boolean | undefined;
|
|
275
276
|
hoverColor?: string | undefined;
|
|
276
277
|
prompt?: {
|
|
@@ -278,8 +279,6 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
|
|
|
278
279
|
activeTitle?: string | undefined;
|
|
279
280
|
activeText?: string | undefined;
|
|
280
281
|
} | undefined;
|
|
281
|
-
nameFilter?: string[] | undefined;
|
|
282
|
-
selectionColor?: string | undefined;
|
|
283
282
|
enableRotation?: boolean | undefined;
|
|
284
283
|
enableRotationAxes?: {
|
|
285
284
|
x?: boolean | undefined;
|
|
@@ -298,6 +297,7 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
|
|
|
298
297
|
y?: boolean | undefined;
|
|
299
298
|
z?: boolean | undefined;
|
|
300
299
|
} | undefined;
|
|
300
|
+
scale?: number | undefined;
|
|
301
301
|
space?: "local" | "world" | undefined;
|
|
302
302
|
};
|
|
303
303
|
}>;
|
|
@@ -594,6 +594,10 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
|
|
|
594
594
|
activeText?: string | undefined;
|
|
595
595
|
}>>;
|
|
596
596
|
}>, "strip", z.ZodTypeAny, {
|
|
597
|
+
maximumSelection?: number | undefined;
|
|
598
|
+
minimumSelection?: number | undefined;
|
|
599
|
+
nameFilter?: string[] | undefined;
|
|
600
|
+
selectionColor?: string | undefined;
|
|
597
601
|
hover?: boolean | undefined;
|
|
598
602
|
hoverColor?: string | undefined;
|
|
599
603
|
prompt?: {
|
|
@@ -601,11 +605,11 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
|
|
|
601
605
|
activeTitle?: string | undefined;
|
|
602
606
|
activeText?: string | undefined;
|
|
603
607
|
} | undefined;
|
|
608
|
+
}, {
|
|
604
609
|
maximumSelection?: number | undefined;
|
|
605
610
|
minimumSelection?: number | undefined;
|
|
606
611
|
nameFilter?: string[] | undefined;
|
|
607
612
|
selectionColor?: string | undefined;
|
|
608
|
-
}, {
|
|
609
613
|
hover?: boolean | undefined;
|
|
610
614
|
hoverColor?: string | undefined;
|
|
611
615
|
prompt?: {
|
|
@@ -613,14 +617,14 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
|
|
|
613
617
|
activeTitle?: string | undefined;
|
|
614
618
|
activeText?: string | undefined;
|
|
615
619
|
} | undefined;
|
|
616
|
-
maximumSelection?: number | undefined;
|
|
617
|
-
minimumSelection?: number | undefined;
|
|
618
|
-
nameFilter?: string[] | undefined;
|
|
619
|
-
selectionColor?: string | undefined;
|
|
620
620
|
}>;
|
|
621
621
|
}, "strip", z.ZodTypeAny, {
|
|
622
622
|
type: "selection";
|
|
623
623
|
props: {
|
|
624
|
+
maximumSelection?: number | undefined;
|
|
625
|
+
minimumSelection?: number | undefined;
|
|
626
|
+
nameFilter?: string[] | undefined;
|
|
627
|
+
selectionColor?: string | undefined;
|
|
624
628
|
hover?: boolean | undefined;
|
|
625
629
|
hoverColor?: string | undefined;
|
|
626
630
|
prompt?: {
|
|
@@ -628,14 +632,14 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
|
|
|
628
632
|
activeTitle?: string | undefined;
|
|
629
633
|
activeText?: string | undefined;
|
|
630
634
|
} | undefined;
|
|
631
|
-
maximumSelection?: number | undefined;
|
|
632
|
-
minimumSelection?: number | undefined;
|
|
633
|
-
nameFilter?: string[] | undefined;
|
|
634
|
-
selectionColor?: string | undefined;
|
|
635
635
|
};
|
|
636
636
|
}, {
|
|
637
637
|
type: "selection";
|
|
638
638
|
props: {
|
|
639
|
+
maximumSelection?: number | undefined;
|
|
640
|
+
minimumSelection?: number | undefined;
|
|
641
|
+
nameFilter?: string[] | undefined;
|
|
642
|
+
selectionColor?: string | undefined;
|
|
639
643
|
hover?: boolean | undefined;
|
|
640
644
|
hoverColor?: string | undefined;
|
|
641
645
|
prompt?: {
|
|
@@ -643,10 +647,6 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
|
|
|
643
647
|
activeTitle?: string | undefined;
|
|
644
648
|
activeText?: string | undefined;
|
|
645
649
|
} | undefined;
|
|
646
|
-
maximumSelection?: number | undefined;
|
|
647
|
-
minimumSelection?: number | undefined;
|
|
648
|
-
nameFilter?: string[] | undefined;
|
|
649
|
-
selectionColor?: string | undefined;
|
|
650
650
|
};
|
|
651
651
|
}>, z.ZodObject<{
|
|
652
652
|
type: z.ZodLiteral<"gumball">;
|
|
@@ -714,7 +714,8 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
|
|
|
714
714
|
activeText?: string | undefined;
|
|
715
715
|
}>>;
|
|
716
716
|
}>, "strip", z.ZodTypeAny, {
|
|
717
|
-
|
|
717
|
+
nameFilter?: string[] | undefined;
|
|
718
|
+
selectionColor?: string | undefined;
|
|
718
719
|
hover?: boolean | undefined;
|
|
719
720
|
hoverColor?: string | undefined;
|
|
720
721
|
prompt?: {
|
|
@@ -722,8 +723,6 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
|
|
|
722
723
|
activeTitle?: string | undefined;
|
|
723
724
|
activeText?: string | undefined;
|
|
724
725
|
} | undefined;
|
|
725
|
-
nameFilter?: string[] | undefined;
|
|
726
|
-
selectionColor?: string | undefined;
|
|
727
726
|
enableRotation?: boolean | undefined;
|
|
728
727
|
enableRotationAxes?: {
|
|
729
728
|
x?: boolean | undefined;
|
|
@@ -742,9 +741,11 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
|
|
|
742
741
|
y?: boolean | undefined;
|
|
743
742
|
z?: boolean | undefined;
|
|
744
743
|
} | undefined;
|
|
744
|
+
scale?: number | undefined;
|
|
745
745
|
space?: "local" | "world" | undefined;
|
|
746
746
|
}, {
|
|
747
|
-
|
|
747
|
+
nameFilter?: string[] | undefined;
|
|
748
|
+
selectionColor?: string | undefined;
|
|
748
749
|
hover?: boolean | undefined;
|
|
749
750
|
hoverColor?: string | undefined;
|
|
750
751
|
prompt?: {
|
|
@@ -752,8 +753,6 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
|
|
|
752
753
|
activeTitle?: string | undefined;
|
|
753
754
|
activeText?: string | undefined;
|
|
754
755
|
} | undefined;
|
|
755
|
-
nameFilter?: string[] | undefined;
|
|
756
|
-
selectionColor?: string | undefined;
|
|
757
756
|
enableRotation?: boolean | undefined;
|
|
758
757
|
enableRotationAxes?: {
|
|
759
758
|
x?: boolean | undefined;
|
|
@@ -772,12 +771,14 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
|
|
|
772
771
|
y?: boolean | undefined;
|
|
773
772
|
z?: boolean | undefined;
|
|
774
773
|
} | undefined;
|
|
774
|
+
scale?: number | undefined;
|
|
775
775
|
space?: "local" | "world" | undefined;
|
|
776
776
|
}>;
|
|
777
777
|
}, "strip", z.ZodTypeAny, {
|
|
778
778
|
type: "gumball";
|
|
779
779
|
props: {
|
|
780
|
-
|
|
780
|
+
nameFilter?: string[] | undefined;
|
|
781
|
+
selectionColor?: string | undefined;
|
|
781
782
|
hover?: boolean | undefined;
|
|
782
783
|
hoverColor?: string | undefined;
|
|
783
784
|
prompt?: {
|
|
@@ -785,8 +786,6 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
|
|
|
785
786
|
activeTitle?: string | undefined;
|
|
786
787
|
activeText?: string | undefined;
|
|
787
788
|
} | undefined;
|
|
788
|
-
nameFilter?: string[] | undefined;
|
|
789
|
-
selectionColor?: string | undefined;
|
|
790
789
|
enableRotation?: boolean | undefined;
|
|
791
790
|
enableRotationAxes?: {
|
|
792
791
|
x?: boolean | undefined;
|
|
@@ -805,12 +804,14 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
|
|
|
805
804
|
y?: boolean | undefined;
|
|
806
805
|
z?: boolean | undefined;
|
|
807
806
|
} | undefined;
|
|
807
|
+
scale?: number | undefined;
|
|
808
808
|
space?: "local" | "world" | undefined;
|
|
809
809
|
};
|
|
810
810
|
}, {
|
|
811
811
|
type: "gumball";
|
|
812
812
|
props: {
|
|
813
|
-
|
|
813
|
+
nameFilter?: string[] | undefined;
|
|
814
|
+
selectionColor?: string | undefined;
|
|
814
815
|
hover?: boolean | undefined;
|
|
815
816
|
hoverColor?: string | undefined;
|
|
816
817
|
prompt?: {
|
|
@@ -818,8 +819,6 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
|
|
|
818
819
|
activeTitle?: string | undefined;
|
|
819
820
|
activeText?: string | undefined;
|
|
820
821
|
} | undefined;
|
|
821
|
-
nameFilter?: string[] | undefined;
|
|
822
|
-
selectionColor?: string | undefined;
|
|
823
822
|
enableRotation?: boolean | undefined;
|
|
824
823
|
enableRotationAxes?: {
|
|
825
824
|
x?: boolean | undefined;
|
|
@@ -838,6 +837,7 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
|
|
|
838
837
|
y?: boolean | undefined;
|
|
839
838
|
z?: boolean | undefined;
|
|
840
839
|
} | undefined;
|
|
840
|
+
scale?: number | undefined;
|
|
841
841
|
space?: "local" | "world" | undefined;
|
|
842
842
|
};
|
|
843
843
|
}>]>, z.ZodObject<{
|
|
@@ -1112,6 +1112,10 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
|
|
|
1112
1112
|
export declare const validateInteractionParameterSettings: (param: unknown) => z.SafeParseReturnType<{
|
|
1113
1113
|
type: "selection";
|
|
1114
1114
|
props: {
|
|
1115
|
+
maximumSelection?: number | undefined;
|
|
1116
|
+
minimumSelection?: number | undefined;
|
|
1117
|
+
nameFilter?: string[] | undefined;
|
|
1118
|
+
selectionColor?: string | undefined;
|
|
1115
1119
|
hover?: boolean | undefined;
|
|
1116
1120
|
hoverColor?: string | undefined;
|
|
1117
1121
|
prompt?: {
|
|
@@ -1119,15 +1123,12 @@ export declare const validateInteractionParameterSettings: (param: unknown) => z
|
|
|
1119
1123
|
activeTitle?: string | undefined;
|
|
1120
1124
|
activeText?: string | undefined;
|
|
1121
1125
|
} | undefined;
|
|
1122
|
-
maximumSelection?: number | undefined;
|
|
1123
|
-
minimumSelection?: number | undefined;
|
|
1124
|
-
nameFilter?: string[] | undefined;
|
|
1125
|
-
selectionColor?: string | undefined;
|
|
1126
1126
|
};
|
|
1127
1127
|
} | {
|
|
1128
1128
|
type: "gumball";
|
|
1129
1129
|
props: {
|
|
1130
|
-
|
|
1130
|
+
nameFilter?: string[] | undefined;
|
|
1131
|
+
selectionColor?: string | undefined;
|
|
1131
1132
|
hover?: boolean | undefined;
|
|
1132
1133
|
hoverColor?: string | undefined;
|
|
1133
1134
|
prompt?: {
|
|
@@ -1135,8 +1136,6 @@ export declare const validateInteractionParameterSettings: (param: unknown) => z
|
|
|
1135
1136
|
activeTitle?: string | undefined;
|
|
1136
1137
|
activeText?: string | undefined;
|
|
1137
1138
|
} | undefined;
|
|
1138
|
-
nameFilter?: string[] | undefined;
|
|
1139
|
-
selectionColor?: string | undefined;
|
|
1140
1139
|
enableRotation?: boolean | undefined;
|
|
1141
1140
|
enableRotationAxes?: {
|
|
1142
1141
|
x?: boolean | undefined;
|
|
@@ -1155,6 +1154,7 @@ export declare const validateInteractionParameterSettings: (param: unknown) => z
|
|
|
1155
1154
|
y?: boolean | undefined;
|
|
1156
1155
|
z?: boolean | undefined;
|
|
1157
1156
|
} | undefined;
|
|
1157
|
+
scale?: number | undefined;
|
|
1158
1158
|
space?: "local" | "world" | undefined;
|
|
1159
1159
|
};
|
|
1160
1160
|
} | {
|
|
@@ -1199,6 +1199,10 @@ export declare const validateInteractionParameterSettings: (param: unknown) => z
|
|
|
1199
1199
|
}, {
|
|
1200
1200
|
type: "selection";
|
|
1201
1201
|
props: {
|
|
1202
|
+
maximumSelection?: number | undefined;
|
|
1203
|
+
minimumSelection?: number | undefined;
|
|
1204
|
+
nameFilter?: string[] | undefined;
|
|
1205
|
+
selectionColor?: string | undefined;
|
|
1202
1206
|
hover?: boolean | undefined;
|
|
1203
1207
|
hoverColor?: string | undefined;
|
|
1204
1208
|
prompt?: {
|
|
@@ -1206,15 +1210,12 @@ export declare const validateInteractionParameterSettings: (param: unknown) => z
|
|
|
1206
1210
|
activeTitle?: string | undefined;
|
|
1207
1211
|
activeText?: string | undefined;
|
|
1208
1212
|
} | undefined;
|
|
1209
|
-
maximumSelection?: number | undefined;
|
|
1210
|
-
minimumSelection?: number | undefined;
|
|
1211
|
-
nameFilter?: string[] | undefined;
|
|
1212
|
-
selectionColor?: string | undefined;
|
|
1213
1213
|
};
|
|
1214
1214
|
} | {
|
|
1215
1215
|
type: "gumball";
|
|
1216
1216
|
props: {
|
|
1217
|
-
|
|
1217
|
+
nameFilter?: string[] | undefined;
|
|
1218
|
+
selectionColor?: string | undefined;
|
|
1218
1219
|
hover?: boolean | undefined;
|
|
1219
1220
|
hoverColor?: string | undefined;
|
|
1220
1221
|
prompt?: {
|
|
@@ -1222,8 +1223,6 @@ export declare const validateInteractionParameterSettings: (param: unknown) => z
|
|
|
1222
1223
|
activeTitle?: string | undefined;
|
|
1223
1224
|
activeText?: string | undefined;
|
|
1224
1225
|
} | undefined;
|
|
1225
|
-
nameFilter?: string[] | undefined;
|
|
1226
|
-
selectionColor?: string | undefined;
|
|
1227
1226
|
enableRotation?: boolean | undefined;
|
|
1228
1227
|
enableRotationAxes?: {
|
|
1229
1228
|
x?: boolean | undefined;
|
|
@@ -1242,6 +1241,7 @@ export declare const validateInteractionParameterSettings: (param: unknown) => z
|
|
|
1242
1241
|
y?: boolean | undefined;
|
|
1243
1242
|
z?: boolean | undefined;
|
|
1244
1243
|
} | undefined;
|
|
1244
|
+
scale?: number | undefined;
|
|
1245
1245
|
space?: "local" | "world" | undefined;
|
|
1246
1246
|
};
|
|
1247
1247
|
} | {
|
|
@@ -1287,6 +1287,10 @@ export declare const validateInteractionParameterSettings: (param: unknown) => z
|
|
|
1287
1287
|
export declare const validateSelectionParameterSettings: (param: unknown) => z.SafeParseReturnType<{
|
|
1288
1288
|
type: "selection";
|
|
1289
1289
|
props: {
|
|
1290
|
+
maximumSelection?: number | undefined;
|
|
1291
|
+
minimumSelection?: number | undefined;
|
|
1292
|
+
nameFilter?: string[] | undefined;
|
|
1293
|
+
selectionColor?: string | undefined;
|
|
1290
1294
|
hover?: boolean | undefined;
|
|
1291
1295
|
hoverColor?: string | undefined;
|
|
1292
1296
|
prompt?: {
|
|
@@ -1294,14 +1298,14 @@ export declare const validateSelectionParameterSettings: (param: unknown) => z.S
|
|
|
1294
1298
|
activeTitle?: string | undefined;
|
|
1295
1299
|
activeText?: string | undefined;
|
|
1296
1300
|
} | undefined;
|
|
1297
|
-
maximumSelection?: number | undefined;
|
|
1298
|
-
minimumSelection?: number | undefined;
|
|
1299
|
-
nameFilter?: string[] | undefined;
|
|
1300
|
-
selectionColor?: string | undefined;
|
|
1301
1301
|
};
|
|
1302
1302
|
}, {
|
|
1303
1303
|
type: "selection";
|
|
1304
1304
|
props: {
|
|
1305
|
+
maximumSelection?: number | undefined;
|
|
1306
|
+
minimumSelection?: number | undefined;
|
|
1307
|
+
nameFilter?: string[] | undefined;
|
|
1308
|
+
selectionColor?: string | undefined;
|
|
1305
1309
|
hover?: boolean | undefined;
|
|
1306
1310
|
hoverColor?: string | undefined;
|
|
1307
1311
|
prompt?: {
|
|
@@ -1309,16 +1313,13 @@ export declare const validateSelectionParameterSettings: (param: unknown) => z.S
|
|
|
1309
1313
|
activeTitle?: string | undefined;
|
|
1310
1314
|
activeText?: string | undefined;
|
|
1311
1315
|
} | undefined;
|
|
1312
|
-
maximumSelection?: number | undefined;
|
|
1313
|
-
minimumSelection?: number | undefined;
|
|
1314
|
-
nameFilter?: string[] | undefined;
|
|
1315
|
-
selectionColor?: string | undefined;
|
|
1316
1316
|
};
|
|
1317
1317
|
}>;
|
|
1318
1318
|
export declare const validateGumballParameterSettings: (param: unknown) => z.SafeParseReturnType<{
|
|
1319
1319
|
type: "gumball";
|
|
1320
1320
|
props: {
|
|
1321
|
-
|
|
1321
|
+
nameFilter?: string[] | undefined;
|
|
1322
|
+
selectionColor?: string | undefined;
|
|
1322
1323
|
hover?: boolean | undefined;
|
|
1323
1324
|
hoverColor?: string | undefined;
|
|
1324
1325
|
prompt?: {
|
|
@@ -1326,8 +1327,6 @@ export declare const validateGumballParameterSettings: (param: unknown) => z.Saf
|
|
|
1326
1327
|
activeTitle?: string | undefined;
|
|
1327
1328
|
activeText?: string | undefined;
|
|
1328
1329
|
} | undefined;
|
|
1329
|
-
nameFilter?: string[] | undefined;
|
|
1330
|
-
selectionColor?: string | undefined;
|
|
1331
1330
|
enableRotation?: boolean | undefined;
|
|
1332
1331
|
enableRotationAxes?: {
|
|
1333
1332
|
x?: boolean | undefined;
|
|
@@ -1346,12 +1345,14 @@ export declare const validateGumballParameterSettings: (param: unknown) => z.Saf
|
|
|
1346
1345
|
y?: boolean | undefined;
|
|
1347
1346
|
z?: boolean | undefined;
|
|
1348
1347
|
} | undefined;
|
|
1348
|
+
scale?: number | undefined;
|
|
1349
1349
|
space?: "local" | "world" | undefined;
|
|
1350
1350
|
};
|
|
1351
1351
|
}, {
|
|
1352
1352
|
type: "gumball";
|
|
1353
1353
|
props: {
|
|
1354
|
-
|
|
1354
|
+
nameFilter?: string[] | undefined;
|
|
1355
|
+
selectionColor?: string | undefined;
|
|
1355
1356
|
hover?: boolean | undefined;
|
|
1356
1357
|
hoverColor?: string | undefined;
|
|
1357
1358
|
prompt?: {
|
|
@@ -1359,8 +1360,6 @@ export declare const validateGumballParameterSettings: (param: unknown) => z.Saf
|
|
|
1359
1360
|
activeTitle?: string | undefined;
|
|
1360
1361
|
activeText?: string | undefined;
|
|
1361
1362
|
} | undefined;
|
|
1362
|
-
nameFilter?: string[] | undefined;
|
|
1363
|
-
selectionColor?: string | undefined;
|
|
1364
1363
|
enableRotation?: boolean | undefined;
|
|
1365
1364
|
enableRotationAxes?: {
|
|
1366
1365
|
x?: boolean | undefined;
|
|
@@ -1379,6 +1378,7 @@ export declare const validateGumballParameterSettings: (param: unknown) => z.Saf
|
|
|
1379
1378
|
y?: boolean | undefined;
|
|
1380
1379
|
z?: boolean | undefined;
|
|
1381
1380
|
} | undefined;
|
|
1381
|
+
scale?: number | undefined;
|
|
1382
1382
|
space?: "local" | "world" | undefined;
|
|
1383
1383
|
};
|
|
1384
1384
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IInteractionParameterSettings.d.ts","sourceRoot":"","sources":["../../../src/interfaces/parameter/IInteractionParameterSettings.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"IInteractionParameterSettings.d.ts","sourceRoot":"","sources":["../../../src/interfaces/parameter/IInteractionParameterSettings.ts"],"names":[],"mappings":"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"}
|
|
@@ -7,74 +7,100 @@ const zod_1 = require("zod");
|
|
|
7
7
|
const IGeneralInteractionParameterJsonSchema = zod_1.z.object({
|
|
8
8
|
hover: zod_1.z.boolean().optional(),
|
|
9
9
|
hoverColor: zod_1.z.string().optional(),
|
|
10
|
-
prompt: zod_1.z
|
|
10
|
+
prompt: zod_1.z
|
|
11
|
+
.object({
|
|
11
12
|
inactiveTitle: zod_1.z.string().optional(),
|
|
12
13
|
activeTitle: zod_1.z.string().optional(),
|
|
13
14
|
activeText: zod_1.z.string().optional(),
|
|
14
|
-
})
|
|
15
|
+
})
|
|
16
|
+
.optional(),
|
|
15
17
|
});
|
|
16
18
|
exports.ISelectionParameterJsonSchema = zod_1.z.object({
|
|
17
|
-
type: zod_1.z.literal(
|
|
18
|
-
props: zod_1.z
|
|
19
|
+
type: zod_1.z.literal("selection"),
|
|
20
|
+
props: zod_1.z
|
|
21
|
+
.object({
|
|
19
22
|
maximumSelection: zod_1.z.number().optional(),
|
|
20
23
|
minimumSelection: zod_1.z.number().optional(),
|
|
21
24
|
nameFilter: zod_1.z.array(zod_1.z.string()).optional(),
|
|
22
25
|
selectionColor: zod_1.z.string().optional(),
|
|
23
|
-
})
|
|
26
|
+
})
|
|
27
|
+
.merge(IGeneralInteractionParameterJsonSchema),
|
|
24
28
|
});
|
|
25
29
|
exports.IGumballParameterJsonSchema = zod_1.z.object({
|
|
26
|
-
type: zod_1.z.literal(
|
|
27
|
-
props: zod_1.z
|
|
30
|
+
type: zod_1.z.literal("gumball"),
|
|
31
|
+
props: zod_1.z
|
|
32
|
+
.object({
|
|
28
33
|
enableRotation: zod_1.z.boolean().optional(),
|
|
29
|
-
enableRotationAxes: zod_1.z
|
|
34
|
+
enableRotationAxes: zod_1.z
|
|
35
|
+
.object({
|
|
30
36
|
x: zod_1.z.boolean().optional(),
|
|
31
37
|
y: zod_1.z.boolean().optional(),
|
|
32
38
|
z: zod_1.z.boolean().optional(),
|
|
33
|
-
})
|
|
39
|
+
})
|
|
40
|
+
.optional(),
|
|
34
41
|
enableScaling: zod_1.z.boolean().optional(),
|
|
35
|
-
enableScalingAxes: zod_1.z
|
|
42
|
+
enableScalingAxes: zod_1.z
|
|
43
|
+
.object({
|
|
36
44
|
x: zod_1.z.boolean().optional(),
|
|
37
45
|
y: zod_1.z.boolean().optional(),
|
|
38
46
|
z: zod_1.z.boolean().optional(),
|
|
39
|
-
})
|
|
47
|
+
})
|
|
48
|
+
.optional(),
|
|
40
49
|
enableTranslation: zod_1.z.boolean().optional(),
|
|
41
|
-
enableTranslationAxes: zod_1.z
|
|
50
|
+
enableTranslationAxes: zod_1.z
|
|
51
|
+
.object({
|
|
42
52
|
x: zod_1.z.boolean().optional(),
|
|
43
53
|
y: zod_1.z.boolean().optional(),
|
|
44
54
|
z: zod_1.z.boolean().optional(),
|
|
45
|
-
})
|
|
55
|
+
})
|
|
56
|
+
.optional(),
|
|
46
57
|
nameFilter: zod_1.z.array(zod_1.z.string()).optional(),
|
|
47
58
|
scale: zod_1.z.number().optional(),
|
|
48
|
-
space: zod_1.z.literal(
|
|
59
|
+
space: zod_1.z.literal("local").or(zod_1.z.literal("world")).optional(),
|
|
49
60
|
selectionColor: zod_1.z.string().optional(),
|
|
50
|
-
})
|
|
61
|
+
})
|
|
62
|
+
.merge(IGeneralInteractionParameterJsonSchema),
|
|
51
63
|
});
|
|
52
64
|
exports.IDraggingParameterJsonSchema = zod_1.z.object({
|
|
53
|
-
type: zod_1.z.literal(
|
|
54
|
-
props: zod_1.z
|
|
65
|
+
type: zod_1.z.literal("dragging"),
|
|
66
|
+
props: zod_1.z
|
|
67
|
+
.object({
|
|
55
68
|
draggingColor: zod_1.z.string().optional(),
|
|
56
|
-
objects: zod_1.z
|
|
69
|
+
objects: zod_1.z
|
|
70
|
+
.array(zod_1.z.object({
|
|
57
71
|
nameFilter: zod_1.z.string(),
|
|
58
72
|
restrictions: zod_1.z.array(zod_1.z.string()),
|
|
59
|
-
dragAnchors: zod_1.z
|
|
73
|
+
dragAnchors: zod_1.z
|
|
74
|
+
.array(zod_1.z.object({
|
|
60
75
|
id: zod_1.z.string(),
|
|
61
76
|
position: zod_1.z.array(zod_1.z.number()),
|
|
62
|
-
rotation: zod_1.z
|
|
77
|
+
rotation: zod_1.z
|
|
78
|
+
.object({
|
|
63
79
|
axis: zod_1.z.array(zod_1.z.number()),
|
|
64
80
|
angle: zod_1.z.number(),
|
|
65
|
-
})
|
|
66
|
-
|
|
81
|
+
})
|
|
82
|
+
.optional(),
|
|
83
|
+
}))
|
|
84
|
+
.optional(),
|
|
67
85
|
dragOrigin: zod_1.z.array(zod_1.z.number()).optional(),
|
|
68
|
-
}))
|
|
69
|
-
|
|
86
|
+
}))
|
|
87
|
+
.optional(),
|
|
88
|
+
restrictions: zod_1.z
|
|
89
|
+
.array(zod_1.z
|
|
90
|
+
.object({
|
|
70
91
|
id: zod_1.z.string(),
|
|
71
92
|
type: zod_1.z.string(),
|
|
72
|
-
rotation: zod_1.z
|
|
93
|
+
rotation: zod_1.z
|
|
94
|
+
.object({
|
|
73
95
|
axis: zod_1.z.array(zod_1.z.number()),
|
|
74
96
|
angle: zod_1.z.number(),
|
|
75
|
-
})
|
|
76
|
-
|
|
77
|
-
|
|
97
|
+
})
|
|
98
|
+
.optional(),
|
|
99
|
+
})
|
|
100
|
+
.passthrough())
|
|
101
|
+
.optional(),
|
|
102
|
+
})
|
|
103
|
+
.merge(IGeneralInteractionParameterJsonSchema),
|
|
78
104
|
});
|
|
79
105
|
exports.IInteractionParameterJsonSchema = exports.ISelectionParameterJsonSchema.or(exports.IGumballParameterJsonSchema).or(exports.IDraggingParameterJsonSchema);
|
|
80
106
|
const validateInteractionParameterSettings = (param) => {
|