@shapediver/viewer.shared.types 3.9.9 → 3.9.10

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.
@@ -1,7 +1,7 @@
1
1
  import { ITransformation, ITreeNode, ITreeNodeData } from "@shapediver/viewer.shared.node-tree";
2
2
  import { vec3 } from "gl-matrix";
3
3
  export interface IAnimationTrack {
4
- interpolation: "linear" | "step";
4
+ interpolation: "linear" | "step" | string | ((amount: number) => number);
5
5
  node: ITreeNode;
6
6
  path: "scale" | "translation" | "rotation";
7
7
  previousMatrix?: ITransformation;
@@ -1 +1 @@
1
- {"version":3,"file":"IAnimationData.d.ts","sourceRoot":"","sources":["../../../src/interfaces/data/IAnimationData.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,eAAe,EACf,SAAS,EACT,aAAa,EACb,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B,MAAM,WAAW,eAAe;IAG/B,aAAa,EAAE,QAAQ,GAAG,MAAM,CAAC;IACjC,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,OAAO,GAAG,aAAa,GAAG,UAAU,CAAC;IAC3C,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,KAAK,EACF,YAAY,GACZ,UAAU,GACV,WAAW,GACX,SAAS,GACT,UAAU,GACV,WAAW,GACX,MAAM,EAAE,CAAC;IACZ,MAAM,EACH,YAAY,GACZ,UAAU,GACV,WAAW,GACX,SAAS,GACT,UAAU,GACV,WAAW,GACX,MAAM,EAAE,CAAC;CAGZ;AAED,MAAM,WAAW,cAAe,SAAQ,aAAa;IAGpD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,M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aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,eAAe,EAAE,CAAC;IAM1B,KAAK,IAAI,cAAc,CAAC;IACxB,iBAAiB,IAAI,IAAI,CAAC;IAC1B,cAAc,IAAI,IAAI,CAAC;IACvB,cAAc,IAAI,IAAI,CAAC;IACvB,aAAa,IAAI,IAAI,CAAC;CAGtB"}
@@ -31,12 +31,12 @@ export interface IInteractionParameterSettings {
31
31
  }
32
32
  export declare const ISelectionParameterJsonSchema: z.ZodObject<{
33
33
  type: z.ZodLiteral<"selection">;
34
- props: z.ZodObject<z.objectUtil.extendShape<{
34
+ props: z.ZodObject<{
35
35
  maximumSelection: z.ZodOptional<z.ZodNumber>;
36
36
  minimumSelection: z.ZodOptional<z.ZodNumber>;
37
37
  nameFilter: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
38
38
  selectionColor: z.ZodOptional<z.ZodString>;
39
- }, {
39
+ } & {
40
40
  hover: z.ZodOptional<z.ZodBoolean>;
41
41
  hoverColor: z.ZodOptional<z.ZodString>;
42
42
  prompt: z.ZodOptional<z.ZodObject<{
@@ -52,7 +52,7 @@ export declare const ISelectionParameterJsonSchema: z.ZodObject<{
52
52
  activeTitle?: string | undefined;
53
53
  activeText?: string | undefined;
54
54
  }>>;
55
- }>, "strip", z.ZodTypeAny, {
55
+ }, "strip", z.ZodTypeAny, {
56
56
  maximumSelection?: number | undefined;
57
57
  minimumSelection?: number | undefined;
58
58
  nameFilter?: string[] | undefined;
@@ -110,7 +110,7 @@ export declare const ISelectionParameterJsonSchema: z.ZodObject<{
110
110
  }>;
111
111
  export declare const IGumballParameterJsonSchema: z.ZodObject<{
112
112
  type: z.ZodLiteral<"gumball">;
113
- props: z.ZodObject<z.objectUtil.extendShape<{
113
+ props: z.ZodObject<{
114
114
  enableRotation: z.ZodOptional<z.ZodBoolean>;
115
115
  enableRotationAxes: z.ZodOptional<z.ZodObject<{
116
116
  x: z.ZodOptional<z.ZodBoolean>;
@@ -157,7 +157,7 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
157
157
  scale: z.ZodOptional<z.ZodNumber>;
158
158
  space: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"local">, z.ZodLiteral<"world">]>>;
159
159
  selectionColor: z.ZodOptional<z.ZodString>;
160
- }, {
160
+ } & {
161
161
  hover: z.ZodOptional<z.ZodBoolean>;
162
162
  hoverColor: z.ZodOptional<z.ZodString>;
163
163
  prompt: z.ZodOptional<z.ZodObject<{
@@ -173,7 +173,8 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
173
173
  activeTitle?: string | undefined;
174
174
  activeText?: string | undefined;
175
175
  }>>;
176
- }>, "strip", z.ZodTypeAny, {
176
+ }, "strip", z.ZodTypeAny, {
177
+ scale?: number | undefined;
177
178
  nameFilter?: string[] | undefined;
178
179
  selectionColor?: string | undefined;
179
180
  hover?: boolean | undefined;
@@ -201,9 +202,9 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
201
202
  y?: boolean | undefined;
202
203
  z?: boolean | undefined;
203
204
  } | undefined;
204
- scale?: number | undefined;
205
205
  space?: "local" | "world" | undefined;
206
206
  }, {
207
+ scale?: number | undefined;
207
208
  nameFilter?: string[] | undefined;
208
209
  selectionColor?: string | undefined;
209
210
  hover?: boolean | undefined;
@@ -231,12 +232,12 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
231
232
  y?: boolean | undefined;
232
233
  z?: boolean | undefined;
233
234
  } | 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
+ scale?: number | undefined;
240
241
  nameFilter?: string[] | undefined;
241
242
  selectionColor?: string | undefined;
242
243
  hover?: boolean | undefined;
@@ -264,12 +265,12 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
264
265
  y?: boolean | undefined;
265
266
  z?: boolean | undefined;
266
267
  } | undefined;
267
- scale?: number | undefined;
268
268
  space?: "local" | "world" | undefined;
269
269
  };
270
270
  }, {
271
271
  type: "gumball";
272
272
  props: {
273
+ scale?: number | undefined;
273
274
  nameFilter?: string[] | undefined;
274
275
  selectionColor?: string | undefined;
275
276
  hover?: boolean | undefined;
@@ -297,13 +298,12 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
297
298
  y?: boolean | undefined;
298
299
  z?: boolean | undefined;
299
300
  } | undefined;
300
- scale?: number | undefined;
301
301
  space?: "local" | "world" | undefined;
302
302
  };
303
303
  }>;
304
304
  export declare const IDraggingParameterJsonSchema: z.ZodObject<{
305
305
  type: z.ZodLiteral<"dragging">;
306
- props: z.ZodObject<z.objectUtil.extendShape<{
306
+ props: z.ZodObject<{
307
307
  draggingColor: z.ZodOptional<z.ZodString>;
308
308
  objects: z.ZodOptional<z.ZodArray<z.ZodObject<{
309
309
  nameFilter: z.ZodString;
@@ -402,7 +402,7 @@ export declare const IDraggingParameterJsonSchema: z.ZodObject<{
402
402
  angle: number;
403
403
  }>>;
404
404
  }, z.ZodTypeAny, "passthrough">>, "many">>;
405
- }, {
405
+ } & {
406
406
  hover: z.ZodOptional<z.ZodBoolean>;
407
407
  hoverColor: z.ZodOptional<z.ZodString>;
408
408
  prompt: z.ZodOptional<z.ZodObject<{
@@ -418,7 +418,7 @@ export declare const IDraggingParameterJsonSchema: z.ZodObject<{
418
418
  activeTitle?: string | undefined;
419
419
  activeText?: string | undefined;
420
420
  }>>;
421
- }>, "strip", z.ZodTypeAny, {
421
+ }, "strip", z.ZodTypeAny, {
422
422
  hover?: boolean | undefined;
423
423
  hoverColor?: string | undefined;
424
424
  prompt?: {
@@ -572,12 +572,12 @@ export declare const IDraggingParameterJsonSchema: z.ZodObject<{
572
572
  }>;
573
573
  export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
574
574
  type: z.ZodLiteral<"selection">;
575
- props: z.ZodObject<z.objectUtil.extendShape<{
575
+ props: z.ZodObject<{
576
576
  maximumSelection: z.ZodOptional<z.ZodNumber>;
577
577
  minimumSelection: z.ZodOptional<z.ZodNumber>;
578
578
  nameFilter: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
579
579
  selectionColor: z.ZodOptional<z.ZodString>;
580
- }, {
580
+ } & {
581
581
  hover: z.ZodOptional<z.ZodBoolean>;
582
582
  hoverColor: z.ZodOptional<z.ZodString>;
583
583
  prompt: z.ZodOptional<z.ZodObject<{
@@ -593,7 +593,7 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
593
593
  activeTitle?: string | undefined;
594
594
  activeText?: string | undefined;
595
595
  }>>;
596
- }>, "strip", z.ZodTypeAny, {
596
+ }, "strip", z.ZodTypeAny, {
597
597
  maximumSelection?: number | undefined;
598
598
  minimumSelection?: number | undefined;
599
599
  nameFilter?: string[] | undefined;
@@ -650,7 +650,7 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
650
650
  };
651
651
  }>, z.ZodObject<{
652
652
  type: z.ZodLiteral<"gumball">;
653
- props: z.ZodObject<z.objectUtil.extendShape<{
653
+ props: z.ZodObject<{
654
654
  enableRotation: z.ZodOptional<z.ZodBoolean>;
655
655
  enableRotationAxes: z.ZodOptional<z.ZodObject<{
656
656
  x: z.ZodOptional<z.ZodBoolean>;
@@ -697,7 +697,7 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
697
697
  scale: z.ZodOptional<z.ZodNumber>;
698
698
  space: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"local">, z.ZodLiteral<"world">]>>;
699
699
  selectionColor: z.ZodOptional<z.ZodString>;
700
- }, {
700
+ } & {
701
701
  hover: z.ZodOptional<z.ZodBoolean>;
702
702
  hoverColor: z.ZodOptional<z.ZodString>;
703
703
  prompt: z.ZodOptional<z.ZodObject<{
@@ -713,7 +713,8 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
713
713
  activeTitle?: string | undefined;
714
714
  activeText?: string | undefined;
715
715
  }>>;
716
- }>, "strip", z.ZodTypeAny, {
716
+ }, "strip", z.ZodTypeAny, {
717
+ scale?: number | undefined;
717
718
  nameFilter?: string[] | undefined;
718
719
  selectionColor?: string | undefined;
719
720
  hover?: boolean | undefined;
@@ -741,9 +742,9 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
741
742
  y?: boolean | undefined;
742
743
  z?: boolean | undefined;
743
744
  } | undefined;
744
- scale?: number | undefined;
745
745
  space?: "local" | "world" | undefined;
746
746
  }, {
747
+ scale?: number | undefined;
747
748
  nameFilter?: string[] | undefined;
748
749
  selectionColor?: string | undefined;
749
750
  hover?: boolean | undefined;
@@ -771,12 +772,12 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
771
772
  y?: boolean | undefined;
772
773
  z?: boolean | undefined;
773
774
  } | 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
+ scale?: number | undefined;
780
781
  nameFilter?: string[] | undefined;
781
782
  selectionColor?: string | undefined;
782
783
  hover?: boolean | undefined;
@@ -804,12 +805,12 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
804
805
  y?: boolean | undefined;
805
806
  z?: boolean | undefined;
806
807
  } | undefined;
807
- scale?: number | undefined;
808
808
  space?: "local" | "world" | undefined;
809
809
  };
810
810
  }, {
811
811
  type: "gumball";
812
812
  props: {
813
+ scale?: number | undefined;
813
814
  nameFilter?: string[] | undefined;
814
815
  selectionColor?: string | undefined;
815
816
  hover?: boolean | undefined;
@@ -837,12 +838,11 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
837
838
  y?: boolean | undefined;
838
839
  z?: boolean | undefined;
839
840
  } | undefined;
840
- scale?: number | undefined;
841
841
  space?: "local" | "world" | undefined;
842
842
  };
843
843
  }>]>, z.ZodObject<{
844
844
  type: z.ZodLiteral<"dragging">;
845
- props: z.ZodObject<z.objectUtil.extendShape<{
845
+ props: z.ZodObject<{
846
846
  draggingColor: z.ZodOptional<z.ZodString>;
847
847
  objects: z.ZodOptional<z.ZodArray<z.ZodObject<{
848
848
  nameFilter: z.ZodString;
@@ -941,7 +941,7 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
941
941
  angle: number;
942
942
  }>>;
943
943
  }, z.ZodTypeAny, "passthrough">>, "many">>;
944
- }, {
944
+ } & {
945
945
  hover: z.ZodOptional<z.ZodBoolean>;
946
946
  hoverColor: z.ZodOptional<z.ZodString>;
947
947
  prompt: z.ZodOptional<z.ZodObject<{
@@ -957,7 +957,7 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
957
957
  activeTitle?: string | undefined;
958
958
  activeText?: string | undefined;
959
959
  }>>;
960
- }>, "strip", z.ZodTypeAny, {
960
+ }, "strip", z.ZodTypeAny, {
961
961
  hover?: boolean | undefined;
962
962
  hoverColor?: string | undefined;
963
963
  prompt?: {
@@ -1127,6 +1127,7 @@ export declare const validateInteractionParameterSettings: (param: unknown) => z
1127
1127
  } | {
1128
1128
  type: "gumball";
1129
1129
  props: {
1130
+ scale?: number | undefined;
1130
1131
  nameFilter?: string[] | undefined;
1131
1132
  selectionColor?: string | undefined;
1132
1133
  hover?: boolean | undefined;
@@ -1154,7 +1155,6 @@ export declare const validateInteractionParameterSettings: (param: unknown) => z
1154
1155
  y?: boolean | undefined;
1155
1156
  z?: boolean | undefined;
1156
1157
  } | undefined;
1157
- scale?: number | undefined;
1158
1158
  space?: "local" | "world" | undefined;
1159
1159
  };
1160
1160
  } | {
@@ -1214,6 +1214,7 @@ export declare const validateInteractionParameterSettings: (param: unknown) => z
1214
1214
  } | {
1215
1215
  type: "gumball";
1216
1216
  props: {
1217
+ scale?: number | undefined;
1217
1218
  nameFilter?: string[] | undefined;
1218
1219
  selectionColor?: string | undefined;
1219
1220
  hover?: boolean | undefined;
@@ -1241,7 +1242,6 @@ export declare const validateInteractionParameterSettings: (param: unknown) => z
1241
1242
  y?: boolean | undefined;
1242
1243
  z?: boolean | undefined;
1243
1244
  } | undefined;
1244
- scale?: number | undefined;
1245
1245
  space?: "local" | "world" | undefined;
1246
1246
  };
1247
1247
  } | {
@@ -1318,6 +1318,7 @@ export declare const validateSelectionParameterSettings: (param: unknown) => z.S
1318
1318
  export declare const validateGumballParameterSettings: (param: unknown) => z.SafeParseReturnType<{
1319
1319
  type: "gumball";
1320
1320
  props: {
1321
+ scale?: number | undefined;
1321
1322
  nameFilter?: string[] | undefined;
1322
1323
  selectionColor?: string | undefined;
1323
1324
  hover?: boolean | undefined;
@@ -1345,12 +1346,12 @@ export declare const validateGumballParameterSettings: (param: unknown) => z.Saf
1345
1346
  y?: boolean | undefined;
1346
1347
  z?: boolean | undefined;
1347
1348
  } | undefined;
1348
- scale?: number | undefined;
1349
1349
  space?: "local" | "world" | undefined;
1350
1350
  };
1351
1351
  }, {
1352
1352
  type: "gumball";
1353
1353
  props: {
1354
+ scale?: number | undefined;
1354
1355
  nameFilter?: string[] | undefined;
1355
1356
  selectionColor?: string | undefined;
1356
1357
  hover?: boolean | undefined;
@@ -1378,7 +1379,6 @@ export declare const validateGumballParameterSettings: (param: unknown) => z.Saf
1378
1379
  y?: boolean | undefined;
1379
1380
  z?: boolean | undefined;
1380
1381
  } | undefined;
1381
- scale?: number | undefined;
1382
1382
  space?: "local" | "world" | undefined;
1383
1383
  };
1384
1384
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapediver/viewer.shared.types",
3
- "version": "3.9.9",
3
+ "version": "3.9.10",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "author": "Michael Oppitz <michael@shapediver.com>",
@@ -40,11 +40,11 @@
40
40
  "dependencies": {
41
41
  "@shapediver/sdk.geometry-api-sdk-v2": "1.12.2",
42
42
  "@shapediver/sdk.sdtf-v1": "1.5.3",
43
- "@shapediver/viewer.shared.math": "3.9.9",
44
- "@shapediver/viewer.shared.node-tree": "3.9.9",
45
- "@shapediver/viewer.shared.services": "3.9.9",
43
+ "@shapediver/viewer.shared.math": "3.9.10",
44
+ "@shapediver/viewer.shared.node-tree": "3.9.10",
45
+ "@shapediver/viewer.shared.services": "3.9.10",
46
46
  "gl-matrix": "3.3.0",
47
47
  "zod": "^3.23.8"
48
48
  },
49
- "gitHead": "c80140af2c6b8e41841ee1497210964b97a09209"
49
+ "gitHead": "57ed0febcf3179f79d7982927109929962f53ee9"
50
50
  }