@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.
Files changed (79) hide show
  1. package/dist/implementation/data/AnimationData.js +29 -33
  2. package/dist/implementation/data/AnimationData.js.map +1 -1
  3. package/dist/implementation/data/BoneData.js +2 -6
  4. package/dist/implementation/data/BoneData.js.map +1 -1
  5. package/dist/implementation/data/CustomData.js +2 -6
  6. package/dist/implementation/data/CustomData.js.map +1 -1
  7. package/dist/implementation/data/GeometryData.js +25 -31
  8. package/dist/implementation/data/GeometryData.js.map +1 -1
  9. package/dist/implementation/data/HTMLElementAnchorData.js +5 -12
  10. package/dist/implementation/data/HTMLElementAnchorData.js.map +1 -1
  11. package/dist/implementation/material/AbstractMaterialData.js +6 -10
  12. package/dist/implementation/material/AbstractMaterialData.js.map +1 -1
  13. package/dist/implementation/material/MapData.d.ts +3 -1
  14. package/dist/implementation/material/MapData.d.ts.map +1 -1
  15. package/dist/implementation/material/MapData.js +23 -19
  16. package/dist/implementation/material/MapData.js.map +1 -1
  17. package/dist/implementation/material/MaterialGemData.js +9 -13
  18. package/dist/implementation/material/MaterialGemData.js.map +1 -1
  19. package/dist/implementation/material/MaterialShadowData.js +2 -6
  20. package/dist/implementation/material/MaterialShadowData.js.map +1 -1
  21. package/dist/implementation/material/MaterialSpecularGlossinessData.js +6 -10
  22. package/dist/implementation/material/MaterialSpecularGlossinessData.js.map +1 -1
  23. package/dist/implementation/material/MaterialStandardData.js +6 -10
  24. package/dist/implementation/material/MaterialStandardData.js.map +1 -1
  25. package/dist/implementation/material/MaterialUnlitData.js +6 -10
  26. package/dist/implementation/material/MaterialUnlitData.js.map +1 -1
  27. package/dist/implementation/material/MaterialVariantsData.js +2 -6
  28. package/dist/implementation/material/MaterialVariantsData.js.map +1 -1
  29. package/dist/implementation/sdtf/SDTFAttributesData.js +3 -8
  30. package/dist/implementation/sdtf/SDTFAttributesData.js.map +1 -1
  31. package/dist/implementation/sdtf/SDTFItemData.js +2 -6
  32. package/dist/implementation/sdtf/SDTFItemData.js.map +1 -1
  33. package/dist/implementation/sdtf/SDTFOverviewData.js +5 -9
  34. package/dist/implementation/sdtf/SDTFOverviewData.js.map +1 -1
  35. package/dist/index.js +28 -56
  36. package/dist/index.js.map +1 -1
  37. package/dist/interfaces/data/IAnimationData.js +1 -2
  38. package/dist/interfaces/data/IBoneData.js +1 -2
  39. package/dist/interfaces/data/ICustomData.js +1 -2
  40. package/dist/interfaces/data/IGeometryData.js +2 -5
  41. package/dist/interfaces/data/IGeometryData.js.map +1 -1
  42. package/dist/interfaces/data/IHTMLElementAnchorData.js +1 -2
  43. package/dist/interfaces/data/material/IMapData.d.ts +1 -0
  44. package/dist/interfaces/data/material/IMapData.d.ts.map +1 -1
  45. package/dist/interfaces/data/material/IMapData.js +4 -7
  46. package/dist/interfaces/data/material/IMapData.js.map +1 -1
  47. package/dist/interfaces/data/material/IMaterialAbstractData.js +6 -9
  48. package/dist/interfaces/data/material/IMaterialAbstractData.js.map +1 -1
  49. package/dist/interfaces/data/material/IMaterialGemDataProperties.js +1 -2
  50. package/dist/interfaces/data/material/IMaterialGemDataProperties.js.map +1 -1
  51. package/dist/interfaces/data/material/IMaterialShadowData.js +1 -2
  52. package/dist/interfaces/data/material/IMaterialShadowData.js.map +1 -1
  53. package/dist/interfaces/data/material/IMaterialSpecularGlossinessDataProperties.js +1 -2
  54. package/dist/interfaces/data/material/IMaterialSpecularGlossinessDataProperties.js.map +1 -1
  55. package/dist/interfaces/data/material/IMaterialStandardData.js +1 -2
  56. package/dist/interfaces/data/material/IMaterialStandardData.js.map +1 -1
  57. package/dist/interfaces/data/material/IMaterialUnlitData.js +1 -2
  58. package/dist/interfaces/data/material/IMaterialUnlitData.js.map +1 -1
  59. package/dist/interfaces/data/material/IMaterialVariantsData.js +1 -2
  60. package/dist/interfaces/events/EventResponseMapping.d.ts +2 -0
  61. package/dist/interfaces/events/EventResponseMapping.d.ts.map +1 -1
  62. package/dist/interfaces/events/EventResponseMapping.js +1 -3
  63. package/dist/interfaces/events/EventResponseMapping.js.map +1 -1
  64. package/dist/interfaces/events/ICameraEvent.js +1 -2
  65. package/dist/interfaces/events/ISceneEvent.js +1 -2
  66. package/dist/interfaces/events/ISessionEvent.js +1 -2
  67. package/dist/interfaces/events/ITaskEvent.js +2 -5
  68. package/dist/interfaces/events/ITaskEvent.js.map +1 -1
  69. package/dist/interfaces/events/IViewportEvent.js +1 -2
  70. package/dist/interfaces/sdtf/ISDTFAttributeVisualizationData.js +1 -2
  71. package/dist/interfaces/sdtf/ISDTFAttributesData.js +1 -2
  72. package/dist/interfaces/sdtf/ISDTFItemData.js +1 -2
  73. package/dist/interfaces/sdtf/ISDTFOverviewData.js +1 -2
  74. package/dist/interfaces/sdtf/ISDTFOverviewData.js.map +1 -1
  75. package/dist/types.js +1 -2
  76. package/package.json +5 -5
  77. package/src/implementation/material/MapData.ts +12 -1
  78. package/src/interfaces/data/material/IMapData.ts +1 -0
  79. package/src/interfaces/events/EventResponseMapping.ts +2 -0
@@ -1,4 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  ;
2
+ export {};
4
3
  //# sourceMappingURL=ISDTFOverviewData.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ISDTFOverviewData.js","sourceRoot":"","sources":["../../../src/interfaces/sdtf/ISDTFOverviewData.ts"],"names":[],"mappings":";;AAeC,CAAC"}
1
+ {"version":3,"file":"ISDTFOverviewData.js","sourceRoot":"","sources":["../../../src/interfaces/sdtf/ISDTFOverviewData.ts"],"names":[],"mappings":"AAeC,CAAC"}
package/dist/types.js CHANGED
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=types.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapediver/viewer.shared.types",
3
- "version": "2.9.11",
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.9.11",
44
- "@shapediver/viewer.shared.node-tree": "2.9.11",
45
- "@shapediver/viewer.shared.services": "2.9.11",
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": "105aa4b6fb6de2e9d4dfac026030207460551c5b"
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)
@@ -30,6 +30,7 @@ export interface IMapData extends ITreeNodeData {
30
30
  offset: vec2;
31
31
  repeat: vec2;
32
32
  rotation: number;
33
+ texCoord?: number;
33
34
  wrapS: TEXTURE_WRAPPING;
34
35
  wrapT: TEXTURE_WRAPPING;
35
36
 
@@ -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,