@shapediver/viewer.shared.types 2.9.11 → 2.10.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/AnimationData.js +29 -33
- package/dist/implementation/data/AnimationData.js.map +1 -1
- package/dist/implementation/data/BoneData.js +2 -6
- package/dist/implementation/data/BoneData.js.map +1 -1
- package/dist/implementation/data/CustomData.js +2 -6
- package/dist/implementation/data/CustomData.js.map +1 -1
- package/dist/implementation/data/GeometryData.js +25 -31
- package/dist/implementation/data/GeometryData.js.map +1 -1
- package/dist/implementation/data/HTMLElementAnchorData.js +5 -12
- package/dist/implementation/data/HTMLElementAnchorData.js.map +1 -1
- package/dist/implementation/material/AbstractMaterialData.js +6 -10
- package/dist/implementation/material/AbstractMaterialData.js.map +1 -1
- package/dist/implementation/material/MapData.d.ts +3 -1
- package/dist/implementation/material/MapData.d.ts.map +1 -1
- package/dist/implementation/material/MapData.js +23 -19
- package/dist/implementation/material/MapData.js.map +1 -1
- package/dist/implementation/material/MaterialGemData.js +9 -13
- package/dist/implementation/material/MaterialGemData.js.map +1 -1
- package/dist/implementation/material/MaterialShadowData.js +2 -6
- package/dist/implementation/material/MaterialShadowData.js.map +1 -1
- package/dist/implementation/material/MaterialSpecularGlossinessData.js +6 -10
- package/dist/implementation/material/MaterialSpecularGlossinessData.js.map +1 -1
- package/dist/implementation/material/MaterialStandardData.js +6 -10
- package/dist/implementation/material/MaterialStandardData.js.map +1 -1
- package/dist/implementation/material/MaterialUnlitData.js +6 -10
- package/dist/implementation/material/MaterialUnlitData.js.map +1 -1
- package/dist/implementation/material/MaterialVariantsData.js +2 -6
- package/dist/implementation/material/MaterialVariantsData.js.map +1 -1
- package/dist/implementation/sdtf/SDTFAttributesData.js +3 -8
- package/dist/implementation/sdtf/SDTFAttributesData.js.map +1 -1
- package/dist/implementation/sdtf/SDTFItemData.js +2 -6
- package/dist/implementation/sdtf/SDTFItemData.js.map +1 -1
- package/dist/implementation/sdtf/SDTFOverviewData.js +5 -9
- package/dist/implementation/sdtf/SDTFOverviewData.js.map +1 -1
- package/dist/index.js +28 -56
- package/dist/index.js.map +1 -1
- package/dist/interfaces/data/IAnimationData.js +1 -2
- package/dist/interfaces/data/IBoneData.js +1 -2
- package/dist/interfaces/data/ICustomData.js +1 -2
- package/dist/interfaces/data/IGeometryData.js +2 -5
- package/dist/interfaces/data/IGeometryData.js.map +1 -1
- package/dist/interfaces/data/IHTMLElementAnchorData.js +1 -2
- package/dist/interfaces/data/material/IMapData.d.ts +1 -0
- package/dist/interfaces/data/material/IMapData.d.ts.map +1 -1
- package/dist/interfaces/data/material/IMapData.js +4 -7
- package/dist/interfaces/data/material/IMapData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialAbstractData.js +6 -9
- package/dist/interfaces/data/material/IMaterialAbstractData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialGemDataProperties.js +1 -2
- package/dist/interfaces/data/material/IMaterialGemDataProperties.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialShadowData.js +1 -2
- package/dist/interfaces/data/material/IMaterialShadowData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialSpecularGlossinessDataProperties.js +1 -2
- package/dist/interfaces/data/material/IMaterialSpecularGlossinessDataProperties.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialStandardData.js +1 -2
- package/dist/interfaces/data/material/IMaterialStandardData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialUnlitData.js +1 -2
- package/dist/interfaces/data/material/IMaterialUnlitData.js.map +1 -1
- package/dist/interfaces/data/material/IMaterialVariantsData.js +1 -2
- package/dist/interfaces/events/EventResponseMapping.d.ts +2 -0
- package/dist/interfaces/events/EventResponseMapping.d.ts.map +1 -1
- package/dist/interfaces/events/EventResponseMapping.js +1 -3
- package/dist/interfaces/events/EventResponseMapping.js.map +1 -1
- package/dist/interfaces/events/ICameraEvent.js +1 -2
- package/dist/interfaces/events/ISceneEvent.js +1 -2
- package/dist/interfaces/events/ISessionEvent.js +1 -2
- package/dist/interfaces/events/ITaskEvent.js +2 -5
- package/dist/interfaces/events/ITaskEvent.js.map +1 -1
- package/dist/interfaces/events/IViewportEvent.js +1 -2
- package/dist/interfaces/sdtf/ISDTFAttributeVisualizationData.js +1 -2
- package/dist/interfaces/sdtf/ISDTFAttributesData.js +1 -2
- package/dist/interfaces/sdtf/ISDTFItemData.js +1 -2
- package/dist/interfaces/sdtf/ISDTFOverviewData.js +1 -2
- package/dist/interfaces/sdtf/ISDTFOverviewData.js.map +1 -1
- package/dist/types.js +1 -2
- package/package.json +5 -5
- package/src/implementation/material/MapData.ts +12 -1
- package/src/interfaces/data/material/IMapData.ts +1 -0
- package/src/interfaces/events/EventResponseMapping.ts +2 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ISDTFOverviewData.js","sourceRoot":"","sources":["../../../src/interfaces/sdtf/ISDTFOverviewData.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ISDTFOverviewData.js","sourceRoot":"","sources":["../../../src/interfaces/sdtf/ISDTFOverviewData.ts"],"names":[],"mappings":"AAeC,CAAC"}
|
package/dist/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapediver/viewer.shared.types",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Michael Oppitz <michael@shapediver.com>",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@shapediver/sdk.sdtf-v1": "1.4.0",
|
|
43
|
-
"@shapediver/viewer.shared.math": "2.
|
|
44
|
-
"@shapediver/viewer.shared.node-tree": "2.
|
|
45
|
-
"@shapediver/viewer.shared.services": "2.
|
|
43
|
+
"@shapediver/viewer.shared.math": "2.10.0",
|
|
44
|
+
"@shapediver/viewer.shared.node-tree": "2.10.0",
|
|
45
|
+
"@shapediver/viewer.shared.services": "2.10.0",
|
|
46
46
|
"gl-matrix": "3.3.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "3969d2d1c56ac1a6fc8fb86906b10a50c872f6a7"
|
|
49
49
|
}
|
|
@@ -15,6 +15,7 @@ export class MapData extends AbstractTreeNodeData implements IMapData {
|
|
|
15
15
|
#offset: vec2 = vec2.fromValues(0, 0);
|
|
16
16
|
#repeat: vec2 = vec2.fromValues(1, 1);
|
|
17
17
|
#rotation: number = 0;
|
|
18
|
+
#texCoord?: number;
|
|
18
19
|
#wrapS: TEXTURE_WRAPPING = TEXTURE_WRAPPING.REPEAT;
|
|
19
20
|
#wrapT: TEXTURE_WRAPPING = TEXTURE_WRAPPING.REPEAT;
|
|
20
21
|
|
|
@@ -33,6 +34,7 @@ export class MapData extends AbstractTreeNodeData implements IMapData {
|
|
|
33
34
|
offset: vec2 = vec2.fromValues(0, 0),
|
|
34
35
|
repeat: vec2 = vec2.fromValues(1, 1),
|
|
35
36
|
rotation: number = 0,
|
|
37
|
+
texCoord?: number,
|
|
36
38
|
flipY: boolean = true,
|
|
37
39
|
id?: string,
|
|
38
40
|
version?: string
|
|
@@ -48,6 +50,7 @@ export class MapData extends AbstractTreeNodeData implements IMapData {
|
|
|
48
50
|
this.#offset = offset;
|
|
49
51
|
this.#repeat = repeat;
|
|
50
52
|
this.#rotation = rotation;
|
|
53
|
+
this.#texCoord = texCoord;
|
|
51
54
|
this.#flipY = flipY;
|
|
52
55
|
}
|
|
53
56
|
|
|
@@ -127,6 +130,14 @@ export class MapData extends AbstractTreeNodeData implements IMapData {
|
|
|
127
130
|
this.#rotation = value;
|
|
128
131
|
}
|
|
129
132
|
|
|
133
|
+
public get texCoord(): number | undefined {
|
|
134
|
+
return this.#texCoord;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
public set texCoord(value: number | undefined) {
|
|
138
|
+
this.#texCoord = value;
|
|
139
|
+
}
|
|
140
|
+
|
|
130
141
|
public get wrapS(): TEXTURE_WRAPPING {
|
|
131
142
|
return this.#wrapS;
|
|
132
143
|
}
|
|
@@ -148,7 +159,7 @@ export class MapData extends AbstractTreeNodeData implements IMapData {
|
|
|
148
159
|
// #region Public Methods (1)
|
|
149
160
|
|
|
150
161
|
public clone(): IMapData {
|
|
151
|
-
return new MapData(<HTMLImageElement>this.image, this.wrapS, this.wrapT, this.minFilter, this.magFilter, this.center, this.color, this.offset, this.repeat, this.rotation, this.flipY, this.id, this.version);
|
|
162
|
+
return new MapData(<HTMLImageElement>this.image, this.wrapS, this.wrapT, this.minFilter, this.magFilter, this.center, this.color, this.offset, this.repeat, this.rotation, this.texCoord, this.flipY, this.id, this.version);
|
|
152
163
|
}
|
|
153
164
|
|
|
154
165
|
// #endregion Public Methods (1)
|
|
@@ -16,6 +16,8 @@ export type EventResponseMapping = {
|
|
|
16
16
|
[EVENTTYPE_VIEWPORT.VIEWPORT_CREATED]: IViewportEvent,
|
|
17
17
|
[EVENTTYPE_VIEWPORT.VIEWPORT_UPDATED]: IViewportEvent,
|
|
18
18
|
[EVENTTYPE_VIEWPORT.VIEWPORT_CLOSED]: IViewportEvent,
|
|
19
|
+
[EVENTTYPE_VIEWPORT.VIEWPORT_VISIBLE]: IViewportEvent,
|
|
20
|
+
[EVENTTYPE_VIEWPORT.VIEWPORT_HIDDEN]: IViewportEvent,
|
|
19
21
|
[EVENTTYPE_SESSION.SESSION_CREATED]: ISessionEvent,
|
|
20
22
|
[EVENTTYPE_SESSION.SESSION_CUSTOMIZED]: ISessionEvent,
|
|
21
23
|
[EVENTTYPE_SESSION.SESSION_CLOSED]: ISessionEvent,
|