@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.
- package/README.md +3 -3
- package/dist/xeokit-sdk.cjs.js +15512 -32635
- package/dist/xeokit-sdk.es.js +15513 -32634
- package/dist/xeokit-sdk.es5.js +31259 -29843
- package/dist/xeokit-sdk.es5.js.map +1 -0
- package/dist/xeokit-sdk.min.cjs.js +8 -8
- package/dist/xeokit-sdk.min.es.js +8 -8
- package/dist/xeokit-sdk.min.es5.js +34 -33
- package/dist/xeokit-sdk.min.es5.js.map +1 -0
- package/package.json +7 -3
- package/src/plugins/CxConverterIFCLoaderPlugin/CxConverterIFCLoaderPlugin.js +81 -81
- package/src/plugins/CxConverterIFCLoaderPlugin/index.js +1 -1
- package/src/plugins/LASLoaderPlugin/index.js +1 -1
- package/src/plugins/NavCubePlugin/NavCubePlugin.js +63 -22
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV1.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV10.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV12.js +9 -9
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV2.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV3.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV4.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV5.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV6.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV7.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV8.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV9.js +5 -5
- package/src/plugins/index.js +2 -2
- package/src/viewer/scene/CameraControl/lib/handlers/TouchPickHandler.js +7 -6
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +26 -108
- package/types/plugins/CityJSONLoaderPlugin/CityJSONLoaderPlugin.d.ts +3 -14
- package/types/plugins/DotBIMLoaderPlugin/DotBIMLoaderPlugin.d.ts +5 -23
- package/types/plugins/GLTFLoaderPlugin/GLTFLoaderPlugin.d.ts +5 -25
- package/types/plugins/LASLoaderPlugin/LASLoaderPlugin.d.ts +20 -100
- package/types/plugins/STLLoaderPlugin/STLLoaderPlugin.d.ts +3 -14
- package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +18 -83
- package/types/plugins/XKTLoaderPlugin/XKTLoaderPlugin.d.ts +21 -106
- package/types/viewer/Configs.d.ts +6 -24
- package/types/viewer/scene/CameraControl/CameraControl.d.ts +66 -445
- package/types/viewer/scene/Component.d.ts +1 -1
- package/types/viewer/scene/Entity.d.ts +40 -186
- package/types/viewer/scene/camera/Camera.d.ts +50 -170
- package/types/viewer/scene/camera/CameraFlightAnimation.d.ts +8 -57
- package/types/viewer/scene/camera/CameraPath.d.ts +8 -13
- package/types/viewer/scene/camera/CameraPathAnimation.d.ts +4 -22
- package/types/viewer/scene/camera/CustomProjection.d.ts +6 -21
- package/types/viewer/scene/camera/Frustum.d.ts +18 -90
- package/types/viewer/scene/camera/Ortho.d.ts +14 -54
- package/types/viewer/scene/camera/Perspective.d.ts +16 -70
- package/types/viewer/scene/geometry/ReadableGeometry.d.ts +21 -25
- package/types/viewer/scene/geometry/VBOGeometry.d.ts +7 -7
- package/types/viewer/scene/lights/AmbientLight.d.ts +4 -26
- package/types/viewer/scene/lights/DirLight.d.ts +8 -52
- package/types/viewer/scene/lights/PointLight.d.ts +14 -93
- package/types/viewer/scene/materials/EdgeMaterial.d.ts +12 -37
- package/types/viewer/scene/materials/EmphasisMaterial.d.ts +22 -119
- package/types/viewer/scene/materials/Fresnel.d.ts +10 -50
- package/types/viewer/scene/materials/LambertMaterial.d.ts +16 -90
- package/types/viewer/scene/materials/LinesMaterial.d.ts +7 -25
- package/types/viewer/scene/materials/MetallicMaterial.d.ts +40 -127
- package/types/viewer/scene/materials/PhongMaterial.d.ts +52 -185
- package/types/viewer/scene/materials/PointsMaterial.d.ts +20 -101
- package/types/viewer/scene/materials/SpecularMaterial.d.ts +41 -117
- package/types/viewer/scene/materials/Texture.d.ts +22 -62
- package/types/viewer/scene/models/SceneModel.d.ts +76 -233
- package/types/viewer/scene/models/SceneModelEntity.d.ts +50 -211
- package/types/viewer/scene/models/SceneModelMesh.d.ts +4 -4
- package/types/viewer/scene/models/SceneModelTransform.d.ts +14 -59
- package/types/viewer/scene/paths/CubicBezierCurve.d.ts +12 -73
- package/types/viewer/scene/paths/Curve.d.ts +6 -19
- package/types/viewer/scene/paths/Path.d.ts +10 -57
- package/types/viewer/scene/paths/QuadraticBezierCurve.d.ts +10 -57
- package/types/viewer/scene/paths/SplineCurve.d.ts +6 -32
- package/types/viewer/scene/scene/Scene.d.ts +94 -196
- package/types/viewer/scene/sectionPlane/SectionPlane.d.ts +12 -69
- package/types/viewer/scene/viewport/Viewport.d.ts +4 -14
- package/types/viewer/scene/webgl/PickResult.d.ts +13 -28
|
@@ -12,7 +12,7 @@ export declare abstract class Entity {
|
|
|
12
12
|
* @type {Number|String}
|
|
13
13
|
* @abstract
|
|
14
14
|
*/
|
|
15
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
56
|
+
readonly isObject: boolean;
|
|
57
57
|
|
|
58
58
|
/** Returns the parent Entity, if any. */
|
|
59
|
-
|
|
59
|
+
readonly parent: void;
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* The 3D World-space origin for this Entity.
|
|
63
63
|
*
|
|
64
64
|
* @type {Float64Array}
|
|
65
65
|
* @abstract
|
|
66
66
|
*/
|
|
67
|
-
|
|
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
|
-
|
|
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
|
-
|
|
86
|
+
readonly numTriangles: number;
|
|
95
87
|
|
|
96
88
|
/**
|
|
97
|
-
*
|
|
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
|
-
|
|
99
|
+
visible: boolean;
|
|
108
100
|
|
|
109
101
|
/**
|
|
110
|
-
*
|
|
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
|
-
|
|
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
|
-
*
|
|
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
|
-
|
|
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
|
-
*
|
|
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
|
-
|
|
132
|
+
selected: boolean;
|
|
187
133
|
|
|
188
134
|
/**
|
|
189
|
-
*
|
|
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
|
-
|
|
140
|
+
edges: boolean;
|
|
213
141
|
|
|
214
142
|
/**
|
|
215
|
-
*
|
|
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
|
-
|
|
150
|
+
culled: boolean;
|
|
223
151
|
|
|
224
152
|
/**
|
|
225
|
-
*
|
|
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
|
-
|
|
160
|
+
clippable: boolean;
|
|
233
161
|
|
|
234
162
|
/**
|
|
235
|
-
*
|
|
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
|
-
|
|
168
|
+
collidable: boolean;
|
|
251
169
|
|
|
252
170
|
/**
|
|
253
|
-
*
|
|
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
|
-
|
|
178
|
+
pickable: boolean;
|
|
269
179
|
|
|
270
180
|
/**
|
|
271
|
-
*
|
|
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
|
-
|
|
188
|
+
colorize: number[];
|
|
289
189
|
|
|
290
190
|
/**
|
|
291
|
-
*
|
|
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
|
-
|
|
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
|
-
*
|
|
201
|
+
* Whether this Entity casts shadows.
|
|
330
202
|
*
|
|
331
203
|
* @type {Boolean}
|
|
332
204
|
* @abstract
|
|
333
205
|
*/
|
|
334
|
-
|
|
206
|
+
castsShadow: boolean;
|
|
335
207
|
|
|
336
208
|
/**
|
|
337
|
-
*
|
|
209
|
+
* Whether this Entity can have shadows cast upon it
|
|
338
210
|
*
|
|
339
211
|
* @type {Boolean}
|
|
340
212
|
* @abstract
|
|
341
213
|
*/
|
|
342
|
-
|
|
214
|
+
receivesShadow: boolean;
|
|
343
215
|
|
|
344
216
|
/**
|
|
345
|
-
*
|
|
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
|
-
|
|
224
|
+
readonly saoEnabled: boolean;
|
|
361
225
|
|
|
362
226
|
/**
|
|
363
|
-
*
|
|
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
|
-
|
|
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.
|