@shapediver/viewer.shared.node-tree 3.16.7 → 3.16.9

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,468 +1,468 @@
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 _MaterialStandardData_attenuationColor, _MaterialStandardData_attenuationDistance, _MaterialStandardData_clearcoat, _MaterialStandardData_clearcoatMap, _MaterialStandardData_clearcoatNormalMap, _MaterialStandardData_clearcoatRoughness, _MaterialStandardData_clearcoatRoughnessMap, _MaterialStandardData_displacementMap, _MaterialStandardData_displacementScale, _MaterialStandardData_displacementBias, _MaterialStandardData_envMap, _MaterialStandardData_ior, _MaterialStandardData_metalness, _MaterialStandardData_metalnessMap, _MaterialStandardData_metalnessRoughnessMap, _MaterialStandardData_roughness, _MaterialStandardData_roughnessMap, _MaterialStandardData_sheen, _MaterialStandardData_sheenColor, _MaterialStandardData_sheenColorMap, _MaterialStandardData_sheenRoughness, _MaterialStandardData_sheenRoughnessMap, _MaterialStandardData_specularColor, _MaterialStandardData_specularColorMap, _MaterialStandardData_specularIntensity, _MaterialStandardData_specularIntensityMap, _MaterialStandardData_thickness, _MaterialStandardData_thicknessMap, _MaterialStandardData_transmission, _MaterialStandardData_transmissionMap;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.MaterialStandardData = void 0;
16
- const viewer_shared_types_1 = require("@shapediver/viewer.shared.types");
17
- const AbstractMaterialData_1 = require("./AbstractMaterialData");
18
- class MaterialStandardData extends AbstractMaterialData_1.AbstractMaterialData {
19
- // #endregion Properties (26)
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(properties, id, version);
29
- // #region Properties (26)
30
- _MaterialStandardData_attenuationColor.set(this, "#ffffff");
31
- _MaterialStandardData_attenuationDistance.set(this, Infinity);
32
- _MaterialStandardData_clearcoat.set(this, 0);
33
- _MaterialStandardData_clearcoatMap.set(this, void 0);
34
- _MaterialStandardData_clearcoatNormalMap.set(this, void 0);
35
- _MaterialStandardData_clearcoatRoughness.set(this, 0);
36
- _MaterialStandardData_clearcoatRoughnessMap.set(this, void 0);
37
- _MaterialStandardData_displacementMap.set(this, void 0);
38
- _MaterialStandardData_displacementScale.set(this, 1);
39
- _MaterialStandardData_displacementBias.set(this, 0);
40
- _MaterialStandardData_envMap.set(this, void 0);
41
- _MaterialStandardData_ior.set(this, 1.5);
42
- _MaterialStandardData_metalness.set(this, 1.0);
43
- _MaterialStandardData_metalnessMap.set(this, void 0);
44
- _MaterialStandardData_metalnessRoughnessMap.set(this, void 0);
45
- _MaterialStandardData_roughness.set(this, 1.0);
46
- _MaterialStandardData_roughnessMap.set(this, void 0);
47
- _MaterialStandardData_sheen.set(this, 0.0);
48
- _MaterialStandardData_sheenColor.set(this, "#ffffff");
49
- _MaterialStandardData_sheenColorMap.set(this, void 0);
50
- _MaterialStandardData_sheenRoughness.set(this, 1.0);
51
- _MaterialStandardData_sheenRoughnessMap.set(this, void 0);
52
- _MaterialStandardData_specularColor.set(this, "#ffffff");
53
- _MaterialStandardData_specularColorMap.set(this, void 0);
54
- _MaterialStandardData_specularIntensity.set(this, 1.0);
55
- _MaterialStandardData_specularIntensityMap.set(this, void 0);
56
- _MaterialStandardData_thickness.set(this, 0.0);
57
- _MaterialStandardData_thicknessMap.set(this, void 0);
58
- _MaterialStandardData_transmission.set(this, 0.0);
59
- _MaterialStandardData_transmissionMap.set(this, void 0);
60
- if (!properties)
61
- return;
62
- if (properties.metalness !== undefined)
63
- this.metalness = properties.metalness;
64
- if (properties.metalnessMap !== undefined)
65
- this.metalnessMap = properties.metalnessMap;
66
- if (properties.metalnessRoughnessMap !== undefined)
67
- this.metalnessRoughnessMap = properties.metalnessRoughnessMap;
68
- if (properties.roughness !== undefined)
69
- this.roughness = properties.roughness;
70
- if (properties.roughnessMap !== undefined)
71
- this.roughnessMap = properties.roughnessMap;
72
- if (properties.clearcoat !== undefined)
73
- this.clearcoat = properties.clearcoat;
74
- if (properties.clearcoatMap !== undefined)
75
- this.clearcoatMap = properties.clearcoatMap;
76
- if (properties.clearcoatNormalMap !== undefined)
77
- this.clearcoatNormalMap = properties.clearcoatNormalMap;
78
- if (properties.clearcoatRoughness !== undefined)
79
- this.clearcoatRoughness = properties.clearcoatRoughness;
80
- if (properties.clearcoatRoughnessMap !== undefined)
81
- this.clearcoatRoughnessMap = properties.clearcoatRoughnessMap;
82
- if (properties.displacementMap !== undefined)
83
- this.displacementMap = properties.displacementMap;
84
- if (properties.displacementScale !== undefined)
85
- this.displacementScale = properties.displacementScale;
86
- if (properties.displacementBias !== undefined)
87
- this.displacementBias = properties.displacementBias;
88
- if (properties.ior !== undefined)
89
- this.ior = properties.ior;
90
- if (properties.transmission !== undefined)
91
- this.transmission = properties.transmission;
92
- if (properties.transmissionMap !== undefined)
93
- this.transmissionMap = properties.transmissionMap;
94
- if (properties.thickness !== undefined)
95
- this.thickness = properties.thickness;
96
- if (properties.thicknessMap !== undefined)
97
- this.thicknessMap = properties.thicknessMap;
98
- if (properties.attenuationDistance !== undefined)
99
- this.attenuationDistance = properties.attenuationDistance;
100
- if (properties.attenuationColor !== undefined)
101
- this.attenuationColor = properties.attenuationColor;
102
- if (properties.sheen !== undefined)
103
- this.sheen = properties.sheen;
104
- if (properties.sheenColor !== undefined)
105
- this.sheenColor = properties.sheenColor;
106
- if (properties.sheenRoughness !== undefined)
107
- this.sheenRoughness = properties.sheenRoughness;
108
- if (properties.sheenColorMap !== undefined)
109
- this.sheenColorMap = properties.sheenColorMap;
110
- if (properties.sheenRoughnessMap !== undefined)
111
- this.sheenRoughnessMap = properties.sheenRoughnessMap;
112
- if (properties.specularColor !== undefined)
113
- this.specularColor = properties.specularColor;
114
- if (properties.specularColorMap !== undefined)
115
- this.specularColorMap = properties.specularColorMap;
116
- if (properties.specularIntensity !== undefined)
117
- this.specularIntensity = properties.specularIntensity;
118
- if (properties.specularIntensityMap !== undefined)
119
- this.specularIntensityMap = properties.specularIntensityMap;
120
- if (properties.envMap !== undefined)
121
- this.envMap = properties.envMap;
122
- }
123
- // #endregion Constructors (1)
124
- // #region Public Accessors (52)
125
- get attenuationColor() {
126
- return __classPrivateFieldGet(this, _MaterialStandardData_attenuationColor, "f");
127
- }
128
- set attenuationColor(value) {
129
- __classPrivateFieldSet(this, _MaterialStandardData_attenuationColor, value, "f");
130
- }
131
- get attenuationDistance() {
132
- return __classPrivateFieldGet(this, _MaterialStandardData_attenuationDistance, "f");
133
- }
134
- set attenuationDistance(value) {
135
- __classPrivateFieldSet(this, _MaterialStandardData_attenuationDistance, value, "f");
136
- }
137
- get clearcoat() {
138
- return __classPrivateFieldGet(this, _MaterialStandardData_clearcoat, "f");
139
- }
140
- set clearcoat(value) {
141
- __classPrivateFieldSet(this, _MaterialStandardData_clearcoat, value, "f");
142
- }
143
- get clearcoatMap() {
144
- return __classPrivateFieldGet(this, _MaterialStandardData_clearcoatMap, "f");
145
- }
146
- set clearcoatMap(value) {
147
- __classPrivateFieldSet(this, _MaterialStandardData_clearcoatMap, value, "f");
148
- }
149
- get clearcoatNormalMap() {
150
- return __classPrivateFieldGet(this, _MaterialStandardData_clearcoatNormalMap, "f");
151
- }
152
- set clearcoatNormalMap(value) {
153
- __classPrivateFieldSet(this, _MaterialStandardData_clearcoatNormalMap, value, "f");
154
- }
155
- get clearcoatRoughness() {
156
- return __classPrivateFieldGet(this, _MaterialStandardData_clearcoatRoughness, "f");
157
- }
158
- set clearcoatRoughness(value) {
159
- __classPrivateFieldSet(this, _MaterialStandardData_clearcoatRoughness, value, "f");
160
- }
161
- get clearcoatRoughnessMap() {
162
- return __classPrivateFieldGet(this, _MaterialStandardData_clearcoatRoughnessMap, "f");
163
- }
164
- set clearcoatRoughnessMap(value) {
165
- __classPrivateFieldSet(this, _MaterialStandardData_clearcoatRoughnessMap, value, "f");
166
- }
167
- get displacementMap() {
168
- return __classPrivateFieldGet(this, _MaterialStandardData_displacementMap, "f");
169
- }
170
- set displacementMap(value) {
171
- __classPrivateFieldSet(this, _MaterialStandardData_displacementMap, value, "f");
172
- }
173
- get displacementScale() {
174
- return __classPrivateFieldGet(this, _MaterialStandardData_displacementScale, "f");
175
- }
176
- set displacementScale(value) {
177
- __classPrivateFieldSet(this, _MaterialStandardData_displacementScale, value, "f");
178
- }
179
- get displacementBias() {
180
- return __classPrivateFieldGet(this, _MaterialStandardData_displacementBias, "f");
181
- }
182
- set displacementBias(value) {
183
- __classPrivateFieldSet(this, _MaterialStandardData_displacementBias, value, "f");
184
- }
185
- get envMap() {
186
- return __classPrivateFieldGet(this, _MaterialStandardData_envMap, "f");
187
- }
188
- set envMap(value) {
189
- __classPrivateFieldSet(this, _MaterialStandardData_envMap, value, "f");
190
- }
191
- get ior() {
192
- return __classPrivateFieldGet(this, _MaterialStandardData_ior, "f");
193
- }
194
- set ior(value) {
195
- __classPrivateFieldSet(this, _MaterialStandardData_ior, value, "f");
196
- }
197
- get metalness() {
198
- return __classPrivateFieldGet(this, _MaterialStandardData_metalness, "f");
199
- }
200
- set metalness(value) {
201
- __classPrivateFieldSet(this, _MaterialStandardData_metalness, value, "f");
202
- }
203
- get metalnessMap() {
204
- return __classPrivateFieldGet(this, _MaterialStandardData_metalnessMap, "f");
205
- }
206
- set metalnessMap(value) {
207
- __classPrivateFieldSet(this, _MaterialStandardData_metalnessMap, value, "f");
208
- }
209
- get metalnessRoughnessMap() {
210
- return __classPrivateFieldGet(this, _MaterialStandardData_metalnessRoughnessMap, "f");
211
- }
212
- set metalnessRoughnessMap(value) {
213
- __classPrivateFieldSet(this, _MaterialStandardData_metalnessRoughnessMap, value, "f");
214
- }
215
- get roughness() {
216
- return __classPrivateFieldGet(this, _MaterialStandardData_roughness, "f");
217
- }
218
- set roughness(value) {
219
- __classPrivateFieldSet(this, _MaterialStandardData_roughness, value, "f");
220
- }
221
- get roughnessMap() {
222
- return __classPrivateFieldGet(this, _MaterialStandardData_roughnessMap, "f");
223
- }
224
- set roughnessMap(value) {
225
- __classPrivateFieldSet(this, _MaterialStandardData_roughnessMap, value, "f");
226
- }
227
- get sheen() {
228
- return __classPrivateFieldGet(this, _MaterialStandardData_sheen, "f");
229
- }
230
- set sheen(value) {
231
- __classPrivateFieldSet(this, _MaterialStandardData_sheen, value, "f");
232
- }
233
- get sheenColor() {
234
- return __classPrivateFieldGet(this, _MaterialStandardData_sheenColor, "f");
235
- }
236
- set sheenColor(value) {
237
- __classPrivateFieldSet(this, _MaterialStandardData_sheenColor, value, "f");
238
- }
239
- get sheenColorMap() {
240
- return __classPrivateFieldGet(this, _MaterialStandardData_sheenColorMap, "f");
241
- }
242
- set sheenColorMap(value) {
243
- __classPrivateFieldSet(this, _MaterialStandardData_sheenColorMap, value, "f");
244
- }
245
- get sheenRoughness() {
246
- return __classPrivateFieldGet(this, _MaterialStandardData_sheenRoughness, "f");
247
- }
248
- set sheenRoughness(value) {
249
- __classPrivateFieldSet(this, _MaterialStandardData_sheenRoughness, value, "f");
250
- }
251
- get sheenRoughnessMap() {
252
- return __classPrivateFieldGet(this, _MaterialStandardData_sheenRoughnessMap, "f");
253
- }
254
- set sheenRoughnessMap(value) {
255
- __classPrivateFieldSet(this, _MaterialStandardData_sheenRoughnessMap, value, "f");
256
- }
257
- get specularColor() {
258
- return __classPrivateFieldGet(this, _MaterialStandardData_specularColor, "f");
259
- }
260
- set specularColor(value) {
261
- __classPrivateFieldSet(this, _MaterialStandardData_specularColor, value, "f");
262
- }
263
- get specularColorMap() {
264
- return __classPrivateFieldGet(this, _MaterialStandardData_specularColorMap, "f");
265
- }
266
- set specularColorMap(value) {
267
- __classPrivateFieldSet(this, _MaterialStandardData_specularColorMap, value, "f");
268
- }
269
- get specularIntensity() {
270
- return __classPrivateFieldGet(this, _MaterialStandardData_specularIntensity, "f");
271
- }
272
- set specularIntensity(value) {
273
- __classPrivateFieldSet(this, _MaterialStandardData_specularIntensity, value, "f");
274
- }
275
- get specularIntensityMap() {
276
- return __classPrivateFieldGet(this, _MaterialStandardData_specularIntensityMap, "f");
277
- }
278
- set specularIntensityMap(value) {
279
- __classPrivateFieldSet(this, _MaterialStandardData_specularIntensityMap, value, "f");
280
- }
281
- get thickness() {
282
- return __classPrivateFieldGet(this, _MaterialStandardData_thickness, "f");
283
- }
284
- set thickness(value) {
285
- __classPrivateFieldSet(this, _MaterialStandardData_thickness, value, "f");
286
- }
287
- get thicknessMap() {
288
- return __classPrivateFieldGet(this, _MaterialStandardData_thicknessMap, "f");
289
- }
290
- set thicknessMap(value) {
291
- __classPrivateFieldSet(this, _MaterialStandardData_thicknessMap, value, "f");
292
- }
293
- get transmission() {
294
- return __classPrivateFieldGet(this, _MaterialStandardData_transmission, "f");
295
- }
296
- set transmission(value) {
297
- __classPrivateFieldSet(this, _MaterialStandardData_transmission, value, "f");
298
- }
299
- get transmissionMap() {
300
- return __classPrivateFieldGet(this, _MaterialStandardData_transmissionMap, "f");
301
- }
302
- set transmissionMap(value) {
303
- __classPrivateFieldSet(this, _MaterialStandardData_transmissionMap, value, "f");
304
- }
305
- // #endregion Public Accessors (52)
306
- // #region Public Methods (1)
307
- reset() {
308
- this.alphaCutoff = 0;
309
- this.alphaMap = undefined;
310
- this.alphaMode = viewer_shared_types_1.MATERIAL_ALPHA.OPAQUE;
311
- this.aoMap = undefined;
312
- this.aoMapIntensity = 1.0;
313
- this.bumpMap = undefined;
314
- this.bumpScale = 1.0;
315
- this.color = "#ffffff";
316
- this.depthTest = undefined;
317
- this.depthWrite = undefined;
318
- this.emissiveMap = undefined;
319
- this.emissiveness = "#000000";
320
- this.materialOutput = false;
321
- this.map = undefined;
322
- this.normalMap = undefined;
323
- this.normalScale = 1.0;
324
- this.opacity = 1.0;
325
- this.shading = viewer_shared_types_1.MATERIAL_SHADING.SMOOTH;
326
- this.side = viewer_shared_types_1.MATERIAL_SIDE.DOUBLE;
327
- this.transparent = undefined;
328
- this.attenuationColor = "#ffffff";
329
- this.attenuationDistance = Infinity;
330
- this.clearcoat = 0;
331
- this.clearcoatMap = undefined;
332
- this.clearcoatNormalMap = undefined;
333
- this.clearcoatRoughness = 0;
334
- this.clearcoatRoughnessMap = undefined;
335
- this.displacementMap = undefined;
336
- this.displacementScale = 1;
337
- this.displacementBias = 0;
338
- this.envMap = undefined;
339
- this.ior = 1;
340
- this.metalness = 0;
341
- this.metalnessMap = undefined;
342
- this.metalnessRoughnessMap = undefined;
343
- this.roughness = 0.5;
344
- this.roughnessMap = undefined;
345
- this.sheen = 0;
346
- this.sheenColor = "#ffffff";
347
- this.sheenColorMap = undefined;
348
- this.sheenRoughness = 0;
349
- this.sheenRoughnessMap = undefined;
350
- this.specularColor = "#ffffff";
351
- this.specularColorMap = undefined;
352
- this.specularIntensity = 1;
353
- this.specularIntensityMap = undefined;
354
- this.thickness = 0.1;
355
- this.thicknessMap = undefined;
356
- this.transmission = 0;
357
- this.transmissionMap = undefined;
358
- }
359
- clone() {
360
- return new MaterialStandardData({
361
- alphaMap: this.alphaMap,
362
- alphaCutoff: this.alphaCutoff,
363
- alphaMode: this.alphaMode,
364
- aoMap: this.aoMap,
365
- aoMapIntensity: this.aoMapIntensity,
366
- bumpMap: this.bumpMap,
367
- bumpScale: this.bumpScale,
368
- color: this.color,
369
- depthTest: this.depthTest,
370
- depthWrite: this.depthWrite,
371
- emissiveMap: this.emissiveMap,
372
- emissiveness: this.emissiveness,
373
- shading: this.shading,
374
- map: this.map,
375
- metalness: this.metalness,
376
- metalnessMap: this.metalnessMap,
377
- metalnessRoughnessMap: this.metalnessRoughnessMap,
378
- name: this.name,
379
- normalMap: this.normalMap,
380
- normalScale: this.normalScale,
381
- opacity: this.opacity,
382
- roughness: this.roughness,
383
- roughnessMap: this.roughnessMap,
384
- side: this.side,
385
- transparent: this.transparent,
386
- clearcoat: this.clearcoat,
387
- clearcoatMap: this.clearcoatMap,
388
- clearcoatNormalMap: this.clearcoatNormalMap,
389
- clearcoatRoughness: this.clearcoatRoughness,
390
- clearcoatRoughnessMap: this.clearcoatRoughnessMap,
391
- displacementMap: this.displacementMap,
392
- displacementScale: this.displacementScale,
393
- displacementBias: this.displacementBias,
394
- envMap: this.envMap,
395
- ior: this.ior,
396
- transmission: this.transmission,
397
- transmissionMap: this.transmissionMap,
398
- thickness: this.thickness,
399
- thicknessMap: this.thicknessMap,
400
- attenuationDistance: this.attenuationDistance,
401
- attenuationColor: this.attenuationColor,
402
- sheen: this.sheen,
403
- sheenColor: this.sheenColor,
404
- sheenColorMap: this.sheenColorMap,
405
- sheenRoughness: this.sheenRoughness,
406
- sheenRoughnessMap: this.sheenRoughnessMap,
407
- specularColor: this.specularColor,
408
- specularColorMap: this.specularColorMap,
409
- specularIntensity: this.specularIntensity,
410
- specularIntensityMap: this.specularIntensityMap,
411
- }, this.id, this.version);
412
- }
413
- copy(source) {
414
- this.alphaCutoff = source.alphaCutoff;
415
- this.alphaMap = source.alphaMap;
416
- this.alphaMode = source.alphaMode;
417
- this.aoMap = source.aoMap;
418
- this.aoMapIntensity = source.aoMapIntensity;
419
- this.bumpMap = source.bumpMap;
420
- this.bumpScale = source.bumpScale;
421
- this.color = source.color;
422
- this.depthTest = source.depthTest;
423
- this.depthWrite = source.depthWrite;
424
- this.emissiveMap = source.emissiveMap;
425
- this.emissiveness = source.emissiveness;
426
- this.materialOutput = source.materialOutput;
427
- this.map = source.map;
428
- this.normalMap = source.normalMap;
429
- this.normalScale = source.normalScale;
430
- this.opacity = source.opacity;
431
- this.shading = source.shading;
432
- this.side = source.side;
433
- this.transparent = source.transparent;
434
- this.attenuationColor = source.attenuationColor;
435
- this.attenuationDistance = source.attenuationDistance;
436
- this.clearcoat = source.clearcoat;
437
- this.clearcoatMap = source.clearcoatMap;
438
- this.clearcoatNormalMap = source.clearcoatNormalMap;
439
- this.clearcoatRoughness = source.clearcoatRoughness;
440
- this.clearcoatRoughnessMap = source.clearcoatRoughnessMap;
441
- this.displacementMap = source.displacementMap;
442
- this.displacementScale = source.displacementScale;
443
- this.displacementBias = source.displacementBias;
444
- this.envMap = source.envMap;
445
- this.ior = source.ior;
446
- this.metalness = source.metalness;
447
- this.metalnessMap = source.metalnessMap;
448
- this.metalnessRoughnessMap = source.metalnessRoughnessMap;
449
- this.roughness = source.roughness;
450
- this.roughnessMap = source.roughnessMap;
451
- this.sheen = source.sheen;
452
- this.sheenColor = source.sheenColor;
453
- this.sheenColorMap = source.sheenColorMap;
454
- this.sheenRoughness = source.sheenRoughness;
455
- this.sheenRoughnessMap = source.sheenRoughnessMap;
456
- this.specularColor = source.specularColor;
457
- this.specularColorMap = source.specularColorMap;
458
- this.specularIntensity = source.specularIntensity;
459
- this.specularIntensityMap = source.specularIntensityMap;
460
- this.thickness = source.thickness;
461
- this.thicknessMap = source.thicknessMap;
462
- this.transmission = source.transmission;
463
- this.transmissionMap = source.transmissionMap;
464
- }
465
- }
466
- exports.MaterialStandardData = MaterialStandardData;
467
- _MaterialStandardData_attenuationColor = new WeakMap(), _MaterialStandardData_attenuationDistance = new WeakMap(), _MaterialStandardData_clearcoat = new WeakMap(), _MaterialStandardData_clearcoatMap = new WeakMap(), _MaterialStandardData_clearcoatNormalMap = new WeakMap(), _MaterialStandardData_clearcoatRoughness = new WeakMap(), _MaterialStandardData_clearcoatRoughnessMap = new WeakMap(), _MaterialStandardData_displacementMap = new WeakMap(), _MaterialStandardData_displacementScale = new WeakMap(), _MaterialStandardData_displacementBias = new WeakMap(), _MaterialStandardData_envMap = new WeakMap(), _MaterialStandardData_ior = new WeakMap(), _MaterialStandardData_metalness = new WeakMap(), _MaterialStandardData_metalnessMap = new WeakMap(), _MaterialStandardData_metalnessRoughnessMap = new WeakMap(), _MaterialStandardData_roughness = new WeakMap(), _MaterialStandardData_roughnessMap = new WeakMap(), _MaterialStandardData_sheen = new WeakMap(), _MaterialStandardData_sheenColor = new WeakMap(), _MaterialStandardData_sheenColorMap = new WeakMap(), _MaterialStandardData_sheenRoughness = new WeakMap(), _MaterialStandardData_sheenRoughnessMap = new WeakMap(), _MaterialStandardData_specularColor = new WeakMap(), _MaterialStandardData_specularColorMap = new WeakMap(), _MaterialStandardData_specularIntensity = new WeakMap(), _MaterialStandardData_specularIntensityMap = new WeakMap(), _MaterialStandardData_thickness = new WeakMap(), _MaterialStandardData_thicknessMap = new WeakMap(), _MaterialStandardData_transmission = new WeakMap(), _MaterialStandardData_transmissionMap = 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 _MaterialStandardData_attenuationColor, _MaterialStandardData_attenuationDistance, _MaterialStandardData_clearcoat, _MaterialStandardData_clearcoatMap, _MaterialStandardData_clearcoatNormalMap, _MaterialStandardData_clearcoatRoughness, _MaterialStandardData_clearcoatRoughnessMap, _MaterialStandardData_displacementMap, _MaterialStandardData_displacementScale, _MaterialStandardData_displacementBias, _MaterialStandardData_envMap, _MaterialStandardData_ior, _MaterialStandardData_metalness, _MaterialStandardData_metalnessMap, _MaterialStandardData_metalnessRoughnessMap, _MaterialStandardData_roughness, _MaterialStandardData_roughnessMap, _MaterialStandardData_sheen, _MaterialStandardData_sheenColor, _MaterialStandardData_sheenColorMap, _MaterialStandardData_sheenRoughness, _MaterialStandardData_sheenRoughnessMap, _MaterialStandardData_specularColor, _MaterialStandardData_specularColorMap, _MaterialStandardData_specularIntensity, _MaterialStandardData_specularIntensityMap, _MaterialStandardData_thickness, _MaterialStandardData_thicknessMap, _MaterialStandardData_transmission, _MaterialStandardData_transmissionMap;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.MaterialStandardData = void 0;
16
+ const viewer_shared_types_1 = require("@shapediver/viewer.shared.types");
17
+ const AbstractMaterialData_1 = require("./AbstractMaterialData");
18
+ class MaterialStandardData extends AbstractMaterialData_1.AbstractMaterialData {
19
+ // #endregion Properties (26)
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(properties, id, version);
29
+ // #region Properties (26)
30
+ _MaterialStandardData_attenuationColor.set(this, "#ffffff");
31
+ _MaterialStandardData_attenuationDistance.set(this, Infinity);
32
+ _MaterialStandardData_clearcoat.set(this, 0);
33
+ _MaterialStandardData_clearcoatMap.set(this, void 0);
34
+ _MaterialStandardData_clearcoatNormalMap.set(this, void 0);
35
+ _MaterialStandardData_clearcoatRoughness.set(this, 0);
36
+ _MaterialStandardData_clearcoatRoughnessMap.set(this, void 0);
37
+ _MaterialStandardData_displacementMap.set(this, void 0);
38
+ _MaterialStandardData_displacementScale.set(this, 1);
39
+ _MaterialStandardData_displacementBias.set(this, 0);
40
+ _MaterialStandardData_envMap.set(this, void 0);
41
+ _MaterialStandardData_ior.set(this, 1.5);
42
+ _MaterialStandardData_metalness.set(this, 1.0);
43
+ _MaterialStandardData_metalnessMap.set(this, void 0);
44
+ _MaterialStandardData_metalnessRoughnessMap.set(this, void 0);
45
+ _MaterialStandardData_roughness.set(this, 1.0);
46
+ _MaterialStandardData_roughnessMap.set(this, void 0);
47
+ _MaterialStandardData_sheen.set(this, 0.0);
48
+ _MaterialStandardData_sheenColor.set(this, "#ffffff");
49
+ _MaterialStandardData_sheenColorMap.set(this, void 0);
50
+ _MaterialStandardData_sheenRoughness.set(this, 1.0);
51
+ _MaterialStandardData_sheenRoughnessMap.set(this, void 0);
52
+ _MaterialStandardData_specularColor.set(this, "#ffffff");
53
+ _MaterialStandardData_specularColorMap.set(this, void 0);
54
+ _MaterialStandardData_specularIntensity.set(this, 1.0);
55
+ _MaterialStandardData_specularIntensityMap.set(this, void 0);
56
+ _MaterialStandardData_thickness.set(this, 0.0);
57
+ _MaterialStandardData_thicknessMap.set(this, void 0);
58
+ _MaterialStandardData_transmission.set(this, 0.0);
59
+ _MaterialStandardData_transmissionMap.set(this, void 0);
60
+ if (!properties)
61
+ return;
62
+ if (properties.metalness !== undefined)
63
+ this.metalness = properties.metalness;
64
+ if (properties.metalnessMap !== undefined)
65
+ this.metalnessMap = properties.metalnessMap;
66
+ if (properties.metalnessRoughnessMap !== undefined)
67
+ this.metalnessRoughnessMap = properties.metalnessRoughnessMap;
68
+ if (properties.roughness !== undefined)
69
+ this.roughness = properties.roughness;
70
+ if (properties.roughnessMap !== undefined)
71
+ this.roughnessMap = properties.roughnessMap;
72
+ if (properties.clearcoat !== undefined)
73
+ this.clearcoat = properties.clearcoat;
74
+ if (properties.clearcoatMap !== undefined)
75
+ this.clearcoatMap = properties.clearcoatMap;
76
+ if (properties.clearcoatNormalMap !== undefined)
77
+ this.clearcoatNormalMap = properties.clearcoatNormalMap;
78
+ if (properties.clearcoatRoughness !== undefined)
79
+ this.clearcoatRoughness = properties.clearcoatRoughness;
80
+ if (properties.clearcoatRoughnessMap !== undefined)
81
+ this.clearcoatRoughnessMap = properties.clearcoatRoughnessMap;
82
+ if (properties.displacementMap !== undefined)
83
+ this.displacementMap = properties.displacementMap;
84
+ if (properties.displacementScale !== undefined)
85
+ this.displacementScale = properties.displacementScale;
86
+ if (properties.displacementBias !== undefined)
87
+ this.displacementBias = properties.displacementBias;
88
+ if (properties.ior !== undefined)
89
+ this.ior = properties.ior;
90
+ if (properties.transmission !== undefined)
91
+ this.transmission = properties.transmission;
92
+ if (properties.transmissionMap !== undefined)
93
+ this.transmissionMap = properties.transmissionMap;
94
+ if (properties.thickness !== undefined)
95
+ this.thickness = properties.thickness;
96
+ if (properties.thicknessMap !== undefined)
97
+ this.thicknessMap = properties.thicknessMap;
98
+ if (properties.attenuationDistance !== undefined)
99
+ this.attenuationDistance = properties.attenuationDistance;
100
+ if (properties.attenuationColor !== undefined)
101
+ this.attenuationColor = properties.attenuationColor;
102
+ if (properties.sheen !== undefined)
103
+ this.sheen = properties.sheen;
104
+ if (properties.sheenColor !== undefined)
105
+ this.sheenColor = properties.sheenColor;
106
+ if (properties.sheenRoughness !== undefined)
107
+ this.sheenRoughness = properties.sheenRoughness;
108
+ if (properties.sheenColorMap !== undefined)
109
+ this.sheenColorMap = properties.sheenColorMap;
110
+ if (properties.sheenRoughnessMap !== undefined)
111
+ this.sheenRoughnessMap = properties.sheenRoughnessMap;
112
+ if (properties.specularColor !== undefined)
113
+ this.specularColor = properties.specularColor;
114
+ if (properties.specularColorMap !== undefined)
115
+ this.specularColorMap = properties.specularColorMap;
116
+ if (properties.specularIntensity !== undefined)
117
+ this.specularIntensity = properties.specularIntensity;
118
+ if (properties.specularIntensityMap !== undefined)
119
+ this.specularIntensityMap = properties.specularIntensityMap;
120
+ if (properties.envMap !== undefined)
121
+ this.envMap = properties.envMap;
122
+ }
123
+ // #endregion Constructors (1)
124
+ // #region Public Accessors (52)
125
+ get attenuationColor() {
126
+ return __classPrivateFieldGet(this, _MaterialStandardData_attenuationColor, "f");
127
+ }
128
+ set attenuationColor(value) {
129
+ __classPrivateFieldSet(this, _MaterialStandardData_attenuationColor, value, "f");
130
+ }
131
+ get attenuationDistance() {
132
+ return __classPrivateFieldGet(this, _MaterialStandardData_attenuationDistance, "f");
133
+ }
134
+ set attenuationDistance(value) {
135
+ __classPrivateFieldSet(this, _MaterialStandardData_attenuationDistance, value, "f");
136
+ }
137
+ get clearcoat() {
138
+ return __classPrivateFieldGet(this, _MaterialStandardData_clearcoat, "f");
139
+ }
140
+ set clearcoat(value) {
141
+ __classPrivateFieldSet(this, _MaterialStandardData_clearcoat, value, "f");
142
+ }
143
+ get clearcoatMap() {
144
+ return __classPrivateFieldGet(this, _MaterialStandardData_clearcoatMap, "f");
145
+ }
146
+ set clearcoatMap(value) {
147
+ __classPrivateFieldSet(this, _MaterialStandardData_clearcoatMap, value, "f");
148
+ }
149
+ get clearcoatNormalMap() {
150
+ return __classPrivateFieldGet(this, _MaterialStandardData_clearcoatNormalMap, "f");
151
+ }
152
+ set clearcoatNormalMap(value) {
153
+ __classPrivateFieldSet(this, _MaterialStandardData_clearcoatNormalMap, value, "f");
154
+ }
155
+ get clearcoatRoughness() {
156
+ return __classPrivateFieldGet(this, _MaterialStandardData_clearcoatRoughness, "f");
157
+ }
158
+ set clearcoatRoughness(value) {
159
+ __classPrivateFieldSet(this, _MaterialStandardData_clearcoatRoughness, value, "f");
160
+ }
161
+ get clearcoatRoughnessMap() {
162
+ return __classPrivateFieldGet(this, _MaterialStandardData_clearcoatRoughnessMap, "f");
163
+ }
164
+ set clearcoatRoughnessMap(value) {
165
+ __classPrivateFieldSet(this, _MaterialStandardData_clearcoatRoughnessMap, value, "f");
166
+ }
167
+ get displacementMap() {
168
+ return __classPrivateFieldGet(this, _MaterialStandardData_displacementMap, "f");
169
+ }
170
+ set displacementMap(value) {
171
+ __classPrivateFieldSet(this, _MaterialStandardData_displacementMap, value, "f");
172
+ }
173
+ get displacementScale() {
174
+ return __classPrivateFieldGet(this, _MaterialStandardData_displacementScale, "f");
175
+ }
176
+ set displacementScale(value) {
177
+ __classPrivateFieldSet(this, _MaterialStandardData_displacementScale, value, "f");
178
+ }
179
+ get displacementBias() {
180
+ return __classPrivateFieldGet(this, _MaterialStandardData_displacementBias, "f");
181
+ }
182
+ set displacementBias(value) {
183
+ __classPrivateFieldSet(this, _MaterialStandardData_displacementBias, value, "f");
184
+ }
185
+ get envMap() {
186
+ return __classPrivateFieldGet(this, _MaterialStandardData_envMap, "f");
187
+ }
188
+ set envMap(value) {
189
+ __classPrivateFieldSet(this, _MaterialStandardData_envMap, value, "f");
190
+ }
191
+ get ior() {
192
+ return __classPrivateFieldGet(this, _MaterialStandardData_ior, "f");
193
+ }
194
+ set ior(value) {
195
+ __classPrivateFieldSet(this, _MaterialStandardData_ior, value, "f");
196
+ }
197
+ get metalness() {
198
+ return __classPrivateFieldGet(this, _MaterialStandardData_metalness, "f");
199
+ }
200
+ set metalness(value) {
201
+ __classPrivateFieldSet(this, _MaterialStandardData_metalness, value, "f");
202
+ }
203
+ get metalnessMap() {
204
+ return __classPrivateFieldGet(this, _MaterialStandardData_metalnessMap, "f");
205
+ }
206
+ set metalnessMap(value) {
207
+ __classPrivateFieldSet(this, _MaterialStandardData_metalnessMap, value, "f");
208
+ }
209
+ get metalnessRoughnessMap() {
210
+ return __classPrivateFieldGet(this, _MaterialStandardData_metalnessRoughnessMap, "f");
211
+ }
212
+ set metalnessRoughnessMap(value) {
213
+ __classPrivateFieldSet(this, _MaterialStandardData_metalnessRoughnessMap, value, "f");
214
+ }
215
+ get roughness() {
216
+ return __classPrivateFieldGet(this, _MaterialStandardData_roughness, "f");
217
+ }
218
+ set roughness(value) {
219
+ __classPrivateFieldSet(this, _MaterialStandardData_roughness, value, "f");
220
+ }
221
+ get roughnessMap() {
222
+ return __classPrivateFieldGet(this, _MaterialStandardData_roughnessMap, "f");
223
+ }
224
+ set roughnessMap(value) {
225
+ __classPrivateFieldSet(this, _MaterialStandardData_roughnessMap, value, "f");
226
+ }
227
+ get sheen() {
228
+ return __classPrivateFieldGet(this, _MaterialStandardData_sheen, "f");
229
+ }
230
+ set sheen(value) {
231
+ __classPrivateFieldSet(this, _MaterialStandardData_sheen, value, "f");
232
+ }
233
+ get sheenColor() {
234
+ return __classPrivateFieldGet(this, _MaterialStandardData_sheenColor, "f");
235
+ }
236
+ set sheenColor(value) {
237
+ __classPrivateFieldSet(this, _MaterialStandardData_sheenColor, value, "f");
238
+ }
239
+ get sheenColorMap() {
240
+ return __classPrivateFieldGet(this, _MaterialStandardData_sheenColorMap, "f");
241
+ }
242
+ set sheenColorMap(value) {
243
+ __classPrivateFieldSet(this, _MaterialStandardData_sheenColorMap, value, "f");
244
+ }
245
+ get sheenRoughness() {
246
+ return __classPrivateFieldGet(this, _MaterialStandardData_sheenRoughness, "f");
247
+ }
248
+ set sheenRoughness(value) {
249
+ __classPrivateFieldSet(this, _MaterialStandardData_sheenRoughness, value, "f");
250
+ }
251
+ get sheenRoughnessMap() {
252
+ return __classPrivateFieldGet(this, _MaterialStandardData_sheenRoughnessMap, "f");
253
+ }
254
+ set sheenRoughnessMap(value) {
255
+ __classPrivateFieldSet(this, _MaterialStandardData_sheenRoughnessMap, value, "f");
256
+ }
257
+ get specularColor() {
258
+ return __classPrivateFieldGet(this, _MaterialStandardData_specularColor, "f");
259
+ }
260
+ set specularColor(value) {
261
+ __classPrivateFieldSet(this, _MaterialStandardData_specularColor, value, "f");
262
+ }
263
+ get specularColorMap() {
264
+ return __classPrivateFieldGet(this, _MaterialStandardData_specularColorMap, "f");
265
+ }
266
+ set specularColorMap(value) {
267
+ __classPrivateFieldSet(this, _MaterialStandardData_specularColorMap, value, "f");
268
+ }
269
+ get specularIntensity() {
270
+ return __classPrivateFieldGet(this, _MaterialStandardData_specularIntensity, "f");
271
+ }
272
+ set specularIntensity(value) {
273
+ __classPrivateFieldSet(this, _MaterialStandardData_specularIntensity, value, "f");
274
+ }
275
+ get specularIntensityMap() {
276
+ return __classPrivateFieldGet(this, _MaterialStandardData_specularIntensityMap, "f");
277
+ }
278
+ set specularIntensityMap(value) {
279
+ __classPrivateFieldSet(this, _MaterialStandardData_specularIntensityMap, value, "f");
280
+ }
281
+ get thickness() {
282
+ return __classPrivateFieldGet(this, _MaterialStandardData_thickness, "f");
283
+ }
284
+ set thickness(value) {
285
+ __classPrivateFieldSet(this, _MaterialStandardData_thickness, value, "f");
286
+ }
287
+ get thicknessMap() {
288
+ return __classPrivateFieldGet(this, _MaterialStandardData_thicknessMap, "f");
289
+ }
290
+ set thicknessMap(value) {
291
+ __classPrivateFieldSet(this, _MaterialStandardData_thicknessMap, value, "f");
292
+ }
293
+ get transmission() {
294
+ return __classPrivateFieldGet(this, _MaterialStandardData_transmission, "f");
295
+ }
296
+ set transmission(value) {
297
+ __classPrivateFieldSet(this, _MaterialStandardData_transmission, value, "f");
298
+ }
299
+ get transmissionMap() {
300
+ return __classPrivateFieldGet(this, _MaterialStandardData_transmissionMap, "f");
301
+ }
302
+ set transmissionMap(value) {
303
+ __classPrivateFieldSet(this, _MaterialStandardData_transmissionMap, value, "f");
304
+ }
305
+ // #endregion Public Accessors (52)
306
+ // #region Public Methods (1)
307
+ reset() {
308
+ this.alphaCutoff = 0;
309
+ this.alphaMap = undefined;
310
+ this.alphaMode = viewer_shared_types_1.MATERIAL_ALPHA.OPAQUE;
311
+ this.aoMap = undefined;
312
+ this.aoMapIntensity = 1.0;
313
+ this.bumpMap = undefined;
314
+ this.bumpScale = 1.0;
315
+ this.color = "#ffffff";
316
+ this.depthTest = undefined;
317
+ this.depthWrite = undefined;
318
+ this.emissiveMap = undefined;
319
+ this.emissiveness = "#000000";
320
+ this.materialOutput = false;
321
+ this.map = undefined;
322
+ this.normalMap = undefined;
323
+ this.normalScale = 1.0;
324
+ this.opacity = 1.0;
325
+ this.shading = viewer_shared_types_1.MATERIAL_SHADING.SMOOTH;
326
+ this.side = viewer_shared_types_1.MATERIAL_SIDE.DOUBLE;
327
+ this.transparent = undefined;
328
+ this.attenuationColor = "#ffffff";
329
+ this.attenuationDistance = Infinity;
330
+ this.clearcoat = 0;
331
+ this.clearcoatMap = undefined;
332
+ this.clearcoatNormalMap = undefined;
333
+ this.clearcoatRoughness = 0;
334
+ this.clearcoatRoughnessMap = undefined;
335
+ this.displacementMap = undefined;
336
+ this.displacementScale = 1;
337
+ this.displacementBias = 0;
338
+ this.envMap = undefined;
339
+ this.ior = 1;
340
+ this.metalness = 0;
341
+ this.metalnessMap = undefined;
342
+ this.metalnessRoughnessMap = undefined;
343
+ this.roughness = 0.5;
344
+ this.roughnessMap = undefined;
345
+ this.sheen = 0;
346
+ this.sheenColor = "#ffffff";
347
+ this.sheenColorMap = undefined;
348
+ this.sheenRoughness = 0;
349
+ this.sheenRoughnessMap = undefined;
350
+ this.specularColor = "#ffffff";
351
+ this.specularColorMap = undefined;
352
+ this.specularIntensity = 1;
353
+ this.specularIntensityMap = undefined;
354
+ this.thickness = 0.1;
355
+ this.thicknessMap = undefined;
356
+ this.transmission = 0;
357
+ this.transmissionMap = undefined;
358
+ }
359
+ clone() {
360
+ return new MaterialStandardData({
361
+ alphaMap: this.alphaMap,
362
+ alphaCutoff: this.alphaCutoff,
363
+ alphaMode: this.alphaMode,
364
+ aoMap: this.aoMap,
365
+ aoMapIntensity: this.aoMapIntensity,
366
+ bumpMap: this.bumpMap,
367
+ bumpScale: this.bumpScale,
368
+ color: this.color,
369
+ depthTest: this.depthTest,
370
+ depthWrite: this.depthWrite,
371
+ emissiveMap: this.emissiveMap,
372
+ emissiveness: this.emissiveness,
373
+ shading: this.shading,
374
+ map: this.map,
375
+ metalness: this.metalness,
376
+ metalnessMap: this.metalnessMap,
377
+ metalnessRoughnessMap: this.metalnessRoughnessMap,
378
+ name: this.name,
379
+ normalMap: this.normalMap,
380
+ normalScale: this.normalScale,
381
+ opacity: this.opacity,
382
+ roughness: this.roughness,
383
+ roughnessMap: this.roughnessMap,
384
+ side: this.side,
385
+ transparent: this.transparent,
386
+ clearcoat: this.clearcoat,
387
+ clearcoatMap: this.clearcoatMap,
388
+ clearcoatNormalMap: this.clearcoatNormalMap,
389
+ clearcoatRoughness: this.clearcoatRoughness,
390
+ clearcoatRoughnessMap: this.clearcoatRoughnessMap,
391
+ displacementMap: this.displacementMap,
392
+ displacementScale: this.displacementScale,
393
+ displacementBias: this.displacementBias,
394
+ envMap: this.envMap,
395
+ ior: this.ior,
396
+ transmission: this.transmission,
397
+ transmissionMap: this.transmissionMap,
398
+ thickness: this.thickness,
399
+ thicknessMap: this.thicknessMap,
400
+ attenuationDistance: this.attenuationDistance,
401
+ attenuationColor: this.attenuationColor,
402
+ sheen: this.sheen,
403
+ sheenColor: this.sheenColor,
404
+ sheenColorMap: this.sheenColorMap,
405
+ sheenRoughness: this.sheenRoughness,
406
+ sheenRoughnessMap: this.sheenRoughnessMap,
407
+ specularColor: this.specularColor,
408
+ specularColorMap: this.specularColorMap,
409
+ specularIntensity: this.specularIntensity,
410
+ specularIntensityMap: this.specularIntensityMap,
411
+ }, this.id, this.version);
412
+ }
413
+ copy(source) {
414
+ this.alphaCutoff = source.alphaCutoff;
415
+ this.alphaMap = source.alphaMap;
416
+ this.alphaMode = source.alphaMode;
417
+ this.aoMap = source.aoMap;
418
+ this.aoMapIntensity = source.aoMapIntensity;
419
+ this.bumpMap = source.bumpMap;
420
+ this.bumpScale = source.bumpScale;
421
+ this.color = source.color;
422
+ this.depthTest = source.depthTest;
423
+ this.depthWrite = source.depthWrite;
424
+ this.emissiveMap = source.emissiveMap;
425
+ this.emissiveness = source.emissiveness;
426
+ this.materialOutput = source.materialOutput;
427
+ this.map = source.map;
428
+ this.normalMap = source.normalMap;
429
+ this.normalScale = source.normalScale;
430
+ this.opacity = source.opacity;
431
+ this.shading = source.shading;
432
+ this.side = source.side;
433
+ this.transparent = source.transparent;
434
+ this.attenuationColor = source.attenuationColor;
435
+ this.attenuationDistance = source.attenuationDistance;
436
+ this.clearcoat = source.clearcoat;
437
+ this.clearcoatMap = source.clearcoatMap;
438
+ this.clearcoatNormalMap = source.clearcoatNormalMap;
439
+ this.clearcoatRoughness = source.clearcoatRoughness;
440
+ this.clearcoatRoughnessMap = source.clearcoatRoughnessMap;
441
+ this.displacementMap = source.displacementMap;
442
+ this.displacementScale = source.displacementScale;
443
+ this.displacementBias = source.displacementBias;
444
+ this.envMap = source.envMap;
445
+ this.ior = source.ior;
446
+ this.metalness = source.metalness;
447
+ this.metalnessMap = source.metalnessMap;
448
+ this.metalnessRoughnessMap = source.metalnessRoughnessMap;
449
+ this.roughness = source.roughness;
450
+ this.roughnessMap = source.roughnessMap;
451
+ this.sheen = source.sheen;
452
+ this.sheenColor = source.sheenColor;
453
+ this.sheenColorMap = source.sheenColorMap;
454
+ this.sheenRoughness = source.sheenRoughness;
455
+ this.sheenRoughnessMap = source.sheenRoughnessMap;
456
+ this.specularColor = source.specularColor;
457
+ this.specularColorMap = source.specularColorMap;
458
+ this.specularIntensity = source.specularIntensity;
459
+ this.specularIntensityMap = source.specularIntensityMap;
460
+ this.thickness = source.thickness;
461
+ this.thicknessMap = source.thicknessMap;
462
+ this.transmission = source.transmission;
463
+ this.transmissionMap = source.transmissionMap;
464
+ }
465
+ }
466
+ exports.MaterialStandardData = MaterialStandardData;
467
+ _MaterialStandardData_attenuationColor = new WeakMap(), _MaterialStandardData_attenuationDistance = new WeakMap(), _MaterialStandardData_clearcoat = new WeakMap(), _MaterialStandardData_clearcoatMap = new WeakMap(), _MaterialStandardData_clearcoatNormalMap = new WeakMap(), _MaterialStandardData_clearcoatRoughness = new WeakMap(), _MaterialStandardData_clearcoatRoughnessMap = new WeakMap(), _MaterialStandardData_displacementMap = new WeakMap(), _MaterialStandardData_displacementScale = new WeakMap(), _MaterialStandardData_displacementBias = new WeakMap(), _MaterialStandardData_envMap = new WeakMap(), _MaterialStandardData_ior = new WeakMap(), _MaterialStandardData_metalness = new WeakMap(), _MaterialStandardData_metalnessMap = new WeakMap(), _MaterialStandardData_metalnessRoughnessMap = new WeakMap(), _MaterialStandardData_roughness = new WeakMap(), _MaterialStandardData_roughnessMap = new WeakMap(), _MaterialStandardData_sheen = new WeakMap(), _MaterialStandardData_sheenColor = new WeakMap(), _MaterialStandardData_sheenColorMap = new WeakMap(), _MaterialStandardData_sheenRoughness = new WeakMap(), _MaterialStandardData_sheenRoughnessMap = new WeakMap(), _MaterialStandardData_specularColor = new WeakMap(), _MaterialStandardData_specularColorMap = new WeakMap(), _MaterialStandardData_specularIntensity = new WeakMap(), _MaterialStandardData_specularIntensityMap = new WeakMap(), _MaterialStandardData_thickness = new WeakMap(), _MaterialStandardData_thicknessMap = new WeakMap(), _MaterialStandardData_transmission = new WeakMap(), _MaterialStandardData_transmissionMap = new WeakMap();
468
468
  //# sourceMappingURL=MaterialStandardData.js.map