@shapediver/viewer.shared.types 3.12.13 → 3.12.15

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 +1 @@
1
- {"version":3,"file":"SDTFOverviewData.d.ts","sourceRoot":"","sources":["../../../src/implementation/sdtf/SDTFOverviewData.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,oBAAoB,EAAC,MAAM,qCAAqC,CAAC;AACzE,OAAO,EACN,aAAa,EACb,iBAAiB,EACjB,MAAM,yCAAyC,CAAC;AAEjD,qBAAa,gBACZ,SAAQ,oBACR,YAAW,iBAAiB;;gBAUhB,QAAQ,EAAE,aAAa,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;IASlE,IAAW,QAAQ,IAAI,aAAa,CAEnC;IAMD;;OAEG;IACI,KAAK,IAAI,iBAAiB;IAI1B,KAAK,CAAC,IAAI,EAAE,iBAAiB;CA4DpC"}
1
+ {"version":3,"file":"SDTFOverviewData.d.ts","sourceRoot":"","sources":["../../../src/implementation/sdtf/SDTFOverviewData.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,oBAAoB,EAAC,MAAM,qCAAqC,CAAC;AACzE,OAAO,EACN,aAAa,EACb,iBAAiB,EACjB,MAAM,yCAAyC,CAAC;AAEjD,qBAAa,gBACZ,SAAQ,oBACR,YAAW,iBAAiB;;gBAShB,QAAQ,EAAE,aAAa,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;IASlE,IAAW,QAAQ,IAAI,aAAa,CAEnC;IAMD;;OAEG;IACI,KAAK,IAAI,iBAAiB;IAI1B,KAAK,CAAC,IAAI,EAAE,iBAAiB;CAuEpC"}
@@ -38,7 +38,6 @@ class SDTFOverviewData extends viewer_shared_node_tree_1.AbstractTreeNodeData {
38
38
  return new SDTFOverviewData(__classPrivateFieldGet(this, _SDTFOverviewData_overview, "f"), this.id, this.version);
39
39
  }
40
40
  merge(data) {
41
- var _a, _b;
42
41
  for (let overviewKey in data.overview) {
43
42
  for (let i = 0; i < data.overview[overviewKey].length; i++) {
44
43
  const dataToCopy = data.overview[overviewKey][i];
@@ -49,11 +48,20 @@ class SDTFOverviewData extends viewer_shared_node_tree_1.AbstractTreeNodeData {
49
48
  const entry = existingEntries[0];
50
49
  entry.count++;
51
50
  if (sdk_sdtf_primitives_1.SdtfPrimitiveTypeGuard.isStringType(dataToCopy.typeHint)) {
52
- entry.values = (_a = entry.values) === null || _a === void 0 ? void 0 : _a.concat(dataToCopy.values.filter((item) => entry.values.indexOf(item) < 0));
53
- entry.countForValue = (_b = entry.countForValue) === null || _b === void 0 ? void 0 : _b.map((count, index) => count +
54
- (dataToCopy.countForValue
55
- ? dataToCopy.countForValue[index]
56
- : 0));
51
+ // combine the countForValue
52
+ for (let i = 0; i < dataToCopy.values.length; i++) {
53
+ const value = dataToCopy.values[i];
54
+ // check if the the entry already has the value
55
+ const entryIndex = entry.values.indexOf(value);
56
+ if (entryIndex !== -1) {
57
+ entry.countForValue[entryIndex] +=
58
+ dataToCopy.countForValue[i];
59
+ }
60
+ else {
61
+ entry.values.push(value);
62
+ entry.countForValue.push(dataToCopy.countForValue[i]);
63
+ }
64
+ }
57
65
  }
58
66
  if (sdk_sdtf_primitives_1.SdtfPrimitiveTypeGuard.isNumberType(dataToCopy.typeHint)) {
59
67
  entry.min = Math.min(dataToCopy.min, entry.min);
@@ -64,8 +72,12 @@ class SDTFOverviewData extends viewer_shared_node_tree_1.AbstractTreeNodeData {
64
72
  this.overview[overviewKey].push({
65
73
  typeHint: dataToCopy.typeHint,
66
74
  count: dataToCopy.count,
67
- values: dataToCopy.values,
68
- countForValue: dataToCopy.countForValue,
75
+ values: dataToCopy.values
76
+ ? [...dataToCopy.values]
77
+ : dataToCopy.values,
78
+ countForValue: dataToCopy.countForValue
79
+ ? [...dataToCopy.countForValue]
80
+ : dataToCopy.countForValue,
69
81
  min: dataToCopy.min,
70
82
  max: dataToCopy.max,
71
83
  });
@@ -75,8 +87,12 @@ class SDTFOverviewData extends viewer_shared_node_tree_1.AbstractTreeNodeData {
75
87
  {
76
88
  typeHint: dataToCopy.typeHint,
77
89
  count: dataToCopy.count,
78
- values: dataToCopy.values,
79
- countForValue: dataToCopy.countForValue,
90
+ values: dataToCopy.values
91
+ ? [...dataToCopy.values]
92
+ : dataToCopy.values,
93
+ countForValue: dataToCopy.countForValue
94
+ ? [...dataToCopy.countForValue]
95
+ : dataToCopy.countForValue,
80
96
  min: dataToCopy.min,
81
97
  max: dataToCopy.max,
82
98
  },
@@ -1 +1 @@
1
- {"version":3,"file":"SDTFOverviewData.js","sourceRoot":"","sources":["../../../src/implementation/sdtf/SDTFOverviewData.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yEAAuE;AACvE,iFAAyE;AAMzE,MAAa,gBACZ,SAAQ,8CAAoB;IAO5B,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,QAAuB,EAAE,EAAW,EAAE,OAAgB;QACjE,KAAK,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QATpB,yBAAyB;QAEzB,qCAA2B,EAAE,EAAC;QAQ7B,uBAAA,IAAI,8BAAa,QAAQ,MAAA,CAAC;IAC3B,CAAC;IAED,8BAA8B;IAE9B,+BAA+B;IAE/B,IAAW,QAAQ;QAClB,OAAO,uBAAA,IAAI,kCAAU,CAAC;IACvB,CAAC;IAED,kCAAkC;IAElC,6BAA6B;IAE7B;;OAEG;IACI,KAAK;QACX,OAAO,IAAI,gBAAgB,CAAC,uBAAA,IAAI,kCAAU,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACpE,CAAC;IAEM,KAAK,CAAC,IAAuB;;QACnC,KAAK,IAAI,WAAW,IAAI,IAAI,CAAC,QAAQ,EAAE;YACtC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,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AC,aAAa,CAAC;4BAC/B,CAAC,CAAC,UAAU,CAAC,aAAa;wBAC3B,GAAG,EAAE,UAAU,CAAC,GAAG;wBACnB,GAAG,EAAE,UAAU,CAAC,GAAG;qBACnB,CAAC,CAAC;iBACH;qBAAM;oBACN,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,GAAG;wBAC5B;4BACC,QAAQ,EAAE,UAAU,CAAC,QAAQ;4BAC7B,KAAK,EAAE,UAAU,CAAC,KAAK;4BACvB,MAAM,EAAE,UAAU,CAAC,MAAM;gCACxB,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC;gCACxB,CAAC,CAAC,UAAU,CAAC,MAAM;4BACpB,aAAa,EAAE,UAAU,CAAC,aAAa;gCACtC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,aAAa,CAAC;gCAC/B,CAAC,CAAC,UAAU,CAAC,aAAa;4BAC3B,GAAG,EAAE,UAAU,CAAC,GAAG;4BACnB,GAAG,EAAE,UAAU,CAAC,GAAG;yBACnB;qBACD,CAAC;iBACF;aACD;SACD;IACF,CAAC;CAGD;AA1GD,4CA0GC"}
@@ -53,6 +53,10 @@ export declare const ISelectionParameterJsonSchema: z.ZodObject<{
53
53
  activeText?: string | null | undefined;
54
54
  }>>>;
55
55
  }>, "strip", z.ZodTypeAny, {
56
+ maximumSelection?: number | null | undefined;
57
+ minimumSelection?: number | null | undefined;
58
+ nameFilter?: string[] | null | undefined;
59
+ selectionColor?: string | null | undefined;
56
60
  hover?: boolean | undefined;
57
61
  hoverColor?: string | null | undefined;
58
62
  prompt?: {
@@ -60,11 +64,11 @@ export declare const ISelectionParameterJsonSchema: z.ZodObject<{
60
64
  activeTitle?: string | null | undefined;
61
65
  activeText?: string | null | undefined;
62
66
  } | null | undefined;
67
+ }, {
63
68
  maximumSelection?: number | null | undefined;
64
69
  minimumSelection?: number | null | undefined;
65
70
  nameFilter?: string[] | null | undefined;
66
71
  selectionColor?: string | null | undefined;
67
- }, {
68
72
  hover?: unknown;
69
73
  hoverColor?: string | null | undefined;
70
74
  prompt?: {
@@ -72,14 +76,14 @@ export declare const ISelectionParameterJsonSchema: z.ZodObject<{
72
76
  activeTitle?: string | null | undefined;
73
77
  activeText?: string | null | undefined;
74
78
  } | null | undefined;
75
- maximumSelection?: number | null | undefined;
76
- minimumSelection?: number | null | undefined;
77
- nameFilter?: string[] | null | undefined;
78
- selectionColor?: string | null | undefined;
79
79
  }>;
80
80
  }, "strip", z.ZodTypeAny, {
81
81
  type: "selection";
82
82
  props: {
83
+ maximumSelection?: number | null | undefined;
84
+ minimumSelection?: number | null | undefined;
85
+ nameFilter?: string[] | null | undefined;
86
+ selectionColor?: string | null | undefined;
83
87
  hover?: boolean | undefined;
84
88
  hoverColor?: string | null | undefined;
85
89
  prompt?: {
@@ -87,14 +91,14 @@ export declare const ISelectionParameterJsonSchema: z.ZodObject<{
87
91
  activeTitle?: string | null | undefined;
88
92
  activeText?: string | null | undefined;
89
93
  } | null | undefined;
90
- maximumSelection?: number | null | undefined;
91
- minimumSelection?: number | null | undefined;
92
- nameFilter?: string[] | null | undefined;
93
- selectionColor?: string | null | undefined;
94
94
  };
95
95
  }, {
96
96
  type: "selection";
97
97
  props: {
98
+ maximumSelection?: number | null | undefined;
99
+ minimumSelection?: number | null | undefined;
100
+ nameFilter?: string[] | null | undefined;
101
+ selectionColor?: string | null | undefined;
98
102
  hover?: unknown;
99
103
  hoverColor?: string | null | undefined;
100
104
  prompt?: {
@@ -102,10 +106,6 @@ export declare const ISelectionParameterJsonSchema: z.ZodObject<{
102
106
  activeTitle?: string | null | undefined;
103
107
  activeText?: string | null | undefined;
104
108
  } | null | undefined;
105
- maximumSelection?: number | null | undefined;
106
- minimumSelection?: number | null | undefined;
107
- nameFilter?: string[] | null | undefined;
108
- selectionColor?: string | null | undefined;
109
109
  };
110
110
  }>;
111
111
  export declare const IGumballParameterJsonSchema: z.ZodObject<{
@@ -174,6 +174,8 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
174
174
  activeText?: string | null | undefined;
175
175
  }>>>;
176
176
  }>, "strip", z.ZodTypeAny, {
177
+ nameFilter?: string[] | null | undefined;
178
+ selectionColor?: string | null | undefined;
177
179
  hover?: boolean | undefined;
178
180
  hoverColor?: string | null | undefined;
179
181
  prompt?: {
@@ -181,8 +183,6 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
181
183
  activeTitle?: string | null | undefined;
182
184
  activeText?: string | null | undefined;
183
185
  } | null | undefined;
184
- nameFilter?: string[] | null | undefined;
185
- selectionColor?: string | null | undefined;
186
186
  enableRotation?: boolean | undefined;
187
187
  enableRotationAxes?: {
188
188
  x?: boolean | undefined;
@@ -204,6 +204,8 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
204
204
  scale?: number | null | undefined;
205
205
  space?: "local" | "world" | null | undefined;
206
206
  }, {
207
+ nameFilter?: string[] | null | undefined;
208
+ selectionColor?: string | null | undefined;
207
209
  hover?: unknown;
208
210
  hoverColor?: string | null | undefined;
209
211
  prompt?: {
@@ -211,8 +213,6 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
211
213
  activeTitle?: string | null | undefined;
212
214
  activeText?: string | null | undefined;
213
215
  } | null | undefined;
214
- nameFilter?: string[] | null | undefined;
215
- selectionColor?: string | null | undefined;
216
216
  enableRotation?: unknown;
217
217
  enableRotationAxes?: {
218
218
  x?: unknown;
@@ -237,6 +237,8 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
237
237
  }, "strip", z.ZodTypeAny, {
238
238
  type: "gumball";
239
239
  props: {
240
+ nameFilter?: string[] | null | undefined;
241
+ selectionColor?: string | null | undefined;
240
242
  hover?: boolean | undefined;
241
243
  hoverColor?: string | null | undefined;
242
244
  prompt?: {
@@ -244,8 +246,6 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
244
246
  activeTitle?: string | null | undefined;
245
247
  activeText?: string | null | undefined;
246
248
  } | null | undefined;
247
- nameFilter?: string[] | null | undefined;
248
- selectionColor?: string | null | undefined;
249
249
  enableRotation?: boolean | undefined;
250
250
  enableRotationAxes?: {
251
251
  x?: boolean | undefined;
@@ -270,6 +270,8 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
270
270
  }, {
271
271
  type: "gumball";
272
272
  props: {
273
+ nameFilter?: string[] | null | undefined;
274
+ selectionColor?: string | null | undefined;
273
275
  hover?: unknown;
274
276
  hoverColor?: string | null | undefined;
275
277
  prompt?: {
@@ -277,8 +279,6 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
277
279
  activeTitle?: string | null | undefined;
278
280
  activeText?: string | null | undefined;
279
281
  } | null | undefined;
280
- nameFilter?: string[] | null | undefined;
281
- selectionColor?: string | null | undefined;
282
282
  enableRotation?: unknown;
283
283
  enableRotationAxes?: {
284
284
  x?: unknown;
@@ -594,6 +594,10 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
594
594
  activeText?: string | null | undefined;
595
595
  }>>>;
596
596
  }>, "strip", z.ZodTypeAny, {
597
+ maximumSelection?: number | null | undefined;
598
+ minimumSelection?: number | null | undefined;
599
+ nameFilter?: string[] | null | undefined;
600
+ selectionColor?: string | null | undefined;
597
601
  hover?: boolean | undefined;
598
602
  hoverColor?: string | null | undefined;
599
603
  prompt?: {
@@ -601,11 +605,11 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
601
605
  activeTitle?: string | null | undefined;
602
606
  activeText?: string | null | undefined;
603
607
  } | null | undefined;
608
+ }, {
604
609
  maximumSelection?: number | null | undefined;
605
610
  minimumSelection?: number | null | undefined;
606
611
  nameFilter?: string[] | null | undefined;
607
612
  selectionColor?: string | null | undefined;
608
- }, {
609
613
  hover?: unknown;
610
614
  hoverColor?: string | null | undefined;
611
615
  prompt?: {
@@ -613,14 +617,14 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
613
617
  activeTitle?: string | null | undefined;
614
618
  activeText?: string | null | undefined;
615
619
  } | null | undefined;
616
- maximumSelection?: number | null | undefined;
617
- minimumSelection?: number | null | undefined;
618
- nameFilter?: string[] | null | undefined;
619
- selectionColor?: string | null | undefined;
620
620
  }>;
621
621
  }, "strip", z.ZodTypeAny, {
622
622
  type: "selection";
623
623
  props: {
624
+ maximumSelection?: number | null | undefined;
625
+ minimumSelection?: number | null | undefined;
626
+ nameFilter?: string[] | null | undefined;
627
+ selectionColor?: string | null | undefined;
624
628
  hover?: boolean | undefined;
625
629
  hoverColor?: string | null | undefined;
626
630
  prompt?: {
@@ -628,14 +632,14 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
628
632
  activeTitle?: string | null | undefined;
629
633
  activeText?: string | null | undefined;
630
634
  } | null | undefined;
631
- maximumSelection?: number | null | undefined;
632
- minimumSelection?: number | null | undefined;
633
- nameFilter?: string[] | null | undefined;
634
- selectionColor?: string | null | undefined;
635
635
  };
636
636
  }, {
637
637
  type: "selection";
638
638
  props: {
639
+ maximumSelection?: number | null | undefined;
640
+ minimumSelection?: number | null | undefined;
641
+ nameFilter?: string[] | null | undefined;
642
+ selectionColor?: string | null | undefined;
639
643
  hover?: unknown;
640
644
  hoverColor?: string | null | undefined;
641
645
  prompt?: {
@@ -643,10 +647,6 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
643
647
  activeTitle?: string | null | undefined;
644
648
  activeText?: string | null | undefined;
645
649
  } | null | undefined;
646
- maximumSelection?: number | null | undefined;
647
- minimumSelection?: number | null | undefined;
648
- nameFilter?: string[] | null | undefined;
649
- selectionColor?: string | null | undefined;
650
650
  };
651
651
  }>, z.ZodObject<{
652
652
  type: z.ZodLiteral<"gumball">;
@@ -714,6 +714,8 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
714
714
  activeText?: string | null | undefined;
715
715
  }>>>;
716
716
  }>, "strip", z.ZodTypeAny, {
717
+ nameFilter?: string[] | null | undefined;
718
+ selectionColor?: string | null | undefined;
717
719
  hover?: boolean | undefined;
718
720
  hoverColor?: string | null | undefined;
719
721
  prompt?: {
@@ -721,8 +723,6 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
721
723
  activeTitle?: string | null | undefined;
722
724
  activeText?: string | null | undefined;
723
725
  } | null | undefined;
724
- nameFilter?: string[] | null | undefined;
725
- selectionColor?: string | null | undefined;
726
726
  enableRotation?: boolean | undefined;
727
727
  enableRotationAxes?: {
728
728
  x?: boolean | undefined;
@@ -744,6 +744,8 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
744
744
  scale?: number | null | undefined;
745
745
  space?: "local" | "world" | null | undefined;
746
746
  }, {
747
+ nameFilter?: string[] | null | undefined;
748
+ selectionColor?: string | null | undefined;
747
749
  hover?: unknown;
748
750
  hoverColor?: string | null | undefined;
749
751
  prompt?: {
@@ -751,8 +753,6 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
751
753
  activeTitle?: string | null | undefined;
752
754
  activeText?: string | null | undefined;
753
755
  } | null | undefined;
754
- nameFilter?: string[] | null | undefined;
755
- selectionColor?: string | null | undefined;
756
756
  enableRotation?: unknown;
757
757
  enableRotationAxes?: {
758
758
  x?: unknown;
@@ -777,6 +777,8 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
777
777
  }, "strip", z.ZodTypeAny, {
778
778
  type: "gumball";
779
779
  props: {
780
+ nameFilter?: string[] | null | undefined;
781
+ selectionColor?: string | null | undefined;
780
782
  hover?: boolean | undefined;
781
783
  hoverColor?: string | null | undefined;
782
784
  prompt?: {
@@ -784,8 +786,6 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
784
786
  activeTitle?: string | null | undefined;
785
787
  activeText?: string | null | undefined;
786
788
  } | null | undefined;
787
- nameFilter?: string[] | null | undefined;
788
- selectionColor?: string | null | undefined;
789
789
  enableRotation?: boolean | undefined;
790
790
  enableRotationAxes?: {
791
791
  x?: boolean | undefined;
@@ -810,6 +810,8 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
810
810
  }, {
811
811
  type: "gumball";
812
812
  props: {
813
+ nameFilter?: string[] | null | undefined;
814
+ selectionColor?: string | null | undefined;
813
815
  hover?: unknown;
814
816
  hoverColor?: string | null | undefined;
815
817
  prompt?: {
@@ -817,8 +819,6 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodUnion<[z.
817
819
  activeTitle?: string | null | undefined;
818
820
  activeText?: string | null | undefined;
819
821
  } | null | undefined;
820
- nameFilter?: string[] | null | undefined;
821
- selectionColor?: string | null | undefined;
822
822
  enableRotation?: unknown;
823
823
  enableRotationAxes?: {
824
824
  x?: unknown;
@@ -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 | null | undefined;
1116
+ minimumSelection?: number | null | undefined;
1117
+ nameFilter?: string[] | null | undefined;
1118
+ selectionColor?: string | null | undefined;
1115
1119
  hover?: unknown;
1116
1120
  hoverColor?: string | null | undefined;
1117
1121
  prompt?: {
@@ -1119,14 +1123,12 @@ export declare const validateInteractionParameterSettings: (param: unknown) => z
1119
1123
  activeTitle?: string | null | undefined;
1120
1124
  activeText?: string | null | undefined;
1121
1125
  } | null | undefined;
1122
- maximumSelection?: number | null | undefined;
1123
- minimumSelection?: number | null | undefined;
1124
- nameFilter?: string[] | null | undefined;
1125
- selectionColor?: string | null | undefined;
1126
1126
  };
1127
1127
  } | {
1128
1128
  type: "gumball";
1129
1129
  props: {
1130
+ nameFilter?: string[] | null | undefined;
1131
+ selectionColor?: string | null | undefined;
1130
1132
  hover?: unknown;
1131
1133
  hoverColor?: string | null | undefined;
1132
1134
  prompt?: {
@@ -1134,8 +1136,6 @@ export declare const validateInteractionParameterSettings: (param: unknown) => z
1134
1136
  activeTitle?: string | null | undefined;
1135
1137
  activeText?: string | null | undefined;
1136
1138
  } | null | undefined;
1137
- nameFilter?: string[] | null | undefined;
1138
- selectionColor?: string | null | undefined;
1139
1139
  enableRotation?: unknown;
1140
1140
  enableRotationAxes?: {
1141
1141
  x?: unknown;
@@ -1199,6 +1199,10 @@ export declare const validateInteractionParameterSettings: (param: unknown) => z
1199
1199
  }, {
1200
1200
  type: "selection";
1201
1201
  props: {
1202
+ maximumSelection?: number | null | undefined;
1203
+ minimumSelection?: number | null | undefined;
1204
+ nameFilter?: string[] | null | undefined;
1205
+ selectionColor?: string | null | undefined;
1202
1206
  hover?: boolean | undefined;
1203
1207
  hoverColor?: string | null | undefined;
1204
1208
  prompt?: {
@@ -1206,14 +1210,12 @@ export declare const validateInteractionParameterSettings: (param: unknown) => z
1206
1210
  activeTitle?: string | null | undefined;
1207
1211
  activeText?: string | null | undefined;
1208
1212
  } | null | undefined;
1209
- maximumSelection?: number | null | undefined;
1210
- minimumSelection?: number | null | undefined;
1211
- nameFilter?: string[] | null | undefined;
1212
- selectionColor?: string | null | undefined;
1213
1213
  };
1214
1214
  } | {
1215
1215
  type: "gumball";
1216
1216
  props: {
1217
+ nameFilter?: string[] | null | undefined;
1218
+ selectionColor?: string | null | undefined;
1217
1219
  hover?: boolean | undefined;
1218
1220
  hoverColor?: string | null | undefined;
1219
1221
  prompt?: {
@@ -1221,8 +1223,6 @@ export declare const validateInteractionParameterSettings: (param: unknown) => z
1221
1223
  activeTitle?: string | null | undefined;
1222
1224
  activeText?: string | null | undefined;
1223
1225
  } | null | undefined;
1224
- nameFilter?: string[] | null | undefined;
1225
- selectionColor?: string | null | undefined;
1226
1226
  enableRotation?: boolean | undefined;
1227
1227
  enableRotationAxes?: {
1228
1228
  x?: boolean | undefined;
@@ -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 | null | undefined;
1291
+ minimumSelection?: number | null | undefined;
1292
+ nameFilter?: string[] | null | undefined;
1293
+ selectionColor?: string | null | undefined;
1290
1294
  hover?: unknown;
1291
1295
  hoverColor?: string | null | undefined;
1292
1296
  prompt?: {
@@ -1294,14 +1298,14 @@ export declare const validateSelectionParameterSettings: (param: unknown) => z.S
1294
1298
  activeTitle?: string | null | undefined;
1295
1299
  activeText?: string | null | undefined;
1296
1300
  } | null | undefined;
1297
- maximumSelection?: number | null | undefined;
1298
- minimumSelection?: number | null | undefined;
1299
- nameFilter?: string[] | null | undefined;
1300
- selectionColor?: string | null | undefined;
1301
1301
  };
1302
1302
  }, {
1303
1303
  type: "selection";
1304
1304
  props: {
1305
+ maximumSelection?: number | null | undefined;
1306
+ minimumSelection?: number | null | undefined;
1307
+ nameFilter?: string[] | null | undefined;
1308
+ selectionColor?: string | null | undefined;
1305
1309
  hover?: boolean | undefined;
1306
1310
  hoverColor?: string | null | undefined;
1307
1311
  prompt?: {
@@ -1309,15 +1313,13 @@ export declare const validateSelectionParameterSettings: (param: unknown) => z.S
1309
1313
  activeTitle?: string | null | undefined;
1310
1314
  activeText?: string | null | undefined;
1311
1315
  } | null | undefined;
1312
- maximumSelection?: number | null | undefined;
1313
- minimumSelection?: number | null | undefined;
1314
- nameFilter?: string[] | null | undefined;
1315
- selectionColor?: string | null | undefined;
1316
1316
  };
1317
1317
  }>;
1318
1318
  export declare const validateGumballParameterSettings: (param: unknown) => z.SafeParseReturnType<{
1319
1319
  type: "gumball";
1320
1320
  props: {
1321
+ nameFilter?: string[] | null | undefined;
1322
+ selectionColor?: string | null | undefined;
1321
1323
  hover?: unknown;
1322
1324
  hoverColor?: string | null | undefined;
1323
1325
  prompt?: {
@@ -1325,8 +1327,6 @@ export declare const validateGumballParameterSettings: (param: unknown) => z.Saf
1325
1327
  activeTitle?: string | null | undefined;
1326
1328
  activeText?: string | null | undefined;
1327
1329
  } | null | undefined;
1328
- nameFilter?: string[] | null | undefined;
1329
- selectionColor?: string | null | undefined;
1330
1330
  enableRotation?: unknown;
1331
1331
  enableRotationAxes?: {
1332
1332
  x?: unknown;
@@ -1351,6 +1351,8 @@ export declare const validateGumballParameterSettings: (param: unknown) => z.Saf
1351
1351
  }, {
1352
1352
  type: "gumball";
1353
1353
  props: {
1354
+ nameFilter?: string[] | null | undefined;
1355
+ selectionColor?: string | null | undefined;
1354
1356
  hover?: boolean | undefined;
1355
1357
  hoverColor?: string | null | undefined;
1356
1358
  prompt?: {
@@ -1358,8 +1360,6 @@ export declare const validateGumballParameterSettings: (param: unknown) => z.Saf
1358
1360
  activeTitle?: string | null | undefined;
1359
1361
  activeText?: string | null | undefined;
1360
1362
  } | null | undefined;
1361
- nameFilter?: string[] | null | undefined;
1362
- selectionColor?: string | null | undefined;
1363
1363
  enableRotation?: boolean | undefined;
1364
1364
  enableRotationAxes?: {
1365
1365
  x?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapediver/viewer.shared.types",
3
- "version": "3.12.13",
3
+ "version": "3.12.15",
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": "2.9.0",
42
42
  "@shapediver/sdk.sdtf-v1": "1.6.0",
43
- "@shapediver/viewer.shared.math": "3.12.13",
44
- "@shapediver/viewer.shared.node-tree": "3.12.13",
45
- "@shapediver/viewer.shared.services": "3.12.13",
43
+ "@shapediver/viewer.shared.math": "3.12.15",
44
+ "@shapediver/viewer.shared.node-tree": "3.12.15",
45
+ "@shapediver/viewer.shared.services": "3.12.15",
46
46
  "gl-matrix": "3.3.0",
47
47
  "zod": "3.23.8"
48
48
  },
49
- "gitHead": "9e4f01fd60bfbc86ec41a172da391e5c945e641d"
49
+ "gitHead": "c8d5403771205a3771fd4c0d54ff28a0dcd25714"
50
50
  }