@xeokit/xeokit-sdk 2.6.86 → 2.6.87-rc0-no-las

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 (75) hide show
  1. package/README.md +3 -3
  2. package/dist/xeokit-sdk.cjs.js +15512 -32635
  3. package/dist/xeokit-sdk.es.js +15513 -32634
  4. package/dist/xeokit-sdk.es5.js +31259 -29843
  5. package/dist/xeokit-sdk.es5.js.map +1 -0
  6. package/dist/xeokit-sdk.min.cjs.js +8 -8
  7. package/dist/xeokit-sdk.min.es.js +8 -8
  8. package/dist/xeokit-sdk.min.es5.js +34 -33
  9. package/dist/xeokit-sdk.min.es5.js.map +1 -0
  10. package/package.json +7 -3
  11. package/src/plugins/CxConverterIFCLoaderPlugin/CxConverterIFCLoaderPlugin.js +81 -81
  12. package/src/plugins/CxConverterIFCLoaderPlugin/index.js +1 -1
  13. package/src/plugins/LASLoaderPlugin/index.js +1 -1
  14. package/src/plugins/NavCubePlugin/NavCubePlugin.js +63 -22
  15. package/src/plugins/XKTLoaderPlugin/parsers/ParserV1.js +5 -5
  16. package/src/plugins/XKTLoaderPlugin/parsers/ParserV10.js +5 -5
  17. package/src/plugins/XKTLoaderPlugin/parsers/ParserV12.js +9 -9
  18. package/src/plugins/XKTLoaderPlugin/parsers/ParserV2.js +5 -5
  19. package/src/plugins/XKTLoaderPlugin/parsers/ParserV3.js +5 -5
  20. package/src/plugins/XKTLoaderPlugin/parsers/ParserV4.js +5 -5
  21. package/src/plugins/XKTLoaderPlugin/parsers/ParserV5.js +5 -5
  22. package/src/plugins/XKTLoaderPlugin/parsers/ParserV6.js +5 -5
  23. package/src/plugins/XKTLoaderPlugin/parsers/ParserV7.js +5 -5
  24. package/src/plugins/XKTLoaderPlugin/parsers/ParserV8.js +5 -5
  25. package/src/plugins/XKTLoaderPlugin/parsers/ParserV9.js +5 -5
  26. package/src/plugins/index.js +2 -2
  27. package/src/viewer/scene/CameraControl/lib/handlers/TouchPickHandler.js +7 -6
  28. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +26 -108
  29. package/types/plugins/CityJSONLoaderPlugin/CityJSONLoaderPlugin.d.ts +3 -14
  30. package/types/plugins/DotBIMLoaderPlugin/DotBIMLoaderPlugin.d.ts +5 -23
  31. package/types/plugins/GLTFLoaderPlugin/GLTFLoaderPlugin.d.ts +5 -25
  32. package/types/plugins/LASLoaderPlugin/LASLoaderPlugin.d.ts +20 -100
  33. package/types/plugins/STLLoaderPlugin/STLLoaderPlugin.d.ts +3 -14
  34. package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +18 -83
  35. package/types/plugins/XKTLoaderPlugin/XKTLoaderPlugin.d.ts +21 -106
  36. package/types/viewer/Configs.d.ts +6 -24
  37. package/types/viewer/scene/CameraControl/CameraControl.d.ts +66 -445
  38. package/types/viewer/scene/Component.d.ts +1 -1
  39. package/types/viewer/scene/Entity.d.ts +40 -186
  40. package/types/viewer/scene/camera/Camera.d.ts +50 -170
  41. package/types/viewer/scene/camera/CameraFlightAnimation.d.ts +8 -57
  42. package/types/viewer/scene/camera/CameraPath.d.ts +8 -13
  43. package/types/viewer/scene/camera/CameraPathAnimation.d.ts +4 -22
  44. package/types/viewer/scene/camera/CustomProjection.d.ts +6 -21
  45. package/types/viewer/scene/camera/Frustum.d.ts +18 -90
  46. package/types/viewer/scene/camera/Ortho.d.ts +14 -54
  47. package/types/viewer/scene/camera/Perspective.d.ts +16 -70
  48. package/types/viewer/scene/geometry/ReadableGeometry.d.ts +21 -25
  49. package/types/viewer/scene/geometry/VBOGeometry.d.ts +7 -7
  50. package/types/viewer/scene/lights/AmbientLight.d.ts +4 -26
  51. package/types/viewer/scene/lights/DirLight.d.ts +8 -52
  52. package/types/viewer/scene/lights/PointLight.d.ts +14 -93
  53. package/types/viewer/scene/materials/EdgeMaterial.d.ts +12 -37
  54. package/types/viewer/scene/materials/EmphasisMaterial.d.ts +22 -119
  55. package/types/viewer/scene/materials/Fresnel.d.ts +10 -50
  56. package/types/viewer/scene/materials/LambertMaterial.d.ts +16 -90
  57. package/types/viewer/scene/materials/LinesMaterial.d.ts +7 -25
  58. package/types/viewer/scene/materials/MetallicMaterial.d.ts +40 -127
  59. package/types/viewer/scene/materials/PhongMaterial.d.ts +52 -185
  60. package/types/viewer/scene/materials/PointsMaterial.d.ts +20 -101
  61. package/types/viewer/scene/materials/SpecularMaterial.d.ts +41 -117
  62. package/types/viewer/scene/materials/Texture.d.ts +22 -62
  63. package/types/viewer/scene/models/SceneModel.d.ts +76 -233
  64. package/types/viewer/scene/models/SceneModelEntity.d.ts +50 -211
  65. package/types/viewer/scene/models/SceneModelMesh.d.ts +4 -4
  66. package/types/viewer/scene/models/SceneModelTransform.d.ts +14 -59
  67. package/types/viewer/scene/paths/CubicBezierCurve.d.ts +12 -73
  68. package/types/viewer/scene/paths/Curve.d.ts +6 -19
  69. package/types/viewer/scene/paths/Path.d.ts +10 -57
  70. package/types/viewer/scene/paths/QuadraticBezierCurve.d.ts +10 -57
  71. package/types/viewer/scene/paths/SplineCurve.d.ts +6 -32
  72. package/types/viewer/scene/scene/Scene.d.ts +94 -196
  73. package/types/viewer/scene/sectionPlane/SectionPlane.d.ts +12 -69
  74. package/types/viewer/scene/viewport/Viewport.d.ts +4 -14
  75. package/types/viewer/scene/webgl/PickResult.d.ts +13 -28
@@ -51,7 +51,7 @@ export abstract class Component {
51
51
  * @property owner
52
52
  * @type {Component}
53
53
  */
54
- get owner(): Component;
54
+ readonly owner: Component;
55
55
 
56
56
  /**
57
57
  * Tests if this component is of the given type, or is a subclass of the given type.
@@ -12,7 +12,7 @@ export declare abstract class Entity {
12
12
  * @type {Number|String}
13
13
  * @abstract
14
14
  */
15
- get id(): string | number;
15
+ readonly id: string | number;
16
16
 
17
17
  /**
18
18
  * ID of the corresponding object within the originating system, if any.
@@ -24,14 +24,14 @@ export declare abstract class Entity {
24
24
  *
25
25
  * @type {String}
26
26
  */
27
- get originalSystemId(): string;
27
+ readonly originalSystemId: string;
28
28
 
29
29
  /**
30
30
  * Returns true to indicate that this is an Entity.
31
31
  *
32
32
  * @returns {Boolean}
33
33
  */
34
- get isEntity(): boolean;
34
+ readonly isEntity: boolean;
35
35
 
36
36
  /**
37
37
  * Returns ````true```` if this Entity represents a model.
@@ -42,7 +42,7 @@ export declare abstract class Entity {
42
42
  * @type {Boolean}
43
43
  * @abstract
44
44
  */
45
- get isModel(): boolean;
45
+ readonly isModel: boolean;
46
46
 
47
47
  /**
48
48
  * Returns ````true```` if this Entity represents an object.
@@ -53,26 +53,18 @@ export declare abstract class Entity {
53
53
  * @type {Boolean}
54
54
  * @abstract
55
55
  */
56
- get isObject(): boolean;
56
+ readonly isObject: boolean;
57
57
 
58
58
  /** Returns the parent Entity, if any. */
59
- get parent(): void;
59
+ readonly parent: void;
60
60
 
61
61
  /**
62
- * Sets the 3D World-space origin for this Entity.
62
+ * The 3D World-space origin for this Entity.
63
63
  *
64
64
  * @type {Float64Array}
65
65
  * @abstract
66
66
  */
67
- set origin(arg: Float64Array);
68
-
69
- /**
70
- * Gets the 3D World-space origin for this Entity.
71
- *
72
- * @type {Float64Array}
73
- * @abstract
74
- */
75
- get origin(): Float64Array;
67
+ origin: Float64Array;
76
68
 
77
69
  /**
78
70
  * World-space 3D axis-aligned bounding box (AABB) of this Entity.
@@ -83,7 +75,7 @@ export declare abstract class Entity {
83
75
  * @type {Float64Array}
84
76
  * @abstract
85
77
  */
86
- get aabb(): number[];
78
+ readonly aabb: number[];
87
79
 
88
80
  /**
89
81
  * The approximate number of triangles in this Entity.
@@ -91,10 +83,10 @@ export declare abstract class Entity {
91
83
  * @type {Number}
92
84
  * @abstract
93
85
  */
94
- get numTriangles(): number;
86
+ readonly numTriangles: number;
95
87
 
96
88
  /**
97
- * Sets if this Entity is visible.
89
+ * Whether this Entity is visible.
98
90
  *
99
91
  * Only rendered when {@link Entity.visible} is ````true```` and {@link Entity.culled} is ````false````.
100
92
  *
@@ -104,34 +96,10 @@ export declare abstract class Entity {
104
96
  * @type {Boolean}
105
97
  * @abstract
106
98
  */
107
- set visible(arg: boolean);
99
+ visible: boolean;
108
100
 
109
101
  /**
110
- * Gets if this Entity is visible.
111
- *
112
- * Only rendered when {@link Entity.visible} is ````true```` and {@link Entity.culled} is ````false````.
113
- *
114
- * When {@link Entity.isObject} and {@link Entity.visible} are both ````true```` the Entity will be
115
- * registered by {@link Entity.id} in {@link Scene.visibleObjects}.
116
- *
117
- * @type {Boolean}
118
- * @abstract
119
- */
120
- get visible(): boolean;
121
-
122
- /**
123
- * Sets if this Entity is xrayed.
124
- *
125
- * When {@link Entity.isObject} and {@link Entity.xrayed} are both ````true``` the Entity will be
126
- * registered by {@link Entity.id} in {@link Scene.xrayedObjects}.
127
- *
128
- * @type {Boolean}
129
- * @abstract
130
- */
131
- set xrayed(arg: boolean);
132
-
133
- /**
134
- * Gets if this Entity is xrayed.
102
+ * Whether this Entity is xrayed.
135
103
  *
136
104
  * When {@link Entity.isObject} and {@link Entity.xrayed} are both ````true``` the Entity will be
137
105
  * registered by {@link Entity.id} in {@link Scene.xrayedObjects}.
@@ -139,21 +107,10 @@ export declare abstract class Entity {
139
107
  * @type {Boolean}
140
108
  * @abstract
141
109
  */
142
- get xrayed(): boolean;
143
-
144
- /**
145
- * Sets if this Entity is highlighted.
146
- *
147
- * When {@link Entity.isObject} and {@link Entity.highlighted} are both ````true```` the Entity will be
148
- * registered by {@link Entity.id} in {@link Scene.highlightedObjects}.
149
- *
150
- * @type {Boolean}
151
- * @abstract
152
- */
153
- set highlighted(arg: boolean);
110
+ xrayed: boolean;
154
111
 
155
112
  /**
156
- * Gets if this Entity is highlighted.
113
+ * Whether this Entity is highlighted.
157
114
  *
158
115
  * When {@link Entity.isObject} and {@link Entity.highlighted} are both ````true```` the Entity will be
159
116
  * registered by {@link Entity.id} in {@link Scene.highlightedObjects}.
@@ -161,21 +118,10 @@ export declare abstract class Entity {
161
118
  * @type {Boolean}
162
119
  * @abstract
163
120
  */
164
- get highlighted(): boolean;
165
-
166
- /**
167
- * Sets if this Entity is selected.
168
- *
169
- * When {@link Entity.isObject} and {@link Entity.selected} are both ````true``` the Entity will be
170
- * registered by {@link Entity.id} in {@link Scene.selectedObjects}.
171
- *
172
- * @type {Boolean}
173
- * @abstract
174
- */
175
- set selected(arg: boolean);
121
+ highlighted: boolean;
176
122
 
177
123
  /**
178
- * Gets if this Entity is selected.
124
+ * Whether this Entity is selected.
179
125
  *
180
126
  * When {@link Entity.isObject} and {@link Entity.selected} are both ````true``` the Entity will be
181
127
  * registered by {@link Entity.id} in {@link Scene.selectedObjects}.
@@ -183,184 +129,102 @@ export declare abstract class Entity {
183
129
  * @type {Boolean}
184
130
  * @abstract
185
131
  */
186
- get selected(): boolean;
132
+ selected: boolean;
187
133
 
188
134
  /**
189
- * Sets if this Entity's edges are enhanced.
190
- *
191
- * @type {Boolean}
192
- * @abstract
193
- */
194
- set edges(arg: boolean);
195
-
196
- /**
197
- * Gets if this Entity's edges are enhanced.
198
- *
199
- * @type {Boolean}
200
- * @abstract
201
- */
202
- get edges(): boolean;
203
-
204
- /**
205
- * Sets if this Entity is culled.
206
- *
207
- * Only rendered when {@link Entity.visible} is ````true```` and {@link Entity.culled} is ````false````.
135
+ * Whether this Entity's edges are enhanced.
208
136
  *
209
137
  * @type {Boolean}
210
138
  * @abstract
211
139
  */
212
- set culled(arg: boolean);
140
+ edges: boolean;
213
141
 
214
142
  /**
215
- * Gets if this Entity is culled.
143
+ * Whether this Entity is culled.
216
144
  *
217
145
  * Only rendered when {@link Entity.visible} is ````true```` and {@link Entity.culled} is ````false````.
218
146
  *
219
147
  * @type {Boolean}
220
148
  * @abstract
221
149
  */
222
- get culled(): boolean;
150
+ culled: boolean;
223
151
 
224
152
  /**
225
- * Sets if this Entity is clippable.
153
+ * Whether this Entity is clippable.
226
154
  *
227
155
  * Clipping is done by the {@link SectionPlane}s in {@link Scene.sectionPlanes}.
228
156
  *
229
157
  * @type {Boolean}
230
158
  * @abstract
231
159
  */
232
- set clippable(arg: boolean);
160
+ clippable: boolean;
233
161
 
234
162
  /**
235
- * Gets if this Entity is clippable.
236
- *
237
- * Clipping is done by the {@link SectionPlane}s in {@link Scene.sectionPlanes}.
238
- *
239
- * @type {Boolean}
240
- * @abstract
241
- */
242
- get clippable(): boolean;
243
-
244
- /**
245
- * Sets if this Entity is included in boundary calculations.
163
+ * Whether this Entity is included in boundary calculations.
246
164
  *
247
165
  * @type {Boolean}
248
166
  * @abstract
249
167
  */
250
- set collidable(arg: boolean);
168
+ collidable: boolean;
251
169
 
252
170
  /**
253
- * Gets if this Entity is included in boundary calculations.
254
- *
255
- * @type {Boolean}
256
- * @abstract
257
- */
258
- get collidable(): boolean;
259
-
260
- /**
261
- * Sets if this Entity is pickable.
171
+ * Whether this Entity is pickable.
262
172
  *
263
173
  * Picking is done via calls to {@link Scene.pick}.
264
174
  *
265
175
  * @type {Boolean}
266
176
  * @abstract
267
177
  */
268
- set pickable(arg: boolean);
178
+ pickable: boolean;
269
179
 
270
180
  /**
271
- * Gets if this Entity is pickable.
272
- *
273
- * Picking is done via calls to {@link Scene.pick}.
274
- *
275
- * @type {Boolean}
276
- * @abstract
277
- */
278
- get pickable(): boolean;
279
-
280
- /**
281
- * Sets the Entity's RGB colorize color, multiplies by the Entity's rendered fragment colors.
181
+ * The Entity's RGB colorize color, multiplies by the Entity's rendered fragment colors.
282
182
  *
283
183
  * Each element of the color is in range ````[0..1]````.
284
184
  *
285
185
  * @type {Number[]}
286
186
  * @abstract
287
187
  */
288
- set colorize(arg: number[]);
188
+ colorize: number[];
289
189
 
290
190
  /**
291
- * Gets the Entity's RGB colorize color, multiplies by the Entity's rendered fragment colors.
292
- *
293
- * Each element of the color is in range ````[0..1]````.
294
- *
295
- * @type {Number[]}
296
- * @abstract
297
- */
298
- get colorize(): number[];
299
-
300
- /**
301
- * Sets the Entity's opacity factor, multiplies by the Entity's rendered fragment alphas.
191
+ * The Entity's opacity factor, multiplies by the Entity's rendered fragment alphas.
302
192
  *
303
193
  * This is a factor in range ````[0..1]````.
304
194
  *
305
195
  * @type {Number}
306
196
  * @abstract
307
197
  */
308
- set opacity(arg: number);
309
-
310
- /**
311
- * Gets the Entity's opacity factor.
312
- *
313
- * This is a factor in range ````[0..1]```` which multiplies by the rendered fragment alphas.
314
- *
315
- * @type {Number}
316
- * @abstract
317
- */
318
- get opacity(): number;
319
-
320
- /**
321
- * Sets if this Entity casts shadows.
322
- *
323
- * @type {Boolean}
324
- * @abstract
325
- */
326
- set castsShadow(arg: boolean);
198
+ opacity: number;
327
199
 
328
200
  /**
329
- * Gets if this Entity casts shadows.
201
+ * Whether this Entity casts shadows.
330
202
  *
331
203
  * @type {Boolean}
332
204
  * @abstract
333
205
  */
334
- get castsShadow(): boolean;
206
+ castsShadow: boolean;
335
207
 
336
208
  /**
337
- * Sets if to this Entity can have shadows cast upon it
209
+ * Whether this Entity can have shadows cast upon it
338
210
  *
339
211
  * @type {Boolean}
340
212
  * @abstract
341
213
  */
342
- set receivesShadow(arg: boolean);
214
+ receivesShadow: boolean;
343
215
 
344
216
  /**
345
- * Gets if this Entity can have shadows cast upon it
346
- *
347
- * @type {Boolean}
348
- * @abstract
349
- */
350
- get receivesShadow(): boolean;
351
-
352
- /**
353
- * Gets if this Entity can have Scalable Ambient Obscurance (SAO) applied to it.
217
+ * Whether this Entity can have Scalable Ambient Obscurance (SAO) applied to it.
354
218
  *
355
219
  * SAO is configured by {@link SAO}.
356
220
  *
357
221
  * @type {Boolean}
358
222
  * @abstract
359
223
  */
360
- get saoEnabled(): boolean;
224
+ readonly saoEnabled: boolean;
361
225
 
362
226
  /**
363
- * Sets the Entity's 3D World-space offset.
227
+ * The Entity's 3D World-space offset.
364
228
  *
365
229
  * Since offsetting Entities comes with memory and rendering overhead on some systems, this feature
366
230
  * only works when {@link Viewer} is configured with ````entityOffsetsEnabled: true````.
@@ -375,17 +239,7 @@ export declare abstract class Entity {
375
239
  * @abstract
376
240
  * @type {Number[]}
377
241
  */
378
- set offset(arg: number[]);
379
-
380
- /**
381
- * Gets the Entity's 3D World-space offset.
382
- *
383
- * Default value is ````[0,0,0]````.
384
- *
385
- * @abstract
386
- * @type {Number[]}
387
- */
388
- get offset(): number[];
242
+ offset: number[];
389
243
 
390
244
  /**
391
245
  * Gets the World, View and Canvas-space positions of each vertex in a callback.