@xeokit/xeokit-sdk 2.6.78-rc2-no-las → 2.6.78

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 (78) hide show
  1. package/dist/xeokit-sdk.cjs.js +32532 -15213
  2. package/dist/xeokit-sdk.es.js +32531 -15214
  3. package/dist/xeokit-sdk.es5.js +29446 -30855
  4. package/dist/xeokit-sdk.min.cjs.js +8 -8
  5. package/dist/xeokit-sdk.min.es.js +8 -8
  6. package/dist/xeokit-sdk.min.es5.js +33 -34
  7. package/package.json +4 -7
  8. package/src/plugins/CxConverterIFCLoaderPlugin/CxConverterIFCLoaderPlugin.js +68 -68
  9. package/src/plugins/CxConverterIFCLoaderPlugin/index.js +1 -1
  10. package/src/plugins/LASLoaderPlugin/index.js +1 -1
  11. package/src/plugins/XKTLoaderPlugin/parsers/ParserV1.js +5 -5
  12. package/src/plugins/XKTLoaderPlugin/parsers/ParserV10.js +5 -5
  13. package/src/plugins/XKTLoaderPlugin/parsers/ParserV12.js +9 -9
  14. package/src/plugins/XKTLoaderPlugin/parsers/ParserV2.js +5 -5
  15. package/src/plugins/XKTLoaderPlugin/parsers/ParserV3.js +5 -5
  16. package/src/plugins/XKTLoaderPlugin/parsers/ParserV4.js +5 -5
  17. package/src/plugins/XKTLoaderPlugin/parsers/ParserV5.js +5 -5
  18. package/src/plugins/XKTLoaderPlugin/parsers/ParserV6.js +5 -5
  19. package/src/plugins/XKTLoaderPlugin/parsers/ParserV7.js +5 -5
  20. package/src/plugins/XKTLoaderPlugin/parsers/ParserV8.js +5 -5
  21. package/src/plugins/XKTLoaderPlugin/parsers/ParserV9.js +5 -5
  22. package/src/plugins/index.js +2 -2
  23. package/src/viewer/scene/Entity.js +6 -0
  24. package/src/viewer/scene/model/SceneModelEntity.js +26 -0
  25. package/src/viewer/scene/model/vbo/batching/triangles/VBOBatchingTrianglesLayer.js +44 -0
  26. package/src/viewer/scene/model/vbo/instancing/triangles/VBOInstancingTrianglesLayer.js +58 -0
  27. package/src/viewer/scene/sectionCaps/SectionCaps.js +33 -27
  28. package/src/viewer/scene/webgl/ArrayBuf.js +20 -0
  29. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +108 -26
  30. package/types/plugins/CityJSONLoaderPlugin/CityJSONLoaderPlugin.d.ts +14 -3
  31. package/types/plugins/DotBIMLoaderPlugin/DotBIMLoaderPlugin.d.ts +23 -5
  32. package/types/plugins/GLTFLoaderPlugin/GLTFLoaderPlugin.d.ts +25 -5
  33. package/types/plugins/LASLoaderPlugin/LASLoaderPlugin.d.ts +100 -20
  34. package/types/plugins/STLLoaderPlugin/STLLoaderPlugin.d.ts +14 -3
  35. package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +83 -18
  36. package/types/plugins/XKTLoaderPlugin/XKTLoaderPlugin.d.ts +106 -21
  37. package/types/viewer/Configs.d.ts +24 -6
  38. package/types/viewer/scene/CameraControl/CameraControl.d.ts +445 -66
  39. package/types/viewer/scene/Component.d.ts +1 -1
  40. package/types/viewer/scene/Entity.d.ts +191 -40
  41. package/types/viewer/scene/camera/Camera.d.ts +170 -50
  42. package/types/viewer/scene/camera/CameraFlightAnimation.d.ts +57 -8
  43. package/types/viewer/scene/camera/CameraPath.d.ts +13 -8
  44. package/types/viewer/scene/camera/CameraPathAnimation.d.ts +22 -4
  45. package/types/viewer/scene/camera/CustomProjection.d.ts +21 -6
  46. package/types/viewer/scene/camera/Frustum.d.ts +90 -18
  47. package/types/viewer/scene/camera/Ortho.d.ts +54 -14
  48. package/types/viewer/scene/camera/Perspective.d.ts +70 -16
  49. package/types/viewer/scene/geometry/ReadableGeometry.d.ts +25 -21
  50. package/types/viewer/scene/geometry/VBOGeometry.d.ts +7 -7
  51. package/types/viewer/scene/lights/AmbientLight.d.ts +26 -4
  52. package/types/viewer/scene/lights/DirLight.d.ts +52 -8
  53. package/types/viewer/scene/lights/PointLight.d.ts +93 -14
  54. package/types/viewer/scene/materials/EdgeMaterial.d.ts +37 -12
  55. package/types/viewer/scene/materials/EmphasisMaterial.d.ts +119 -22
  56. package/types/viewer/scene/materials/Fresnel.d.ts +50 -10
  57. package/types/viewer/scene/materials/LambertMaterial.d.ts +90 -16
  58. package/types/viewer/scene/materials/LinesMaterial.d.ts +25 -7
  59. package/types/viewer/scene/materials/MetallicMaterial.d.ts +127 -40
  60. package/types/viewer/scene/materials/PhongMaterial.d.ts +185 -52
  61. package/types/viewer/scene/materials/PointsMaterial.d.ts +101 -20
  62. package/types/viewer/scene/materials/SpecularMaterial.d.ts +117 -41
  63. package/types/viewer/scene/materials/Texture.d.ts +62 -22
  64. package/types/viewer/scene/models/SceneModel.d.ts +233 -76
  65. package/types/viewer/scene/models/SceneModelEntity.d.ts +217 -51
  66. package/types/viewer/scene/models/SceneModelMesh.d.ts +4 -4
  67. package/types/viewer/scene/models/SceneModelTransform.d.ts +59 -14
  68. package/types/viewer/scene/paths/CubicBezierCurve.d.ts +73 -12
  69. package/types/viewer/scene/paths/Curve.d.ts +19 -6
  70. package/types/viewer/scene/paths/Path.d.ts +57 -10
  71. package/types/viewer/scene/paths/QuadraticBezierCurve.d.ts +57 -10
  72. package/types/viewer/scene/paths/SplineCurve.d.ts +32 -6
  73. package/types/viewer/scene/scene/Scene.d.ts +196 -94
  74. package/types/viewer/scene/sectionPlane/SectionPlane.d.ts +69 -12
  75. package/types/viewer/scene/viewport/Viewport.d.ts +14 -4
  76. package/types/viewer/scene/webgl/PickResult.d.ts +28 -13
  77. package/dist/xeokit-sdk.es5.js.map +0 -1
  78. package/dist/xeokit-sdk.min.es5.js.map +0 -1
@@ -17,7 +17,7 @@ export declare abstract class SceneModelEntity implements Entity {
17
17
  * @type {number|string}
18
18
  * @abstract
19
19
  */
20
- readonly id: string;
20
+ get id(): string;
21
21
 
22
22
  /**
23
23
  * ID of the corresponding object within the originating system, if any.
@@ -29,14 +29,14 @@ export declare abstract class SceneModelEntity implements Entity {
29
29
  *
30
30
  * @type {string}
31
31
  */
32
- readonly originalSystemId: string;
32
+ get originalSystemId(): string;
33
33
 
34
34
  /**
35
35
  * Returns true to indicate that this is an SceneModelEntity.
36
36
  *
37
37
  * @returns {Boolean}
38
38
  */
39
- readonly isEntity: boolean;
39
+ get isEntity(): boolean;
40
40
 
41
41
  /**
42
42
  * Returns ````true```` if this SceneModelEntity represents a model.
@@ -47,7 +47,7 @@ export declare abstract class SceneModelEntity implements Entity {
47
47
  * @type {Boolean}
48
48
  * @abstract
49
49
  */
50
- readonly isModel: boolean;
50
+ get isModel(): boolean;
51
51
 
52
52
  /**
53
53
  * Returns ````true```` if this SceneModelEntity represents an object.
@@ -58,18 +58,26 @@ export declare abstract class SceneModelEntity implements Entity {
58
58
  * @type {Boolean}
59
59
  * @abstract
60
60
  */
61
- readonly isObject: boolean;
61
+ get isObject(): boolean;
62
62
 
63
63
  /** Returns the parent SceneModelEntity, if any. */
64
- readonly parent: void;
64
+ get parent(): void;
65
65
 
66
66
  /**
67
- * The 3D World-space origin for this SceneModelEntity.
67
+ * Sets the 3D World-space origin for this SceneModelEntity.
68
68
  *
69
69
  * @type {Float64Array}
70
70
  * @abstract
71
71
  */
72
- origin: Float64Array;
72
+ set origin(arg: Float64Array);
73
+
74
+ /**
75
+ * Gets the 3D World-space origin for this SceneModelEntity.
76
+ *
77
+ * @type {Float64Array}
78
+ * @abstract
79
+ */
80
+ get origin(): Float64Array;
73
81
 
74
82
  /**
75
83
  * World-space 3D axis-aligned bounding box (AABB) of this SceneModelEntity.
@@ -80,12 +88,12 @@ export declare abstract class SceneModelEntity implements Entity {
80
88
  * @type {Float64Array}
81
89
  * @abstract
82
90
  */
83
- readonly aabb: number[];
91
+ get aabb(): number[];
84
92
 
85
93
  /**
86
94
  * The approximate number of primitives in this SceneModelEntity
87
95
  */
88
- readonly numPrimitives: number;
96
+ get numPrimitives(): number;
89
97
 
90
98
  /**
91
99
  * The approximate number of triangles in this SceneModelEntity.
@@ -93,10 +101,23 @@ export declare abstract class SceneModelEntity implements Entity {
93
101
  * @type {number}
94
102
  * @abstract
95
103
  */
96
- readonly numTriangles: number;
104
+ get numTriangles(): number;
105
+
106
+ /**
107
+ * Sets if this SceneModelEntity is visible.
108
+ *
109
+ * Only rendered when {@link SceneModelEntity.visible} is ````true```` and {@link SceneModelEntity.culled} is ````false````.
110
+ *
111
+ * When {@link SceneModelEntity.isObject} and {@link SceneModelEntity.visible} are both ````true```` the SceneModelEntity will be
112
+ * registered by {@link SceneModelEntity.id} in {@link Scene.visibleObjects}.
113
+ *
114
+ * @type {Boolean}
115
+ * @abstract
116
+ */
117
+ set visible(arg: boolean);
97
118
 
98
119
  /**
99
- * Whether this SceneModelEntity is visible.
120
+ * Gets if this SceneModelEntity is visible.
100
121
  *
101
122
  * Only rendered when {@link SceneModelEntity.visible} is ````true```` and {@link SceneModelEntity.culled} is ````false````.
102
123
  *
@@ -106,10 +127,21 @@ export declare abstract class SceneModelEntity implements Entity {
106
127
  * @type {Boolean}
107
128
  * @abstract
108
129
  */
109
- visible: boolean;
130
+ get visible(): boolean;
131
+
132
+ /**
133
+ * Sets if this SceneModelEntity is xrayed.
134
+ *
135
+ * When {@link SceneModelEntity.isObject} and {@link SceneModelEntity.xrayed} are both ````true``` the SceneModelEntity will be
136
+ * registered by {@link SceneModelEntity.id} in {@link Scene.xrayedObjects}.
137
+ *
138
+ * @type {Boolean}
139
+ * @abstract
140
+ */
141
+ set xrayed(arg: boolean);
110
142
 
111
143
  /**
112
- * Whether this SceneModelEntity is xrayed.
144
+ * Gets if this SceneModelEntity is xrayed.
113
145
  *
114
146
  * When {@link SceneModelEntity.isObject} and {@link SceneModelEntity.xrayed} are both ````true``` the SceneModelEntity will be
115
147
  * registered by {@link SceneModelEntity.id} in {@link Scene.xrayedObjects}.
@@ -117,10 +149,21 @@ export declare abstract class SceneModelEntity implements Entity {
117
149
  * @type {Boolean}
118
150
  * @abstract
119
151
  */
120
- xrayed: boolean;
152
+ get xrayed(): boolean;
153
+
154
+ /**
155
+ * Sets if this SceneModelEntity is highlighted.
156
+ *
157
+ * When {@link SceneModelEntity.isObject} and {@link SceneModelEntity.highlighted} are both ````true```` the SceneModelEntity will be
158
+ * registered by {@link SceneModelEntity.id} in {@link Scene.highlightedObjects}.
159
+ *
160
+ * @type {Boolean}
161
+ * @abstract
162
+ */
163
+ set highlighted(arg: boolean);
121
164
 
122
165
  /**
123
- * Whether this SceneModelEntity is highlighted.
166
+ * Gets if this SceneModelEntity is highlighted.
124
167
  *
125
168
  * When {@link SceneModelEntity.isObject} and {@link SceneModelEntity.highlighted} are both ````true```` the SceneModelEntity will be
126
169
  * registered by {@link SceneModelEntity.id} in {@link Scene.highlightedObjects}.
@@ -128,10 +171,21 @@ export declare abstract class SceneModelEntity implements Entity {
128
171
  * @type {Boolean}
129
172
  * @abstract
130
173
  */
131
- highlighted: boolean;
174
+ get highlighted(): boolean;
175
+
176
+ /**
177
+ * Sets if this SceneModelEntity is selected.
178
+ *
179
+ * When {@link SceneModelEntity.isObject} and {@link SceneModelEntity.selected} are both ````true``` the SceneModelEntity will be
180
+ * registered by {@link SceneModelEntity.id} in {@link Scene.selectedObjects}.
181
+ *
182
+ * @type {Boolean}
183
+ * @abstract
184
+ */
185
+ set selected(arg: boolean);
132
186
 
133
187
  /**
134
- * Whether this SceneModelEntity is selected.
188
+ * Gets if this SceneModelEntity is selected.
135
189
  *
136
190
  * When {@link SceneModelEntity.isObject} and {@link SceneModelEntity.selected} are both ````true``` the SceneModelEntity will be
137
191
  * registered by {@link SceneModelEntity.id} in {@link Scene.selectedObjects}.
@@ -139,121 +193,218 @@ export declare abstract class SceneModelEntity implements Entity {
139
193
  * @type {Boolean}
140
194
  * @abstract
141
195
  */
142
- selected: boolean;
196
+ get selected(): boolean;
197
+
198
+ /**
199
+ * Sets if this SceneModelEntity's edges are enhanced.
200
+ *
201
+ * @type {Boolean}
202
+ * @abstract
203
+ */
204
+ set edges(arg: boolean);
143
205
 
144
206
  /**
145
- * Whether this SceneModelEntity's edges are enhanced.
207
+ * Gets if this SceneModelEntity's edges are enhanced.
146
208
  *
147
209
  * @type {Boolean}
148
210
  * @abstract
149
211
  */
150
- edges: boolean;
212
+ get edges(): boolean;
213
+
214
+ /**
215
+ * Toggle View Frustum Culling
216
+ */
217
+ set culledVFC(arg: boolean);
218
+
219
+ /**
220
+ * Gets View Frustum Culling
221
+ */
222
+ get culledVFC(): boolean;
151
223
 
152
224
  /**
153
- * Whether View Frustum Culling is enabled
225
+ * Toggle Level of Detail Culling
154
226
  */
155
- culledVFC: boolean;
227
+ set culledLOD(arg: boolean);
156
228
 
157
229
  /**
158
- * Whether Level of Detail Culling is enabled
230
+ * Gets level of detail culling
231
+ */
232
+ get culledLOD(): boolean;
233
+
234
+ /**
235
+ * Sets if this SceneModelEntity is culled.
236
+ *
237
+ * Only rendered when {@link SceneModelEntity.visible} is ````true```` and {@link SceneModelEntity.culled} is ````false````.
238
+ *
239
+ * @type {Boolean}
240
+ * @abstract
159
241
  */
160
- culledLOD: boolean;
242
+ set culled(arg: boolean);
161
243
 
162
244
  /**
163
- * Whether this SceneModelEntity is culled.
245
+ * Gets if this SceneModelEntity is culled.
164
246
  *
165
247
  * Only rendered when {@link SceneModelEntity.visible} is ````true```` and {@link SceneModelEntity.culled} is ````false````.
166
248
  *
167
249
  * @type {Boolean}
168
250
  * @abstract
169
251
  */
170
- culled: boolean;
252
+ get culled(): boolean;
171
253
 
172
254
  /**
173
- * Whether this SceneModelEntity is clippable.
255
+ * Sets if this SceneModelEntity is clippable.
174
256
  *
175
257
  * Clipping is done by the {@link SectionPlane}s in {@link Scene.sectionPlanes}.
176
258
  *
177
259
  * @type {Boolean}
178
260
  * @abstract
179
261
  */
180
- clippable: boolean;
262
+ set clippable(arg: boolean);
181
263
 
182
264
  /**
183
- * Whether this SceneModelEntity is included in boundary calculations.
265
+ * Gets if this SceneModelEntity is clippable.
266
+ *
267
+ * Clipping is done by the {@link SectionPlane}s in {@link Scene.sectionPlanes}.
268
+ *
269
+ * @type {Boolean}
270
+ * @abstract
271
+ */
272
+ get clippable(): boolean;
273
+
274
+ /**
275
+ * Sets if this SceneModelEntity is included in boundary calculations.
276
+ *
277
+ * @type {Boolean}
278
+ * @abstract
279
+ */
280
+ set collidable(arg: boolean);
281
+
282
+ /**
283
+ * Gets if this SceneModelEntity is included in boundary calculations.
284
+ *
285
+ * @type {Boolean}
286
+ * @abstract
287
+ */
288
+ get collidable(): boolean;
289
+
290
+ /**
291
+ * Sets if this SceneModelEntity is pickable.
292
+ *
293
+ * Picking is done via calls to {@link Scene.pick}.
184
294
  *
185
295
  * @type {Boolean}
186
296
  * @abstract
187
297
  */
188
- collidable: boolean;
298
+ set pickable(arg: boolean);
189
299
 
190
300
  /**
191
- * Whether this SceneModelEntity is pickable.
301
+ * Gets if this SceneModelEntity is pickable.
192
302
  *
193
303
  * Picking is done via calls to {@link Scene.pick}.
194
304
  *
195
305
  * @type {Boolean}
196
306
  * @abstract
197
307
  */
198
- pickable: boolean;
308
+ get pickable(): boolean;
309
+
310
+ /**
311
+ * Sets the SceneModelEntity's RGB colorize color, multiplies by the SceneModelEntity's rendered fragment colors.
312
+ *
313
+ * Each element of the color is in range ````[0..1]````.
314
+ *
315
+ * @type {number[]}
316
+ * @abstract
317
+ */
318
+ set colorize(arg: number[]);
199
319
 
200
320
  /**
201
- * The SceneModelEntity's RGB colorize color, multiplies by the SceneModelEntity's rendered fragment colors.
321
+ * Gets the SceneModelEntity's RGB colorize color, multiplies by the SceneModelEntity's rendered fragment colors.
202
322
  *
203
323
  * Each element of the color is in range ````[0..1]````.
204
324
  *
205
325
  * @type {number[]}
206
326
  * @abstract
207
327
  */
208
- colorize: number[];
328
+ get colorize(): number[];
209
329
 
210
330
  /**
211
- * The SceneModelEntity's opacity factor, multiplies by the SceneModelEntity's rendered fragment alphas.
331
+ * Sets the SceneModelEntity's opacity factor, multiplies by the SceneModelEntity's rendered fragment alphas.
212
332
  *
213
333
  * This is a factor in range ````[0..1]````.
214
334
  *
215
335
  * @type {number}
216
336
  * @abstract
217
337
  */
218
- opacity: number;
338
+ set opacity(arg: number);
219
339
 
220
340
  /**
221
- * Whether this SceneModelEntity casts shadows.
341
+ * Gets the SceneModelEntity's opacity factor.
342
+ *
343
+ * This is a factor in range ````[0..1]```` which multiplies by the rendered fragment alphas.
344
+ *
345
+ * @type {number}
346
+ * @abstract
347
+ */
348
+ get opacity(): number;
349
+
350
+ /**
351
+ * Sets if this SceneModelEntity casts shadows.
352
+ *
353
+ * @type {Boolean}
354
+ * @abstract
355
+ */
356
+ set castsShadow(arg: boolean);
357
+
358
+ /**
359
+ * Gets if this SceneModelEntity casts shadows.
222
360
  *
223
361
  * @type {Boolean}
224
362
  * @abstract
225
363
  */
226
- castsShadow: boolean;
364
+ get castsShadow(): boolean;
227
365
 
228
366
  /**
229
- * Whether this SceneModelEntity can have shadows cast upon it
367
+ * Sets if to this SceneModelEntity can have shadows cast upon it
230
368
  *
231
369
  * @type {Boolean}
232
370
  * @abstract
233
371
  */
234
- receivesShadow: boolean;
372
+ set receivesShadow(arg: boolean);
235
373
 
236
374
  /**
237
- * Whether this SceneModelEntity can have Scalable Ambient Obscurance (SAO) applied to it.
375
+ * Gets if this SceneModelEntity can have shadows cast upon it
376
+ *
377
+ * @type {Boolean}
378
+ * @abstract
379
+ */
380
+ get receivesShadow(): boolean;
381
+
382
+ /**
383
+ * Gets if this SceneModelEntity can have Scalable Ambient Obscurance (SAO) applied to it.
238
384
  *
239
385
  * SAO is configured by {@link SAO}.
240
386
  *
241
387
  * @type {Boolean}
242
388
  * @abstract
243
389
  */
244
- readonly saoEnabled: boolean;
390
+ get saoEnabled(): boolean;
245
391
 
246
392
  /**
247
- * The material for this SceneModelEntity that will be used on the caps
393
+ * Sets the material for this SceneModelEntity that will be used on the caps
248
394
  * when the objects of this entity are sliced
249
395
  *
250
396
  * If there is no capMaterial attached to a SceneModelEntity then its objects
251
397
  * will not be capped when sliced
252
398
  */
253
- capMaterial: Material;
399
+ set capMaterial(value: Material);
400
+
401
+ /**
402
+ * Gets the cap material attached to this SceneModelEntity
403
+ */
404
+ get capMaterial(): Material;
254
405
 
255
406
  /**
256
- * The SceneModelEntity's 3D World-space offset.
407
+ * Sets the SceneModelEntity's 3D World-space offset.
257
408
  *
258
409
  * Since offsetting Entities comes with memory and rendering overhead on some systems, this feature
259
410
  * only works when {@link Viewer} is configured with ````entityOffsetsEnabled: true````.
@@ -268,7 +419,17 @@ export declare abstract class SceneModelEntity implements Entity {
268
419
  * @abstract
269
420
  * @type {number[]}
270
421
  */
271
- offset: number[];
422
+ set offset(arg: number[]);
423
+
424
+ /**
425
+ * Gets the SceneModelEntity's 3D World-space offset.
426
+ *
427
+ * Default value is ````[0,0,0]````.
428
+ *
429
+ * @abstract
430
+ * @type {number[]}
431
+ */
432
+ get offset(): number[];
272
433
 
273
434
  /**
274
435
  * Gets the World, View and Canvas-space positions of each vertex in a callback.
@@ -283,24 +444,29 @@ export declare abstract class SceneModelEntity implements Entity {
283
444
  getEachIndex(callback: any): void;
284
445
 
285
446
  /**
286
- * The volume of this SceneModelEntity.
447
+ * Gets the complete geometry of this entity.
448
+ */
449
+ getGeometryData(): {indices: number[],positions:number[]}
450
+
451
+ /**
452
+ * Returns the volume of this SceneModelEntity.
287
453
  *
288
454
  * Only works when {@link Scene.readableGeometryEnabled | Scene.readableGeometryEnabled} is `true` and the
289
455
  * SceneModelEntity contains solid triangle meshes; returns `0` otherwise.
290
456
  *
291
457
  * @returns {number}
292
458
  */
293
- readonly volume: number;
459
+ get volume(): number;
294
460
 
295
461
  /**
296
- * The surface area of this SceneModelEntity.
462
+ * Returns the surface area of this SceneModelEntity.
297
463
  *
298
464
  * Only works when {@link Scene.readableGeometryEnabled | Scene.readableGeometryEnabled} is `true` and the
299
465
  * SceneModelEntity contains triangle meshes; returns `0` otherwise.
300
466
  *
301
467
  * @returns {number}
302
468
  */
303
- readonly surfaceArea: number;
469
+ get surfaceArea(): number;
304
470
 
305
471
  /**
306
472
  * The {@link SceneModel} to which this SceneModelEntity belongs.
@@ -73,15 +73,15 @@ export declare class SceneModelMesh {
73
73
  isSolid(): boolean;
74
74
 
75
75
  /**
76
- * The volume of this SceneModelMesh.
76
+ * Returns the volume of this SceneModelMesh.
77
77
  * @returns {number}
78
78
  */
79
- readonly volume: number;
79
+ get volume(): number;
80
80
 
81
81
  /**
82
- * The surface area of this SceneModelMesh.
82
+ * Returns the surface area of this SceneModelMesh.
83
83
  * @returns {number}
84
84
  */
85
- readonly surfaceArea: number;
85
+ get surfaceArea(): number;
86
86
 
87
87
  }
@@ -23,67 +23,112 @@ export declare class SceneModelTransform {
23
23
  *
24
24
  * @type {SceneModelTransform}
25
25
  */
26
- readonly parentTransform: SceneModelTransform | null;
26
+ get parentTransform(): SceneModelTransform | null;
27
27
 
28
28
  /**
29
29
  * The {@link SceneModelMesh}es transformed by this SceneModelTransform.
30
30
  *
31
31
  * @returns {[]}
32
32
  */
33
- readonly meshes: SceneModelMesh[];
33
+ get meshes(): SceneModelMesh[];
34
34
 
35
35
  /**
36
- * The SceneModelTransform's local translation.
36
+ * Sets the SceneModelTransform's local translation.
37
37
  *
38
38
  * Default value is ````[0,0,0]````.
39
39
  *
40
40
  * @type {number[]}
41
41
  */
42
- position: number[];
42
+ set position(value: number[]);
43
43
 
44
44
  /**
45
- * The SceneModelTransform's rotation, as Euler angles given in degrees, for each of the X, Y and Z axis.
45
+ * Gets the SceneModelTransform's translation.
46
46
  *
47
47
  * Default value is ````[0,0,0]````.
48
48
  *
49
49
  * @type {number[]}
50
50
  */
51
- rotation: number[];
51
+ get position(): number[];
52
52
 
53
53
  /**
54
- * The SceneModelTransform's rotation quaternion.
54
+ * Sets the SceneModelTransform's rotation, as Euler angles given in degrees, for each of the X, Y and Z axis.
55
+ *
56
+ * Default value is ````[0,0,0]````.
57
+ *
58
+ * @type {number[]}
59
+ */
60
+ set rotation(value: number[]);
61
+
62
+ /**
63
+ * Gets the SceneModelTransform's rotation, as Euler angles given in degrees, for each of the X, Y and Z axis.
64
+ *
65
+ * Default value is ````[0,0,0]````.
66
+ *
67
+ * @type {number[]}
68
+ */
69
+ get rotation(): number[];
70
+
71
+ /**
72
+ * Sets the SceneModelTransform's rotation quaternion.
55
73
  *
56
74
  * Default value is ````[0,0,0,1]````.
57
75
  *
58
76
  * @type {number[]}
59
77
  */
60
- quaternion: number[];
78
+ set quaternion(value: number[]);
61
79
 
62
80
  /**
63
- * The SceneModelTransform's scale.
81
+ * Gets the SceneModelTransform's rotation quaternion.
82
+ *
83
+ * Default value is ````[0,0,0,1]````.
84
+ *
85
+ * @type {number[]}
86
+ */
87
+ get quaternion(): number[];
88
+
89
+ /**
90
+ * Sets the SceneModelTransform's scale.
64
91
  *
65
92
  * Default value is ````[1,1,1]````.
66
93
  *
67
94
  * @type {number[]}
68
95
  */
69
- scale: number[];
96
+ set scale(value: number[]);
97
+
98
+ /**
99
+ * Gets the SceneModelTransform's scale.
100
+ *
101
+ * Default value is ````[1,1,1]````.
102
+ *
103
+ * @type {number[]}
104
+ */
105
+ get scale(): number[];
106
+
107
+ /**
108
+ * Sets the SceneModelTransform's transform matrix.
109
+ *
110
+ * Default value is ````[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]````.
111
+ *
112
+ * @type {number[]}
113
+ */
114
+ set matrix(value: number[]);
70
115
 
71
116
  /**
72
- * The SceneModelTransform's transform matrix.
117
+ * Gets the SceneModelTransform's transform matrix.
73
118
  *
74
119
  * Default value is ````[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]````.
75
120
  *
76
121
  * @type {number[]}
77
122
  */
78
- matrix: number[];
123
+ get matrix(): number[];
79
124
 
80
125
  /**
81
- * The SceneModelTransform's World matrix.
126
+ * Gets the SceneModelTransform's World matrix.
82
127
  *
83
128
  * @property worldMatrix
84
129
  * @type {number[]}
85
130
  */
86
- readonly worldMatrix: number[];
131
+ get worldMatrix(): number[];
87
132
 
88
133
  /**
89
134
  * Rotates the SceneModelTransform about the given axis by the given increment.