@shapediver/viewer.shared.node-tree 3.16.8 → 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,191 +1,191 @@
1
- "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- 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");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
- };
8
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
- 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");
11
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
- };
13
- var _MapData_asData, _MapData_blob, _MapData_center, _MapData_color, _MapData_data, _MapData_flipY, _MapData_image, _MapData_magFilter, _MapData_minFilter, _MapData_offset, _MapData_repeat, _MapData_rotation, _MapData_texCoord, _MapData_wrapS, _MapData_wrapT;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.MapData = void 0;
16
- const viewer_shared_types_1 = require("@shapediver/viewer.shared.types");
17
- const gl_matrix_1 = require("gl-matrix");
18
- const AbstractTreeNodeData_1 = require("../AbstractTreeNodeData");
19
- class MapData extends AbstractTreeNodeData_1.AbstractTreeNodeData {
20
- // #endregion Properties (15)
21
- // #region Constructors (1)
22
- constructor(image, properties, id, version) {
23
- super(id, version);
24
- // #region Properties (15)
25
- _MapData_asData.set(this, false);
26
- _MapData_blob.set(this, void 0);
27
- _MapData_center.set(this, gl_matrix_1.vec2.fromValues(0, 0));
28
- _MapData_color.set(this, void 0);
29
- _MapData_data.set(this, void 0);
30
- _MapData_flipY.set(this, true);
31
- _MapData_image.set(this, void 0);
32
- _MapData_magFilter.set(this, viewer_shared_types_1.TEXTURE_FILTERING.NONE);
33
- _MapData_minFilter.set(this, viewer_shared_types_1.TEXTURE_FILTERING.NONE);
34
- _MapData_offset.set(this, gl_matrix_1.vec2.fromValues(0, 0));
35
- _MapData_repeat.set(this, gl_matrix_1.vec2.fromValues(1, 1));
36
- _MapData_rotation.set(this, 0);
37
- _MapData_texCoord.set(this, void 0);
38
- _MapData_wrapS.set(this, viewer_shared_types_1.TEXTURE_WRAPPING.REPEAT);
39
- _MapData_wrapT.set(this, viewer_shared_types_1.TEXTURE_WRAPPING.REPEAT);
40
- __classPrivateFieldSet(this, _MapData_image, image, "f");
41
- __classPrivateFieldSet(this, _MapData_asData, properties && properties.asData !== undefined
42
- ? properties.asData
43
- : false, "f");
44
- __classPrivateFieldSet(this, _MapData_data, properties ? properties.data : undefined, "f");
45
- __classPrivateFieldSet(this, _MapData_blob, properties ? properties.blob : undefined, "f");
46
- __classPrivateFieldSet(this, _MapData_wrapS, properties && properties.wrapS !== undefined
47
- ? properties.wrapS
48
- : viewer_shared_types_1.TEXTURE_WRAPPING.REPEAT, "f");
49
- __classPrivateFieldSet(this, _MapData_wrapT, properties && properties.wrapT !== undefined
50
- ? properties.wrapT
51
- : viewer_shared_types_1.TEXTURE_WRAPPING.REPEAT, "f");
52
- __classPrivateFieldSet(this, _MapData_minFilter, properties && properties.minFilter !== undefined
53
- ? properties.minFilter
54
- : viewer_shared_types_1.TEXTURE_FILTERING.NONE, "f");
55
- __classPrivateFieldSet(this, _MapData_magFilter, properties && properties.magFilter !== undefined
56
- ? properties.magFilter
57
- : viewer_shared_types_1.TEXTURE_FILTERING.NONE, "f");
58
- __classPrivateFieldSet(this, _MapData_center, properties && properties.center !== undefined
59
- ? properties.center
60
- : gl_matrix_1.vec2.fromValues(0, 0), "f");
61
- __classPrivateFieldSet(this, _MapData_color, properties ? properties.color : undefined, "f");
62
- __classPrivateFieldSet(this, _MapData_offset, properties && properties.offset !== undefined
63
- ? properties.offset
64
- : gl_matrix_1.vec2.fromValues(0, 0), "f");
65
- __classPrivateFieldSet(this, _MapData_repeat, properties && properties.repeat !== undefined
66
- ? properties.repeat
67
- : gl_matrix_1.vec2.fromValues(1, 1), "f");
68
- __classPrivateFieldSet(this, _MapData_rotation, properties && properties.rotation !== undefined
69
- ? properties.rotation
70
- : 0, "f");
71
- __classPrivateFieldSet(this, _MapData_texCoord, properties ? properties.texCoord : undefined, "f");
72
- __classPrivateFieldSet(this, _MapData_flipY, properties && properties.flipY !== undefined
73
- ? properties.flipY
74
- : true, "f");
75
- }
76
- // #endregion Constructors (1)
77
- // #region Public Getters And Setters (30)
78
- get asData() {
79
- return __classPrivateFieldGet(this, _MapData_asData, "f");
80
- }
81
- set asData(value) {
82
- __classPrivateFieldSet(this, _MapData_asData, value, "f");
83
- }
84
- get blob() {
85
- return __classPrivateFieldGet(this, _MapData_blob, "f");
86
- }
87
- set blob(value) {
88
- __classPrivateFieldSet(this, _MapData_blob, value, "f");
89
- }
90
- get center() {
91
- return __classPrivateFieldGet(this, _MapData_center, "f");
92
- }
93
- set center(value) {
94
- __classPrivateFieldSet(this, _MapData_center, value, "f");
95
- }
96
- get color() {
97
- return __classPrivateFieldGet(this, _MapData_color, "f");
98
- }
99
- set color(value) {
100
- __classPrivateFieldSet(this, _MapData_color, value, "f");
101
- }
102
- get data() {
103
- return __classPrivateFieldGet(this, _MapData_data, "f");
104
- }
105
- set data(value) {
106
- __classPrivateFieldSet(this, _MapData_data, value, "f");
107
- }
108
- get flipY() {
109
- return __classPrivateFieldGet(this, _MapData_flipY, "f");
110
- }
111
- set flipY(value) {
112
- __classPrivateFieldSet(this, _MapData_flipY, value, "f");
113
- }
114
- get image() {
115
- return __classPrivateFieldGet(this, _MapData_image, "f");
116
- }
117
- set image(value) {
118
- __classPrivateFieldSet(this, _MapData_image, value, "f");
119
- }
120
- get magFilter() {
121
- return __classPrivateFieldGet(this, _MapData_magFilter, "f");
122
- }
123
- set magFilter(value) {
124
- __classPrivateFieldSet(this, _MapData_magFilter, value, "f");
125
- }
126
- get minFilter() {
127
- return __classPrivateFieldGet(this, _MapData_minFilter, "f");
128
- }
129
- set minFilter(value) {
130
- __classPrivateFieldSet(this, _MapData_minFilter, value, "f");
131
- }
132
- get offset() {
133
- return __classPrivateFieldGet(this, _MapData_offset, "f");
134
- }
135
- set offset(value) {
136
- __classPrivateFieldSet(this, _MapData_offset, value, "f");
137
- }
138
- get repeat() {
139
- return __classPrivateFieldGet(this, _MapData_repeat, "f");
140
- }
141
- set repeat(value) {
142
- __classPrivateFieldSet(this, _MapData_repeat, value, "f");
143
- }
144
- get rotation() {
145
- return __classPrivateFieldGet(this, _MapData_rotation, "f");
146
- }
147
- set rotation(value) {
148
- __classPrivateFieldSet(this, _MapData_rotation, value, "f");
149
- }
150
- get texCoord() {
151
- return __classPrivateFieldGet(this, _MapData_texCoord, "f");
152
- }
153
- set texCoord(value) {
154
- __classPrivateFieldSet(this, _MapData_texCoord, value, "f");
155
- }
156
- get wrapS() {
157
- return __classPrivateFieldGet(this, _MapData_wrapS, "f");
158
- }
159
- set wrapS(value) {
160
- __classPrivateFieldSet(this, _MapData_wrapS, value, "f");
161
- }
162
- get wrapT() {
163
- return __classPrivateFieldGet(this, _MapData_wrapT, "f");
164
- }
165
- set wrapT(value) {
166
- __classPrivateFieldSet(this, _MapData_wrapT, value, "f");
167
- }
168
- // #endregion Public Getters And Setters (30)
169
- // #region Public Methods (1)
170
- clone() {
171
- return new MapData(this.image, {
172
- asData: this.asData,
173
- data: this.data,
174
- blob: this.blob,
175
- wrapS: this.wrapS,
176
- wrapT: this.wrapT,
177
- minFilter: this.minFilter,
178
- magFilter: this.magFilter,
179
- center: this.center,
180
- color: this.color,
181
- offset: this.offset,
182
- repeat: this.repeat,
183
- rotation: this.rotation,
184
- texCoord: this.texCoord,
185
- flipY: this.flipY,
186
- }, this.id, this.version);
187
- }
188
- }
189
- exports.MapData = MapData;
190
- _MapData_asData = new WeakMap(), _MapData_blob = new WeakMap(), _MapData_center = new WeakMap(), _MapData_color = new WeakMap(), _MapData_data = new WeakMap(), _MapData_flipY = new WeakMap(), _MapData_image = new WeakMap(), _MapData_magFilter = new WeakMap(), _MapData_minFilter = new WeakMap(), _MapData_offset = new WeakMap(), _MapData_repeat = new WeakMap(), _MapData_rotation = new WeakMap(), _MapData_texCoord = new WeakMap(), _MapData_wrapS = new WeakMap(), _MapData_wrapT = new WeakMap();
1
+ "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
+ if (kind === "m") throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
+ 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");
6
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
+ };
8
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
+ 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");
11
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
+ };
13
+ var _MapData_asData, _MapData_blob, _MapData_center, _MapData_color, _MapData_data, _MapData_flipY, _MapData_image, _MapData_magFilter, _MapData_minFilter, _MapData_offset, _MapData_repeat, _MapData_rotation, _MapData_texCoord, _MapData_wrapS, _MapData_wrapT;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.MapData = void 0;
16
+ const viewer_shared_types_1 = require("@shapediver/viewer.shared.types");
17
+ const gl_matrix_1 = require("gl-matrix");
18
+ const AbstractTreeNodeData_1 = require("../AbstractTreeNodeData");
19
+ class MapData extends AbstractTreeNodeData_1.AbstractTreeNodeData {
20
+ // #endregion Properties (15)
21
+ // #region Constructors (1)
22
+ constructor(image, properties, id, version) {
23
+ super(id, version);
24
+ // #region Properties (15)
25
+ _MapData_asData.set(this, false);
26
+ _MapData_blob.set(this, void 0);
27
+ _MapData_center.set(this, gl_matrix_1.vec2.fromValues(0, 0));
28
+ _MapData_color.set(this, void 0);
29
+ _MapData_data.set(this, void 0);
30
+ _MapData_flipY.set(this, true);
31
+ _MapData_image.set(this, void 0);
32
+ _MapData_magFilter.set(this, viewer_shared_types_1.TEXTURE_FILTERING.NONE);
33
+ _MapData_minFilter.set(this, viewer_shared_types_1.TEXTURE_FILTERING.NONE);
34
+ _MapData_offset.set(this, gl_matrix_1.vec2.fromValues(0, 0));
35
+ _MapData_repeat.set(this, gl_matrix_1.vec2.fromValues(1, 1));
36
+ _MapData_rotation.set(this, 0);
37
+ _MapData_texCoord.set(this, void 0);
38
+ _MapData_wrapS.set(this, viewer_shared_types_1.TEXTURE_WRAPPING.REPEAT);
39
+ _MapData_wrapT.set(this, viewer_shared_types_1.TEXTURE_WRAPPING.REPEAT);
40
+ __classPrivateFieldSet(this, _MapData_image, image, "f");
41
+ __classPrivateFieldSet(this, _MapData_asData, properties && properties.asData !== undefined
42
+ ? properties.asData
43
+ : false, "f");
44
+ __classPrivateFieldSet(this, _MapData_data, properties ? properties.data : undefined, "f");
45
+ __classPrivateFieldSet(this, _MapData_blob, properties ? properties.blob : undefined, "f");
46
+ __classPrivateFieldSet(this, _MapData_wrapS, properties && properties.wrapS !== undefined
47
+ ? properties.wrapS
48
+ : viewer_shared_types_1.TEXTURE_WRAPPING.REPEAT, "f");
49
+ __classPrivateFieldSet(this, _MapData_wrapT, properties && properties.wrapT !== undefined
50
+ ? properties.wrapT
51
+ : viewer_shared_types_1.TEXTURE_WRAPPING.REPEAT, "f");
52
+ __classPrivateFieldSet(this, _MapData_minFilter, properties && properties.minFilter !== undefined
53
+ ? properties.minFilter
54
+ : viewer_shared_types_1.TEXTURE_FILTERING.NONE, "f");
55
+ __classPrivateFieldSet(this, _MapData_magFilter, properties && properties.magFilter !== undefined
56
+ ? properties.magFilter
57
+ : viewer_shared_types_1.TEXTURE_FILTERING.NONE, "f");
58
+ __classPrivateFieldSet(this, _MapData_center, properties && properties.center !== undefined
59
+ ? properties.center
60
+ : gl_matrix_1.vec2.fromValues(0, 0), "f");
61
+ __classPrivateFieldSet(this, _MapData_color, properties ? properties.color : undefined, "f");
62
+ __classPrivateFieldSet(this, _MapData_offset, properties && properties.offset !== undefined
63
+ ? properties.offset
64
+ : gl_matrix_1.vec2.fromValues(0, 0), "f");
65
+ __classPrivateFieldSet(this, _MapData_repeat, properties && properties.repeat !== undefined
66
+ ? properties.repeat
67
+ : gl_matrix_1.vec2.fromValues(1, 1), "f");
68
+ __classPrivateFieldSet(this, _MapData_rotation, properties && properties.rotation !== undefined
69
+ ? properties.rotation
70
+ : 0, "f");
71
+ __classPrivateFieldSet(this, _MapData_texCoord, properties ? properties.texCoord : undefined, "f");
72
+ __classPrivateFieldSet(this, _MapData_flipY, properties && properties.flipY !== undefined
73
+ ? properties.flipY
74
+ : true, "f");
75
+ }
76
+ // #endregion Constructors (1)
77
+ // #region Public Getters And Setters (30)
78
+ get asData() {
79
+ return __classPrivateFieldGet(this, _MapData_asData, "f");
80
+ }
81
+ set asData(value) {
82
+ __classPrivateFieldSet(this, _MapData_asData, value, "f");
83
+ }
84
+ get blob() {
85
+ return __classPrivateFieldGet(this, _MapData_blob, "f");
86
+ }
87
+ set blob(value) {
88
+ __classPrivateFieldSet(this, _MapData_blob, value, "f");
89
+ }
90
+ get center() {
91
+ return __classPrivateFieldGet(this, _MapData_center, "f");
92
+ }
93
+ set center(value) {
94
+ __classPrivateFieldSet(this, _MapData_center, value, "f");
95
+ }
96
+ get color() {
97
+ return __classPrivateFieldGet(this, _MapData_color, "f");
98
+ }
99
+ set color(value) {
100
+ __classPrivateFieldSet(this, _MapData_color, value, "f");
101
+ }
102
+ get data() {
103
+ return __classPrivateFieldGet(this, _MapData_data, "f");
104
+ }
105
+ set data(value) {
106
+ __classPrivateFieldSet(this, _MapData_data, value, "f");
107
+ }
108
+ get flipY() {
109
+ return __classPrivateFieldGet(this, _MapData_flipY, "f");
110
+ }
111
+ set flipY(value) {
112
+ __classPrivateFieldSet(this, _MapData_flipY, value, "f");
113
+ }
114
+ get image() {
115
+ return __classPrivateFieldGet(this, _MapData_image, "f");
116
+ }
117
+ set image(value) {
118
+ __classPrivateFieldSet(this, _MapData_image, value, "f");
119
+ }
120
+ get magFilter() {
121
+ return __classPrivateFieldGet(this, _MapData_magFilter, "f");
122
+ }
123
+ set magFilter(value) {
124
+ __classPrivateFieldSet(this, _MapData_magFilter, value, "f");
125
+ }
126
+ get minFilter() {
127
+ return __classPrivateFieldGet(this, _MapData_minFilter, "f");
128
+ }
129
+ set minFilter(value) {
130
+ __classPrivateFieldSet(this, _MapData_minFilter, value, "f");
131
+ }
132
+ get offset() {
133
+ return __classPrivateFieldGet(this, _MapData_offset, "f");
134
+ }
135
+ set offset(value) {
136
+ __classPrivateFieldSet(this, _MapData_offset, value, "f");
137
+ }
138
+ get repeat() {
139
+ return __classPrivateFieldGet(this, _MapData_repeat, "f");
140
+ }
141
+ set repeat(value) {
142
+ __classPrivateFieldSet(this, _MapData_repeat, value, "f");
143
+ }
144
+ get rotation() {
145
+ return __classPrivateFieldGet(this, _MapData_rotation, "f");
146
+ }
147
+ set rotation(value) {
148
+ __classPrivateFieldSet(this, _MapData_rotation, value, "f");
149
+ }
150
+ get texCoord() {
151
+ return __classPrivateFieldGet(this, _MapData_texCoord, "f");
152
+ }
153
+ set texCoord(value) {
154
+ __classPrivateFieldSet(this, _MapData_texCoord, value, "f");
155
+ }
156
+ get wrapS() {
157
+ return __classPrivateFieldGet(this, _MapData_wrapS, "f");
158
+ }
159
+ set wrapS(value) {
160
+ __classPrivateFieldSet(this, _MapData_wrapS, value, "f");
161
+ }
162
+ get wrapT() {
163
+ return __classPrivateFieldGet(this, _MapData_wrapT, "f");
164
+ }
165
+ set wrapT(value) {
166
+ __classPrivateFieldSet(this, _MapData_wrapT, value, "f");
167
+ }
168
+ // #endregion Public Getters And Setters (30)
169
+ // #region Public Methods (1)
170
+ clone() {
171
+ return new MapData(this.image, {
172
+ asData: this.asData,
173
+ data: this.data,
174
+ blob: this.blob,
175
+ wrapS: this.wrapS,
176
+ wrapT: this.wrapT,
177
+ minFilter: this.minFilter,
178
+ magFilter: this.magFilter,
179
+ center: this.center,
180
+ color: this.color,
181
+ offset: this.offset,
182
+ repeat: this.repeat,
183
+ rotation: this.rotation,
184
+ texCoord: this.texCoord,
185
+ flipY: this.flipY,
186
+ }, this.id, this.version);
187
+ }
188
+ }
189
+ exports.MapData = MapData;
190
+ _MapData_asData = new WeakMap(), _MapData_blob = new WeakMap(), _MapData_center = new WeakMap(), _MapData_color = new WeakMap(), _MapData_data = new WeakMap(), _MapData_flipY = new WeakMap(), _MapData_image = new WeakMap(), _MapData_magFilter = new WeakMap(), _MapData_minFilter = new WeakMap(), _MapData_offset = new WeakMap(), _MapData_repeat = new WeakMap(), _MapData_rotation = new WeakMap(), _MapData_texCoord = new WeakMap(), _MapData_wrapS = new WeakMap(), _MapData_wrapT = new WeakMap();
191
191
  //# sourceMappingURL=MapData.js.map
@@ -1,15 +1,15 @@
1
- import { IMaterialBasicLineData, IMaterialBasicLineDataProperties } from "@shapediver/viewer.shared.types";
2
- import { AbstractMaterialData } from "./AbstractMaterialData";
3
- export declare class MaterialBasicLineData extends AbstractMaterialData implements IMaterialBasicLineData {
4
- /**
5
- * Creates a material data object.
6
- *
7
- * @param _attributes the attributes of the material
8
- * @param id the id
9
- */
10
- constructor(properties?: IMaterialBasicLineDataProperties, id?: string, version?: string);
11
- clone(): IMaterialBasicLineData;
12
- copy(source: MaterialBasicLineData): void;
13
- reset(): void;
14
- }
1
+ import { IMaterialBasicLineData, IMaterialBasicLineDataProperties } from "@shapediver/viewer.shared.types";
2
+ import { AbstractMaterialData } from "./AbstractMaterialData";
3
+ export declare class MaterialBasicLineData extends AbstractMaterialData implements IMaterialBasicLineData {
4
+ /**
5
+ * Creates a material data object.
6
+ *
7
+ * @param _attributes the attributes of the material
8
+ * @param id the id
9
+ */
10
+ constructor(properties?: IMaterialBasicLineDataProperties, id?: string, version?: string);
11
+ clone(): IMaterialBasicLineData;
12
+ copy(source: MaterialBasicLineData): void;
13
+ reset(): void;
14
+ }
15
15
  //# sourceMappingURL=MaterialBasicLineData.d.ts.map
@@ -1,91 +1,91 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MaterialBasicLineData = void 0;
4
- const viewer_shared_types_1 = require("@shapediver/viewer.shared.types");
5
- const AbstractMaterialData_1 = require("./AbstractMaterialData");
6
- class MaterialBasicLineData extends AbstractMaterialData_1.AbstractMaterialData {
7
- // #region Constructors (1)
8
- /**
9
- * Creates a material data object.
10
- *
11
- * @param _attributes the attributes of the material
12
- * @param id the id
13
- */
14
- constructor(properties, id, version) {
15
- super(properties, id, version);
16
- if (!properties)
17
- return;
18
- }
19
- // #endregion Constructors (1)
20
- // #region Public Methods (3)
21
- clone() {
22
- return new MaterialBasicLineData({
23
- alphaMap: this.alphaMap,
24
- alphaCutoff: this.alphaCutoff,
25
- alphaMode: this.alphaMode,
26
- aoMap: this.aoMap,
27
- aoMapIntensity: this.aoMapIntensity,
28
- bumpMap: this.bumpMap,
29
- bumpScale: this.bumpScale,
30
- color: this.color,
31
- depthTest: this.depthTest,
32
- depthWrite: this.depthWrite,
33
- emissiveMap: this.emissiveMap,
34
- emissiveness: this.emissiveness,
35
- shading: this.shading,
36
- map: this.map,
37
- name: this.name,
38
- normalMap: this.normalMap,
39
- normalScale: this.normalScale,
40
- opacity: this.opacity,
41
- side: this.side,
42
- transparent: this.transparent,
43
- }, this.id, this.version);
44
- }
45
- copy(source) {
46
- this.alphaCutoff = source.alphaCutoff;
47
- this.alphaMap = source.alphaMap;
48
- this.alphaMode = source.alphaMode;
49
- this.aoMap = source.aoMap;
50
- this.aoMapIntensity = source.aoMapIntensity;
51
- this.bumpMap = source.bumpMap;
52
- this.bumpScale = source.bumpScale;
53
- this.color = source.color;
54
- this.depthTest = source.depthTest;
55
- this.depthWrite = source.depthWrite;
56
- this.emissiveMap = source.emissiveMap;
57
- this.emissiveness = source.emissiveness;
58
- this.materialOutput = source.materialOutput;
59
- this.map = source.map;
60
- this.normalMap = source.normalMap;
61
- this.normalScale = source.normalScale;
62
- this.opacity = source.opacity;
63
- this.shading = source.shading;
64
- this.side = source.side;
65
- this.transparent = source.transparent;
66
- }
67
- reset() {
68
- this.alphaCutoff = 0;
69
- this.alphaMap = undefined;
70
- this.alphaMode = viewer_shared_types_1.MATERIAL_ALPHA.OPAQUE;
71
- this.aoMap = undefined;
72
- this.aoMapIntensity = 1.0;
73
- this.bumpMap = undefined;
74
- this.bumpScale = 1.0;
75
- this.color = "#ffffff";
76
- this.depthTest = undefined;
77
- this.depthWrite = undefined;
78
- this.emissiveMap = undefined;
79
- this.emissiveness = "#000000";
80
- this.materialOutput = false;
81
- this.map = undefined;
82
- this.normalMap = undefined;
83
- this.normalScale = 1.0;
84
- this.opacity = 1.0;
85
- this.shading = viewer_shared_types_1.MATERIAL_SHADING.SMOOTH;
86
- this.side = viewer_shared_types_1.MATERIAL_SIDE.DOUBLE;
87
- this.transparent = undefined;
88
- }
89
- }
90
- exports.MaterialBasicLineData = MaterialBasicLineData;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MaterialBasicLineData = void 0;
4
+ const viewer_shared_types_1 = require("@shapediver/viewer.shared.types");
5
+ const AbstractMaterialData_1 = require("./AbstractMaterialData");
6
+ class MaterialBasicLineData extends AbstractMaterialData_1.AbstractMaterialData {
7
+ // #region Constructors (1)
8
+ /**
9
+ * Creates a material data object.
10
+ *
11
+ * @param _attributes the attributes of the material
12
+ * @param id the id
13
+ */
14
+ constructor(properties, id, version) {
15
+ super(properties, id, version);
16
+ if (!properties)
17
+ return;
18
+ }
19
+ // #endregion Constructors (1)
20
+ // #region Public Methods (3)
21
+ clone() {
22
+ return new MaterialBasicLineData({
23
+ alphaMap: this.alphaMap,
24
+ alphaCutoff: this.alphaCutoff,
25
+ alphaMode: this.alphaMode,
26
+ aoMap: this.aoMap,
27
+ aoMapIntensity: this.aoMapIntensity,
28
+ bumpMap: this.bumpMap,
29
+ bumpScale: this.bumpScale,
30
+ color: this.color,
31
+ depthTest: this.depthTest,
32
+ depthWrite: this.depthWrite,
33
+ emissiveMap: this.emissiveMap,
34
+ emissiveness: this.emissiveness,
35
+ shading: this.shading,
36
+ map: this.map,
37
+ name: this.name,
38
+ normalMap: this.normalMap,
39
+ normalScale: this.normalScale,
40
+ opacity: this.opacity,
41
+ side: this.side,
42
+ transparent: this.transparent,
43
+ }, this.id, this.version);
44
+ }
45
+ copy(source) {
46
+ this.alphaCutoff = source.alphaCutoff;
47
+ this.alphaMap = source.alphaMap;
48
+ this.alphaMode = source.alphaMode;
49
+ this.aoMap = source.aoMap;
50
+ this.aoMapIntensity = source.aoMapIntensity;
51
+ this.bumpMap = source.bumpMap;
52
+ this.bumpScale = source.bumpScale;
53
+ this.color = source.color;
54
+ this.depthTest = source.depthTest;
55
+ this.depthWrite = source.depthWrite;
56
+ this.emissiveMap = source.emissiveMap;
57
+ this.emissiveness = source.emissiveness;
58
+ this.materialOutput = source.materialOutput;
59
+ this.map = source.map;
60
+ this.normalMap = source.normalMap;
61
+ this.normalScale = source.normalScale;
62
+ this.opacity = source.opacity;
63
+ this.shading = source.shading;
64
+ this.side = source.side;
65
+ this.transparent = source.transparent;
66
+ }
67
+ reset() {
68
+ this.alphaCutoff = 0;
69
+ this.alphaMap = undefined;
70
+ this.alphaMode = viewer_shared_types_1.MATERIAL_ALPHA.OPAQUE;
71
+ this.aoMap = undefined;
72
+ this.aoMapIntensity = 1.0;
73
+ this.bumpMap = undefined;
74
+ this.bumpScale = 1.0;
75
+ this.color = "#ffffff";
76
+ this.depthTest = undefined;
77
+ this.depthWrite = undefined;
78
+ this.emissiveMap = undefined;
79
+ this.emissiveness = "#000000";
80
+ this.materialOutput = false;
81
+ this.map = undefined;
82
+ this.normalMap = undefined;
83
+ this.normalScale = 1.0;
84
+ this.opacity = 1.0;
85
+ this.shading = viewer_shared_types_1.MATERIAL_SHADING.SMOOTH;
86
+ this.side = viewer_shared_types_1.MATERIAL_SIDE.DOUBLE;
87
+ this.transparent = undefined;
88
+ }
89
+ }
90
+ exports.MaterialBasicLineData = MaterialBasicLineData;
91
91
  //# sourceMappingURL=MaterialBasicLineData.js.map