@shapediver/viewer.shared.types 3.2.0 → 3.2.2
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 +12 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/interfaces/data/material/IMapData.d.ts +23 -18
- package/dist/interfaces/data/material/IMapData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMapData.js +10 -7
- package/dist/interfaces/data/material/IMapData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialAbstractData.d.ts +20 -38
- package/dist/interfaces/data/material/IMaterialAbstractData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialAbstractData.js +4 -4
- package/dist/interfaces/data/material/IMaterialAbstractData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialBasicLineData.d.ts +2 -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 +13 -25
- package/dist/interfaces/data/material/IMaterialGemDataProperties.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialGemDataProperties.js +1 -1
- package/dist/interfaces/data/material/IMaterialGemDataProperties.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialMultiPointData.d.ts +24 -63
- 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/IMaterialPointData.d.ts +9 -7
- package/dist/interfaces/data/material/IMaterialPointData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialPointData.js +1 -0
- package/dist/interfaces/data/material/IMaterialPointData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialShadowData.d.ts +3 -3
- package/dist/interfaces/data/material/IMaterialShadowData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialShadowData.js +1 -1
- package/dist/interfaces/data/material/IMaterialShadowData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialSpecularGlossinessDataProperties.d.ts +14 -17
- package/dist/interfaces/data/material/IMaterialSpecularGlossinessDataProperties.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialSpecularGlossinessDataProperties.js +1 -1
- package/dist/interfaces/data/material/IMaterialSpecularGlossinessDataProperties.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialStandardData.d.ts +23 -50
- package/dist/interfaces/data/material/IMaterialStandardData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialStandardData.js +1 -1
- package/dist/interfaces/data/material/IMaterialStandardData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialUnlitData.d.ts +9 -6
- package/dist/interfaces/data/material/IMaterialUnlitData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialUnlitData.js +1 -1
- package/dist/interfaces/data/material/IMaterialUnlitData.js.map +1 -1
- package/dist/interfaces/parameter/IInteractionParameterSettings.d.ts +36 -36
- package/package.json +6 -6
- package/src/index.ts +38 -21
- package/src/interfaces/data/material/IMapData.ts +40 -23
- package/src/interfaces/data/material/IMaterialAbstractData.ts +32 -45
- package/src/interfaces/data/material/IMaterialBasicLineData.ts +4 -3
- package/src/interfaces/data/material/IMaterialGemDataProperties.ts +26 -35
- package/src/interfaces/data/material/IMaterialMultiPointData.ts +28 -68
- package/src/interfaces/data/material/IMaterialPointData.ts +19 -14
- package/src/interfaces/data/material/IMaterialShadowData.ts +12 -4
- package/src/interfaces/data/material/IMaterialSpecularGlossinessDataProperties.ts +25 -25
- package/src/interfaces/data/material/IMaterialStandardData.ts +34 -58
- package/src/interfaces/data/material/IMaterialUnlitData.ts +19 -13
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IMaterialAbstractData, IMaterialAbstractDataProperties } from
|
|
2
|
-
export
|
|
3
|
-
|
|
1
|
+
import { IMaterialAbstractData, IMaterialAbstractDataProperties, IMaterialAbstractDataPropertiesDefinition } from './IMaterialAbstractData';
|
|
2
|
+
export declare type IMaterialShadowDataProperties = IMaterialAbstractDataProperties;
|
|
3
|
+
export declare type IMaterialShadowDataPropertiesDefinition = IMaterialAbstractDataPropertiesDefinition;
|
|
4
4
|
export interface IMaterialShadowData extends IMaterialAbstractData {
|
|
5
5
|
clone(): IMaterialShadowData;
|
|
6
6
|
copy(source: IMaterialShadowData): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IMaterialShadowData.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/data/material/IMaterialShadowData.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IMaterialShadowData.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/data/material/IMaterialShadowData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,+BAA+B,EAAE,yCAAyC,EAAE,MAAM,yBAAyB,CAAC;AAI5I,oBAAY,6BAA6B,GAAG,+BAA+B,CAAC;AAC5E,oBAAY,uCAAuC,GAAG,yCAAyC,CAAC;AAMhG,MAAM,WAAW,mBAAoB,SAAQ,qBAAqB;IAG9D,KAAK,IAAI,mBAAmB,CAAC;IAC7B,IAAI,CAAC,MAAM,EAAE,mBAAmB,GAAG,IAAI,CAAC;CAG3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IMaterialShadowData.js","sourceRoot":"","sources":["../../../../src/interfaces/data/material/IMaterialShadowData.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"IMaterialShadowData.js","sourceRoot":"","sources":["../../../../src/interfaces/data/material/IMaterialShadowData.ts"],"names":[],"mappings":";;AAoBA,4BAA4B"}
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import { Color } from
|
|
2
|
-
import { IMapData } from
|
|
3
|
-
import { IMaterialAbstractData,
|
|
4
|
-
export
|
|
1
|
+
import { Color } from '../../../types';
|
|
2
|
+
import { IMapData, IMapDataPropertiesDefinition } from './IMapData';
|
|
3
|
+
import { IMaterialAbstractData, IMaterialAbstractDataPropertiesGeneric } from './IMaterialAbstractData';
|
|
4
|
+
export declare type IMaterialSpecularGlossinessDataProperties = Partial<IMaterialSpecularGlossinessDataPropertiesGeneric<IMapData>>;
|
|
5
|
+
export declare type IMaterialSpecularGlossinessDataPropertiesDefinition = Partial<IMaterialSpecularGlossinessDataPropertiesGeneric<IMapDataPropertiesDefinition>>;
|
|
6
|
+
export interface IMaterialSpecularGlossinessData extends IMaterialSpecularGlossinessDataPropertiesGeneric<IMapData>, IMaterialAbstractData {
|
|
7
|
+
clone(): IMaterialSpecularGlossinessData;
|
|
8
|
+
copy(source: IMaterialSpecularGlossinessData): void;
|
|
9
|
+
}
|
|
10
|
+
interface IMaterialSpecularGlossinessDataPropertiesGeneric<T> extends IMaterialAbstractDataPropertiesGeneric<T> {
|
|
5
11
|
envMap?: string | string[];
|
|
6
12
|
glossiness?: number;
|
|
7
|
-
glossinessMap?:
|
|
13
|
+
glossinessMap?: T;
|
|
8
14
|
specular?: Color;
|
|
9
|
-
specularGlossinessMap?:
|
|
10
|
-
specularMap?:
|
|
11
|
-
}
|
|
12
|
-
export interface IMaterialSpecularGlossinessData extends IMaterialAbstractData {
|
|
13
|
-
envMap?: string | string[];
|
|
14
|
-
glossiness: number;
|
|
15
|
-
glossinessMap?: IMapData;
|
|
16
|
-
specular: Color;
|
|
17
|
-
specularGlossinessMap?: IMapData;
|
|
18
|
-
specularMap?: IMapData;
|
|
19
|
-
clone(): IMaterialSpecularGlossinessData;
|
|
20
|
-
copy(source: IMaterialSpecularGlossinessData): void;
|
|
15
|
+
specularGlossinessMap?: T;
|
|
16
|
+
specularMap?: T;
|
|
21
17
|
}
|
|
18
|
+
export {};
|
|
22
19
|
//# sourceMappingURL=IMaterialSpecularGlossinessDataProperties.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IMaterialSpecularGlossinessDataProperties.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/data/material/IMaterialSpecularGlossinessDataProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"IMaterialSpecularGlossinessDataProperties.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/data/material/IMaterialSpecularGlossinessDataProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,sCAAsC,EAAE,MAAM,yBAAyB,CAAC;AAIxG,oBAAY,yCAAyC,GAAG,OAAO,CAAC,gDAAgD,CAAC,QAAQ,CAAC,CAAC,CAAC;AAC5H,oBAAY,mDAAmD,GAAG,OAAO,CAAC,gDAAgD,CAAC,4BAA4B,CAAC,CAAC,CAAC;AAM1J,MAAM,WAAW,+BAAgC,SAAQ,gDAAgD,CAAC,QAAQ,CAAC,EAAE,qBAAqB;IAGtI,KAAK,IAAI,+BAA+B,CAAC;IACzC,IAAI,CAAC,MAAM,EAAE,+BAA+B,GAAG,IAAI,CAAC;CAGvD;AAED,UAAU,gDAAgD,CAAC,CAAC,CAAE,SAAQ,sCAAsC,CAAC,CAAC,CAAC;IAG3G,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,CAAC,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,qBAAqB,CAAC,EAAE,CAAC,CAAC;IAC1B,WAAW,CAAC,EAAE,CAAC,CAAA;CAGlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IMaterialSpecularGlossinessDataProperties.js","sourceRoot":"","sources":["../../../../src/interfaces/data/material/IMaterialSpecularGlossinessDataProperties.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"IMaterialSpecularGlossinessDataProperties.js","sourceRoot":"","sources":["../../../../src/interfaces/data/material/IMaterialSpecularGlossinessDataProperties.ts"],"names":[],"mappings":";;AAmCA,4BAA4B"}
|
|
@@ -1,70 +1,43 @@
|
|
|
1
|
-
import { Color } from
|
|
2
|
-
import { IMapData } from
|
|
3
|
-
import { IMaterialAbstractData,
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
clearcoatNormalMap?: IMapData;
|
|
10
|
-
clearcoatRoughness?: number;
|
|
11
|
-
clearcoatRoughnessMap?: IMapData;
|
|
12
|
-
displacementBias?: number;
|
|
13
|
-
displacementMap?: IMapData;
|
|
14
|
-
displacementScale?: number;
|
|
15
|
-
envMap?: string | string[];
|
|
16
|
-
ior?: number;
|
|
17
|
-
metalness?: number;
|
|
18
|
-
metalnessMap?: IMapData;
|
|
19
|
-
metalnessRoughnessMap?: IMapData;
|
|
20
|
-
roughness?: number;
|
|
21
|
-
roughnessMap?: IMapData;
|
|
22
|
-
sheen?: number;
|
|
23
|
-
sheenColor?: Color;
|
|
24
|
-
sheenColorMap?: IMapData;
|
|
25
|
-
sheenRoughness?: number;
|
|
26
|
-
sheenRoughnessMap?: IMapData;
|
|
27
|
-
specularColor?: Color;
|
|
28
|
-
specularColorMap?: IMapData;
|
|
29
|
-
specularIntensity?: number;
|
|
30
|
-
specularIntensityMap?: IMapData;
|
|
31
|
-
thickness?: number;
|
|
32
|
-
thicknessMap?: IMapData;
|
|
33
|
-
transmission?: number;
|
|
34
|
-
transmissionMap?: IMapData;
|
|
1
|
+
import { Color } from '../../../types';
|
|
2
|
+
import { IMapData, IMapDataPropertiesDefinition } from './IMapData';
|
|
3
|
+
import { IMaterialAbstractData, IMaterialAbstractDataPropertiesGeneric } from './IMaterialAbstractData';
|
|
4
|
+
export declare type IMaterialStandardDataProperties = Partial<IMaterialStandardDataPropertiesGeneric<IMapData>>;
|
|
5
|
+
export declare type IMaterialStandardDataPropertiesDefinition = Partial<IMaterialStandardDataPropertiesGeneric<IMapDataPropertiesDefinition>>;
|
|
6
|
+
export interface IMaterialStandardData extends IMaterialStandardDataPropertiesGeneric<IMapData>, IMaterialAbstractData {
|
|
7
|
+
clone(): IMaterialStandardData;
|
|
8
|
+
copy(source: IMaterialStandardData): void;
|
|
35
9
|
}
|
|
36
|
-
|
|
10
|
+
interface IMaterialStandardDataPropertiesGeneric<T> extends IMaterialAbstractDataPropertiesGeneric<T> {
|
|
37
11
|
attenuationColor: Color;
|
|
38
12
|
attenuationDistance: number;
|
|
39
13
|
clearcoat: number;
|
|
40
|
-
clearcoatMap?:
|
|
41
|
-
clearcoatNormalMap?:
|
|
14
|
+
clearcoatMap?: T;
|
|
15
|
+
clearcoatNormalMap?: T;
|
|
42
16
|
clearcoatRoughness: number;
|
|
43
|
-
clearcoatRoughnessMap?:
|
|
17
|
+
clearcoatRoughnessMap?: T;
|
|
44
18
|
displacementBias: number;
|
|
45
|
-
displacementMap?:
|
|
19
|
+
displacementMap?: T;
|
|
46
20
|
displacementScale: number;
|
|
47
21
|
envMap?: string | string[];
|
|
48
22
|
ior: number;
|
|
49
23
|
metalness: number;
|
|
50
|
-
metalnessMap?:
|
|
51
|
-
metalnessRoughnessMap?:
|
|
24
|
+
metalnessMap?: T;
|
|
25
|
+
metalnessRoughnessMap?: T;
|
|
52
26
|
roughness: number;
|
|
53
|
-
roughnessMap?:
|
|
27
|
+
roughnessMap?: T;
|
|
54
28
|
sheen: number;
|
|
55
29
|
sheenColor: Color;
|
|
56
|
-
sheenColorMap?:
|
|
30
|
+
sheenColorMap?: T;
|
|
57
31
|
sheenRoughness: number;
|
|
58
|
-
sheenRoughnessMap?:
|
|
32
|
+
sheenRoughnessMap?: T;
|
|
59
33
|
specularColor: Color;
|
|
60
|
-
specularColorMap?:
|
|
34
|
+
specularColorMap?: T;
|
|
61
35
|
specularIntensity: number;
|
|
62
|
-
specularIntensityMap?:
|
|
36
|
+
specularIntensityMap?: T;
|
|
63
37
|
thickness: number;
|
|
64
|
-
thicknessMap?:
|
|
38
|
+
thicknessMap?: T;
|
|
65
39
|
transmission: number;
|
|
66
|
-
transmissionMap?:
|
|
67
|
-
clone(): IMaterialStandardData;
|
|
68
|
-
copy(source: IMaterialStandardData): void;
|
|
40
|
+
transmissionMap?: T;
|
|
69
41
|
}
|
|
42
|
+
export {};
|
|
70
43
|
//# sourceMappingURL=IMaterialStandardData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IMaterialStandardData.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/data/material/IMaterialStandardData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"IMaterialStandardData.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/data/material/IMaterialStandardData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,sCAAsC,EAAE,MAAM,yBAAyB,CAAC;AAIxG,oBAAY,+BAA+B,GAAG,OAAO,CAAC,sCAAsC,CAAC,QAAQ,CAAC,CAAC,CAAC;AACxG,oBAAY,yCAAyC,GAAG,OAAO,CAAC,sCAAsC,CAAC,4BAA4B,CAAC,CAAC,CAAC;AAMtI,MAAM,WAAW,qBAAsB,SAAQ,sCAAsC,CAAC,QAAQ,CAAC,EAAE,qBAAqB;IAGlH,KAAK,IAAI,qBAAqB,CAAC;IAC/B,IAAI,CAAC,MAAM,EAAE,qBAAqB,GAAG,IAAI,CAAC;CAG7C;AAED,UAAU,sCAAsC,CAAC,CAAC,CAAE,SAAQ,sCAAsC,CAAC,CAAC,CAAC;IAGjG,gBAAgB,EAAE,KAAK,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,CAAC,CAAC;IACjB,kBAAkB,CAAC,EAAE,CAAC,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,qBAAqB,CAAC,EAAE,CAAC,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,CAAC,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,CAAC,CAAC;IACjB,qBAAqB,CAAC,EAAE,CAAC,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,CAAC,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,KAAK,CAAC;IAClB,aAAa,CAAC,EAAE,CAAC,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,CAAC,CAAC;IACtB,aAAa,EAAE,KAAK,CAAC;IACrB,gBAAgB,CAAC,EAAE,CAAC,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,CAAC,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,CAAC,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,CAAC,CAAC;CAGvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IMaterialStandardData.js","sourceRoot":"","sources":["../../../../src/interfaces/data/material/IMaterialStandardData.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"IMaterialStandardData.js","sourceRoot":"","sources":["../../../../src/interfaces/data/material/IMaterialStandardData.ts"],"names":[],"mappings":";;AA2DA,4BAA4B"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export interface IMaterialUnlitData extends IMaterialAbstractData {
|
|
6
|
-
envMap?: string | string[];
|
|
1
|
+
import { IMapData, IMapDataPropertiesDefinition } from './IMapData';
|
|
2
|
+
import { IMaterialAbstractData, IMaterialAbstractDataPropertiesGeneric } from './IMaterialAbstractData';
|
|
3
|
+
export declare type IMaterialUnlitDataProperties = Partial<IMaterialUnlitDataPropertiesGeneric<IMapData>>;
|
|
4
|
+
export declare type IMaterialUnlitDataPropertiesDefinition = Partial<IMaterialUnlitDataPropertiesGeneric<IMapDataPropertiesDefinition>>;
|
|
5
|
+
export interface IMaterialUnlitData extends IMaterialUnlitDataPropertiesGeneric<IMapData>, IMaterialAbstractData {
|
|
7
6
|
clone(): IMaterialUnlitData;
|
|
8
7
|
copy(source: IMaterialUnlitData): void;
|
|
9
8
|
}
|
|
9
|
+
interface IMaterialUnlitDataPropertiesGeneric<T> extends IMaterialAbstractDataPropertiesGeneric<T> {
|
|
10
|
+
envMap?: string | string[];
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
10
13
|
//# sourceMappingURL=IMaterialUnlitData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IMaterialUnlitData.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/data/material/IMaterialUnlitData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE
|
|
1
|
+
{"version":3,"file":"IMaterialUnlitData.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/data/material/IMaterialUnlitData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,sCAAsC,EAAE,MAAM,yBAAyB,CAAC;AAIxG,oBAAY,4BAA4B,GAAG,OAAO,CAAC,mCAAmC,CAAC,QAAQ,CAAC,CAAC,CAAC;AAClG,oBAAY,sCAAsC,GAAG,OAAO,CAAC,mCAAmC,CAAC,4BAA4B,CAAC,CAAC,CAAC;AAMhI,MAAM,WAAW,kBAAmB,SAAQ,mCAAmC,CAAC,QAAQ,CAAC,EAAE,qBAAqB;IAG5G,KAAK,IAAI,kBAAkB,CAAC;IAC5B,IAAI,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAAC;CAG1C;AAED,UAAU,mCAAmC,CAAC,CAAC,CAAE,SAAQ,sCAAsC,CAAC,CAAC,CAAC;IAG9F,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAG9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IMaterialUnlitData.js","sourceRoot":"","sources":["../../../../src/interfaces/data/material/IMaterialUnlitData.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"IMaterialUnlitData.js","sourceRoot":"","sources":["../../../../src/interfaces/data/material/IMaterialUnlitData.ts"],"names":[],"mappings":";;AA6BA,4BAA4B"}
|
|
@@ -86,49 +86,49 @@ export declare const IGumballParameterJsonSchema: z.ZodObject<{
|
|
|
86
86
|
}>, "strip", z.ZodTypeAny, {
|
|
87
87
|
scale?: number | undefined;
|
|
88
88
|
selectionColor?: string | undefined;
|
|
89
|
+
hover?: boolean | undefined;
|
|
90
|
+
hoverColor?: string | undefined;
|
|
91
|
+
nameFilter?: string[] | undefined;
|
|
89
92
|
enableRotation?: boolean | undefined;
|
|
90
93
|
enableScaling?: boolean | undefined;
|
|
91
94
|
enableTranslation?: boolean | undefined;
|
|
92
95
|
space?: "local" | "world" | undefined;
|
|
93
|
-
hover?: boolean | undefined;
|
|
94
|
-
hoverColor?: string | undefined;
|
|
95
|
-
nameFilter?: string[] | undefined;
|
|
96
96
|
}, {
|
|
97
97
|
scale?: number | undefined;
|
|
98
98
|
selectionColor?: string | undefined;
|
|
99
|
+
hover?: boolean | undefined;
|
|
100
|
+
hoverColor?: string | undefined;
|
|
101
|
+
nameFilter?: string[] | undefined;
|
|
99
102
|
enableRotation?: boolean | undefined;
|
|
100
103
|
enableScaling?: boolean | undefined;
|
|
101
104
|
enableTranslation?: boolean | undefined;
|
|
102
105
|
space?: "local" | "world" | undefined;
|
|
103
|
-
hover?: boolean | undefined;
|
|
104
|
-
hoverColor?: string | undefined;
|
|
105
|
-
nameFilter?: string[] | undefined;
|
|
106
106
|
}>;
|
|
107
107
|
}, "strip", z.ZodTypeAny, {
|
|
108
108
|
type: "gumball";
|
|
109
109
|
props: {
|
|
110
110
|
scale?: number | undefined;
|
|
111
111
|
selectionColor?: string | undefined;
|
|
112
|
+
hover?: boolean | undefined;
|
|
113
|
+
hoverColor?: string | undefined;
|
|
114
|
+
nameFilter?: string[] | undefined;
|
|
112
115
|
enableRotation?: boolean | undefined;
|
|
113
116
|
enableScaling?: boolean | undefined;
|
|
114
117
|
enableTranslation?: boolean | undefined;
|
|
115
118
|
space?: "local" | "world" | undefined;
|
|
116
|
-
hover?: boolean | undefined;
|
|
117
|
-
hoverColor?: string | undefined;
|
|
118
|
-
nameFilter?: string[] | undefined;
|
|
119
119
|
};
|
|
120
120
|
}, {
|
|
121
121
|
type: "gumball";
|
|
122
122
|
props: {
|
|
123
123
|
scale?: number | undefined;
|
|
124
124
|
selectionColor?: string | undefined;
|
|
125
|
+
hover?: boolean | undefined;
|
|
126
|
+
hoverColor?: string | undefined;
|
|
127
|
+
nameFilter?: string[] | undefined;
|
|
125
128
|
enableRotation?: boolean | undefined;
|
|
126
129
|
enableScaling?: boolean | undefined;
|
|
127
130
|
enableTranslation?: boolean | undefined;
|
|
128
131
|
space?: "local" | "world" | undefined;
|
|
129
|
-
hover?: boolean | undefined;
|
|
130
|
-
hoverColor?: string | undefined;
|
|
131
|
-
nameFilter?: string[] | undefined;
|
|
132
132
|
};
|
|
133
133
|
}>;
|
|
134
134
|
export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodObject<{
|
|
@@ -192,49 +192,49 @@ export declare const IInteractionParameterJsonSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
192
192
|
}>, "strip", z.ZodTypeAny, {
|
|
193
193
|
scale?: number | undefined;
|
|
194
194
|
selectionColor?: string | undefined;
|
|
195
|
+
hover?: boolean | undefined;
|
|
196
|
+
hoverColor?: string | undefined;
|
|
197
|
+
nameFilter?: string[] | undefined;
|
|
195
198
|
enableRotation?: boolean | undefined;
|
|
196
199
|
enableScaling?: boolean | undefined;
|
|
197
200
|
enableTranslation?: boolean | undefined;
|
|
198
201
|
space?: "local" | "world" | undefined;
|
|
199
|
-
hover?: boolean | undefined;
|
|
200
|
-
hoverColor?: string | undefined;
|
|
201
|
-
nameFilter?: string[] | undefined;
|
|
202
202
|
}, {
|
|
203
203
|
scale?: number | undefined;
|
|
204
204
|
selectionColor?: string | undefined;
|
|
205
|
+
hover?: boolean | undefined;
|
|
206
|
+
hoverColor?: string | undefined;
|
|
207
|
+
nameFilter?: string[] | undefined;
|
|
205
208
|
enableRotation?: boolean | undefined;
|
|
206
209
|
enableScaling?: boolean | undefined;
|
|
207
210
|
enableTranslation?: boolean | undefined;
|
|
208
211
|
space?: "local" | "world" | undefined;
|
|
209
|
-
hover?: boolean | undefined;
|
|
210
|
-
hoverColor?: string | undefined;
|
|
211
|
-
nameFilter?: string[] | undefined;
|
|
212
212
|
}>;
|
|
213
213
|
}, "strip", z.ZodTypeAny, {
|
|
214
214
|
type: "gumball";
|
|
215
215
|
props: {
|
|
216
216
|
scale?: number | undefined;
|
|
217
217
|
selectionColor?: string | undefined;
|
|
218
|
+
hover?: boolean | undefined;
|
|
219
|
+
hoverColor?: string | undefined;
|
|
220
|
+
nameFilter?: string[] | undefined;
|
|
218
221
|
enableRotation?: boolean | undefined;
|
|
219
222
|
enableScaling?: boolean | undefined;
|
|
220
223
|
enableTranslation?: boolean | undefined;
|
|
221
224
|
space?: "local" | "world" | undefined;
|
|
222
|
-
hover?: boolean | undefined;
|
|
223
|
-
hoverColor?: string | undefined;
|
|
224
|
-
nameFilter?: string[] | undefined;
|
|
225
225
|
};
|
|
226
226
|
}, {
|
|
227
227
|
type: "gumball";
|
|
228
228
|
props: {
|
|
229
229
|
scale?: number | undefined;
|
|
230
230
|
selectionColor?: string | undefined;
|
|
231
|
+
hover?: boolean | undefined;
|
|
232
|
+
hoverColor?: string | undefined;
|
|
233
|
+
nameFilter?: string[] | undefined;
|
|
231
234
|
enableRotation?: boolean | undefined;
|
|
232
235
|
enableScaling?: boolean | undefined;
|
|
233
236
|
enableTranslation?: boolean | undefined;
|
|
234
237
|
space?: "local" | "world" | undefined;
|
|
235
|
-
hover?: boolean | undefined;
|
|
236
|
-
hoverColor?: string | undefined;
|
|
237
|
-
nameFilter?: string[] | undefined;
|
|
238
238
|
};
|
|
239
239
|
}>]>;
|
|
240
240
|
export declare const validateInteractionParameterSettings: (param: unknown) => z.SafeParseReturnType<{
|
|
@@ -252,13 +252,13 @@ export declare const validateInteractionParameterSettings: (param: unknown) => z
|
|
|
252
252
|
props: {
|
|
253
253
|
scale?: number | undefined;
|
|
254
254
|
selectionColor?: string | undefined;
|
|
255
|
+
hover?: boolean | undefined;
|
|
256
|
+
hoverColor?: string | undefined;
|
|
257
|
+
nameFilter?: string[] | undefined;
|
|
255
258
|
enableRotation?: boolean | undefined;
|
|
256
259
|
enableScaling?: boolean | undefined;
|
|
257
260
|
enableTranslation?: boolean | undefined;
|
|
258
261
|
space?: "local" | "world" | undefined;
|
|
259
|
-
hover?: boolean | undefined;
|
|
260
|
-
hoverColor?: string | undefined;
|
|
261
|
-
nameFilter?: string[] | undefined;
|
|
262
262
|
};
|
|
263
263
|
}, {
|
|
264
264
|
type: "selection";
|
|
@@ -275,13 +275,13 @@ export declare const validateInteractionParameterSettings: (param: unknown) => z
|
|
|
275
275
|
props: {
|
|
276
276
|
scale?: number | undefined;
|
|
277
277
|
selectionColor?: string | undefined;
|
|
278
|
+
hover?: boolean | undefined;
|
|
279
|
+
hoverColor?: string | undefined;
|
|
280
|
+
nameFilter?: string[] | undefined;
|
|
278
281
|
enableRotation?: boolean | undefined;
|
|
279
282
|
enableScaling?: boolean | undefined;
|
|
280
283
|
enableTranslation?: boolean | undefined;
|
|
281
284
|
space?: "local" | "world" | undefined;
|
|
282
|
-
hover?: boolean | undefined;
|
|
283
|
-
hoverColor?: string | undefined;
|
|
284
|
-
nameFilter?: string[] | undefined;
|
|
285
285
|
};
|
|
286
286
|
}>;
|
|
287
287
|
export declare const validateSelectionParameterSettings: (param: unknown) => z.SafeParseReturnType<{
|
|
@@ -310,26 +310,26 @@ export declare const validateGumballParameterSettings: (param: unknown) => z.Saf
|
|
|
310
310
|
props: {
|
|
311
311
|
scale?: number | undefined;
|
|
312
312
|
selectionColor?: string | undefined;
|
|
313
|
+
hover?: boolean | undefined;
|
|
314
|
+
hoverColor?: string | undefined;
|
|
315
|
+
nameFilter?: string[] | undefined;
|
|
313
316
|
enableRotation?: boolean | undefined;
|
|
314
317
|
enableScaling?: boolean | undefined;
|
|
315
318
|
enableTranslation?: boolean | undefined;
|
|
316
319
|
space?: "local" | "world" | undefined;
|
|
317
|
-
hover?: boolean | undefined;
|
|
318
|
-
hoverColor?: string | undefined;
|
|
319
|
-
nameFilter?: string[] | undefined;
|
|
320
320
|
};
|
|
321
321
|
}, {
|
|
322
322
|
type: "gumball";
|
|
323
323
|
props: {
|
|
324
324
|
scale?: number | undefined;
|
|
325
325
|
selectionColor?: string | undefined;
|
|
326
|
+
hover?: boolean | undefined;
|
|
327
|
+
hoverColor?: string | undefined;
|
|
328
|
+
nameFilter?: string[] | undefined;
|
|
326
329
|
enableRotation?: boolean | undefined;
|
|
327
330
|
enableScaling?: boolean | undefined;
|
|
328
331
|
enableTranslation?: boolean | undefined;
|
|
329
332
|
space?: "local" | "world" | undefined;
|
|
330
|
-
hover?: boolean | undefined;
|
|
331
|
-
hoverColor?: string | undefined;
|
|
332
|
-
nameFilter?: string[] | undefined;
|
|
333
333
|
};
|
|
334
334
|
}>;
|
|
335
335
|
//# sourceMappingURL=IInteractionParameterSettings.d.ts.map
|
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.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Michael Oppitz <michael@shapediver.com>",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"testEnvironment": "node"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@shapediver/sdk.geometry-api-sdk-v2": "1.
|
|
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.2",
|
|
45
|
+
"@shapediver/viewer.shared.node-tree": "3.2.2",
|
|
46
|
+
"@shapediver/viewer.shared.services": "3.2.2",
|
|
47
47
|
"gl-matrix": "3.3.0",
|
|
48
48
|
"zod": "^3.23.8"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "53949d3be352baa3951ac2e48385472ee7b3b222"
|
|
51
51
|
}
|
package/src/index.ts
CHANGED
|
@@ -12,6 +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, IGumballParameterSettings, isInteractionGumballParameterSettings } from './interfaces/parameter/IGumballParameterSettings';
|
|
15
16
|
import {
|
|
16
17
|
HTMLElementAnchorCustomData,
|
|
17
18
|
HTMLElementAnchorData,
|
|
@@ -29,24 +30,41 @@ import {
|
|
|
29
30
|
import { IBoneData } from './interfaces/data/IBoneData';
|
|
30
31
|
import { ICameraEvent } from './interfaces/events/ICameraEvent';
|
|
31
32
|
import { ICustomData } from './interfaces/data/ICustomData';
|
|
32
|
-
import {
|
|
33
|
-
|
|
33
|
+
import {
|
|
34
|
+
IGeneralInteractionParameterSettings,
|
|
35
|
+
IGumballParameterJsonSchema,
|
|
36
|
+
IInteractionParameterJsonSchema,
|
|
37
|
+
IInteractionParameterSettings,
|
|
38
|
+
InteractionParameterSettingsType,
|
|
39
|
+
ISelectionParameterJsonSchema,
|
|
40
|
+
validateGumballParameterSettings,
|
|
41
|
+
validateInteractionParameterSettings,
|
|
42
|
+
validateSelectionParameterSettings
|
|
43
|
+
} from './interfaces/parameter/IInteractionParameterSettings';
|
|
44
|
+
import {
|
|
45
|
+
IMapData,
|
|
46
|
+
IMapDataProperties,
|
|
47
|
+
IMapDataPropertiesDefinition,
|
|
48
|
+
TEXTURE_FILTERING,
|
|
49
|
+
TEXTURE_WRAPPING
|
|
50
|
+
} from './interfaces/data/material/IMapData';
|
|
34
51
|
import {
|
|
35
52
|
IMaterialAbstractData,
|
|
36
53
|
IMaterialAbstractDataProperties,
|
|
54
|
+
IMaterialAbstractDataPropertiesDefinition,
|
|
37
55
|
MATERIAL_ALPHA,
|
|
38
56
|
MATERIAL_SHADING,
|
|
39
57
|
MATERIAL_SIDE,
|
|
40
58
|
MATERIAL_TYPE
|
|
41
59
|
} from './interfaces/data/material/IMaterialAbstractData';
|
|
42
|
-
import { IMaterialBasicLineData, IMaterialBasicLineDataProperties } from './interfaces/data/material/IMaterialBasicLineData';
|
|
43
|
-
import { IMaterialGemData, IMaterialGemDataProperties } from './interfaces/data/material/IMaterialGemDataProperties';
|
|
44
|
-
import { IMaterialMultiPointData, IMaterialMultiPointDataProperties } from './interfaces/data/material/IMaterialMultiPointData';
|
|
45
|
-
import { IMaterialPointData, IMaterialPointDataProperties } from './interfaces/data/material/IMaterialPointData';
|
|
46
|
-
import { IMaterialShadowData, IMaterialShadowDataProperties } from './interfaces/data/material/IMaterialShadowData';
|
|
47
|
-
import { IMaterialSpecularGlossinessData, IMaterialSpecularGlossinessDataProperties } from './interfaces/data/material/IMaterialSpecularGlossinessDataProperties';
|
|
48
|
-
import { IMaterialStandardData, IMaterialStandardDataProperties } from './interfaces/data/material/IMaterialStandardData';
|
|
49
|
-
import { IMaterialUnlitData, IMaterialUnlitDataProperties } from './interfaces/data/material/IMaterialUnlitData';
|
|
60
|
+
import { IMaterialBasicLineData, IMaterialBasicLineDataProperties, IMaterialBasicLineDataPropertiesDefinition } from './interfaces/data/material/IMaterialBasicLineData';
|
|
61
|
+
import { IMaterialGemData, IMaterialGemDataProperties, IMaterialGemDataPropertiesDefinition } from './interfaces/data/material/IMaterialGemDataProperties';
|
|
62
|
+
import { IMaterialMultiPointData, IMaterialMultiPointDataProperties, IMaterialMultiPointDataPropertiesDefinition } from './interfaces/data/material/IMaterialMultiPointData';
|
|
63
|
+
import { IMaterialPointData, IMaterialPointDataProperties, IMaterialPointDataPropertiesDefinition } from './interfaces/data/material/IMaterialPointData';
|
|
64
|
+
import { IMaterialShadowData, IMaterialShadowDataProperties, IMaterialShadowDataPropertiesDefinition } from './interfaces/data/material/IMaterialShadowData';
|
|
65
|
+
import { IMaterialSpecularGlossinessData, IMaterialSpecularGlossinessDataProperties, IMaterialSpecularGlossinessDataPropertiesDefinition } from './interfaces/data/material/IMaterialSpecularGlossinessDataProperties';
|
|
66
|
+
import { IMaterialStandardData, IMaterialStandardDataProperties, IMaterialStandardDataPropertiesDefinition } from './interfaces/data/material/IMaterialStandardData';
|
|
67
|
+
import { IMaterialUnlitData, IMaterialUnlitDataProperties, IMaterialUnlitDataPropertiesDefinition } from './interfaces/data/material/IMaterialUnlitData';
|
|
50
68
|
import { IMaterialVariantsData } from './interfaces/data/material/IMaterialVariantsData';
|
|
51
69
|
import { IOutputEvent } from './interfaces/events/IOutputEvent';
|
|
52
70
|
import { IParameterEvent } from './interfaces/events/IParameterEvent';
|
|
@@ -77,19 +95,18 @@ import { SdtfTypeHintName } from '@shapediver/sdk.sdtf-v1';
|
|
|
77
95
|
import {
|
|
78
96
|
MaterialStandardData,
|
|
79
97
|
} from './implementation/material/MaterialStandardData';
|
|
80
|
-
import { IGumballParameterSettings, GumballParameterValue, isInteractionGumballParameterSettings } from './interfaces/parameter/IGumballParameterSettings';
|
|
81
98
|
|
|
82
99
|
export {
|
|
83
|
-
IMaterialStandardData, MaterialStandardData, IMaterialStandardDataProperties,
|
|
84
|
-
IMaterialAbstractData, IMaterialAbstractDataProperties, AbstractMaterialData,
|
|
85
|
-
IMaterialUnlitData, MaterialUnlitData, IMaterialUnlitDataProperties,
|
|
86
|
-
IMaterialShadowData, MaterialShadowData, IMaterialShadowDataProperties,
|
|
87
|
-
IMaterialSpecularGlossinessData, MaterialSpecularGlossinessData, IMaterialSpecularGlossinessDataProperties,
|
|
88
|
-
IMaterialGemData, MaterialGemData, IMaterialGemDataProperties,
|
|
89
|
-
IMaterialPointData, MaterialPointData, IMaterialPointDataProperties,
|
|
90
|
-
IMaterialMultiPointData, MaterialMultiPointData, IMaterialMultiPointDataProperties,
|
|
91
|
-
IMaterialBasicLineData, MaterialBasicLineData, IMaterialBasicLineDataProperties,
|
|
92
|
-
IMapData, MapData, MATERIAL_SIDE, MATERIAL_ALPHA, MATERIAL_SHADING, MATERIAL_TYPE, TEXTURE_WRAPPING, TEXTURE_FILTERING
|
|
100
|
+
IMaterialStandardData, MaterialStandardData, IMaterialStandardDataProperties, IMaterialStandardDataPropertiesDefinition,
|
|
101
|
+
IMaterialAbstractData, IMaterialAbstractDataProperties, AbstractMaterialData, IMaterialAbstractDataPropertiesDefinition,
|
|
102
|
+
IMaterialUnlitData, MaterialUnlitData, IMaterialUnlitDataProperties, IMaterialUnlitDataPropertiesDefinition,
|
|
103
|
+
IMaterialShadowData, MaterialShadowData, IMaterialShadowDataProperties, IMaterialShadowDataPropertiesDefinition,
|
|
104
|
+
IMaterialSpecularGlossinessData, MaterialSpecularGlossinessData, IMaterialSpecularGlossinessDataProperties, IMaterialSpecularGlossinessDataPropertiesDefinition,
|
|
105
|
+
IMaterialGemData, MaterialGemData, IMaterialGemDataProperties, IMaterialGemDataPropertiesDefinition,
|
|
106
|
+
IMaterialPointData, MaterialPointData, IMaterialPointDataProperties, IMaterialPointDataPropertiesDefinition,
|
|
107
|
+
IMaterialMultiPointData, MaterialMultiPointData, IMaterialMultiPointDataProperties, IMaterialMultiPointDataPropertiesDefinition,
|
|
108
|
+
IMaterialBasicLineData, MaterialBasicLineData, IMaterialBasicLineDataProperties, IMaterialBasicLineDataPropertiesDefinition,
|
|
109
|
+
IMapData, IMapDataProperties, IMapDataPropertiesDefinition, MapData, MATERIAL_SIDE, MATERIAL_ALPHA, MATERIAL_SHADING, MATERIAL_TYPE, TEXTURE_WRAPPING, TEXTURE_FILTERING
|
|
93
110
|
};
|
|
94
111
|
|
|
95
112
|
export {
|