@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
@@ -118,7 +118,7 @@ export declare class CameraControl extends Component {
118
118
  on(event: "doublePickedNothing", callback: (e?: {canvasPos: number[]; }) => void, scope?: any): string
119
119
 
120
120
  /**
121
- * The current navigation mode.
121
+ * Sets the current navigation mode.
122
122
  *
123
123
  * Accepted values are:
124
124
  *
@@ -127,77 +127,201 @@ export declare class CameraControl extends Component {
127
127
  * * "planView" - rotation is disabled.
128
128
  *
129
129
  * See class comments for more info.
130
+ *
131
+ * @param {String} navMode The navigation mode.
132
+ */
133
+ set navMode(arg: "orbit" | "firstPerson" | "planView");
134
+
135
+ /**
136
+ * Gets the current navigation mode.
137
+ *
138
+ * @returns {String} The navigation mode
139
+ */
140
+ get navMode(): "orbit" | "firstPerson" | "planView";
141
+
142
+ /**
143
+ * Sets whether to vertically constrain the {@link Camera} position for first-person navigation.
144
+ *
145
+ * When set ````true````, this constrains {@link Camera.eye} to its current vertical position.
146
+ *
147
+ * Only applies when {@link CameraControl.navMode} is ````"firstPerson"````.
148
+ *
149
+ * Default is ````false````.
150
+ *
151
+ * @param {Boolean} value Set ````true```` to vertically constrain the Camera.
130
152
  */
131
- navMode: "orbit" | "firstPerson" | "planView";
153
+ set constrainVertical(arg: boolean);
132
154
 
133
155
  /**
134
- * Whether to vertically constrain the {@link Camera} position for first-person navigation.
156
+ * Gets whether to vertically constrain the {@link Camera} position for first-person navigation.
135
157
  *
136
158
  * When set ````true````, this constrains {@link Camera.eye} to its current vertical position.
137
159
  *
138
160
  * Only applies when {@link CameraControl.navMode} is ````"firstPerson"````.
139
161
  *
140
162
  * Default is ````false````.
163
+ *
164
+ * @returns {Boolean} ````true```` when Camera is vertically constrained.
141
165
  */
142
- constrainVertical: boolean;
166
+ get constrainVertical(): boolean;
143
167
 
144
168
  /**
145
- * Custom mappings of keys to ````CameraControl```` actions.
169
+ * Sets custom mappings of keys to ````CameraControl```` actions.
146
170
  *
147
171
  * See class docs for usage.
172
+ *
173
+ * @param {{Number:Number}|String} value Either a set of new key mappings, or a string to select a keyboard layout,
174
+ * which causes ````CameraControl```` to use the default key mappings for that layout.
175
+ */
176
+ set keyMap(arg: {
177
+ [key: number]: number;
178
+ });
179
+
180
+ /**
181
+ * Gets custom mappings of keys to {@link CameraControl} actions.
182
+ *
183
+ * @returns {{Number:Number}} Current key mappings.
148
184
  */
149
- keyMap: {
185
+ get keyMap(): {
150
186
  [key: number]: number;
151
187
  };
152
188
 
153
189
  /**
154
- * Whether double-picking an {@link Entity} causes the {@link Camera} to fly to its boundary.
190
+ * Sets whether double-picking an {@link Entity} causes the {@link Camera} to fly to its boundary.
155
191
  *
156
192
  * Default is ````false````.
193
+ *
194
+ * @param {Boolean} value Set ````true```` to enable double-pick-fly-to mode.
195
+ */
196
+ set doublePickFlyTo(arg: boolean);
197
+
198
+ /**
199
+ * Gets whether double-picking an {@link Entity} causes the {@link Camera} to fly to its boundary.
200
+ *
201
+ * Default is ````false````.
202
+ *
203
+ * @returns {Boolean} Returns ````true```` when double-pick-fly-to mode is enabled.
204
+ */
205
+ get doublePickFlyTo(): boolean;
206
+
207
+ /**
208
+ * Sets whether either right-clicking (true) or middle-clicking (false) pans the {@link Camera}.
209
+ *
210
+ * Default is ````true````.
211
+ *
212
+ * @param {Boolean} value Set ````false```` to disable pan on right-click.
157
213
  */
158
- doublePickFlyTo: boolean;
214
+ set panRightClick(arg: boolean);
159
215
 
160
216
  /**
161
- * Whether either right-clicking (true) or middle-clicking (false) pans the {@link Camera}.
217
+ * Gets whether right-clicking pans the {@link Camera}.
162
218
  *
163
219
  * Default is ````true````.
220
+ *
221
+ * @returns {Boolean} Returns ````false```` when pan on right-click is disabled.
164
222
  */
165
- panRightClick: boolean;
223
+ get panRightClick(): boolean;
166
224
 
167
225
  /**
168
- * Whether this ````CameraControl```` is active or not.
226
+ * Sets if this ````CameraControl```` is active or not.
169
227
  *
170
228
  * When inactive, the ````CameraControl```` will not react to input.
171
229
  *
172
230
  * Default is ````true````.
231
+ *
232
+ * @param {Boolean} value Set ````true```` to activate this ````CameraControl````.
233
+ */
234
+ set active(arg: boolean);
235
+
236
+ /**
237
+ * Gets if this ````CameraControl```` is active or not.
238
+ *
239
+ * When inactive, the ````CameraControl```` will not react to input.
240
+ *
241
+ * Default is ````true````.
242
+ *
243
+ * @returns {Boolean} Returns ````true```` if this ````CameraControl```` is active.
173
244
  */
174
- active: boolean;
245
+ get active(): boolean;
175
246
 
176
247
  /**
177
- * Whether the pointer snap to vertex.
248
+ * Sets whether the pointer snap to vertex.
249
+ *
250
+ * @param {boolean} arg
251
+ */
252
+ set snapToVertex(arg: boolean);
253
+
254
+ /**
255
+ * Gets whether the pointer snap to vertex.
256
+ *
257
+ * @returns {boolean}
178
258
  */
179
- snapToVertex: boolean;
259
+ get snapToVertex(): boolean;
180
260
 
181
261
  /**
182
- * Whether the pointer snap to edge.
262
+ * Sets whether the pointer snap to edge.
263
+ *
264
+ * @param {boolean} arg
183
265
  */
184
- snapToEdge: boolean;
266
+ set snapToEdge(arg: boolean);
185
267
 
186
268
  /**
187
- * The current snap radius for "hoverSnapOrSurface" events, to specify whether the radius
269
+ * Gets whether the pointer snap to edge.
270
+ *
271
+ * @returns {boolean}
272
+ */
273
+ get snapToEdge(): boolean;
274
+
275
+ /**
276
+ * Sets the current snap radius for "hoverSnapOrSurface" events, to specify whether the radius
188
277
  * within which the pointer snaps to the nearest vertex or the nearest edge.
189
278
  *
190
279
  * Default value is 30 pixels.
280
+ *
281
+ * @param {Number} arg The snap radius.
191
282
  */
192
- snapRadius: number;
283
+ set snapRadius(arg: number);
193
284
 
194
285
  /**
195
- * Whether the keyboard shortcuts are enabled ONLY if the mouse is over the canvas.
286
+ * Gets the current snap radius.
287
+ *
288
+ * @returns {Number} The snap radius.
196
289
  */
197
- keyboardEnabledOnlyIfMouseover: boolean;
290
+ get snapRadius(): number;
198
291
 
199
292
  /**
200
- * Whether the {@link Camera} follows the mouse/touch pointer.
293
+ * If `true`, the keyboard shortcuts are enabled ONLY if the mouse is over the canvas.
294
+ *
295
+ * @param {boolean} arg
296
+ */
297
+ set keyboardEnabledOnlyIfMouseover(arg: boolean);
298
+
299
+ /**
300
+ * Gets whether the keyboard shortcuts are enabled ONLY if the mouse is over the canvas or ALWAYS.
301
+ *
302
+ * @returns {boolean}
303
+ */
304
+ get keyboardEnabledOnlyIfMouseover(): boolean;
305
+
306
+ /**
307
+ * Sets whether the {@link Camera} follows the mouse/touch pointer.
308
+ *
309
+ * In orbiting mode, the Camera will orbit about the pointer, and will dolly to and from the pointer.
310
+ *
311
+ * In fly-to mode, the Camera will dolly to and from the pointer, however the World will always rotate about the Camera position.
312
+ *
313
+ * In plan-view mode, the Camera will dolly to and from the pointer, however the Camera will not rotate.
314
+ *
315
+ * Default is ````true````.
316
+ *
317
+ * See class comments for more info.
318
+ *
319
+ * @param {Boolean} value Set ````true```` to enable the Camera to follow the pointer.
320
+ */
321
+ set followPointer(arg: boolean);
322
+
323
+ /**
324
+ * Sets whether the {@link Camera} follows the mouse/touch pointer.
201
325
  *
202
326
  * In orbiting mode, the Camera will orbit about the pointer, and will dolly to and from the pointer.
203
327
  *
@@ -208,11 +332,13 @@ export declare class CameraControl extends Component {
208
332
  * Default is ````true````.
209
333
  *
210
334
  * See class comments for more info.
335
+ *
336
+ * @returns {Boolean} Returns ````true```` if the Camera follows the pointer.
211
337
  */
212
- followPointer: boolean;
338
+ get followPointer(): boolean;
213
339
 
214
340
  /**
215
- * A factor in range ````[0..1]```` indicating how much the {@link Camera} keeps moving after you finish rotating it.
341
+ * Sets a factor in range ````[0..1]```` indicating how much the {@link Camera} keeps moving after you finish rotating it.
216
342
  *
217
343
  * A value of ````0.0```` causes it to immediately stop, ````0.5```` causes its movement to decay 50% on each tick,
218
344
  * while ````1.0```` causes no decay, allowing it continue moving, by the current rate of rotation.
@@ -224,11 +350,24 @@ export declare class CameraControl extends Component {
224
350
  * Default is ````0.0````.
225
351
  *
226
352
  * Does not apply when {@link CameraControl.navMode} is ````"planView"````, which disallows rotation.
353
+ *
354
+ * @param {Number} rotationInertia New inertial factor.
227
355
  */
228
- rotationInertia: number;
356
+ set rotationInertia(arg: number);
229
357
 
230
358
  /**
231
- * How much the {@link Camera} pans each second with keyboard input.
359
+ * Gets the rotation inertia factor.
360
+ *
361
+ * Default is ````0.0````.
362
+ *
363
+ * Does not apply when {@link CameraControl.navMode} is ````"planView"````, which disallows rotation.
364
+ *
365
+ * @returns {Number} The inertia factor.
366
+ */
367
+ get rotationInertia(): number;
368
+
369
+ /**
370
+ * Sets how much the {@link Camera} pans each second with keyboard input.
232
371
  *
233
372
  * Default is ````5.0````, to pan the Camera ````5.0```` World-space units every second that
234
373
  * a panning key is depressed. See the ````CameraControl```` class documentation for which keys control
@@ -239,27 +378,58 @@ export declare class CameraControl extends Component {
239
378
  * and backwards, we pan along the direction the Camera is pointing.
240
379
  *
241
380
  * Unlike dollying when {@link followPointer} is ````true````, panning does not follow the pointer.
381
+ *
382
+ * @param {Number} keyboardPanRate The new keyboard pan rate.
242
383
  */
243
- keyboardPanRate: number;
384
+ set keyboardPanRate(arg: number);
244
385
 
245
386
  /**
246
- * How fast the {@link Camera} pans on touch panning
387
+ * Gets how much the {@link Camera} pans each second with keyboard input.
388
+ *
389
+ * Default is ````5.0````.
390
+ *
391
+ * @returns {Number} The current keyboard pan rate.
392
+ */
393
+ get keyboardPanRate(): number;
394
+
395
+ /**
396
+ * Sets how fast the camera pans on touch panning
397
+ *
398
+ * @param {Number} touchPanRate The new touch pan rate.
399
+ */
400
+ set touchPanRate(arg: number);
401
+
402
+ /**
403
+ * Gets how fast the {@link Camera} pans on touch panning
247
404
  *
248
405
  * Default is ````1.0````.
406
+ *
407
+ * @returns {Number} The current touch pan rate.
249
408
  */
250
- touchPanRate: number;
409
+ get touchPanRate(): number;
251
410
 
252
411
  /**
253
- * How many degrees per second the {@link Camera} rotates/orbits with keyboard input.
412
+ * Sets how many degrees per second the {@link Camera} rotates/orbits with keyboard input.
254
413
  *
255
414
  * Default is ````90.0````, to rotate/orbit the Camera ````90.0```` degrees every second that
256
415
  * a rotation key is depressed. See the ````CameraControl```` class documentation for which keys control
257
416
  * rotation/orbit.
417
+ *
418
+ * @param {Number} keyboardRotationRate The new keyboard rotation rate.
258
419
  */
259
- keyboardRotationRate: number;
420
+ set keyboardRotationRate(arg: number);
260
421
 
261
422
  /**
262
- * The current drag rotation rate.
423
+ * Sets how many degrees per second the {@link Camera} rotates/orbits with keyboard input.
424
+ *
425
+ * Default is ````90.0````.
426
+ *
427
+ * @returns {Number} The current keyboard rotation rate.
428
+ */
429
+ get keyboardRotationRate(): number;
430
+
431
+ /**
432
+ * Sets the current drag rotation rate.
263
433
  *
264
434
  * This configures how many degrees the {@link Camera} rotates/orbits for a full sweep of the canvas by mouse or touch dragging.
265
435
  *
@@ -271,18 +441,40 @@ export declare class CameraControl extends Component {
271
441
  * vertically when we sweep the entire height of the canvas.
272
442
  *
273
443
  * Default is ````360.0````.
444
+ *
445
+ * @param {Number} dragRotationRate The new drag rotation rate.
446
+ */
447
+ set dragRotationRate(arg: number);
448
+
449
+ /**
450
+ * Gets the current drag rotation rate.
451
+ *
452
+ * Default is ````360.0````.
453
+ *
454
+ * @returns {Number} The current drag rotation rate.
274
455
  */
275
- dragRotationRate: number;
456
+ get dragRotationRate(): number;
276
457
 
277
458
  /**
278
- * How much the {@link Camera} dollys each second with touch input.
459
+ * Sets how much the {@link Camera} dollys with touch input.
460
+ *
461
+ * Default is ````0.2````
462
+ *
463
+ * @param {Number} touchDollyRate The new touch dolly rate.
464
+ */
465
+ set touchDollyRate(arg: number);
466
+
467
+ /**
468
+ * Gets how much the {@link Camera} dollys each second with touch input.
279
469
  *
280
470
  * Default is ````0.2````.
471
+ *
472
+ * @returns {Number} The current touch dolly rate.
281
473
  */
282
- touchDollyRate: number;
474
+ get touchDollyRate(): number;
283
475
 
284
476
  /**
285
- * The dolly inertia factor.
477
+ * Sets the dolly inertia factor.
286
478
  *
287
479
  * This factor configures how much the {@link Camera} keeps moving after you finish dollying it.
288
480
  *
@@ -295,25 +487,58 @@ export declare class CameraControl extends Component {
295
487
  * which can improve rendering performance.
296
488
  *
297
489
  * Default is ````0````.
490
+ *
491
+ * @param {Number} dollyInertia New dolly inertia factor.
492
+ */
493
+ set dollyInertia(arg: number);
494
+
495
+ /**
496
+ * Gets the dolly inertia factor.
497
+ *
498
+ * Default is ````0````.
499
+ *
500
+ * @returns {Number} The current dolly inertia factor.
298
501
  */
299
- dollyInertia: number;
502
+ get dollyInertia(): number;
300
503
 
301
504
  /**
302
- * The proximity to the closest object below which dolly speed decreases, and above which dolly speed increases.
505
+ * Sets the proximity to the closest object below which dolly speed decreases, and above which dolly speed increases.
303
506
  *
304
507
  * Default is ````35.0````.
508
+ *
509
+ * @param {Number} dollyProximityThreshold New dolly proximity threshold.
510
+ */
511
+ set dollyProximityThreshold(arg: number);
512
+
513
+ /**
514
+ * Gets the proximity to the closest object below which dolly speed decreases, and above which dolly speed increases.
515
+ *
516
+ * Default is ````35.0````.
517
+ *
518
+ * @returns {Number} The current dolly proximity threshold.
519
+ */
520
+ get dollyProximityThreshold(): number;
521
+
522
+ /**
523
+ * Sets the minimum dolly speed.
524
+ *
525
+ * Default is ````0.04````.
526
+ *
527
+ * @param {Number} dollyMinSpeed New dolly minimum speed.
305
528
  */
306
- dollyProximityThreshold: number;
529
+ set dollyMinSpeed(arg: number);
307
530
 
308
531
  /**
309
- * The minimum dolly speed.
532
+ * Gets the minimum dolly speed.
310
533
  *
311
534
  * Default is ````0.04````.
535
+ *
536
+ * @returns {Number} The current minimum dolly speed.
312
537
  */
313
- dollyMinSpeed: number;
538
+ get dollyMinSpeed(): number;
314
539
 
315
540
  /**
316
- * The pan inertia factor.
541
+ * Sets the pan inertia factor.
317
542
  *
318
543
  * This factor configures how much the {@link Camera} keeps moving after you finish panning it.
319
544
  *
@@ -326,11 +551,35 @@ export declare class CameraControl extends Component {
326
551
  * wich can improve rendering performance.
327
552
  *
328
553
  * Default is ````0.5````.
554
+ *
555
+ * @param {Number} panInertia New pan inertia factor.
556
+ */
557
+ set panInertia(arg: number);
558
+
559
+ /**
560
+ * Gets the pan inertia factor.
561
+ *
562
+ * Default is ````0.5````.
563
+ *
564
+ * @returns {Number} The current pan inertia factor.
565
+ */
566
+ get panInertia(): number;
567
+
568
+ /**
569
+ * Sets the keyboard layout.
570
+ *
571
+ * Supported layouts are:
572
+ *
573
+ * * ````"qwerty"```` (default)
574
+ * * ````"azerty"````
575
+ *
576
+ * @deprecated
577
+ * @param {String} arg Selects the keyboard layout.
329
578
  */
330
- panInertia: number;
579
+ set keyboardLayout(arg: string);
331
580
 
332
581
  /**
333
- * The keyboard layout.
582
+ * Gets the keyboard layout.
334
583
  *
335
584
  * Supported layouts are:
336
585
  *
@@ -338,8 +587,9 @@ export declare class CameraControl extends Component {
338
587
  * * ````"azerty"````
339
588
  *
340
589
  * @deprecated
590
+ * @returns {String} The current keyboard layout.
341
591
  */
342
- keyboardLayout: string;
592
+ get keyboardLayout(): string;
343
593
 
344
594
  /**
345
595
  * Sets a sphere as the representation of the pivot position.
@@ -357,14 +607,28 @@ export declare class CameraControl extends Component {
357
607
  disablePivotSphere(): void;
358
608
 
359
609
  /**
360
- * Whether mouse and touch input is enabled.
610
+ * Sets whether mouse and touch input is enabled.
361
611
  *
362
612
  * Default is ````true````.
363
613
  *
364
614
  * Disabling mouse and touch input on ````CameraControl```` is useful when we want to temporarily use mouse or
365
615
  * touch input to interact with some other 3D control, without disturbing the {@link Camera}.
616
+ *
617
+ * @param {Boolean} value Set ````true```` to enable mouse and touch input.
618
+ */
619
+ set pointerEnabled(arg: boolean);
620
+
621
+ /**
622
+ * Gets whether mouse and touch input is enabled.
623
+ *
624
+ * Default is ````true````.
625
+ *
626
+ * Disabling mouse and touch input on ````CameraControl```` is desirable when we want to temporarily use mouse or
627
+ * touch input to interact with some other 3D control, without interfering with the {@link Camera}.
628
+ *
629
+ * @returns {Boolean} Returns ````true```` if mouse and touch input is enabled.
366
630
  */
367
- pointerEnabled: boolean;
631
+ get pointerEnabled(): boolean;
368
632
 
369
633
  /**
370
634
  * Sets the cursor to be used when a particular action is being performed.
@@ -390,20 +654,42 @@ export declare class CameraControl extends Component {
390
654
  getCursorStyle(action: string): string | null;
391
655
 
392
656
  /**
393
- * How much the {@link Camera} dollys each second with keyboard input.
657
+ * Sets how much the {@link Camera} dollys each second with keyboard input.
394
658
  *
395
659
  * Default is ````15.0````, to dolly the {@link Camera} ````15.0```` World-space units per second while we hold down
396
660
  * the ````+```` and ````-```` keys.
661
+ *
662
+ * @param {Number} keyboardDollyRate The new keyboard dolly rate.
663
+ */
664
+ set keyboardDollyRate(arg: number);
665
+
666
+ /**
667
+ * Gets how much the {@link Camera} dollys each second with keyboard input.
668
+ *
669
+ * Default is ````15.0````.
670
+ *
671
+ * @returns {Number} The current keyboard dolly rate.
397
672
  */
398
- keyboardDollyRate: number;
673
+ get keyboardDollyRate(): number;
399
674
 
400
675
  /**
401
- * How much the {@link Camera} dollys each second while the mouse wheel is spinning.
676
+ * Sets how much the {@link Camera} dollys each second while the mouse wheel is spinning.
402
677
  *
403
678
  * Default is ````100.0````, to dolly the {@link Camera} ````10.0```` World-space units per second as we spin
404
679
  * the mouse wheel.
680
+ *
681
+ * @param {Number} mouseWheelDollyRate The new mouse wheel dolly rate.
405
682
  */
406
- mouseWheelDollyRate: number;
683
+ set mouseWheelDollyRate(arg: number);
684
+
685
+ /**
686
+ * Gets how much the {@link Camera} dollys each second while the mouse wheel is spinning.
687
+ *
688
+ * Default is ````100.0````.
689
+ *
690
+ * @returns {Number} The current mouseWheel dolly rate.
691
+ */
692
+ get mouseWheelDollyRate(): number;
407
693
 
408
694
  /**
409
695
  * Returns true if any keys configured for the given action are down.
@@ -414,31 +700,72 @@ export declare class CameraControl extends Component {
414
700
  private _isKeyDownForAction;
415
701
 
416
702
  /**
417
- * The HTMl element to represent the pivot point when {@link CameraControl.followPointer} is true.
703
+ * Sets the HTMl element to represent the pivot point when {@link CameraControl.followPointer} is true.
418
704
  *
419
705
  * See class comments for an example.
706
+ *
707
+ * @param {HTMLElement} element HTML element representing the pivot point.
420
708
  */
421
- pivotElement: HTMLElement;
709
+ set pivotElement(arg: HTMLElement);
422
710
 
423
711
  /**
424
- * The current World-space 3D pivot position.
712
+ * Sets the current World-space 3D target position.
425
713
  *
426
714
  * Only applies when {@link CameraControl.followPointer} is ````true````.
715
+ *
716
+ * @param {Number[]} worldPos The new World-space 3D target position.
427
717
  */
428
- pivotPos: number[];
718
+ set pivotPos(arg: number[]);
719
+
720
+ /**
721
+ * Gets the current World-space 3D pivot position.
722
+ *
723
+ * Only applies when {@link CameraControl.followPointer} is ````true````.
724
+ *
725
+ * @return {Number[]} worldPos The current World-space 3D pivot position.
726
+ */
727
+ get pivotPos(): number[];
728
+
729
+ /**
730
+ * @deprecated
731
+ * @param {Boolean} value Set ````true```` to enable dolly-to-pointer behaviour.
732
+ */
733
+ set dollyToPointer(arg: boolean);
734
+
735
+ /**
736
+ * @deprecated
737
+ * @returns {Boolean} Returns ````true```` if dolly-to-pointer behaviour is enabled.
738
+ */
739
+ get dollyToPointer(): boolean;
740
+
741
+ /**
742
+ * @deprecated
743
+ * @param {Boolean} value Set ````true```` to enable dolly-to-pointer behaviour.
744
+ */
745
+ set panToPointer(arg: boolean);
429
746
 
430
747
  /**
431
748
  * @deprecated
749
+ * @returns {Boolean} Returns ````true```` if dolly-to-pointer behaviour is enabled.
432
750
  */
433
- dollyToPointer: boolean;
751
+ get panToPointer(): boolean;
434
752
 
435
753
  /**
754
+ * Sets whether this ````CameraControl```` is in plan-view mode.
755
+ *
756
+ * When in plan-view mode, rotation is disabled.
757
+ *
758
+ * Default is ````false````.
759
+ *
760
+ * Deprecated - use {@link CameraControl#navMode} instead.
761
+ *
762
+ * @param {Boolean} arg Set ````true```` to enable plan-view mode.
436
763
  * @deprecated
437
764
  */
438
- panToPointer: boolean;
765
+ set planView(arg: boolean);
439
766
 
440
767
  /**
441
- * Whether this ````CameraControl```` is in plan-view mode.
768
+ * Gets whether this ````CameraControl```` is in plan-view mode.
442
769
  *
443
770
  * When in plan-view mode, rotation is disabled.
444
771
  *
@@ -446,12 +773,13 @@ export declare class CameraControl extends Component {
446
773
  *
447
774
  * Deprecated - use {@link CameraControl#navMode} instead.
448
775
  *
776
+ * @returns {Boolean} Returns ````true```` if plan-view mode is enabled.
449
777
  * @deprecated
450
778
  */
451
- planView: boolean;
779
+ get planView(): boolean;
452
780
 
453
781
  /**
454
- * Whether this ````CameraControl```` is in first-person mode.
782
+ * Sets whether this ````CameraControl```` is in first-person mode.
455
783
  *
456
784
  * In "first person" mode (disabled by default) the look position rotates about the eye position. Otherwise, {@link Camera.eye} rotates about {@link Camera.look}.
457
785
  *
@@ -459,12 +787,27 @@ export declare class CameraControl extends Component {
459
787
  *
460
788
  * Deprecated - use {@link CameraControl.navMode} instead.
461
789
  *
790
+ * @param {Boolean} value Set ````true```` to enable first-person mode.
462
791
  * @deprecated
463
792
  */
464
- firstPerson: boolean;
793
+ set firstPerson(arg: boolean);
465
794
 
466
795
  /**
467
- * Whether smart default pivoting is enabled.
796
+ * Gets whether this ````CameraControl```` is in first-person mode.
797
+ *
798
+ * In "first person" mode (disabled by default) the look position rotates about the eye position. Otherwise, {@link Camera.eye} rotates about {@link Camera.look}.
799
+ *
800
+ * Default is ````false````.
801
+ *
802
+ * Deprecated - use {@link CameraControl.navMode} instead.
803
+ *
804
+ * @returns {Boolean} Returns ````true```` if first-person mode is enabled.
805
+ * @deprecated
806
+ */
807
+ get firstPerson(): boolean;
808
+
809
+ /**
810
+ * Sets whether smart default pivoting is enabled.
468
811
  *
469
812
  * When ````true````, we'll pivot by default about the 3D position of the mouse/touch pointer on an
470
813
  * imaginary sphere that's centered at {@link Camera.eye} and sized to the {@link Scene} boundary.
@@ -472,22 +815,58 @@ export declare class CameraControl extends Component {
472
815
  * When ````false````, we'll pivot by default about {@link Camera.look}.
473
816
  *
474
817
  * Default is ````false````.
818
+ *
819
+ * @param {Boolean} enabled Set ````true```` to pivot by default about the selected point on the virtual sphere, or ````false```` to pivot by default about {@link Camera.look}.
475
820
  */
476
- smartPivot: boolean;
821
+ set smartPivot(arg: boolean);
477
822
 
478
823
  /**
479
- * The double click time frame length in milliseconds.
824
+ * Gets whether smart default pivoting is enabled.
825
+ *
826
+ * When ````true````, we'll pivot by default about the 3D position of the mouse/touch pointer on an
827
+ * imaginary sphere that's centered at {@link Camera.eye} and sized to the {@link Scene} boundary.
828
+ *
829
+ * When ````false````, we'll pivot by default about {@link Camera.look}.
830
+ *
831
+ * Default is ````false````.
832
+ *
833
+ * @returns {Boolean} Returns ````true```` when pivoting by default about the selected point on the virtual sphere, or ````false```` when pivoting by default about {@link Camera.look}.
834
+ */
835
+ get smartPivot(): boolean;
836
+
837
+ /**
838
+ * Sets the double click time frame length in milliseconds.
480
839
  *
481
840
  * If two mouse click events occur within this time frame, it is considered a double click.
482
841
  *
483
842
  * Default is ````250````
843
+ *
844
+ * @param {Number} arg New double click time frame.
845
+ */
846
+ set doubleClickTimeFrame(arg: number);
847
+
848
+ /**
849
+ * Gets the double click time frame length in milliseconds.
850
+ *
851
+ * Default is ````250````
852
+ *
853
+ * @returns {Number} Current double click time frame.
484
854
  */
485
- doubleClickTimeFrame: number;
855
+ get doubleClickTimeFrame(): number;
486
856
 
487
857
  /**
488
- * Whether to zoom the camera on mouse wheel
858
+ * Sets whether to zoom the camera on mouse wheel
489
859
  *
490
860
  * Default is ````true````
861
+ *
862
+ * @param {Boolean} arg
863
+ */
864
+ set zoomOnMouseWheel(arg: boolean);
865
+
866
+ /**
867
+ * Gets whether to zoom the camera on mouse wheel
868
+ *
869
+ * @returns {Boolean}
491
870
  */
492
- zoomOnMouseWheel: boolean;
871
+ get zoomOnMouseWheel(): boolean;
493
872
  }