@shapediver/viewer.shared.types 3.2.4 → 3.2.5
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/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/interfaces/data/material/IMapData.d.ts +1 -1
- package/dist/interfaces/data/material/IMapData.d.ts.map +1 -1
- package/dist/interfaces/parameter/IGumballParameterSettings.d.ts +3 -3
- package/dist/interfaces/parameter/IGumballParameterSettings.d.ts.map +1 -1
- package/dist/interfaces/parameter/IInteractionParameterSettings.d.ts +46 -48
- package/dist/interfaces/parameter/IInteractionParameterSettings.d.ts.map +1 -1
- package/dist/interfaces/parameter/IInteractionParameterSettings.js.map +1 -1
- package/dist/interfaces/parameter/ISelectionParameterSettings.d.ts +3 -3
- package/dist/interfaces/parameter/ISelectionParameterSettings.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/index.ts +6 -6
- package/src/interfaces/data/material/IMapData.ts +1 -1
- package/src/interfaces/parameter/IGumballParameterSettings.ts +3 -3
- package/src/interfaces/parameter/IInteractionParameterSettings.ts +2 -4
- package/src/interfaces/parameter/ISelectionParameterSettings.ts +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { BoneData } from './implementation/data/BoneData';
|
|
|
5
5
|
import { Color, ISessionSettingsSections, ISettingsSections, IViewportSettingsSections, PARAMETER_TYPE, PARAMETER_VISUALIZATION } from './types';
|
|
6
6
|
import { CustomData } from './implementation/data/CustomData';
|
|
7
7
|
import { EventResponseMapping } from './interfaces/events/EventResponseMapping';
|
|
8
|
-
import { GumballParameterValue,
|
|
8
|
+
import { GumballParameterValue, IGumballParameterProps, isInteractionGumballParameterSettings } from './interfaces/parameter/IGumballParameterSettings';
|
|
9
9
|
import { HTMLElementAnchorCustomData, HTMLElementAnchorData, HTMLElementAnchorImageData, HTMLElementAnchorTextData } from './implementation/data/HTMLElementAnchorData';
|
|
10
10
|
import { IAnchorDataImage, IAnchorDataText, IHTMLElementAnchorData } from './interfaces/data/IHTMLElementAnchorData';
|
|
11
11
|
import { IAnimationData, IAnimationTrack } from './interfaces/data/IAnimationData';
|
|
@@ -13,7 +13,7 @@ import { IAttributeData, IGeometryData, IPrimitiveData, PRIMITIVE_MODE } from '.
|
|
|
13
13
|
import { IBoneData } from './interfaces/data/IBoneData';
|
|
14
14
|
import { ICameraEvent } from './interfaces/events/ICameraEvent';
|
|
15
15
|
import { ICustomData } from './interfaces/data/ICustomData';
|
|
16
|
-
import {
|
|
16
|
+
import { IInteractionParameterProps, IGumballParameterJsonSchema, IInteractionParameterJsonSchema, IInteractionParameterSettings, InteractionParameterSettingsType, ISelectionParameterJsonSchema, validateGumballParameterSettings, validateInteractionParameterSettings, validateSelectionParameterSettings } from './interfaces/parameter/IInteractionParameterSettings';
|
|
17
17
|
import { IMapData, IMapDataProperties, IMapDataPropertiesDefinition, TEXTURE_FILTERING, TEXTURE_WRAPPING } from './interfaces/data/material/IMapData';
|
|
18
18
|
import { IMaterialAbstractData, IMaterialAbstractDataProperties, IMaterialAbstractDataPropertiesDefinition, MATERIAL_ALPHA, MATERIAL_SHADING, MATERIAL_SIDE, MATERIAL_TYPE } from './interfaces/data/material/IMaterialAbstractData';
|
|
19
19
|
import { IMaterialBasicLineData, IMaterialBasicLineDataProperties, IMaterialBasicLineDataPropertiesDefinition } from './interfaces/data/material/IMaterialBasicLineData';
|
|
@@ -33,7 +33,7 @@ import { ISDTFAttributeData, ISDTFAttributesData } from './interfaces/sdtf/ISDTF
|
|
|
33
33
|
import { ISDTFAttributeVisualizationData } from './interfaces/sdtf/ISDTFAttributeVisualizationData';
|
|
34
34
|
import { ISDTFItemData } from './interfaces/sdtf/ISDTFItemData';
|
|
35
35
|
import { ISDTFOverview, ISDTFOverviewData } from './interfaces/sdtf/ISDTFOverviewData';
|
|
36
|
-
import {
|
|
36
|
+
import { ISelectionParameterProps, isInteractionSelectionParameterSettings, SelectionParameterValue } from './interfaces/parameter/ISelectionParameterSettings';
|
|
37
37
|
import { ISessionEvent } from './interfaces/events/ISessionEvent';
|
|
38
38
|
import { ITaskEvent, TASK_TYPE } from './interfaces/events/ITaskEvent';
|
|
39
39
|
import { IViewportEvent } from './interfaces/events/IViewportEvent';
|
|
@@ -59,5 +59,5 @@ export { ICustomData, CustomData, IBoneData, BoneData };
|
|
|
59
59
|
export { EventResponseMapping, IViewportEvent, ISessionEvent, IOutputEvent, ICameraEvent, IRenderingEvent, IParameterEvent, ISceneEvent, ITaskEvent, TASK_TYPE };
|
|
60
60
|
export { ISDTFOverviewData, SDTFOverviewData, ISDTFOverview, SDTFAttributesData, ISDTFAttributesData, ISDTFAttributeData, SDTFAttributeData, SDTFItemData, ISDTFItemData, ISDTFAttributeVisualizationData, SdtfTypeHintName as SDTF_TYPEHINT, SdtfPrimitiveTypeGuard };
|
|
61
61
|
export { Color, PARAMETER_TYPE, PARAMETER_VISUALIZATION, ISettingsSections, ISessionSettingsSections, IViewportSettingsSections };
|
|
62
|
-
export { InteractionParameterSettingsType,
|
|
62
|
+
export { InteractionParameterSettingsType, IInteractionParameterProps, IInteractionParameterSettings, IInteractionParameterJsonSchema, validateInteractionParameterSettings, ISelectionParameterProps, SelectionParameterValue, isInteractionSelectionParameterSettings, ISelectionParameterJsonSchema, validateSelectionParameterSettings, IGumballParameterProps, GumballParameterValue, isInteractionGumballParameterSettings, IGumballParameterJsonSchema, validateGumballParameterSettings };
|
|
63
63
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oCAAo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;AAAoC,8FAnDtH,qCAAa,OAmDsH;AAhCrI,oGAAgK;AA8D3G,wHA9DlB,qEAAuC,OA8DkB;AA5D5F,+DAAuE;AA8CuE,0FA9CzH,sBAAS,OA8CyH;AA5CvJ,+DAA4D;AA4BE,wFA5BrD,iBAAO,OA4BqD;AA3BrE,2FAAwF;AA0B9D,sGA1BjB,6CAAqB,OA0BiB;AAzB/C,+EAA4E;AAsBxD,gGAtBX,iCAAe,OAsBW;AArBnC,6FAA0F;AAuB/D,uGAvBlB,+CAAsB,OAuBkB;AAtBjD,mFAAgF;AAqB1D,kGArBb,qCAAiB,OAqBa;AApBvC,qFAAkF;AAiB3D,mGAjBd,uCAAkB,OAiBc;AAhBzC,6GAA0G;AAiBvE,+GAjB1B,+DAA8B,OAiB0B;AAhBjE,mFAAgF;AAc1D,kGAdb,qCAAiB,OAca;AAbvC,yFAAsF;AAwB8E,qGAxB3J,2CAAoB,OAwB2J;AAvBxL,iFAAiG;AAuCkB,kGAvC1G,sCAAiB,OAuC0G;AAA9E,mGAvC1B,uCAAkB,OAuC0B;AAtCxE,qEAAkE;AAsCoE,6FAtC7H,2BAAY,OAsC6H;AArClJ,6EAA0E;AAqCrD,iGArCZ,mCAAgB,OAqCY;AApCrC,yEAAyE;AAqCpC,uGArC5B,4CAAsB,OAqC4B;AApC3D,yDAA2D;AAoCrC,8FApCb,8BAAgB,OAoCU;AAnCnC,yFAEwD;AAG/B,qGAJvB,2CAAoB,OAIuB"}
|
|
@@ -2,7 +2,7 @@ import { Color } from '../../../types';
|
|
|
2
2
|
import { ITreeNodeData } from '@shapediver/viewer.shared.node-tree';
|
|
3
3
|
import { vec2 } from 'gl-matrix';
|
|
4
4
|
export declare type IMapDataProperties = IMapDataPropertiesGeneric<HTMLImageElement | ArrayBuffer>;
|
|
5
|
-
export declare type IMapDataPropertiesDefinition = Partial<IMapDataPropertiesGeneric<HTMLImageElement | ArrayBuffer | string
|
|
5
|
+
export declare type IMapDataPropertiesDefinition = Partial<IMapDataPropertiesGeneric<HTMLImageElement | ArrayBuffer | string>> | string;
|
|
6
6
|
export interface IMapData extends ITreeNodeData, IMapDataProperties {
|
|
7
7
|
clone(): IMapData;
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IMapData.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/data/material/IMapData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAIjC,oBAAY,kBAAkB,GAAG,yBAAyB,CAAC,gBAAgB,GAAG,WAAW,CAAC,CAAC;AAC3F,oBAAY,4BAA4B,GAAG,OAAO,CAAC,yBAAyB,CAAC,gBAAgB,GAAG,WAAW,GAAG,MAAM,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"IMapData.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/data/material/IMapData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAIjC,oBAAY,kBAAkB,GAAG,yBAAyB,CAAC,gBAAgB,GAAG,WAAW,CAAC,CAAC;AAC3F,oBAAY,4BAA4B,GAAG,OAAO,CAAC,yBAAyB,CAAC,gBAAgB,GAAG,WAAW,GAAG,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC;AAMhI,MAAM,WAAW,QAAS,SAAQ,aAAa,EAAE,kBAAkB;IAG/D,KAAK,IAAI,QAAQ,CAAC;CAGrB;AAED,UAAU,yBAAyB,CAAC,CAAC;IAGjC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,EAAE,IAAI,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,CAAC,CAAC;IACT,SAAS,EAAE,iBAAiB,CAAC;IAC7B,SAAS,EAAE,iBAAiB,CAAC;IAC7B,MAAM,EAAE,IAAI,CAAC;IACb,MAAM,EAAE,IAAI,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,gBAAgB,CAAC;IACxB,KAAK,EAAE,gBAAgB,CAAC;CAG3B;AAMD,oBAAY,iBAAiB;IACzB,IAAI,IAAI;IACR,OAAO,OAAO;IACd,MAAM,OAAO;IACb,sBAAsB,OAAO;IAC7B,qBAAqB,OAAO;IAC5B,qBAAqB,OAAO;IAC5B,oBAAoB,OAAO;CAC9B;AAED,oBAAY,gBAAgB;IACxB,MAAM,QAAQ;IACd,aAAa,QAAQ;IACrB,eAAe,QAAQ;CAC1B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IInteractionParameterProps, IInteractionParameterSettings } from './IInteractionParameterSettings';
|
|
2
2
|
export declare type GumballParameterValue = {
|
|
3
3
|
names: string[];
|
|
4
4
|
transformations: number[][];
|
|
@@ -6,7 +6,7 @@ export declare type GumballParameterValue = {
|
|
|
6
6
|
/**
|
|
7
7
|
* Properties of a selection parameter.
|
|
8
8
|
*/
|
|
9
|
-
export interface
|
|
9
|
+
export interface IGumballParameterProps extends IInteractionParameterProps {
|
|
10
10
|
/** If the rotation is enabled. (default: true) */
|
|
11
11
|
enableRotation?: boolean;
|
|
12
12
|
/** If the scaling is enabled. (default: false) */
|
|
@@ -22,6 +22,6 @@ export interface IGumballParameterSettings extends IGeneralInteractionParameterS
|
|
|
22
22
|
}
|
|
23
23
|
export declare function isInteractionGumballParameterSettings(def?: IInteractionParameterSettings): def is {
|
|
24
24
|
type: 'gumball';
|
|
25
|
-
props:
|
|
25
|
+
props: IGumballParameterProps;
|
|
26
26
|
};
|
|
27
27
|
//# sourceMappingURL=IGumballParameterSettings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IGumballParameterSettings.d.ts","sourceRoot":"","sources":["../../../src/interfaces/parameter/IGumballParameterSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"IGumballParameterSettings.d.ts","sourceRoot":"","sources":["../../../src/interfaces/parameter/IGumballParameterSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAI5G,oBAAY,qBAAqB,GAAG;IAChC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,eAAe,EAAE,MAAM,EAAE,EAAE,CAAA;CAC9B,CAAC;AAMF;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,0BAA0B;IAGtE,kDAAkD;IAClD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kDAAkD;IAClD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,qDAAqD;IACrD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,sHAAsH;IACtH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4GAA4G;IAC5G,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC1B,mEAAmE;IACnE,cAAc,CAAC,EAAE,MAAM,CAAC;CAG3B;AAMD,wBAAgB,qCAAqC,CAAC,GAAG,CAAC,EAAE,6BAA6B,GAAG,GAAG,IAAI;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,sBAAsB,CAAA;CAAE,CAEpJ"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ISelectionParameterSettings } from './ISelectionParameterSettings';
|
|
3
|
-
import { IGumballParameterSettings } from './IGumballParameterSettings';
|
|
4
2
|
export declare type InteractionParameterSettingsType = 'selection' | 'gumball';
|
|
5
3
|
/**
|
|
6
4
|
* General properties of an interaction parameter.
|
|
7
5
|
*/
|
|
8
|
-
export interface
|
|
6
|
+
export interface IInteractionParameterProps {
|
|
9
7
|
/** If the objects are hoverable. (default: true) */
|
|
10
8
|
hover?: boolean;
|
|
11
9
|
/** The color of the objects when hovered. (default: '#00ff78') */
|
|
@@ -20,7 +18,7 @@ export interface IGeneralInteractionParameterSettings {
|
|
|
20
18
|
*/
|
|
21
19
|
export interface IInteractionParameterSettings {
|
|
22
20
|
/** Properties of the parameter definition. */
|
|
23
|
-
props:
|
|
21
|
+
props: IInteractionParameterProps;
|
|
24
22
|
/** Type of the interaction parameters. */
|
|
25
23
|
type: InteractionParameterSettingsType;
|
|
26
24
|
}
|
|
@@ -35,39 +33,39 @@ export declare const ISelectionParameterJsonSchema: z.ZodObject<{
|
|
|
35
33
|
hoverColor: z.ZodOptional<z.ZodString>;
|
|
36
34
|
nameFilter: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
37
35
|
}>, "strip", z.ZodTypeAny, {
|
|
38
|
-
maximumSelection?: number | undefined;
|
|
39
|
-
minimumSelection?: number | undefined;
|
|
40
|
-
selectionColor?: string | undefined;
|
|
41
36
|
hover?: boolean | undefined;
|
|
42
37
|
hoverColor?: string | undefined;
|
|
43
38
|
nameFilter?: string[] | undefined;
|
|
44
|
-
}, {
|
|
45
39
|
maximumSelection?: number | undefined;
|
|
46
40
|
minimumSelection?: number | undefined;
|
|
47
41
|
selectionColor?: string | undefined;
|
|
42
|
+
}, {
|
|
48
43
|
hover?: boolean | undefined;
|
|
49
44
|
hoverColor?: string | undefined;
|
|
50
45
|
nameFilter?: string[] | undefined;
|
|
46
|
+
maximumSelection?: number | undefined;
|
|
47
|
+
minimumSelection?: number | undefined;
|
|
48
|
+
selectionColor?: string | undefined;
|
|
51
49
|
}>;
|
|
52
50
|
}, "strip", z.ZodTypeAny, {
|
|
53
51
|
type: "selection";
|
|
54
52
|
props: {
|
|
55
|
-
maximumSelection?: number | undefined;
|
|
56
|
-
minimumSelection?: number | undefined;
|
|
57
|
-
selectionColor?: string | undefined;
|
|
58
53
|
hover?: boolean | undefined;
|
|
59
54
|
hoverColor?: string | undefined;
|
|
60
55
|
nameFilter?: string[] | undefined;
|
|
56
|
+
maximumSelection?: number | undefined;
|
|
57
|
+
minimumSelection?: number | undefined;
|
|
58
|
+
selectionColor?: string | undefined;
|
|
61
59
|
};
|
|
62
60
|
}, {
|
|
63
61
|
type: "selection";
|
|
64
62
|
props: {
|
|
65
|
-
maximumSelection?: number | undefined;
|
|
66
|
-
minimumSelection?: number | undefined;
|
|
67
|
-
selectionColor?: string | undefined;
|
|
68
63
|
hover?: boolean | undefined;
|
|
69
64
|
hoverColor?: string | undefined;
|
|
70
65
|
nameFilter?: string[] | undefined;
|
|
66
|
+
maximumSelection?: number | undefined;
|
|
67
|
+
minimumSelection?: number | undefined;
|
|
68
|
+
selectionColor?: string | undefined;
|
|
71
69
|
};
|
|
72
70
|
}>;
|
|
73
71
|
export declare const IGumballParameterJsonSchema: z.ZodObject<{
|
|
@@ -85,20 +83,20 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
|
|
|
85
83
|
nameFilter: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
86
84
|
}>, "strip", z.ZodTypeAny, {
|
|
87
85
|
scale?: number | undefined;
|
|
88
|
-
selectionColor?: string | undefined;
|
|
89
86
|
hover?: boolean | undefined;
|
|
90
87
|
hoverColor?: string | undefined;
|
|
91
88
|
nameFilter?: string[] | undefined;
|
|
89
|
+
selectionColor?: string | undefined;
|
|
92
90
|
enableRotation?: boolean | undefined;
|
|
93
91
|
enableScaling?: boolean | undefined;
|
|
94
92
|
enableTranslation?: boolean | undefined;
|
|
95
93
|
space?: "local" | "world" | undefined;
|
|
96
94
|
}, {
|
|
97
95
|
scale?: number | undefined;
|
|
98
|
-
selectionColor?: string | undefined;
|
|
99
96
|
hover?: boolean | undefined;
|
|
100
97
|
hoverColor?: string | undefined;
|
|
101
98
|
nameFilter?: string[] | undefined;
|
|
99
|
+
selectionColor?: string | undefined;
|
|
102
100
|
enableRotation?: boolean | undefined;
|
|
103
101
|
enableScaling?: boolean | undefined;
|
|
104
102
|
enableTranslation?: boolean | undefined;
|
|
@@ -108,10 +106,10 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
|
|
|
108
106
|
type: "gumball";
|
|
109
107
|
props: {
|
|
110
108
|
scale?: number | undefined;
|
|
111
|
-
selectionColor?: string | undefined;
|
|
112
109
|
hover?: boolean | undefined;
|
|
113
110
|
hoverColor?: string | undefined;
|
|
114
111
|
nameFilter?: string[] | undefined;
|
|
112
|
+
selectionColor?: string | undefined;
|
|
115
113
|
enableRotation?: boolean | undefined;
|
|
116
114
|
enableScaling?: boolean | undefined;
|
|
117
115
|
enableTranslation?: boolean | undefined;
|
|
@@ -121,10 +119,10 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
|
|
|
121
119
|
type: "gumball";
|
|
122
120
|
props: {
|
|
123
121
|
scale?: number | undefined;
|
|
124
|
-
selectionColor?: string | undefined;
|
|
125
122
|
hover?: boolean | undefined;
|
|
126
123
|
hoverColor?: string | undefined;
|
|
127
124
|
nameFilter?: string[] | undefined;
|
|
125
|
+
selectionColor?: string | undefined;
|
|
128
126
|
enableRotation?: boolean | undefined;
|
|
129
127
|
enableScaling?: boolean | undefined;
|
|
130
128
|
enableTranslation?: boolean | undefined;
|
|
@@ -142,39 +140,39 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
142
140
|
hoverColor: z.ZodOptional<z.ZodString>;
|
|
143
141
|
nameFilter: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
144
142
|
}>, "strip", z.ZodTypeAny, {
|
|
145
|
-
maximumSelection?: number | undefined;
|
|
146
|
-
minimumSelection?: number | undefined;
|
|
147
|
-
selectionColor?: string | undefined;
|
|
148
143
|
hover?: boolean | undefined;
|
|
149
144
|
hoverColor?: string | undefined;
|
|
150
145
|
nameFilter?: string[] | undefined;
|
|
151
|
-
}, {
|
|
152
146
|
maximumSelection?: number | undefined;
|
|
153
147
|
minimumSelection?: number | undefined;
|
|
154
148
|
selectionColor?: string | undefined;
|
|
149
|
+
}, {
|
|
155
150
|
hover?: boolean | undefined;
|
|
156
151
|
hoverColor?: string | undefined;
|
|
157
152
|
nameFilter?: string[] | undefined;
|
|
153
|
+
maximumSelection?: number | undefined;
|
|
154
|
+
minimumSelection?: number | undefined;
|
|
155
|
+
selectionColor?: string | undefined;
|
|
158
156
|
}>;
|
|
159
157
|
}, "strip", z.ZodTypeAny, {
|
|
160
158
|
type: "selection";
|
|
161
159
|
props: {
|
|
162
|
-
maximumSelection?: number | undefined;
|
|
163
|
-
minimumSelection?: number | undefined;
|
|
164
|
-
selectionColor?: string | undefined;
|
|
165
160
|
hover?: boolean | undefined;
|
|
166
161
|
hoverColor?: string | undefined;
|
|
167
162
|
nameFilter?: string[] | undefined;
|
|
163
|
+
maximumSelection?: number | undefined;
|
|
164
|
+
minimumSelection?: number | undefined;
|
|
165
|
+
selectionColor?: string | undefined;
|
|
168
166
|
};
|
|
169
167
|
}, {
|
|
170
168
|
type: "selection";
|
|
171
169
|
props: {
|
|
172
|
-
maximumSelection?: number | undefined;
|
|
173
|
-
minimumSelection?: number | undefined;
|
|
174
|
-
selectionColor?: string | undefined;
|
|
175
170
|
hover?: boolean | undefined;
|
|
176
171
|
hoverColor?: string | undefined;
|
|
177
172
|
nameFilter?: string[] | undefined;
|
|
173
|
+
maximumSelection?: number | undefined;
|
|
174
|
+
minimumSelection?: number | undefined;
|
|
175
|
+
selectionColor?: string | undefined;
|
|
178
176
|
};
|
|
179
177
|
}>, z.ZodObject<{
|
|
180
178
|
type: z.ZodLiteral<"gumball">;
|
|
@@ -191,20 +189,20 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
191
189
|
nameFilter: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
192
190
|
}>, "strip", z.ZodTypeAny, {
|
|
193
191
|
scale?: number | undefined;
|
|
194
|
-
selectionColor?: string | undefined;
|
|
195
192
|
hover?: boolean | undefined;
|
|
196
193
|
hoverColor?: string | undefined;
|
|
197
194
|
nameFilter?: string[] | undefined;
|
|
195
|
+
selectionColor?: string | undefined;
|
|
198
196
|
enableRotation?: boolean | undefined;
|
|
199
197
|
enableScaling?: boolean | undefined;
|
|
200
198
|
enableTranslation?: boolean | undefined;
|
|
201
199
|
space?: "local" | "world" | undefined;
|
|
202
200
|
}, {
|
|
203
201
|
scale?: number | undefined;
|
|
204
|
-
selectionColor?: string | undefined;
|
|
205
202
|
hover?: boolean | undefined;
|
|
206
203
|
hoverColor?: string | undefined;
|
|
207
204
|
nameFilter?: string[] | undefined;
|
|
205
|
+
selectionColor?: string | undefined;
|
|
208
206
|
enableRotation?: boolean | undefined;
|
|
209
207
|
enableScaling?: boolean | undefined;
|
|
210
208
|
enableTranslation?: boolean | undefined;
|
|
@@ -214,10 +212,10 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
214
212
|
type: "gumball";
|
|
215
213
|
props: {
|
|
216
214
|
scale?: number | undefined;
|
|
217
|
-
selectionColor?: string | undefined;
|
|
218
215
|
hover?: boolean | undefined;
|
|
219
216
|
hoverColor?: string | undefined;
|
|
220
217
|
nameFilter?: string[] | undefined;
|
|
218
|
+
selectionColor?: string | undefined;
|
|
221
219
|
enableRotation?: boolean | undefined;
|
|
222
220
|
enableScaling?: boolean | undefined;
|
|
223
221
|
enableTranslation?: boolean | undefined;
|
|
@@ -227,10 +225,10 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
227
225
|
type: "gumball";
|
|
228
226
|
props: {
|
|
229
227
|
scale?: number | undefined;
|
|
230
|
-
selectionColor?: string | undefined;
|
|
231
228
|
hover?: boolean | undefined;
|
|
232
229
|
hoverColor?: string | undefined;
|
|
233
230
|
nameFilter?: string[] | undefined;
|
|
231
|
+
selectionColor?: string | undefined;
|
|
234
232
|
enableRotation?: boolean | undefined;
|
|
235
233
|
enableScaling?: boolean | undefined;
|
|
236
234
|
enableTranslation?: boolean | undefined;
|
|
@@ -240,21 +238,21 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
240
238
|
export declare const validateInteractionParameterSettings: (param: unknown) => z.SafeParseReturnType<{
|
|
241
239
|
type: "selection";
|
|
242
240
|
props: {
|
|
243
|
-
maximumSelection?: number | undefined;
|
|
244
|
-
minimumSelection?: number | undefined;
|
|
245
|
-
selectionColor?: string | undefined;
|
|
246
241
|
hover?: boolean | undefined;
|
|
247
242
|
hoverColor?: string | undefined;
|
|
248
243
|
nameFilter?: string[] | undefined;
|
|
244
|
+
maximumSelection?: number | undefined;
|
|
245
|
+
minimumSelection?: number | undefined;
|
|
246
|
+
selectionColor?: string | undefined;
|
|
249
247
|
};
|
|
250
248
|
} | {
|
|
251
249
|
type: "gumball";
|
|
252
250
|
props: {
|
|
253
251
|
scale?: number | undefined;
|
|
254
|
-
selectionColor?: string | undefined;
|
|
255
252
|
hover?: boolean | undefined;
|
|
256
253
|
hoverColor?: string | undefined;
|
|
257
254
|
nameFilter?: string[] | undefined;
|
|
255
|
+
selectionColor?: string | undefined;
|
|
258
256
|
enableRotation?: boolean | undefined;
|
|
259
257
|
enableScaling?: boolean | undefined;
|
|
260
258
|
enableTranslation?: boolean | undefined;
|
|
@@ -263,21 +261,21 @@ export declare const validateInteractionParameterSettings: (param: unknown) => z
|
|
|
263
261
|
}, {
|
|
264
262
|
type: "selection";
|
|
265
263
|
props: {
|
|
266
|
-
maximumSelection?: number | undefined;
|
|
267
|
-
minimumSelection?: number | undefined;
|
|
268
|
-
selectionColor?: string | undefined;
|
|
269
264
|
hover?: boolean | undefined;
|
|
270
265
|
hoverColor?: string | undefined;
|
|
271
266
|
nameFilter?: string[] | undefined;
|
|
267
|
+
maximumSelection?: number | undefined;
|
|
268
|
+
minimumSelection?: number | undefined;
|
|
269
|
+
selectionColor?: string | undefined;
|
|
272
270
|
};
|
|
273
271
|
} | {
|
|
274
272
|
type: "gumball";
|
|
275
273
|
props: {
|
|
276
274
|
scale?: number | undefined;
|
|
277
|
-
selectionColor?: string | undefined;
|
|
278
275
|
hover?: boolean | undefined;
|
|
279
276
|
hoverColor?: string | undefined;
|
|
280
277
|
nameFilter?: string[] | undefined;
|
|
278
|
+
selectionColor?: string | undefined;
|
|
281
279
|
enableRotation?: boolean | undefined;
|
|
282
280
|
enableScaling?: boolean | undefined;
|
|
283
281
|
enableTranslation?: boolean | undefined;
|
|
@@ -287,32 +285,32 @@ export declare const validateInteractionParameterSettings: (param: unknown) => z
|
|
|
287
285
|
export declare const validateSelectionParameterSettings: (param: unknown) => z.SafeParseReturnType<{
|
|
288
286
|
type: "selection";
|
|
289
287
|
props: {
|
|
290
|
-
maximumSelection?: number | undefined;
|
|
291
|
-
minimumSelection?: number | undefined;
|
|
292
|
-
selectionColor?: string | undefined;
|
|
293
288
|
hover?: boolean | undefined;
|
|
294
289
|
hoverColor?: string | undefined;
|
|
295
290
|
nameFilter?: string[] | undefined;
|
|
291
|
+
maximumSelection?: number | undefined;
|
|
292
|
+
minimumSelection?: number | undefined;
|
|
293
|
+
selectionColor?: string | undefined;
|
|
296
294
|
};
|
|
297
295
|
}, {
|
|
298
296
|
type: "selection";
|
|
299
297
|
props: {
|
|
300
|
-
maximumSelection?: number | undefined;
|
|
301
|
-
minimumSelection?: number | undefined;
|
|
302
|
-
selectionColor?: string | undefined;
|
|
303
298
|
hover?: boolean | undefined;
|
|
304
299
|
hoverColor?: string | undefined;
|
|
305
300
|
nameFilter?: string[] | undefined;
|
|
301
|
+
maximumSelection?: number | undefined;
|
|
302
|
+
minimumSelection?: number | undefined;
|
|
303
|
+
selectionColor?: string | undefined;
|
|
306
304
|
};
|
|
307
305
|
}>;
|
|
308
306
|
export declare const validateGumballParameterSettings: (param: unknown) => z.SafeParseReturnType<{
|
|
309
307
|
type: "gumball";
|
|
310
308
|
props: {
|
|
311
309
|
scale?: number | undefined;
|
|
312
|
-
selectionColor?: string | undefined;
|
|
313
310
|
hover?: boolean | undefined;
|
|
314
311
|
hoverColor?: string | undefined;
|
|
315
312
|
nameFilter?: string[] | undefined;
|
|
313
|
+
selectionColor?: string | undefined;
|
|
316
314
|
enableRotation?: boolean | undefined;
|
|
317
315
|
enableScaling?: boolean | undefined;
|
|
318
316
|
enableTranslation?: boolean | undefined;
|
|
@@ -322,10 +320,10 @@ export declare const validateGumballParameterSettings: (param: unknown) => z.Saf
|
|
|
322
320
|
type: "gumball";
|
|
323
321
|
props: {
|
|
324
322
|
scale?: number | undefined;
|
|
325
|
-
selectionColor?: string | undefined;
|
|
326
323
|
hover?: boolean | undefined;
|
|
327
324
|
hoverColor?: string | undefined;
|
|
328
325
|
nameFilter?: string[] | undefined;
|
|
326
|
+
selectionColor?: string | undefined;
|
|
329
327
|
enableRotation?: boolean | undefined;
|
|
330
328
|
enableScaling?: boolean | undefined;
|
|
331
329
|
enableTranslation?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IInteractionParameterSettings.d.ts","sourceRoot":"","sources":["../../../src/interfaces/parameter/IInteractionParameterSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"IInteractionParameterSettings.d.ts","sourceRoot":"","sources":["../../../src/interfaces/parameter/IInteractionParameterSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,oBAAY,gCAAgC,GAAG,WAAW,GAAG,SAAS,CAAC;AAMvE;;GAEG;AACH,MAAM,WAAW,0BAA0B;IAGvC,oDAAoD;IACpD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,kEAAkE;IAClE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sGAAsG;IACtG,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CAGxB;AAED;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAG1C,8CAA8C;IAC9C,KAAK,EAAE,0BAA0B,CAAC;IAClC,0CAA0C;IAC1C,IAAI,EAAE,gCAAgC,CAAC;CAG1C;AAYD,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOxC,CAAC;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUtC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAgE,CAAC;AAE7G,eAAO,MAAM,oCAAoC,UAAW,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAElE,CAAC;AACF,eAAO,MAAM,kCAAkC,UAAW,OAAO;;;;;;;;;;;;;;;;;;;;EAEhE,CAAC;AACF,eAAO,MAAM,gCAAgC,UAAW,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;EAE9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IInteractionParameterSettings.js","sourceRoot":"","sources":["../../../src/interfaces/parameter/IInteractionParameterSettings.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;
|
|
1
|
+
{"version":3,"file":"IInteractionParameterSettings.js","sourceRoot":"","sources":["../../../src/interfaces/parameter/IInteractionParameterSettings.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AA0CxB,4BAA4B;AAE5B,wBAAwB;AAExB,MAAM,sCAAsC,GAAG,OAAC,CAAC,MAAM,CAAC;IACp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C,CAAC,KAAK,CAAC,sCAAsC,CAAC;CACnD,CAAC,CAAC;AAEU,QAAA,+BAA+B,GAAG,qCAA6B,CAAC,EAAE,CAAC,mCAA2B,CAAC,CAAC;AAEtG,MAAM,oCAAoC,GAAG,CAAC,KAAc,EAAE,EAAE;IACnE,OAAO,uCAA+B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAC5D,CAAC,CAAC;AAFW,QAAA,oCAAoC,wCAE/C;AACK,MAAM,kCAAkC,GAAG,CAAC,KAAc,EAAE,EAAE;IACjE,OAAO,qCAA6B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAC1D,CAAC,CAAC;AAFW,QAAA,kCAAkC,sCAE7C;AACK,MAAM,gCAAgC,GAAG,CAAC,KAAc,EAAE,EAAE;IAC/D,OAAO,mCAA2B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AACxD,CAAC,CAAC;AAFW,QAAA,gCAAgC,oCAE3C;AAEF,2BAA2B"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IInteractionParameterProps, IInteractionParameterSettings } from './IInteractionParameterSettings';
|
|
2
2
|
export declare type SelectionParameterValue = {
|
|
3
3
|
names: string[];
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
6
|
* Properties of a selection parameter.
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface ISelectionParameterProps extends IInteractionParameterProps {
|
|
9
9
|
/** The maximum number of objects that can be selected. (default: 1) */
|
|
10
10
|
maximumSelection?: number;
|
|
11
11
|
/** The minimum number of objects that can be selected. (default: 1) */
|
|
@@ -15,6 +15,6 @@ export interface ISelectionParameterSettings extends IGeneralInteractionParamete
|
|
|
15
15
|
}
|
|
16
16
|
export declare function isInteractionSelectionParameterSettings(def?: IInteractionParameterSettings): def is {
|
|
17
17
|
type: 'selection';
|
|
18
|
-
props:
|
|
18
|
+
props: ISelectionParameterProps;
|
|
19
19
|
};
|
|
20
20
|
//# sourceMappingURL=ISelectionParameterSettings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ISelectionParameterSettings.d.ts","sourceRoot":"","sources":["../../../src/interfaces/parameter/ISelectionParameterSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ISelectionParameterSettings.d.ts","sourceRoot":"","sources":["../../../src/interfaces/parameter/ISelectionParameterSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAI5G,oBAAY,uBAAuB,GAAG;IAClC,KAAK,EAAE,MAAM,EAAE,CAAA;CAClB,CAAC;AAMF;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,0BAA0B;IAGxE,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mEAAmE;IACnE,cAAc,CAAC,EAAE,MAAM,CAAC;CAG3B;AAMD,wBAAgB,uCAAuC,CAAC,GAAG,CAAC,EAAE,6BAA6B,GAAG,GAAG,IAAI;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,wBAAwB,CAAA;CAAE,CAE1J"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapediver/viewer.shared.types",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Michael Oppitz <michael@shapediver.com>",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@shapediver/sdk.geometry-api-sdk-v2": "1.10.0",
|
|
43
43
|
"@shapediver/sdk.sdtf-v1": "1.5.1",
|
|
44
|
-
"@shapediver/viewer.shared.math": "3.2.
|
|
45
|
-
"@shapediver/viewer.shared.node-tree": "3.2.
|
|
46
|
-
"@shapediver/viewer.shared.services": "3.2.
|
|
44
|
+
"@shapediver/viewer.shared.math": "3.2.5",
|
|
45
|
+
"@shapediver/viewer.shared.node-tree": "3.2.5",
|
|
46
|
+
"@shapediver/viewer.shared.services": "3.2.5",
|
|
47
47
|
"gl-matrix": "3.3.0",
|
|
48
48
|
"zod": "^3.23.8"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "08deb0200eb96bfa7387653a66a7b62a88bf9714"
|
|
51
51
|
}
|
package/src/index.ts
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from './types';
|
|
13
13
|
import { CustomData } from './implementation/data/CustomData';
|
|
14
14
|
import { EventResponseMapping } from './interfaces/events/EventResponseMapping';
|
|
15
|
-
import { GumballParameterValue,
|
|
15
|
+
import { GumballParameterValue, IGumballParameterProps, isInteractionGumballParameterSettings } from './interfaces/parameter/IGumballParameterSettings';
|
|
16
16
|
import {
|
|
17
17
|
HTMLElementAnchorCustomData,
|
|
18
18
|
HTMLElementAnchorData,
|
|
@@ -31,7 +31,7 @@ import { IBoneData } from './interfaces/data/IBoneData';
|
|
|
31
31
|
import { ICameraEvent } from './interfaces/events/ICameraEvent';
|
|
32
32
|
import { ICustomData } from './interfaces/data/ICustomData';
|
|
33
33
|
import {
|
|
34
|
-
|
|
34
|
+
IInteractionParameterProps,
|
|
35
35
|
IGumballParameterJsonSchema,
|
|
36
36
|
IInteractionParameterJsonSchema,
|
|
37
37
|
IInteractionParameterSettings,
|
|
@@ -74,7 +74,7 @@ import { ISDTFAttributeData, ISDTFAttributesData } from './interfaces/sdtf/ISDTF
|
|
|
74
74
|
import { ISDTFAttributeVisualizationData } from './interfaces/sdtf/ISDTFAttributeVisualizationData';
|
|
75
75
|
import { ISDTFItemData } from './interfaces/sdtf/ISDTFItemData';
|
|
76
76
|
import { ISDTFOverview, ISDTFOverviewData } from './interfaces/sdtf/ISDTFOverviewData';
|
|
77
|
-
import {
|
|
77
|
+
import { ISelectionParameterProps, isInteractionSelectionParameterSettings, SelectionParameterValue } from './interfaces/parameter/ISelectionParameterSettings';
|
|
78
78
|
import { ISessionEvent } from './interfaces/events/ISessionEvent';
|
|
79
79
|
import { ITaskEvent, TASK_TYPE } from './interfaces/events/ITaskEvent';
|
|
80
80
|
import { IViewportEvent } from './interfaces/events/IViewportEvent';
|
|
@@ -135,7 +135,7 @@ export {
|
|
|
135
135
|
};
|
|
136
136
|
|
|
137
137
|
export {
|
|
138
|
-
InteractionParameterSettingsType,
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
InteractionParameterSettingsType, IInteractionParameterProps, IInteractionParameterSettings, IInteractionParameterJsonSchema, validateInteractionParameterSettings,
|
|
139
|
+
ISelectionParameterProps, SelectionParameterValue, isInteractionSelectionParameterSettings, ISelectionParameterJsonSchema, validateSelectionParameterSettings,
|
|
140
|
+
IGumballParameterProps, GumballParameterValue, isInteractionGumballParameterSettings, IGumballParameterJsonSchema, validateGumballParameterSettings
|
|
141
141
|
};
|
|
@@ -5,7 +5,7 @@ import { vec2 } from 'gl-matrix';
|
|
|
5
5
|
// #region Type aliases (2)
|
|
6
6
|
|
|
7
7
|
export type IMapDataProperties = IMapDataPropertiesGeneric<HTMLImageElement | ArrayBuffer>;
|
|
8
|
-
export type IMapDataPropertiesDefinition = Partial<IMapDataPropertiesGeneric<HTMLImageElement | ArrayBuffer | string
|
|
8
|
+
export type IMapDataPropertiesDefinition = Partial<IMapDataPropertiesGeneric<HTMLImageElement | ArrayBuffer | string>> | string;
|
|
9
9
|
|
|
10
10
|
// #endregion Type aliases (2)
|
|
11
11
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IInteractionParameterProps, IInteractionParameterSettings } from './IInteractionParameterSettings';
|
|
2
2
|
|
|
3
3
|
// #region Type aliases (1)
|
|
4
4
|
|
|
@@ -14,7 +14,7 @@ export type GumballParameterValue = {
|
|
|
14
14
|
/**
|
|
15
15
|
* Properties of a selection parameter.
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface IGumballParameterProps extends IInteractionParameterProps {
|
|
18
18
|
// #region Properties (5)
|
|
19
19
|
|
|
20
20
|
/** If the rotation is enabled. (default: true) */
|
|
@@ -37,7 +37,7 @@ export interface IGumballParameterSettings extends IGeneralInteractionParameterS
|
|
|
37
37
|
|
|
38
38
|
// #region Functions (1)
|
|
39
39
|
|
|
40
|
-
export function isInteractionGumballParameterSettings(def?: IInteractionParameterSettings): def is { type: 'gumball', props:
|
|
40
|
+
export function isInteractionGumballParameterSettings(def?: IInteractionParameterSettings): def is { type: 'gumball', props: IGumballParameterProps } {
|
|
41
41
|
return def?.type === 'gumball';
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ISelectionParameterSettings } from './ISelectionParameterSettings';
|
|
3
|
-
import { IGumballParameterSettings } from './IGumballParameterSettings';
|
|
4
2
|
|
|
5
3
|
// #region Type aliases (1)
|
|
6
4
|
|
|
@@ -13,7 +11,7 @@ export type InteractionParameterSettingsType = 'selection' | 'gumball';
|
|
|
13
11
|
/**
|
|
14
12
|
* General properties of an interaction parameter.
|
|
15
13
|
*/
|
|
16
|
-
export interface
|
|
14
|
+
export interface IInteractionParameterProps {
|
|
17
15
|
// #region Properties (2)
|
|
18
16
|
|
|
19
17
|
/** If the objects are hoverable. (default: true) */
|
|
@@ -35,7 +33,7 @@ export interface IInteractionParameterSettings {
|
|
|
35
33
|
// #region Properties (2)
|
|
36
34
|
|
|
37
35
|
/** Properties of the parameter definition. */
|
|
38
|
-
props:
|
|
36
|
+
props: IInteractionParameterProps,
|
|
39
37
|
/** Type of the interaction parameters. */
|
|
40
38
|
type: InteractionParameterSettingsType,
|
|
41
39
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IInteractionParameterProps, IInteractionParameterSettings } from './IInteractionParameterSettings';
|
|
2
2
|
|
|
3
3
|
// #region Type aliases (1)
|
|
4
4
|
|
|
@@ -13,7 +13,7 @@ export type SelectionParameterValue = {
|
|
|
13
13
|
/**
|
|
14
14
|
* Properties of a selection parameter.
|
|
15
15
|
*/
|
|
16
|
-
export interface
|
|
16
|
+
export interface ISelectionParameterProps extends IInteractionParameterProps {
|
|
17
17
|
// #region Properties (2)
|
|
18
18
|
|
|
19
19
|
/** The maximum number of objects that can be selected. (default: 1) */
|
|
@@ -30,7 +30,7 @@ export interface ISelectionParameterSettings extends IGeneralInteractionParamete
|
|
|
30
30
|
|
|
31
31
|
// #region Functions (1)
|
|
32
32
|
|
|
33
|
-
export function isInteractionSelectionParameterSettings(def?: IInteractionParameterSettings): def is { type: 'selection', props:
|
|
33
|
+
export function isInteractionSelectionParameterSettings(def?: IInteractionParameterSettings): def is { type: 'selection', props: ISelectionParameterProps } {
|
|
34
34
|
return def?.type === 'selection';
|
|
35
35
|
}
|
|
36
36
|
|