@shapediver/viewer.shared.types 2.4.2 → 2.5.0
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/implementation/data/HTMLElementAnchorData.d.ts +3 -0
- package/dist/implementation/data/HTMLElementAnchorData.d.ts.map +1 -1
- package/dist/implementation/data/HTMLElementAnchorData.js +1 -1
- package/dist/implementation/data/HTMLElementAnchorData.js.map +1 -1
- package/dist/implementation/material/MaterialGemData.d.ts +2 -0
- package/dist/implementation/material/MaterialGemData.d.ts.map +1 -1
- package/dist/implementation/material/MaterialGemData.js +14 -2
- package/dist/implementation/material/MaterialGemData.js.map +1 -1
- package/dist/implementation/material/MaterialSpecularGlossinessData.d.ts +2 -0
- package/dist/implementation/material/MaterialSpecularGlossinessData.d.ts.map +1 -1
- package/dist/implementation/material/MaterialSpecularGlossinessData.js +14 -2
- package/dist/implementation/material/MaterialSpecularGlossinessData.js.map +1 -1
- package/dist/implementation/material/MaterialStandardData.d.ts +2 -0
- package/dist/implementation/material/MaterialStandardData.d.ts.map +1 -1
- package/dist/implementation/material/MaterialStandardData.js +14 -2
- package/dist/implementation/material/MaterialStandardData.js.map +1 -1
- package/dist/implementation/material/MaterialUnlitData.d.ts +4 -1
- package/dist/implementation/material/MaterialUnlitData.d.ts.map +1 -1
- package/dist/implementation/material/MaterialUnlitData.js +48 -19
- package/dist/implementation/material/MaterialUnlitData.js.map +1 -1
- package/dist/interfaces/data/IHTMLElementAnchorData.d.ts +1 -0
- package/dist/interfaces/data/IHTMLElementAnchorData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialGemDataProperties.d.ts +22 -20
- package/dist/interfaces/data/material/IMaterialGemDataProperties.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialGemDataProperties.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialSpecularGlossinessDataProperties.d.ts +2 -0
- package/dist/interfaces/data/material/IMaterialSpecularGlossinessDataProperties.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialSpecularGlossinessDataProperties.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialStandardData.d.ts +2 -0
- package/dist/interfaces/data/material/IMaterialStandardData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialStandardData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialUnlitData.d.ts +2 -0
- package/dist/interfaces/data/material/IMaterialUnlitData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMaterialUnlitData.js.map +1 -1
- package/package.json +5 -5
- package/src/implementation/data/HTMLElementAnchorData.ts +6 -5
- package/src/implementation/material/MaterialGemData.ts +13 -0
- package/src/implementation/material/MaterialSpecularGlossinessData.ts +16 -2
- package/src/implementation/material/MaterialStandardData.ts +13 -0
- package/src/implementation/material/MaterialUnlitData.ts +42 -21
- package/src/interfaces/data/IHTMLElementAnchorData.ts +2 -1
- package/src/interfaces/data/material/IMaterialGemDataProperties.ts +29 -23
- package/src/interfaces/data/material/IMaterialSpecularGlossinessDataProperties.ts +9 -3
- package/src/interfaces/data/material/IMaterialStandardData.ts +9 -3
- package/src/interfaces/data/material/IMaterialUnlitData.ts +13 -1
|
@@ -3,47 +3,53 @@ import { IMapData } from "./IMapData";
|
|
|
3
3
|
import { IMaterialAbstractData, IMaterialAbstractDataProperties } from "./IMaterialAbstractData";
|
|
4
4
|
|
|
5
5
|
export interface IMaterialGemDataProperties extends IMaterialAbstractDataProperties {
|
|
6
|
-
// #region Properties (
|
|
6
|
+
// #region Properties (17)
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
impurityScale?: number;
|
|
8
|
+
brightness?: number;
|
|
9
|
+
center?: vec3;
|
|
11
10
|
colorTransferBegin?: string;
|
|
12
11
|
colorTransferEnd?: string;
|
|
13
|
-
center?: vec3;
|
|
14
|
-
radius?: number;
|
|
15
|
-
sphericalNormalMap?: IMapData;
|
|
16
|
-
gamma?: number;
|
|
17
12
|
contrast?: number;
|
|
18
|
-
brightness?: number;
|
|
19
13
|
dispersion?: number;
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
envMap?: string | string[];
|
|
15
|
+
gamma?: number;
|
|
16
|
+
impurityMap?: IMapData;
|
|
17
|
+
impurityScale?: number;
|
|
22
18
|
inverseModelMatrix?: mat4;
|
|
23
19
|
inverseTransposeModelMatrix?: mat3;
|
|
20
|
+
radius?: number;
|
|
21
|
+
refractionIndex?: number;
|
|
22
|
+
sphericalNormalMap?: IMapData;
|
|
23
|
+
tracingDepth?: number;
|
|
24
|
+
tracingOpacity?: number;
|
|
24
25
|
|
|
25
|
-
// #endregion Properties (
|
|
26
|
+
// #endregion Properties (17)
|
|
26
27
|
};
|
|
27
28
|
|
|
28
29
|
export interface IMaterialGemData extends IMaterialAbstractData {
|
|
29
|
-
// #region
|
|
30
|
+
// #region Properties (17)
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
impurityScale?: number;
|
|
32
|
+
brightness?: number;
|
|
33
|
+
center?: vec3;
|
|
34
34
|
colorTransferBegin?: string;
|
|
35
35
|
colorTransferEnd?: string;
|
|
36
|
-
center?: vec3;
|
|
37
|
-
radius?: number;
|
|
38
|
-
sphericalNormalMap?: IMapData;
|
|
39
|
-
gamma?: number;
|
|
40
36
|
contrast?: number;
|
|
41
|
-
brightness?: number;
|
|
42
37
|
dispersion?: number;
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
envMap?: string | string[];
|
|
39
|
+
gamma?: number;
|
|
40
|
+
impurityMap?: IMapData;
|
|
41
|
+
impurityScale?: number;
|
|
45
42
|
inverseModelMatrix?: mat4;
|
|
46
43
|
inverseTransposeModelMatrix?: mat3;
|
|
44
|
+
radius?: number;
|
|
45
|
+
refractionIndex?: number;
|
|
46
|
+
sphericalNormalMap?: IMapData;
|
|
47
|
+
tracingDepth?: number;
|
|
48
|
+
tracingOpacity?: number;
|
|
49
|
+
|
|
50
|
+
// #endregion Properties (17)
|
|
51
|
+
|
|
52
|
+
// #region Public Methods (2)
|
|
47
53
|
|
|
48
54
|
clone(): IMaterialGemData;
|
|
49
55
|
copy(source: IMaterialGemData): void;
|
|
@@ -2,26 +2,32 @@ import { IMapData } from "./IMapData";
|
|
|
2
2
|
import { IMaterialAbstractData, IMaterialAbstractDataProperties } from "./IMaterialAbstractData";
|
|
3
3
|
|
|
4
4
|
export interface IMaterialSpecularGlossinessDataProperties extends IMaterialAbstractDataProperties {
|
|
5
|
-
// #region Properties (
|
|
5
|
+
// #region Properties (6)
|
|
6
6
|
|
|
7
|
+
envMap?: string | string[];
|
|
7
8
|
glossiness?: number,
|
|
8
9
|
glossinessMap?: IMapData,
|
|
9
10
|
specular?: string,
|
|
10
11
|
specularGlossinessMap?: IMapData,
|
|
11
12
|
specularMap?: IMapData,
|
|
12
13
|
|
|
13
|
-
// #endregion Properties (
|
|
14
|
+
// #endregion Properties (6)
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
export interface IMaterialSpecularGlossinessData extends IMaterialAbstractData {
|
|
17
|
-
// #region
|
|
18
|
+
// #region Properties (6)
|
|
18
19
|
|
|
20
|
+
envMap?: string | string[];
|
|
19
21
|
glossiness: number,
|
|
20
22
|
glossinessMap?: IMapData,
|
|
21
23
|
specular: string,
|
|
22
24
|
specularGlossinessMap?: IMapData,
|
|
23
25
|
specularMap?: IMapData,
|
|
24
26
|
|
|
27
|
+
// #endregion Properties (6)
|
|
28
|
+
|
|
29
|
+
// #region Public Methods (2)
|
|
30
|
+
|
|
25
31
|
clone(): IMaterialSpecularGlossinessData;
|
|
26
32
|
copy(source: IMaterialSpecularGlossinessData): void;
|
|
27
33
|
|
|
@@ -2,7 +2,7 @@ import { IMapData } from "./IMapData";
|
|
|
2
2
|
import { IMaterialAbstractData, IMaterialAbstractDataProperties } from "./IMaterialAbstractData";
|
|
3
3
|
|
|
4
4
|
export interface IMaterialStandardDataProperties extends IMaterialAbstractDataProperties {
|
|
5
|
-
// #region Properties (
|
|
5
|
+
// #region Properties (30)
|
|
6
6
|
|
|
7
7
|
attenuationColor?: string,
|
|
8
8
|
attenuationDistance?: number;
|
|
@@ -14,6 +14,7 @@ export interface IMaterialStandardDataProperties extends IMaterialAbstractDataPr
|
|
|
14
14
|
displacementBias?: number;
|
|
15
15
|
displacementMap?: IMapData;
|
|
16
16
|
displacementScale?: number;
|
|
17
|
+
envMap?: string | string[];
|
|
17
18
|
ior?: number;
|
|
18
19
|
metalness?: number,
|
|
19
20
|
metalnessMap?: IMapData,
|
|
@@ -34,11 +35,11 @@ export interface IMaterialStandardDataProperties extends IMaterialAbstractDataPr
|
|
|
34
35
|
transmission?: number;
|
|
35
36
|
transmissionMap?: IMapData;
|
|
36
37
|
|
|
37
|
-
// #endregion Properties (
|
|
38
|
+
// #endregion Properties (30)
|
|
38
39
|
};
|
|
39
40
|
|
|
40
41
|
export interface IMaterialStandardData extends IMaterialAbstractData {
|
|
41
|
-
// #region
|
|
42
|
+
// #region Properties (30)
|
|
42
43
|
|
|
43
44
|
attenuationColor: string,
|
|
44
45
|
attenuationDistance: number;
|
|
@@ -50,6 +51,7 @@ export interface IMaterialStandardData extends IMaterialAbstractData {
|
|
|
50
51
|
displacementBias: number;
|
|
51
52
|
displacementMap?: IMapData;
|
|
52
53
|
displacementScale: number;
|
|
54
|
+
envMap?: string | string[];
|
|
53
55
|
ior: number;
|
|
54
56
|
metalness: number,
|
|
55
57
|
metalnessMap?: IMapData,
|
|
@@ -70,6 +72,10 @@ export interface IMaterialStandardData extends IMaterialAbstractData {
|
|
|
70
72
|
transmission: number;
|
|
71
73
|
transmissionMap?: IMapData;
|
|
72
74
|
|
|
75
|
+
// #endregion Properties (30)
|
|
76
|
+
|
|
77
|
+
// #region Public Methods (2)
|
|
78
|
+
|
|
73
79
|
clone(): IMaterialStandardData;
|
|
74
80
|
copy(source: IMaterialStandardData): void;
|
|
75
81
|
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import { IMaterialAbstractData, IMaterialAbstractDataProperties } from "./IMaterialAbstractData";
|
|
2
2
|
|
|
3
|
-
export interface IMaterialUnlitDataProperties extends IMaterialAbstractDataProperties {
|
|
3
|
+
export interface IMaterialUnlitDataProperties extends IMaterialAbstractDataProperties {
|
|
4
|
+
// #region Properties (1)
|
|
5
|
+
|
|
6
|
+
envMap?: string | string[];
|
|
7
|
+
|
|
8
|
+
// #endregion Properties (1)
|
|
9
|
+
};
|
|
4
10
|
|
|
5
11
|
export interface IMaterialUnlitData extends IMaterialAbstractData {
|
|
12
|
+
// #region Properties (1)
|
|
13
|
+
|
|
14
|
+
envMap?: string | string[];
|
|
15
|
+
|
|
16
|
+
// #endregion Properties (1)
|
|
17
|
+
|
|
6
18
|
// #region Public Methods (2)
|
|
7
19
|
|
|
8
20
|
clone(): IMaterialUnlitData;
|