@shapediver/viewer.shared.node-tree 3.16.8 → 3.16.10

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 (64) hide show
  1. package/dist/implementation/AbstractTreeNodeData.d.ts +33 -33
  2. package/dist/implementation/AbstractTreeNodeData.js +81 -81
  3. package/dist/implementation/AbstractTreeNodeData.js.map +1 -1
  4. package/dist/implementation/Tree.d.ts +13 -13
  5. package/dist/implementation/Tree.js +115 -115
  6. package/dist/implementation/Tree.js.map +1 -1
  7. package/dist/implementation/TreeNode.d.ts +78 -78
  8. package/dist/implementation/TreeNode.js +432 -432
  9. package/dist/implementation/TreeNode.js.map +1 -1
  10. package/dist/implementation/data/AnimationData.d.ts +32 -32
  11. package/dist/implementation/data/AnimationData.js +290 -290
  12. package/dist/implementation/data/AnimationData.js.map +1 -1
  13. package/dist/implementation/data/ChunkData.d.ts +14 -14
  14. package/dist/implementation/data/ChunkData.js +46 -46
  15. package/dist/implementation/data/ChunkData.js.map +1 -1
  16. package/dist/implementation/data/CustomData.d.ts +24 -24
  17. package/dist/implementation/data/CustomData.js +50 -50
  18. package/dist/implementation/data/GeometryData.d.ts +100 -100
  19. package/dist/implementation/data/GeometryData.js +326 -326
  20. package/dist/implementation/data/GeometryData.js.map +1 -1
  21. package/dist/implementation/data/HTMLElementAnchorData.d.ts +102 -102
  22. package/dist/implementation/data/HTMLElementAnchorData.js +273 -273
  23. package/dist/implementation/data/HTMLElementAnchorData.js.map +1 -1
  24. package/dist/implementation/data/InstanceData.d.ts +21 -21
  25. package/dist/implementation/data/InstanceData.js +58 -58
  26. package/dist/implementation/material/AbstractMaterialData.d.ts +68 -68
  27. package/dist/implementation/material/AbstractMaterialData.js +224 -224
  28. package/dist/implementation/material/MapData.d.ts +53 -53
  29. package/dist/implementation/material/MapData.js +190 -190
  30. package/dist/implementation/material/MaterialBasicLineData.d.ts +14 -14
  31. package/dist/implementation/material/MaterialBasicLineData.js +90 -90
  32. package/dist/implementation/material/MaterialGemData.d.ts +46 -46
  33. package/dist/implementation/material/MaterialGemData.js +288 -288
  34. package/dist/implementation/material/MaterialLambertData.d.ts +21 -21
  35. package/dist/implementation/material/MaterialLambertData.js +146 -146
  36. package/dist/implementation/material/MaterialMultiPointData.d.ts +99 -99
  37. package/dist/implementation/material/MaterialMultiPointData.js +650 -650
  38. package/dist/implementation/material/MaterialPhongData.d.ts +25 -25
  39. package/dist/implementation/material/MaterialPhongData.js +170 -170
  40. package/dist/implementation/material/MaterialPointData.d.ts +19 -19
  41. package/dist/implementation/material/MaterialPointData.js +131 -131
  42. package/dist/implementation/material/MaterialShadowData.d.ts +14 -14
  43. package/dist/implementation/material/MaterialShadowData.js +35 -35
  44. package/dist/implementation/material/MaterialSpecularGlossinessData.d.ts +27 -27
  45. package/dist/implementation/material/MaterialSpecularGlossinessData.js +179 -179
  46. package/dist/implementation/material/MaterialStandardData.d.ts +75 -75
  47. package/dist/implementation/material/MaterialStandardData.js +467 -467
  48. package/dist/implementation/material/MaterialUnlitData.d.ts +17 -17
  49. package/dist/implementation/material/MaterialUnlitData.js +119 -119
  50. package/dist/implementation/material/MaterialVariantsData.d.ts +15 -15
  51. package/dist/implementation/material/MaterialVariantsData.js +61 -61
  52. package/dist/implementation/material/MaterialVariantsData.js.map +1 -1
  53. package/dist/implementation/sdtf/SDTFAttributesData.d.ts +22 -22
  54. package/dist/implementation/sdtf/SDTFAttributesData.js +99 -99
  55. package/dist/implementation/sdtf/SDTFAttributesData.js.map +1 -1
  56. package/dist/implementation/sdtf/SDTFItemData.d.ts +18 -18
  57. package/dist/implementation/sdtf/SDTFItemData.js +59 -59
  58. package/dist/implementation/sdtf/SDTFItemData.js.map +1 -1
  59. package/dist/implementation/sdtf/SDTFOverviewData.d.ts +12 -12
  60. package/dist/implementation/sdtf/SDTFOverviewData.js +106 -106
  61. package/dist/implementation/sdtf/SDTFOverviewData.js.map +1 -1
  62. package/dist/index.d.ts +35 -35
  63. package/dist/index.js +59 -59
  64. package/package.json +6 -6
@@ -1,225 +1,225 @@
1
- "use strict";
2
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
3
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
4
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
5
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
6
- };
7
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8
- if (kind === "m") throw new TypeError("Private method is not writable");
9
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
10
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
11
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
12
- };
13
- var _AbstractMaterialData_alphaCutoff, _AbstractMaterialData_alphaMap, _AbstractMaterialData_alphaMode, _AbstractMaterialData_aoMap, _AbstractMaterialData_aoMapIntensity, _AbstractMaterialData_bumpMap, _AbstractMaterialData_bumpScale, _AbstractMaterialData_color, _AbstractMaterialData_depthTest, _AbstractMaterialData_depthWrite, _AbstractMaterialData_emissiveMap, _AbstractMaterialData_emissiveness, _AbstractMaterialData_map, _AbstractMaterialData_materialOutput, _AbstractMaterialData_name, _AbstractMaterialData_normalMap, _AbstractMaterialData_normalScale, _AbstractMaterialData_opacity, _AbstractMaterialData_shading, _AbstractMaterialData_side, _AbstractMaterialData_transparent;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.AbstractMaterialData = void 0;
16
- const viewer_shared_types_1 = require("@shapediver/viewer.shared.types");
17
- const AbstractTreeNodeData_1 = require("../AbstractTreeNodeData");
18
- class AbstractMaterialData extends AbstractTreeNodeData_1.AbstractTreeNodeData {
19
- // #endregion Properties (21)
20
- // #region Constructors (1)
21
- /**
22
- * Creates a material data object.
23
- *
24
- * @param _attributes the attributes of the material
25
- * @param id the id
26
- */
27
- constructor(properties, id, version) {
28
- super(id, version);
29
- // #region Properties (21)
30
- _AbstractMaterialData_alphaCutoff.set(this, 0);
31
- _AbstractMaterialData_alphaMap.set(this, void 0);
32
- _AbstractMaterialData_alphaMode.set(this, viewer_shared_types_1.MATERIAL_ALPHA.OPAQUE);
33
- _AbstractMaterialData_aoMap.set(this, void 0);
34
- _AbstractMaterialData_aoMapIntensity.set(this, 1.0);
35
- _AbstractMaterialData_bumpMap.set(this, void 0);
36
- _AbstractMaterialData_bumpScale.set(this, 1.0);
37
- _AbstractMaterialData_color.set(this, "#ffffff");
38
- _AbstractMaterialData_depthTest.set(this, void 0);
39
- _AbstractMaterialData_depthWrite.set(this, void 0);
40
- _AbstractMaterialData_emissiveMap.set(this, void 0);
41
- _AbstractMaterialData_emissiveness.set(this, "#000000");
42
- _AbstractMaterialData_map.set(this, void 0);
43
- _AbstractMaterialData_materialOutput.set(this, false);
44
- _AbstractMaterialData_name.set(this, void 0);
45
- _AbstractMaterialData_normalMap.set(this, void 0);
46
- _AbstractMaterialData_normalScale.set(this, 1.0);
47
- _AbstractMaterialData_opacity.set(this, 1.0);
48
- _AbstractMaterialData_shading.set(this, viewer_shared_types_1.MATERIAL_SHADING.SMOOTH);
49
- _AbstractMaterialData_side.set(this, viewer_shared_types_1.MATERIAL_SIDE.DOUBLE);
50
- _AbstractMaterialData_transparent.set(this, void 0);
51
- if (!properties)
52
- return;
53
- if (properties.alphaMap !== undefined)
54
- this.alphaMap = properties.alphaMap;
55
- if (properties.alphaCutoff !== undefined)
56
- this.alphaCutoff = properties.alphaCutoff;
57
- if (properties.alphaMode !== undefined)
58
- this.alphaMode = properties.alphaMode;
59
- if (properties.aoMap !== undefined)
60
- this.aoMap = properties.aoMap;
61
- if (properties.aoMapIntensity !== undefined)
62
- this.aoMapIntensity = properties.aoMapIntensity;
63
- if (properties.bumpMap !== undefined)
64
- this.bumpMap = properties.bumpMap;
65
- if (properties.bumpScale !== undefined)
66
- this.bumpScale = properties.bumpScale;
67
- if (properties.color !== undefined)
68
- this.color = properties.color;
69
- if (properties.depthTest !== undefined)
70
- this.depthTest = properties.depthTest;
71
- if (properties.depthWrite !== undefined)
72
- this.depthWrite = properties.depthWrite;
73
- if (properties.emissiveMap !== undefined)
74
- this.emissiveMap = properties.emissiveMap;
75
- if (properties.emissiveness !== undefined)
76
- this.emissiveness = properties.emissiveness;
77
- if (properties.shading !== undefined)
78
- this.shading = properties.shading;
79
- if (properties.map !== undefined)
80
- this.map = properties.map;
81
- if (properties.name !== undefined)
82
- this.name = properties.name;
83
- if (properties.normalMap !== undefined)
84
- this.normalMap = properties.normalMap;
85
- if (properties.normalScale !== undefined)
86
- this.normalScale = properties.normalScale;
87
- if (properties.opacity !== undefined)
88
- this.opacity = properties.opacity;
89
- if (properties.side !== undefined)
90
- this.side = properties.side;
91
- if (properties.transparent !== undefined)
92
- this.transparent = properties.transparent;
93
- }
94
- // #endregion Constructors (1)
95
- // #region Public Getters And Setters (42)
96
- get alphaCutoff() {
97
- return __classPrivateFieldGet(this, _AbstractMaterialData_alphaCutoff, "f");
98
- }
99
- set alphaCutoff(value) {
100
- __classPrivateFieldSet(this, _AbstractMaterialData_alphaCutoff, value, "f");
101
- }
102
- get alphaMap() {
103
- return __classPrivateFieldGet(this, _AbstractMaterialData_alphaMap, "f");
104
- }
105
- set alphaMap(value) {
106
- __classPrivateFieldSet(this, _AbstractMaterialData_alphaMap, value, "f");
107
- }
108
- get alphaMode() {
109
- return __classPrivateFieldGet(this, _AbstractMaterialData_alphaMode, "f");
110
- }
111
- set alphaMode(value) {
112
- __classPrivateFieldSet(this, _AbstractMaterialData_alphaMode, value, "f");
113
- }
114
- get aoMap() {
115
- return __classPrivateFieldGet(this, _AbstractMaterialData_aoMap, "f");
116
- }
117
- set aoMap(value) {
118
- __classPrivateFieldSet(this, _AbstractMaterialData_aoMap, value, "f");
119
- }
120
- get aoMapIntensity() {
121
- return __classPrivateFieldGet(this, _AbstractMaterialData_aoMapIntensity, "f");
122
- }
123
- set aoMapIntensity(value) {
124
- __classPrivateFieldSet(this, _AbstractMaterialData_aoMapIntensity, value, "f");
125
- }
126
- get bumpMap() {
127
- return __classPrivateFieldGet(this, _AbstractMaterialData_bumpMap, "f");
128
- }
129
- set bumpMap(value) {
130
- __classPrivateFieldSet(this, _AbstractMaterialData_bumpMap, value, "f");
131
- }
132
- get bumpScale() {
133
- return __classPrivateFieldGet(this, _AbstractMaterialData_bumpScale, "f");
134
- }
135
- set bumpScale(value) {
136
- __classPrivateFieldSet(this, _AbstractMaterialData_bumpScale, value, "f");
137
- }
138
- get color() {
139
- return __classPrivateFieldGet(this, _AbstractMaterialData_color, "f");
140
- }
141
- set color(value) {
142
- __classPrivateFieldSet(this, _AbstractMaterialData_color, value, "f");
143
- }
144
- get depthTest() {
145
- return __classPrivateFieldGet(this, _AbstractMaterialData_depthTest, "f");
146
- }
147
- set depthTest(value) {
148
- __classPrivateFieldSet(this, _AbstractMaterialData_depthTest, value, "f");
149
- }
150
- get depthWrite() {
151
- return __classPrivateFieldGet(this, _AbstractMaterialData_depthWrite, "f");
152
- }
153
- set depthWrite(value) {
154
- __classPrivateFieldSet(this, _AbstractMaterialData_depthWrite, value, "f");
155
- }
156
- get emissiveMap() {
157
- return __classPrivateFieldGet(this, _AbstractMaterialData_emissiveMap, "f");
158
- }
159
- set emissiveMap(value) {
160
- __classPrivateFieldSet(this, _AbstractMaterialData_emissiveMap, value, "f");
161
- }
162
- get emissiveness() {
163
- return __classPrivateFieldGet(this, _AbstractMaterialData_emissiveness, "f");
164
- }
165
- set emissiveness(value) {
166
- __classPrivateFieldSet(this, _AbstractMaterialData_emissiveness, value, "f");
167
- }
168
- get map() {
169
- return __classPrivateFieldGet(this, _AbstractMaterialData_map, "f");
170
- }
171
- set map(value) {
172
- __classPrivateFieldSet(this, _AbstractMaterialData_map, value, "f");
173
- }
174
- get materialOutput() {
175
- return __classPrivateFieldGet(this, _AbstractMaterialData_materialOutput, "f");
176
- }
177
- set materialOutput(value) {
178
- __classPrivateFieldSet(this, _AbstractMaterialData_materialOutput, value, "f");
179
- }
180
- get name() {
181
- return __classPrivateFieldGet(this, _AbstractMaterialData_name, "f");
182
- }
183
- set name(value) {
184
- __classPrivateFieldSet(this, _AbstractMaterialData_name, value, "f");
185
- }
186
- get normalMap() {
187
- return __classPrivateFieldGet(this, _AbstractMaterialData_normalMap, "f");
188
- }
189
- set normalMap(value) {
190
- __classPrivateFieldSet(this, _AbstractMaterialData_normalMap, value, "f");
191
- }
192
- get normalScale() {
193
- return __classPrivateFieldGet(this, _AbstractMaterialData_normalScale, "f");
194
- }
195
- set normalScale(value) {
196
- __classPrivateFieldSet(this, _AbstractMaterialData_normalScale, value, "f");
197
- }
198
- get opacity() {
199
- return __classPrivateFieldGet(this, _AbstractMaterialData_opacity, "f");
200
- }
201
- set opacity(value) {
202
- __classPrivateFieldSet(this, _AbstractMaterialData_opacity, value, "f");
203
- }
204
- get shading() {
205
- return __classPrivateFieldGet(this, _AbstractMaterialData_shading, "f");
206
- }
207
- set shading(value) {
208
- __classPrivateFieldSet(this, _AbstractMaterialData_shading, value, "f");
209
- }
210
- get side() {
211
- return __classPrivateFieldGet(this, _AbstractMaterialData_side, "f");
212
- }
213
- set side(value) {
214
- __classPrivateFieldSet(this, _AbstractMaterialData_side, value, "f");
215
- }
216
- get transparent() {
217
- return __classPrivateFieldGet(this, _AbstractMaterialData_transparent, "f");
218
- }
219
- set transparent(value) {
220
- __classPrivateFieldSet(this, _AbstractMaterialData_transparent, value, "f");
221
- }
222
- }
223
- exports.AbstractMaterialData = AbstractMaterialData;
224
- _AbstractMaterialData_alphaCutoff = new WeakMap(), _AbstractMaterialData_alphaMap = new WeakMap(), _AbstractMaterialData_alphaMode = new WeakMap(), _AbstractMaterialData_aoMap = new WeakMap(), _AbstractMaterialData_aoMapIntensity = new WeakMap(), _AbstractMaterialData_bumpMap = new WeakMap(), _AbstractMaterialData_bumpScale = new WeakMap(), _AbstractMaterialData_color = new WeakMap(), _AbstractMaterialData_depthTest = new WeakMap(), _AbstractMaterialData_depthWrite = new WeakMap(), _AbstractMaterialData_emissiveMap = new WeakMap(), _AbstractMaterialData_emissiveness = new WeakMap(), _AbstractMaterialData_map = new WeakMap(), _AbstractMaterialData_materialOutput = new WeakMap(), _AbstractMaterialData_name = new WeakMap(), _AbstractMaterialData_normalMap = new WeakMap(), _AbstractMaterialData_normalScale = new WeakMap(), _AbstractMaterialData_opacity = new WeakMap(), _AbstractMaterialData_shading = new WeakMap(), _AbstractMaterialData_side = new WeakMap(), _AbstractMaterialData_transparent = new WeakMap();
1
+ "use strict";
2
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
3
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
5
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
6
+ };
7
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8
+ if (kind === "m") throw new TypeError("Private method is not writable");
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
10
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
11
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
12
+ };
13
+ var _AbstractMaterialData_alphaCutoff, _AbstractMaterialData_alphaMap, _AbstractMaterialData_alphaMode, _AbstractMaterialData_aoMap, _AbstractMaterialData_aoMapIntensity, _AbstractMaterialData_bumpMap, _AbstractMaterialData_bumpScale, _AbstractMaterialData_color, _AbstractMaterialData_depthTest, _AbstractMaterialData_depthWrite, _AbstractMaterialData_emissiveMap, _AbstractMaterialData_emissiveness, _AbstractMaterialData_map, _AbstractMaterialData_materialOutput, _AbstractMaterialData_name, _AbstractMaterialData_normalMap, _AbstractMaterialData_normalScale, _AbstractMaterialData_opacity, _AbstractMaterialData_shading, _AbstractMaterialData_side, _AbstractMaterialData_transparent;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.AbstractMaterialData = void 0;
16
+ const viewer_shared_types_1 = require("@shapediver/viewer.shared.types");
17
+ const AbstractTreeNodeData_1 = require("../AbstractTreeNodeData");
18
+ class AbstractMaterialData extends AbstractTreeNodeData_1.AbstractTreeNodeData {
19
+ // #endregion Properties (21)
20
+ // #region Constructors (1)
21
+ /**
22
+ * Creates a material data object.
23
+ *
24
+ * @param _attributes the attributes of the material
25
+ * @param id the id
26
+ */
27
+ constructor(properties, id, version) {
28
+ super(id, version);
29
+ // #region Properties (21)
30
+ _AbstractMaterialData_alphaCutoff.set(this, 0);
31
+ _AbstractMaterialData_alphaMap.set(this, void 0);
32
+ _AbstractMaterialData_alphaMode.set(this, viewer_shared_types_1.MATERIAL_ALPHA.OPAQUE);
33
+ _AbstractMaterialData_aoMap.set(this, void 0);
34
+ _AbstractMaterialData_aoMapIntensity.set(this, 1.0);
35
+ _AbstractMaterialData_bumpMap.set(this, void 0);
36
+ _AbstractMaterialData_bumpScale.set(this, 1.0);
37
+ _AbstractMaterialData_color.set(this, "#ffffff");
38
+ _AbstractMaterialData_depthTest.set(this, void 0);
39
+ _AbstractMaterialData_depthWrite.set(this, void 0);
40
+ _AbstractMaterialData_emissiveMap.set(this, void 0);
41
+ _AbstractMaterialData_emissiveness.set(this, "#000000");
42
+ _AbstractMaterialData_map.set(this, void 0);
43
+ _AbstractMaterialData_materialOutput.set(this, false);
44
+ _AbstractMaterialData_name.set(this, void 0);
45
+ _AbstractMaterialData_normalMap.set(this, void 0);
46
+ _AbstractMaterialData_normalScale.set(this, 1.0);
47
+ _AbstractMaterialData_opacity.set(this, 1.0);
48
+ _AbstractMaterialData_shading.set(this, viewer_shared_types_1.MATERIAL_SHADING.SMOOTH);
49
+ _AbstractMaterialData_side.set(this, viewer_shared_types_1.MATERIAL_SIDE.DOUBLE);
50
+ _AbstractMaterialData_transparent.set(this, void 0);
51
+ if (!properties)
52
+ return;
53
+ if (properties.alphaMap !== undefined)
54
+ this.alphaMap = properties.alphaMap;
55
+ if (properties.alphaCutoff !== undefined)
56
+ this.alphaCutoff = properties.alphaCutoff;
57
+ if (properties.alphaMode !== undefined)
58
+ this.alphaMode = properties.alphaMode;
59
+ if (properties.aoMap !== undefined)
60
+ this.aoMap = properties.aoMap;
61
+ if (properties.aoMapIntensity !== undefined)
62
+ this.aoMapIntensity = properties.aoMapIntensity;
63
+ if (properties.bumpMap !== undefined)
64
+ this.bumpMap = properties.bumpMap;
65
+ if (properties.bumpScale !== undefined)
66
+ this.bumpScale = properties.bumpScale;
67
+ if (properties.color !== undefined)
68
+ this.color = properties.color;
69
+ if (properties.depthTest !== undefined)
70
+ this.depthTest = properties.depthTest;
71
+ if (properties.depthWrite !== undefined)
72
+ this.depthWrite = properties.depthWrite;
73
+ if (properties.emissiveMap !== undefined)
74
+ this.emissiveMap = properties.emissiveMap;
75
+ if (properties.emissiveness !== undefined)
76
+ this.emissiveness = properties.emissiveness;
77
+ if (properties.shading !== undefined)
78
+ this.shading = properties.shading;
79
+ if (properties.map !== undefined)
80
+ this.map = properties.map;
81
+ if (properties.name !== undefined)
82
+ this.name = properties.name;
83
+ if (properties.normalMap !== undefined)
84
+ this.normalMap = properties.normalMap;
85
+ if (properties.normalScale !== undefined)
86
+ this.normalScale = properties.normalScale;
87
+ if (properties.opacity !== undefined)
88
+ this.opacity = properties.opacity;
89
+ if (properties.side !== undefined)
90
+ this.side = properties.side;
91
+ if (properties.transparent !== undefined)
92
+ this.transparent = properties.transparent;
93
+ }
94
+ // #endregion Constructors (1)
95
+ // #region Public Getters And Setters (42)
96
+ get alphaCutoff() {
97
+ return __classPrivateFieldGet(this, _AbstractMaterialData_alphaCutoff, "f");
98
+ }
99
+ set alphaCutoff(value) {
100
+ __classPrivateFieldSet(this, _AbstractMaterialData_alphaCutoff, value, "f");
101
+ }
102
+ get alphaMap() {
103
+ return __classPrivateFieldGet(this, _AbstractMaterialData_alphaMap, "f");
104
+ }
105
+ set alphaMap(value) {
106
+ __classPrivateFieldSet(this, _AbstractMaterialData_alphaMap, value, "f");
107
+ }
108
+ get alphaMode() {
109
+ return __classPrivateFieldGet(this, _AbstractMaterialData_alphaMode, "f");
110
+ }
111
+ set alphaMode(value) {
112
+ __classPrivateFieldSet(this, _AbstractMaterialData_alphaMode, value, "f");
113
+ }
114
+ get aoMap() {
115
+ return __classPrivateFieldGet(this, _AbstractMaterialData_aoMap, "f");
116
+ }
117
+ set aoMap(value) {
118
+ __classPrivateFieldSet(this, _AbstractMaterialData_aoMap, value, "f");
119
+ }
120
+ get aoMapIntensity() {
121
+ return __classPrivateFieldGet(this, _AbstractMaterialData_aoMapIntensity, "f");
122
+ }
123
+ set aoMapIntensity(value) {
124
+ __classPrivateFieldSet(this, _AbstractMaterialData_aoMapIntensity, value, "f");
125
+ }
126
+ get bumpMap() {
127
+ return __classPrivateFieldGet(this, _AbstractMaterialData_bumpMap, "f");
128
+ }
129
+ set bumpMap(value) {
130
+ __classPrivateFieldSet(this, _AbstractMaterialData_bumpMap, value, "f");
131
+ }
132
+ get bumpScale() {
133
+ return __classPrivateFieldGet(this, _AbstractMaterialData_bumpScale, "f");
134
+ }
135
+ set bumpScale(value) {
136
+ __classPrivateFieldSet(this, _AbstractMaterialData_bumpScale, value, "f");
137
+ }
138
+ get color() {
139
+ return __classPrivateFieldGet(this, _AbstractMaterialData_color, "f");
140
+ }
141
+ set color(value) {
142
+ __classPrivateFieldSet(this, _AbstractMaterialData_color, value, "f");
143
+ }
144
+ get depthTest() {
145
+ return __classPrivateFieldGet(this, _AbstractMaterialData_depthTest, "f");
146
+ }
147
+ set depthTest(value) {
148
+ __classPrivateFieldSet(this, _AbstractMaterialData_depthTest, value, "f");
149
+ }
150
+ get depthWrite() {
151
+ return __classPrivateFieldGet(this, _AbstractMaterialData_depthWrite, "f");
152
+ }
153
+ set depthWrite(value) {
154
+ __classPrivateFieldSet(this, _AbstractMaterialData_depthWrite, value, "f");
155
+ }
156
+ get emissiveMap() {
157
+ return __classPrivateFieldGet(this, _AbstractMaterialData_emissiveMap, "f");
158
+ }
159
+ set emissiveMap(value) {
160
+ __classPrivateFieldSet(this, _AbstractMaterialData_emissiveMap, value, "f");
161
+ }
162
+ get emissiveness() {
163
+ return __classPrivateFieldGet(this, _AbstractMaterialData_emissiveness, "f");
164
+ }
165
+ set emissiveness(value) {
166
+ __classPrivateFieldSet(this, _AbstractMaterialData_emissiveness, value, "f");
167
+ }
168
+ get map() {
169
+ return __classPrivateFieldGet(this, _AbstractMaterialData_map, "f");
170
+ }
171
+ set map(value) {
172
+ __classPrivateFieldSet(this, _AbstractMaterialData_map, value, "f");
173
+ }
174
+ get materialOutput() {
175
+ return __classPrivateFieldGet(this, _AbstractMaterialData_materialOutput, "f");
176
+ }
177
+ set materialOutput(value) {
178
+ __classPrivateFieldSet(this, _AbstractMaterialData_materialOutput, value, "f");
179
+ }
180
+ get name() {
181
+ return __classPrivateFieldGet(this, _AbstractMaterialData_name, "f");
182
+ }
183
+ set name(value) {
184
+ __classPrivateFieldSet(this, _AbstractMaterialData_name, value, "f");
185
+ }
186
+ get normalMap() {
187
+ return __classPrivateFieldGet(this, _AbstractMaterialData_normalMap, "f");
188
+ }
189
+ set normalMap(value) {
190
+ __classPrivateFieldSet(this, _AbstractMaterialData_normalMap, value, "f");
191
+ }
192
+ get normalScale() {
193
+ return __classPrivateFieldGet(this, _AbstractMaterialData_normalScale, "f");
194
+ }
195
+ set normalScale(value) {
196
+ __classPrivateFieldSet(this, _AbstractMaterialData_normalScale, value, "f");
197
+ }
198
+ get opacity() {
199
+ return __classPrivateFieldGet(this, _AbstractMaterialData_opacity, "f");
200
+ }
201
+ set opacity(value) {
202
+ __classPrivateFieldSet(this, _AbstractMaterialData_opacity, value, "f");
203
+ }
204
+ get shading() {
205
+ return __classPrivateFieldGet(this, _AbstractMaterialData_shading, "f");
206
+ }
207
+ set shading(value) {
208
+ __classPrivateFieldSet(this, _AbstractMaterialData_shading, value, "f");
209
+ }
210
+ get side() {
211
+ return __classPrivateFieldGet(this, _AbstractMaterialData_side, "f");
212
+ }
213
+ set side(value) {
214
+ __classPrivateFieldSet(this, _AbstractMaterialData_side, value, "f");
215
+ }
216
+ get transparent() {
217
+ return __classPrivateFieldGet(this, _AbstractMaterialData_transparent, "f");
218
+ }
219
+ set transparent(value) {
220
+ __classPrivateFieldSet(this, _AbstractMaterialData_transparent, value, "f");
221
+ }
222
+ }
223
+ exports.AbstractMaterialData = AbstractMaterialData;
224
+ _AbstractMaterialData_alphaCutoff = new WeakMap(), _AbstractMaterialData_alphaMap = new WeakMap(), _AbstractMaterialData_alphaMode = new WeakMap(), _AbstractMaterialData_aoMap = new WeakMap(), _AbstractMaterialData_aoMapIntensity = new WeakMap(), _AbstractMaterialData_bumpMap = new WeakMap(), _AbstractMaterialData_bumpScale = new WeakMap(), _AbstractMaterialData_color = new WeakMap(), _AbstractMaterialData_depthTest = new WeakMap(), _AbstractMaterialData_depthWrite = new WeakMap(), _AbstractMaterialData_emissiveMap = new WeakMap(), _AbstractMaterialData_emissiveness = new WeakMap(), _AbstractMaterialData_map = new WeakMap(), _AbstractMaterialData_materialOutput = new WeakMap(), _AbstractMaterialData_name = new WeakMap(), _AbstractMaterialData_normalMap = new WeakMap(), _AbstractMaterialData_normalScale = new WeakMap(), _AbstractMaterialData_opacity = new WeakMap(), _AbstractMaterialData_shading = new WeakMap(), _AbstractMaterialData_side = new WeakMap(), _AbstractMaterialData_transparent = new WeakMap();
225
225
  //# sourceMappingURL=AbstractMaterialData.js.map
@@ -1,54 +1,54 @@
1
- import { Color, IMapData, SDImageBitmap, TEXTURE_FILTERING, TEXTURE_WRAPPING } from "@shapediver/viewer.shared.types";
2
- import { vec2 } from "gl-matrix";
3
- import { AbstractTreeNodeData } from "../AbstractTreeNodeData";
4
- export declare class MapData extends AbstractTreeNodeData implements IMapData {
5
- #private;
6
- constructor(image: HTMLImageElement | SDImageBitmap | ArrayBuffer, properties?: {
7
- asData?: boolean;
8
- data?: number[];
9
- blob?: Blob;
10
- wrapS?: TEXTURE_WRAPPING;
11
- wrapT?: TEXTURE_WRAPPING;
12
- minFilter?: TEXTURE_FILTERING;
13
- magFilter?: TEXTURE_FILTERING;
14
- center?: vec2;
15
- color?: Color;
16
- offset?: vec2;
17
- repeat?: vec2;
18
- rotation?: number;
19
- texCoord?: number;
20
- flipY?: boolean;
21
- }, id?: string, version?: string);
22
- get asData(): boolean;
23
- set asData(value: boolean);
24
- get blob(): Blob | undefined;
25
- set blob(value: Blob | undefined);
26
- get center(): vec2;
27
- set center(value: vec2);
28
- get color(): Color | undefined;
29
- set color(value: Color | undefined);
30
- get data(): number[] | undefined;
31
- set data(value: number[] | undefined);
32
- get flipY(): boolean;
33
- set flipY(value: boolean);
34
- get image(): HTMLImageElement | SDImageBitmap | ArrayBuffer;
35
- set image(value: HTMLImageElement | SDImageBitmap | ArrayBuffer);
36
- get magFilter(): TEXTURE_FILTERING;
37
- set magFilter(value: TEXTURE_FILTERING);
38
- get minFilter(): TEXTURE_FILTERING;
39
- set minFilter(value: TEXTURE_FILTERING);
40
- get offset(): vec2;
41
- set offset(value: vec2);
42
- get repeat(): vec2;
43
- set repeat(value: vec2);
44
- get rotation(): number;
45
- set rotation(value: number);
46
- get texCoord(): number | undefined;
47
- set texCoord(value: number | undefined);
48
- get wrapS(): TEXTURE_WRAPPING;
49
- set wrapS(value: TEXTURE_WRAPPING);
50
- get wrapT(): TEXTURE_WRAPPING;
51
- set wrapT(value: TEXTURE_WRAPPING);
52
- clone(): IMapData;
53
- }
1
+ import { Color, IMapData, SDImageBitmap, TEXTURE_FILTERING, TEXTURE_WRAPPING } from "@shapediver/viewer.shared.types";
2
+ import { vec2 } from "gl-matrix";
3
+ import { AbstractTreeNodeData } from "../AbstractTreeNodeData";
4
+ export declare class MapData extends AbstractTreeNodeData implements IMapData {
5
+ #private;
6
+ constructor(image: HTMLImageElement | SDImageBitmap | ArrayBuffer, properties?: {
7
+ asData?: boolean;
8
+ data?: number[];
9
+ blob?: Blob;
10
+ wrapS?: TEXTURE_WRAPPING;
11
+ wrapT?: TEXTURE_WRAPPING;
12
+ minFilter?: TEXTURE_FILTERING;
13
+ magFilter?: TEXTURE_FILTERING;
14
+ center?: vec2;
15
+ color?: Color;
16
+ offset?: vec2;
17
+ repeat?: vec2;
18
+ rotation?: number;
19
+ texCoord?: number;
20
+ flipY?: boolean;
21
+ }, id?: string, version?: string);
22
+ get asData(): boolean;
23
+ set asData(value: boolean);
24
+ get blob(): Blob | undefined;
25
+ set blob(value: Blob | undefined);
26
+ get center(): vec2;
27
+ set center(value: vec2);
28
+ get color(): Color | undefined;
29
+ set color(value: Color | undefined);
30
+ get data(): number[] | undefined;
31
+ set data(value: number[] | undefined);
32
+ get flipY(): boolean;
33
+ set flipY(value: boolean);
34
+ get image(): HTMLImageElement | SDImageBitmap | ArrayBuffer;
35
+ set image(value: HTMLImageElement | SDImageBitmap | ArrayBuffer);
36
+ get magFilter(): TEXTURE_FILTERING;
37
+ set magFilter(value: TEXTURE_FILTERING);
38
+ get minFilter(): TEXTURE_FILTERING;
39
+ set minFilter(value: TEXTURE_FILTERING);
40
+ get offset(): vec2;
41
+ set offset(value: vec2);
42
+ get repeat(): vec2;
43
+ set repeat(value: vec2);
44
+ get rotation(): number;
45
+ set rotation(value: number);
46
+ get texCoord(): number | undefined;
47
+ set texCoord(value: number | undefined);
48
+ get wrapS(): TEXTURE_WRAPPING;
49
+ set wrapS(value: TEXTURE_WRAPPING);
50
+ get wrapT(): TEXTURE_WRAPPING;
51
+ set wrapT(value: TEXTURE_WRAPPING);
52
+ clone(): IMapData;
53
+ }
54
54
  //# sourceMappingURL=MapData.d.ts.map