@xeokit/xeokit-sdk 2.2.5-beta-2 → 2.2.5-beta-3

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 (67) hide show
  1. package/dist/xeokit-sdk.cjs.js +16 -16
  2. package/dist/xeokit-sdk.es.js +16 -16
  3. package/package.json +7 -4
  4. package/types/extras/ContextMenu/ContextMenu.d.ts +8 -8
  5. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +1 -1
  6. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsControl.d.ts +26 -1
  7. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsPlugin.d.ts +76 -62
  8. package/types/plugins/AnnotationsPlugin/Annotation.d.ts +11 -10
  9. package/types/plugins/AnnotationsPlugin/AnnotationsPlugin.d.ts +32 -18
  10. package/types/plugins/AnnotationsPlugin/index.d.ts +1 -0
  11. package/types/plugins/AxisGizmoPlugin/AxisGizmoPlugin.d.ts +1 -1
  12. package/types/plugins/BCFViewpointsPlugin/BCFViewpointsPlugin.d.ts +10 -10
  13. package/types/plugins/CityJSONLoaderPlugin/CityJSONLoaderPlugin.d.ts +2 -2
  14. package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurement.d.ts +6 -6
  15. package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsControl.d.ts +26 -1
  16. package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsPlugin.d.ts +22 -7
  17. package/types/plugins/FastNavPlugin/FastNavPlugin.d.ts +9 -9
  18. package/types/plugins/GLTFLoaderPlugin/GLTFLoaderPlugin.d.ts +8 -8
  19. package/types/plugins/LASLoaderPlugin/LASLoaderPlugin.d.ts +4 -4
  20. package/types/plugins/NavCubePlugin/NavCubePlugin.d.ts +6 -6
  21. package/types/plugins/OBJLoaderPlugin/OBJLoaderPlugin.d.ts +2 -2
  22. package/types/plugins/STLLoaderPlugin/STLLoaderPlugin.d.ts +2 -2
  23. package/types/plugins/STLLoaderPlugin/index.d.ts +0 -1
  24. package/types/plugins/SectionPlanesPlugin/SectionPlanesPlugin.d.ts +4 -4
  25. package/types/plugins/SkyboxesPlugin/SkyboxesPlugin.d.ts +1 -1
  26. package/types/plugins/StoreyViewsPlugin/StoreyViewsPlugin.d.ts +156 -149
  27. package/types/plugins/TreeViewPlugin/TreeViewPlugin.d.ts +20 -6
  28. package/types/plugins/ViewCullPlugin/ViewCullPlugin.d.ts +2 -2
  29. package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +16 -16
  30. package/types/plugins/XKTLoaderPlugin/XKTLoaderPlugin.d.ts +20 -20
  31. package/types/plugins/XML3DLoaderPlugin/XML3DLoaderPlugin.d.ts +4 -4
  32. package/types/viewer/Plugin.d.ts +6 -6
  33. package/types/viewer/Viewer.d.ts +13 -13
  34. package/types/viewer/localization/LocaleService.d.ts +160 -153
  35. package/types/viewer/metadata/MetaModel.d.ts +2 -2
  36. package/types/viewer/metadata/MetaObject.d.ts +5 -5
  37. package/types/viewer/metadata/MetaScene.d.ts +11 -11
  38. package/types/viewer/metadata/index.d.ts +1 -1
  39. package/types/viewer/scene/CameraControl/CameraControl.d.ts +27 -19
  40. package/types/viewer/scene/Component.d.ts +6 -6
  41. package/types/viewer/scene/Entity.d.ts +29 -29
  42. package/types/viewer/scene/PerformanceModel/PerformanceModel.d.ts +45 -28
  43. package/types/viewer/scene/PerformanceModel/PerformanceNode.d.ts +26 -26
  44. package/types/viewer/scene/camera/Camera.d.ts +28 -28
  45. package/types/viewer/scene/camera/CameraFlightAnimation.d.ts +19 -19
  46. package/types/viewer/scene/camera/CustomProjection.d.ts +5 -5
  47. package/types/viewer/scene/camera/Frustum.d.ts +15 -15
  48. package/types/viewer/scene/camera/Ortho.d.ts +5 -5
  49. package/types/viewer/scene/camera/Perspective.d.ts +5 -5
  50. package/types/viewer/scene/index.d.ts +2 -1
  51. package/types/viewer/scene/marker/Marker.d.ts +15 -15
  52. package/types/viewer/scene/materials/EmphasisMaterial.d.ts +3 -3
  53. package/types/viewer/scene/materials/Fresnel.d.ts +2 -3
  54. package/types/viewer/scene/materials/LinesMaterial.d.ts +1 -1
  55. package/types/viewer/scene/materials/PhongMaterial.d.ts +26 -26
  56. package/types/viewer/scene/materials/PointsMaterial.d.ts +14 -14
  57. package/types/viewer/scene/materials/Texture.d.ts +14 -15
  58. package/types/viewer/scene/materials/index.d.ts +1 -0
  59. package/types/viewer/scene/math/math.d.ts +28 -28
  60. package/types/viewer/scene/mesh/Mesh.d.ts +786 -0
  61. package/types/viewer/scene/mesh/index.d.ts +1 -0
  62. package/types/viewer/scene/nodes/Node.d.ts +664 -0
  63. package/types/viewer/scene/nodes/index.d.ts +1 -0
  64. package/types/viewer/scene/scene/Scene.d.ts +155 -111
  65. package/types/viewer/scene/sectionPlane/SectionPlane.d.ts +3 -3
  66. package/types/viewer/scene/viewport/Viewport.d.ts +2 -2
  67. package/types/viewer/scene/webgl/PickResult.d.ts +2 -2
@@ -6,8 +6,52 @@ import { Entity } from "../Entity";
6
6
  import { ReadableGeometry } from "../geometry";
7
7
  import { EdgeMaterial, EmphasisMaterial, PhongMaterial, PointsMaterial, LinesMaterial } from "../materials";
8
8
  import { Viewport } from "../viewport/Viewport";
9
+ import { PerformanceModel } from "../PerformanceModel/PerformanceModel";
10
+ import { Mesh } from "../mesh";
11
+ import { Node } from "../nodes";
9
12
 
10
13
  export declare class Scene extends Component {
14
+
15
+ /**
16
+ * Fires when a model is loaded
17
+ * @param event The loaded event
18
+ * @param callback Called fired on the event
19
+ * @param scope Scope for the callback
20
+ */
21
+ on(event: "modelLoaded", callback: (modelId: string) => void, scope?: any): string;
22
+
23
+ /**
24
+ * Fires when a model is unloaded
25
+ * @param event The loaded event
26
+ * @param callback Called fired on the event
27
+ * @param scope Scope for the callback
28
+ */
29
+ on(event: "modelUnloaded", callback: (modelId: string) => void, scope?: any): string;
30
+
31
+ /**
32
+ * Fired when about to render a frame for a Scene.
33
+ * @param event The rendering event
34
+ * @param callback Called fired on the event
35
+ * @param scope Scope for the callback
36
+ */
37
+ on(event: "rendering", callback: (renderEvent: { sceneId: number; pass: number; }) => void, scope?: any): string;
38
+
39
+ /**
40
+ * Fired when we have just rendered a frame for a Scene.
41
+ * @param event The rendered event
42
+ * @param callback Called fired on the event
43
+ * @param scope Scope for the callback
44
+ */
45
+ on(event: "rendered", callback: (renderEvent: { sceneId: number; pass: number; }) => void, scope?: any): string;
46
+
47
+ /**
48
+ * Fires when the entity visibility is updated.
49
+ * @param event The rendered event
50
+ * @param callback Called fired on the event
51
+ * @param scope Scope for the callback
52
+ */
53
+ on(event: "objectVisibility", callback: (entity: PerformanceModel | Mesh | Node) => void, scope?: any): string;
54
+
11
55
  /**
12
56
  * The epoch time (in milliseconds since 1970) when this Scene was instantiated.
13
57
  */
@@ -16,7 +60,7 @@ export declare class Scene extends Component {
16
60
  /**
17
61
  * Map of {@link Entity}s that represent models.
18
62
  *
19
- * Each {@link Entity} is mapped here by {@link Entity#id} when {@link Entity#isModel} is ````true````.
63
+ * Each {@link Entity} is mapped here by {@link Entity.id} when {@link Entity.isModel} is ````true````.
20
64
  * @type {{String:Entity}}
21
65
  */
22
66
  get models(): {[key: string]: Entity};
@@ -24,7 +68,7 @@ export declare class Scene extends Component {
24
68
  /**
25
69
  * Map of {@link Entity}s that represents objects.
26
70
  *
27
- * Each {@link Entity} is mapped here by {@link Entity#id} when {@link Entity#isObject} is ````true````.
71
+ * Each {@link Entity} is mapped here by {@link Entity.id} when {@link Entity.isObject} is ````true````.
28
72
  * @final
29
73
  * @type {{String:Entity}}
30
74
  */
@@ -33,7 +77,7 @@ export declare class Scene extends Component {
33
77
  /**
34
78
  * Map of currently visible {@link Entity}s that represent objects.
35
79
  *
36
- * An Entity represents an object if {@link Entity#isObject} is ````true````, and is visible when {@link Entity#visible} is true.
80
+ * An Entity represents an object if {@link Entity.isObject} is ````true````, and is visible when {@link Entity.visible} is true.
37
81
  * @type {{String:Object}}
38
82
  */
39
83
  get visibleObjects(): {[key: string]: Entity};
@@ -41,9 +85,9 @@ export declare class Scene extends Component {
41
85
  /**
42
86
  * Map of currently xrayed {@link Entity}s that represent objects.
43
87
  *
44
- * An Entity represents an object if {@link Entity#isObject} is ````true````, and is xrayed when {@link Entity#xrayed} is true.
88
+ * An Entity represents an object if {@link Entity.isObject} is ````true````, and is xrayed when {@link Entity.xrayed} is true.
45
89
  *
46
- * Each {@link Entity} is mapped here by {@link Entity#id}.
90
+ * Each {@link Entity} is mapped here by {@link Entity.id}.
47
91
  *
48
92
  * @type {{String:Object}}
49
93
  */
@@ -52,9 +96,9 @@ export declare class Scene extends Component {
52
96
  /**
53
97
  * Map of currently highlighted {@link Entity}s that represent objects.
54
98
  *
55
- * An Entity represents an object if {@link Entity#isObject} is ````true```` is true, and is highlighted when {@link Entity#highlighted} is true.
99
+ * An Entity represents an object if {@link Entity.isObject} is ````true```` is true, and is highlighted when {@link Entity.highlighted} is true.
56
100
  *
57
- * Each {@link Entity} is mapped here by {@link Entity#id}.
101
+ * Each {@link Entity} is mapped here by {@link Entity.id}.
58
102
  *
59
103
  * @type {{String:Object}}
60
104
  */
@@ -63,9 +107,9 @@ export declare class Scene extends Component {
63
107
  /**
64
108
  * Map of currently selected {@link Entity}s that represent objects.
65
109
  *
66
- * An Entity represents an object if {@link Entity#isObject} is true, and is selected while {@link Entity#selected} is true.
110
+ * An Entity represents an object if {@link Entity.isObject} is true, and is selected while {@link Entity.selected} is true.
67
111
  *
68
- * Each {@link Entity} is mapped here by {@link Entity#id}.
112
+ * Each {@link Entity} is mapped here by {@link Entity.id}.
69
113
  *
70
114
  * @type {{String:Object}}
71
115
  */
@@ -74,9 +118,9 @@ export declare class Scene extends Component {
74
118
  /**
75
119
  * Map of currently colorized {@link Entity}s that represent objects.
76
120
  *
77
- * An Entity represents an object if {@link Entity#isObject} is ````true````.
121
+ * An Entity represents an object if {@link Entity.isObject} is ````true````.
78
122
  *
79
- * Each {@link Entity} is mapped here by {@link Entity#id}.
123
+ * Each {@link Entity} is mapped here by {@link Entity.id}.
80
124
  *
81
125
  * @type {{String:Object}}
82
126
  */
@@ -85,20 +129,20 @@ export declare class Scene extends Component {
85
129
  /**
86
130
  * Map of {@link Entity}s that represent objects whose opacity was updated.
87
131
  *
88
- * An Entity represents an object if {@link Entity#isObject} is ````true````.
132
+ * An Entity represents an object if {@link Entity.isObject} is ````true````.
89
133
  *
90
- * Each {@link Entity} is mapped here by {@link Entity#id}.
134
+ * Each {@link Entity} is mapped here by {@link Entity.id}.
91
135
  *
92
136
  * @type {{String:Object}}
93
137
  */
94
138
  get opacityObjects(): {[key: string]: Entity};
95
139
 
96
140
  /**
97
- * Map of {@link Entity}s that represent objects whose {@link Entity#offset}s were updated.
141
+ * Map of {@link Entity}s that represent objects whose {@link Entity.offset}s were updated.
98
142
  *
99
- * An Entity represents an object if {@link Entity#isObject} is ````true````.
143
+ * An Entity represents an object if {@link Entity.isObject} is ````true````.
100
144
  *
101
- * Each {@link Entity} is mapped here by {@link Entity#id}.
145
+ * Each {@link Entity} is mapped here by {@link Entity.id}.
102
146
  *
103
147
  * @property offsetObjects
104
148
  * @final
@@ -107,11 +151,11 @@ export declare class Scene extends Component {
107
151
  get offsetObjects(): {[key: string]: Entity};
108
152
 
109
153
  /**
110
- * Whether {@link Entity#offset} is enabled.
154
+ * Whether {@link Entity.offset} is enabled.
111
155
  *
112
156
  * This is set via the {@link Viewer} constructor and is ````false```` by default.
113
157
  *
114
- * @returns {Boolean} True if {@link Entity#offset} is enabled.
158
+ * @returns {Boolean} True if {@link Entity.offset} is enabled.
115
159
  */
116
160
  get entityOffsetsEnabled(): boolean;
117
161
 
@@ -120,7 +164,7 @@ export declare class Scene extends Component {
120
164
  *
121
165
  * This is set via the {@link Viewer} constructor and is ````false```` by default.
122
166
  *
123
- * The ````pickSurfacePrecision```` option for ````Scene#pick```` only works if this is set ````true````.
167
+ * The ````pickSurfacePrecision```` option for ````Scene.pick```` only works if this is set ````true````.
124
168
  *
125
169
  * Note that when ````true````, this configuration will increase the amount of browser memory used by the Viewer.
126
170
  *
@@ -153,105 +197,105 @@ export declare class Scene extends Component {
153
197
  get pbrEnabled(): boolean
154
198
 
155
199
  /**
156
- * Gets the IDs of the {@link Entity}s in {@link Scene#models}.
200
+ * Gets the IDs of the {@link Entity}s in {@link Scene.models}.
157
201
  *
158
202
  * @type {String[]}
159
203
  */
160
204
  get modelIds(): string[];
161
205
 
162
206
  /**
163
- * Gets the number of {@link Entity}s in {@link Scene#objects}.
207
+ * Gets the number of {@link Entity}s in {@link Scene.objects}.
164
208
  *
165
209
  * @type {Number}
166
210
  */
167
211
  get numObjects(): number;
168
212
 
169
213
  /**
170
- * Gets the IDs of the {@link Entity}s in {@link Scene#objects}.
214
+ * Gets the IDs of the {@link Entity}s in {@link Scene.objects}.
171
215
  *
172
216
  * @type {String[]}
173
217
  */
174
218
  get objectIds(): string[];
175
219
 
176
220
  /**
177
- * Gets the number of {@link Entity}s in {@link Scene#visibleObjects}.
221
+ * Gets the number of {@link Entity}s in {@link Scene.visibleObjects}.
178
222
  *
179
223
  * @type {Number}
180
224
  */
181
225
  get numVisibleObjects(): number;
182
226
 
183
227
  /**
184
- * Gets the IDs of the {@link Entity}s in {@link Scene#visibleObjects}.
228
+ * Gets the IDs of the {@link Entity}s in {@link Scene.visibleObjects}.
185
229
  *
186
230
  * @type {String[]}
187
231
  */
188
232
  get visibleObjectIds(): string[];
189
233
 
190
234
  /**
191
- * Gets the number of {@link Entity}s in {@link Scene#xrayedObjects}.
235
+ * Gets the number of {@link Entity}s in {@link Scene.xrayedObjects}.
192
236
  *
193
237
  * @type {Number}
194
238
  */
195
239
  get numXRayedObjects(): number;
196
240
 
197
241
  /**
198
- * Gets the IDs of the {@link Entity}s in {@link Scene#xrayedObjects}.
242
+ * Gets the IDs of the {@link Entity}s in {@link Scene.xrayedObjects}.
199
243
  *
200
244
  * @type {String[]}
201
245
  */
202
246
  get xrayedObjectIds(): string[];
203
247
 
204
248
  /**
205
- * Gets the number of {@link Entity}s in {@link Scene#highlightedObjects}.
249
+ * Gets the number of {@link Entity}s in {@link Scene.highlightedObjects}.
206
250
  *
207
251
  * @type {Number}
208
252
  */
209
253
  get numHighlightedObjects(): number;
210
254
 
211
255
  /**
212
- * Gets the IDs of the {@link Entity}s in {@link Scene#highlightedObjects}.
256
+ * Gets the IDs of the {@link Entity}s in {@link Scene.highlightedObjects}.
213
257
  *
214
258
  * @type {String[]}
215
259
  */
216
260
  get highlightedObjectIds(): string[];
217
261
 
218
262
  /**
219
- * Gets the number of {@link Entity}s in {@link Scene#selectedObjects}.
263
+ * Gets the number of {@link Entity}s in {@link Scene.selectedObjects}.
220
264
  *
221
265
  * @type {Number}
222
266
  */
223
267
  get numSelectedObjects(): number;
224
268
 
225
269
  /**
226
- * Gets the IDs of the {@link Entity}s in {@link Scene#selectedObjects}.
270
+ * Gets the IDs of the {@link Entity}s in {@link Scene.selectedObjects}.
227
271
  *
228
272
  * @type {String[]}
229
273
  */
230
274
  get selectedObjectIds(): string[];
231
275
 
232
276
  /**
233
- * Gets the number of {@link Entity}s in {@link Scene#colorizedObjects}.
277
+ * Gets the number of {@link Entity}s in {@link Scene.colorizedObjects}.
234
278
  *
235
279
  * @type {Number}
236
280
  */
237
281
  get numColorizedObjects(): number;
238
282
 
239
283
  /**
240
- * Gets the IDs of the {@link Entity}s in {@link Scene#colorizedObjects}.
284
+ * Gets the IDs of the {@link Entity}s in {@link Scene.colorizedObjects}.
241
285
  *
242
286
  * @type {String[]}
243
287
  */
244
288
  get colorizedObjectIds(): string[];
245
289
 
246
290
  /**
247
- * Gets the IDs of the {@link Entity}s in {@link Scene#opacityObjects}.
291
+ * Gets the IDs of the {@link Entity}s in {@link Scene.opacityObjects}.
248
292
  *
249
293
  * @type {String[]}
250
294
  */
251
295
  get opacityObjectIds(): string[];
252
296
 
253
297
  /**
254
- * Gets the IDs of the {@link Entity}s in {@link Scene#offsetObjects}.
298
+ * Gets the IDs of the {@link Entity}s in {@link Scene.offsetObjects}.
255
299
  *
256
300
  * @type {String[]}
257
301
  */
@@ -312,7 +356,7 @@ export declare class Scene extends Component {
312
356
  get passes(): number;
313
357
 
314
358
  /**
315
- * When {@link Scene#passes} is greater than ````1````, indicates whether or not to clear the canvas before each pass (````true````) or just before the first pass (````false````).
359
+ * When {@link Scene.passes} is greater than ````1````, indicates whether or not to clear the canvas before each pass (````true````) or just before the first pass (````false````).
316
360
  *
317
361
  * Default value is ````false````.
318
362
  *
@@ -321,7 +365,7 @@ export declare class Scene extends Component {
321
365
  set clearEachPass(value: boolean);
322
366
 
323
367
  /**
324
- * When {@link Scene#passes} is greater than ````1````, indicates whether or not to clear the canvas before each pass (````true````) or just before the first pass (````false````).
368
+ * When {@link Scene.passes} is greater than ````1````, indicates whether or not to clear the canvas before each pass (````true````) or just before the first pass (````false````).
325
369
  *
326
370
  * Default value is ````false````.
327
371
  *
@@ -366,7 +410,7 @@ export declare class Scene extends Component {
366
410
  get gammaOutput(): boolean;
367
411
 
368
412
  /**
369
- * Sets the gamma factor to use when {@link Scene#gammaOutput} is set true.
413
+ * Sets the gamma factor to use when {@link Scene.gammaOutput} is set true.
370
414
  *
371
415
  * Default value is ````2.2````.
372
416
  *
@@ -375,7 +419,7 @@ export declare class Scene extends Component {
375
419
  set gammaFactor(value: number);
376
420
 
377
421
  /**
378
- * Gets the gamma factor to use when {@link Scene#gammaOutput} is set true.
422
+ * Gets the gamma factor to use when {@link Scene.gammaOutput} is set true.
379
423
  *
380
424
  * Default value is ````2.2````.
381
425
  *
@@ -386,9 +430,9 @@ export declare class Scene extends Component {
386
430
  /**
387
431
  * Gets the default {@link Geometry} for this Scene, which is a {@link ReadableGeometry} with a unit-sized box shape.
388
432
  *
389
- * Has {@link ReadableGeometry#id} set to "default.geometry".
433
+ * Has {@link ReadableGeometry.id} set to "default.geometry".
390
434
  *
391
- * {@link Mesh}s in this Scene have {@link Mesh#geometry} set to this {@link ReadableGeometry} by default.
435
+ * {@link Mesh}s in this Scene have {@link Mesh.geometry} set to this {@link ReadableGeometry} by default.
392
436
  *
393
437
  * @type {ReadableGeometry}
394
438
  */
@@ -397,9 +441,9 @@ export declare class Scene extends Component {
397
441
  /**
398
442
  * Gets the default {@link Material} for this Scene, which is a {@link PhongMaterial}.
399
443
  *
400
- * Has {@link PhongMaterial#id} set to "default.material".
444
+ * Has {@link PhongMaterial.id} set to "default.material".
401
445
  *
402
- * {@link Mesh}s in this Scene have {@link Mesh#material} set to this {@link PhongMaterial} by default.
446
+ * {@link Mesh}s in this Scene have {@link Mesh.material} set to this {@link PhongMaterial} by default.
403
447
  *
404
448
  * @type {PhongMaterial}
405
449
  */
@@ -408,11 +452,11 @@ export declare class Scene extends Component {
408
452
  /**
409
453
  * Gets the default xraying {@link EmphasisMaterial} for this Scene.
410
454
  *
411
- * Has {@link EmphasisMaterial#id} set to "default.xrayMaterial".
455
+ * Has {@link EmphasisMaterial.id} set to "default.xrayMaterial".
412
456
  *
413
- * {@link Mesh}s in this Scene have {@link Mesh#xrayMaterial} set to this {@link EmphasisMaterial} by default.
457
+ * {@link Mesh}s in this Scene have {@link Mesh.xrayMaterial} set to this {@link EmphasisMaterial} by default.
414
458
  *
415
- * {@link Mesh}s are xrayed while {@link Mesh#xrayed} is ````true````.
459
+ * {@link Mesh}s are xrayed while {@link Mesh.xrayed} is ````true````.
416
460
  *
417
461
  * @type {EmphasisMaterial}
418
462
  */
@@ -421,11 +465,11 @@ export declare class Scene extends Component {
421
465
  /**
422
466
  * Gets the default highlight {@link EmphasisMaterial} for this Scene.
423
467
  *
424
- * Has {@link EmphasisMaterial#id} set to "default.highlightMaterial".
468
+ * Has {@link EmphasisMaterial.id} set to "default.highlightMaterial".
425
469
  *
426
- * {@link Mesh}s in this Scene have {@link Mesh#highlightMaterial} set to this {@link EmphasisMaterial} by default.
470
+ * {@link Mesh}s in this Scene have {@link Mesh.highlightMaterial} set to this {@link EmphasisMaterial} by default.
427
471
  *
428
- * {@link Mesh}s are highlighted while {@link Mesh#highlighted} is ````true````.
472
+ * {@link Mesh}s are highlighted while {@link Mesh.highlighted} is ````true````.
429
473
  *
430
474
  * @type {EmphasisMaterial}
431
475
  */
@@ -434,11 +478,11 @@ export declare class Scene extends Component {
434
478
  /**
435
479
  * Gets the default selection {@link EmphasisMaterial} for this Scene.
436
480
  *
437
- * Has {@link EmphasisMaterial#id} set to "default.selectedMaterial".
481
+ * Has {@link EmphasisMaterial.id} set to "default.selectedMaterial".
438
482
  *
439
- * {@link Mesh}s in this Scene have {@link Mesh#highlightMaterial} set to this {@link EmphasisMaterial} by default.
483
+ * {@link Mesh}s in this Scene have {@link Mesh.highlightMaterial} set to this {@link EmphasisMaterial} by default.
440
484
  *
441
- * {@link Mesh}s are highlighted while {@link Mesh#highlighted} is ````true````.
485
+ * {@link Mesh}s are highlighted while {@link Mesh.highlighted} is ````true````.
442
486
  *
443
487
  * @type {EmphasisMaterial}
444
488
  */
@@ -447,11 +491,11 @@ export declare class Scene extends Component {
447
491
  /**
448
492
  * Gets the default {@link EdgeMaterial} for this Scene.
449
493
  *
450
- * Has {@link EdgeMaterial#id} set to "default.edgeMaterial".
494
+ * Has {@link EdgeMaterial.id} set to "default.edgeMaterial".
451
495
  *
452
- * {@link Mesh}s in this Scene have {@link Mesh#edgeMaterial} set to this {@link EdgeMaterial} by default.
496
+ * {@link Mesh}s in this Scene have {@link Mesh.edgeMaterial} set to this {@link EdgeMaterial} by default.
453
497
  *
454
- * {@link Mesh}s have their edges emphasized while {@link Mesh#edges} is ````true````.
498
+ * {@link Mesh}s have their edges emphasized while {@link Mesh.edges} is ````true````.
455
499
  *
456
500
  * @type {EdgeMaterial}
457
501
  */
@@ -508,7 +552,7 @@ export declare class Scene extends Component {
508
552
  /**
509
553
  * Performs an occlusion test on all {@link Marker}s in this {@link Scene}.
510
554
  *
511
- * Sets each {@link Marker#visible} ````true```` if the Marker is currently not occluded by any opaque {@link Entity}s
555
+ * Sets each {@link Marker.visible} ````true```` if the Marker is currently not occluded by any opaque {@link Entity}s
512
556
  * in the Scene, or ````false```` if an Entity is occluding it.
513
557
  */
514
558
  doOcclusionTest(): void;
@@ -522,13 +566,13 @@ export declare class Scene extends Component {
522
566
  * @param {Boolean} [forceRender=false] Forces a render when true, otherwise only renders if something has changed in this Scene
523
567
  * since the last render.
524
568
  */
525
- render(forceRender?: boolean);
569
+ render(forceRender?: boolean): void;
526
570
 
527
571
  /**
528
572
  * Attempts to pick an {@link Entity} in this Scene.
529
573
  * @param {*} params Picking parameters.
530
574
  * @param {Boolean} [params.pickSurface=false] Whether to find the picked position on the surface of the Entity.
531
- * @param {Boolean} [params.pickSurfacePrecision=false] When picking an Entity surface position, indicates whether or not we want full-precision {@link PickResult#worldPos}. Only works when {@link Scene#pickSurfacePrecisionEnabled} is ````true````. If pick succeeds, the returned {@link PickResult} will have {@link PickResult#precision} set ````true````, to indicate that it contains full-precision surface pick results.
575
+ * @param {Boolean} [params.pickSurfacePrecision=false] When picking an Entity surface position, indicates whether or not we want full-precision {@link PickResult.worldPos}. Only works when {@link Scene.pickSurfacePrecisionEnabled} is ````true````. If pick succeeds, the returned {@link PickResult} will have {@link PickResult.precision} set ````true````, to indicate that it contains full-precision surface pick results.
532
576
  * @param {Boolean} [params.pickSurfaceNormal=false] Whether to find the picked normal on the surface of the Entity. Only works if ````pickSurface```` is given.
533
577
  * @param {Number[]} [params.canvasPos] Canvas-space coordinates. When ray-picking, this will override the **origin** and ** direction** parameters and will cause the ray to be fired through the canvas at this position, directly along the negative View-space Z-axis.
534
578
  * @param {Number[]} [params.origin] World-space ray origin when ray-picking. Ignored when canvasPos given.
@@ -569,142 +613,142 @@ export declare class Scene extends Component {
569
613
  /**
570
614
  * Gets the collective axis-aligned boundary (AABB) of a batch of {@link Entity}s that represent objects.
571
615
  *
572
- * An {@link Entity} represents an object when {@link Entity#isObject} is ````true````.
616
+ * An {@link Entity} represents an object when {@link Entity.isObject} is ````true````.
573
617
  *
574
- * Each {@link Entity} on which {@link Entity#isObject} is registered by {@link Entity#id} in {@link Scene#visibleObjects}.
618
+ * Each {@link Entity} on which {@link Entity.isObject} is registered by {@link Entity.id} in {@link Scene.visibleObjects}.
575
619
  *
576
- * Each {@link Entity} is only included in the AABB when {@link Entity#collidable} is ````true````.
620
+ * Each {@link Entity} is only included in the AABB when {@link Entity.collidable} is ````true````.
577
621
  *
578
- * @param {String[]} ids Array of {@link Entity#id} values.
622
+ * @param {String[]} ids Array of {@link Entity.id} values.
579
623
  * @returns {[Number, Number, Number, Number, Number, Number]} An axis-aligned World-space bounding box, given as elements ````[xmin, ymin, zmin, xmax, ymax, zmax]````.
580
624
  */
581
625
  getAABB(ids: string[]): number[];
582
626
 
583
627
  /**
584
- * Batch-updates {@link Entity#visible} on {@link Entity}s that represent objects.
628
+ * Batch-updates {@link Entity.visible} on {@link Entity}s that represent objects.
585
629
  *
586
- * An {@link Entity} represents an object when {@link Entity#isObject} is ````true````.
630
+ * An {@link Entity} represents an object when {@link Entity.isObject} is ````true````.
587
631
  *
588
- * Each {@link Entity} on which both {@link Entity#isObject} and {@link Entity#visible} are ````true```` is
589
- * registered by {@link Entity#id} in {@link Scene#visibleObjects}.
632
+ * Each {@link Entity} on which both {@link Entity.isObject} and {@link Entity.visible} are ````true```` is
633
+ * registered by {@link Entity.id} in {@link Scene.visibleObjects}.
590
634
  *
591
- * @param {String[]} ids Array of {@link Entity#id} values.
635
+ * @param {String[]} ids Array of {@link Entity.id} values.
592
636
  * @param {Boolean} visible Whether or not to set visible.
593
637
  * @returns {Boolean} True if any {@link Entity}s were updated, else false if all updates were redundant and not applied.
594
638
  */
595
639
  setObjectsVisible(ids: string[], visible: boolean): boolean;
596
640
 
597
641
  /**
598
- * Batch-updates {@link Entity#collidable} on {@link Entity}s that represent objects.
642
+ * Batch-updates {@link Entity.collidable} on {@link Entity}s that represent objects.
599
643
  *
600
- * An {@link Entity} represents an object when {@link Entity#isObject} is ````true````.
644
+ * An {@link Entity} represents an object when {@link Entity.isObject} is ````true````.
601
645
  *
602
- * @param {String[]} ids Array of {@link Entity#id} values.
646
+ * @param {String[]} ids Array of {@link Entity.id} values.
603
647
  * @param {Boolean} collidable Whether or not to set collidable.
604
648
  * @returns {Boolean} True if any {@link Entity}s were updated, else false if all updates were redundant and not applied.
605
649
  */
606
650
  setObjectsCollidable(ids: string[], collidable: boolean): boolean;
607
651
 
608
652
  /**
609
- * Batch-updates {@link Entity#culled} on {@link Entity}s that represent objects.
653
+ * Batch-updates {@link Entity.culled} on {@link Entity}s that represent objects.
610
654
  *
611
- * An {@link Entity} represents an object when {@link Entity#isObject} is ````true````.
655
+ * An {@link Entity} represents an object when {@link Entity.isObject} is ````true````.
612
656
  *
613
- * @param {String[]} ids Array of {@link Entity#id} values.
657
+ * @param {String[]} ids Array of {@link Entity.id} values.
614
658
  * @param {Boolean} culled Whether or not to cull.
615
659
  * @returns {Boolean} True if any {@link Entity}s were updated, else false if all updates were redundant and not applied.
616
660
  */
617
661
  setObjectsCulled(ids: string[], culled: boolean): boolean;
618
662
 
619
663
  /**
620
- * Batch-updates {@link Entity#selected} on {@link Entity}s that represent objects.
664
+ * Batch-updates {@link Entity.selected} on {@link Entity}s that represent objects.
621
665
  *
622
- * An {@link Entity} represents an object when {@link Entity#isObject} is ````true````.
666
+ * An {@link Entity} represents an object when {@link Entity.isObject} is ````true````.
623
667
  *
624
- * Each {@link Entity} on which both {@link Entity#isObject} and {@link Entity#selected} are ````true```` is
625
- * registered by {@link Entity#id} in {@link Scene#selectedObjects}.
668
+ * Each {@link Entity} on which both {@link Entity.isObject} and {@link Entity.selected} are ````true```` is
669
+ * registered by {@link Entity.id} in {@link Scene.selectedObjects}.
626
670
  *
627
- * @param {String[]} ids Array of {@link Entity#id} values.
671
+ * @param {String[]} ids Array of {@link Entity.id} values.
628
672
  * @param {Boolean} selected Whether or not to select.
629
673
  * @returns {Boolean} True if any {@link Entity}s were updated, else false if all updates were redundant and not applied.
630
674
  */
631
675
  setObjectsSelected(ids: string[], selected: boolean): boolean;
632
676
 
633
677
  /**
634
- * Batch-updates {@link Entity#highlighted} on {@link Entity}s that represent objects.
678
+ * Batch-updates {@link Entity.highlighted} on {@link Entity}s that represent objects.
635
679
  *
636
- * An {@link Entity} represents an object when {@link Entity#isObject} is ````true````.
680
+ * An {@link Entity} represents an object when {@link Entity.isObject} is ````true````.
637
681
  *
638
- * Each {@link Entity} on which both {@link Entity#isObject} and {@link Entity#highlighted} are ````true```` is
639
- * registered by {@link Entity#id} in {@link Scene#highlightedObjects}.
682
+ * Each {@link Entity} on which both {@link Entity.isObject} and {@link Entity.highlighted} are ````true```` is
683
+ * registered by {@link Entity.id} in {@link Scene.highlightedObjects}.
640
684
  *
641
- * @param {String[]} ids Array of {@link Entity#id} values.
685
+ * @param {String[]} ids Array of {@link Entity.id} values.
642
686
  * @param {Boolean} highlighted Whether or not to highlight.
643
687
  * @returns {Boolean} True if any {@link Entity}s were updated, else false if all updates were redundant and not applied.
644
688
  */
645
689
  setObjectsHighlighted(ids: string[], highlighted: boolean): boolean;
646
690
 
647
691
  /**
648
- * Batch-updates {@link Entity#xrayed} on {@link Entity}s that represent objects.
692
+ * Batch-updates {@link Entity.xrayed} on {@link Entity}s that represent objects.
649
693
  *
650
- * An {@link Entity} represents an object when {@link Entity#isObject} is ````true````.
694
+ * An {@link Entity} represents an object when {@link Entity.isObject} is ````true````.
651
695
  *
652
- * @param {String[]} ids Array of {@link Entity#id} values.
696
+ * @param {String[]} ids Array of {@link Entity.id} values.
653
697
  * @param {Boolean} xrayed Whether or not to xray.
654
698
  * @returns {Boolean} True if any {@link Entity}s were updated, else false if all updates were redundant and not applied.
655
699
  */
656
700
  setObjectsXRayed(ids: string[], xrayed: boolean): boolean;
657
701
 
658
702
  /**
659
- * Batch-updates {@link Entity#edges} on {@link Entity}s that represent objects.
703
+ * Batch-updates {@link Entity.edges} on {@link Entity}s that represent objects.
660
704
  *
661
- * An {@link Entity} represents an object when {@link Entity#isObject} is ````true````.
705
+ * An {@link Entity} represents an object when {@link Entity.isObject} is ````true````.
662
706
  *
663
- * @param {String[]} ids Array of {@link Entity#id} values.
707
+ * @param {String[]} ids Array of {@link Entity.id} values.
664
708
  * @param {Boolean} edges Whether or not to show edges.
665
709
  * @returns {Boolean} True if any {@link Entity}s were updated, else false if all updates were redundant and not applied.
666
710
  */
667
711
  setObjectsEdges(ids: string[], edges: boolean): boolean;
668
712
 
669
713
  /**
670
- * Batch-updates {@link Entity#colorize} on {@link Entity}s that represent objects.
714
+ * Batch-updates {@link Entity.colorize} on {@link Entity}s that represent objects.
671
715
  *
672
- * An {@link Entity} represents an object when {@link Entity#isObject} is ````true````.
716
+ * An {@link Entity} represents an object when {@link Entity.isObject} is ````true````.
673
717
  *
674
- * @param {String[]} ids Array of {@link Entity#id} values.
718
+ * @param {String[]} ids Array of {@link Entity.id} values.
675
719
  * @param {Number[]} [colorize=(1,1,1)] RGB colorize factors, multiplied by the rendered pixel colors.
676
720
  * @returns {Boolean} True if any {@link Entity}s changed opacity, else false if all updates were redundant and not applied.
677
721
  */
678
722
  setObjectsColorized(ids: string[], colorize: number[]): boolean;
679
723
 
680
724
  /**
681
- * Batch-updates {@link Entity#opacity} on {@link Entity}s that represent objects.
725
+ * Batch-updates {@link Entity.opacity} on {@link Entity}s that represent objects.
682
726
  *
683
- * An {@link Entity} represents an object when {@link Entity#isObject} is ````true````.
727
+ * An {@link Entity} represents an object when {@link Entity.isObject} is ````true````.
684
728
  *
685
- * @param {String[]} ids Array of {@link Entity#id} values.
729
+ * @param {String[]} ids Array of {@link Entity.id} values.
686
730
  * @param {Number} [opacity=1.0] Opacity factor, multiplied by the rendered pixel alphas.
687
731
  * @returns {Boolean} True if any {@link Entity}s changed opacity, else false if all updates were redundant and not applied.
688
732
  */
689
733
  setObjectsOpacity(ids: string[], opacity: number): boolean
690
734
 
691
735
  /**
692
- * Batch-updates {@link Entity#pickable} on {@link Entity}s that represent objects.
693
- *
694
- * An {@link Entity} represents an object when {@link Entity#isObject} is ````true````.
695
- *
696
- * @param {String[]} ids Array of {@link Entity#id} values.
697
- * @param {Boolean} pickable Whether or not to set pickable.
698
- * @returns {Boolean} True if any {@link Entity}s were updated, else false if all updates were redundant and not applied.
699
- */
736
+ * Batch-updates {@link Entity.pickable} on {@link Entity}s that represent objects.
737
+ *
738
+ * An {@link Entity} represents an object when {@link Entity.isObject} is ````true````.
739
+ *
740
+ * @param {String[]} ids Array of {@link Entity.id} values.
741
+ * @param {Boolean} pickable Whether or not to set pickable.
742
+ * @returns {Boolean} True if any {@link Entity}s were updated, else false if all updates were redundant and not applied.
743
+ */
700
744
  setObjectsPickable(ids: string[], pickable: boolean): boolean;
701
745
 
702
746
  /**
703
- * Batch-updates {@link Entity#offset} on {@link Entity}s that represent objects.
747
+ * Batch-updates {@link Entity.offset} on {@link Entity}s that represent objects.
704
748
  *
705
- * An {@link Entity} represents an object when {@link Entity#isObject} is ````true````.
749
+ * An {@link Entity} represents an object when {@link Entity.isObject} is ````true````.
706
750
  *
707
- * @param {String[]} ids Array of {@link Entity#id} values.
751
+ * @param {String[]} ids Array of {@link Entity.id} values.
708
752
  * @param {Number[]} [offset] 3D offset vector.
709
753
  */
710
754
  setObjectsOffset(ids: string[], offset: number[]): void;
@@ -712,16 +756,16 @@ export declare class Scene extends Component {
712
756
  /**
713
757
  * Iterates with a callback over {@link Entity}s that represent objects.
714
758
  *
715
- * An {@link Entity} represents an object when {@link Entity#isObject} is ````true````.
759
+ * An {@link Entity} represents an object when {@link Entity.isObject} is ````true````.
716
760
  *
717
- * @param {String[]} ids Array of {@link Entity#id} values.
761
+ * @param {String[]} ids Array of {@link Entity.id} values.
718
762
  * @param {Function} callback Callback to execute on eacn {@link Entity}.
719
763
  * @returns {Boolean} True if any {@link Entity}s were updated, else false if all updates were redundant and not applied.
720
764
  */
721
- withObjects(ids: string[], callback): boolean;
765
+ withObjects(ids: string[], callback: Function): boolean;
722
766
 
723
767
  /**
724
- * Destroys this Scene.
725
- */
726
- destroy(); void;
768
+ * Destroys this Scene.
769
+ */
770
+ destroy(): void;
727
771
  }