@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
|
@@ -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
|
-
*
|
|
121
|
+
* The current navigation mode.
|
|
122
122
|
*
|
|
123
123
|
* Accepted values are:
|
|
124
124
|
*
|
|
@@ -127,201 +127,77 @@ 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.
|
|
152
130
|
*/
|
|
153
|
-
|
|
131
|
+
navMode: "orbit" | "firstPerson" | "planView";
|
|
154
132
|
|
|
155
133
|
/**
|
|
156
|
-
*
|
|
134
|
+
* Whether to vertically constrain the {@link Camera} position for first-person navigation.
|
|
157
135
|
*
|
|
158
136
|
* When set ````true````, this constrains {@link Camera.eye} to its current vertical position.
|
|
159
137
|
*
|
|
160
138
|
* Only applies when {@link CameraControl.navMode} is ````"firstPerson"````.
|
|
161
139
|
*
|
|
162
140
|
* Default is ````false````.
|
|
163
|
-
*
|
|
164
|
-
* @returns {Boolean} ````true```` when Camera is vertically constrained.
|
|
165
141
|
*/
|
|
166
|
-
|
|
142
|
+
constrainVertical: boolean;
|
|
167
143
|
|
|
168
144
|
/**
|
|
169
|
-
*
|
|
145
|
+
* Custom mappings of keys to ````CameraControl```` actions.
|
|
170
146
|
*
|
|
171
147
|
* 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.
|
|
184
148
|
*/
|
|
185
|
-
|
|
149
|
+
keyMap: {
|
|
186
150
|
[key: number]: number;
|
|
187
151
|
};
|
|
188
152
|
|
|
189
153
|
/**
|
|
190
|
-
*
|
|
154
|
+
* Whether double-picking an {@link Entity} causes the {@link Camera} to fly to its boundary.
|
|
191
155
|
*
|
|
192
156
|
* 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.
|
|
213
157
|
*/
|
|
214
|
-
|
|
158
|
+
doublePickFlyTo: boolean;
|
|
215
159
|
|
|
216
160
|
/**
|
|
217
|
-
*
|
|
161
|
+
* Whether either right-clicking (true) or middle-clicking (false) pans the {@link Camera}.
|
|
218
162
|
*
|
|
219
163
|
* Default is ````true````.
|
|
220
|
-
*
|
|
221
|
-
* @returns {Boolean} Returns ````false```` when pan on right-click is disabled.
|
|
222
164
|
*/
|
|
223
|
-
|
|
165
|
+
panRightClick: boolean;
|
|
224
166
|
|
|
225
167
|
/**
|
|
226
|
-
*
|
|
168
|
+
* Whether this ````CameraControl```` is active or not.
|
|
227
169
|
*
|
|
228
170
|
* When inactive, the ````CameraControl```` will not react to input.
|
|
229
171
|
*
|
|
230
172
|
* 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.
|
|
244
173
|
*/
|
|
245
|
-
|
|
174
|
+
active: boolean;
|
|
246
175
|
|
|
247
176
|
/**
|
|
248
|
-
*
|
|
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}
|
|
177
|
+
* Whether the pointer snap to vertex.
|
|
258
178
|
*/
|
|
259
|
-
|
|
179
|
+
snapToVertex: boolean;
|
|
260
180
|
|
|
261
181
|
/**
|
|
262
|
-
*
|
|
263
|
-
*
|
|
264
|
-
* @param {boolean} arg
|
|
182
|
+
* Whether the pointer snap to edge.
|
|
265
183
|
*/
|
|
266
|
-
|
|
184
|
+
snapToEdge: boolean;
|
|
267
185
|
|
|
268
186
|
/**
|
|
269
|
-
*
|
|
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
|
|
187
|
+
* The current snap radius for "hoverSnapOrSurface" events, to specify whether the radius
|
|
277
188
|
* within which the pointer snaps to the nearest vertex or the nearest edge.
|
|
278
189
|
*
|
|
279
190
|
* Default value is 30 pixels.
|
|
280
|
-
*
|
|
281
|
-
* @param {Number} arg The snap radius.
|
|
282
191
|
*/
|
|
283
|
-
|
|
192
|
+
snapRadius: number;
|
|
284
193
|
|
|
285
194
|
/**
|
|
286
|
-
*
|
|
287
|
-
*
|
|
288
|
-
* @returns {Number} The snap radius.
|
|
195
|
+
* Whether the keyboard shortcuts are enabled ONLY if the mouse is over the canvas.
|
|
289
196
|
*/
|
|
290
|
-
|
|
197
|
+
keyboardEnabledOnlyIfMouseover: boolean;
|
|
291
198
|
|
|
292
199
|
/**
|
|
293
|
-
*
|
|
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.
|
|
200
|
+
* Whether the {@link Camera} follows the mouse/touch pointer.
|
|
325
201
|
*
|
|
326
202
|
* In orbiting mode, the Camera will orbit about the pointer, and will dolly to and from the pointer.
|
|
327
203
|
*
|
|
@@ -332,13 +208,11 @@ export declare class CameraControl extends Component {
|
|
|
332
208
|
* Default is ````true````.
|
|
333
209
|
*
|
|
334
210
|
* See class comments for more info.
|
|
335
|
-
*
|
|
336
|
-
* @returns {Boolean} Returns ````true```` if the Camera follows the pointer.
|
|
337
211
|
*/
|
|
338
|
-
|
|
212
|
+
followPointer: boolean;
|
|
339
213
|
|
|
340
214
|
/**
|
|
341
|
-
*
|
|
215
|
+
* A factor in range ````[0..1]```` indicating how much the {@link Camera} keeps moving after you finish rotating it.
|
|
342
216
|
*
|
|
343
217
|
* A value of ````0.0```` causes it to immediately stop, ````0.5```` causes its movement to decay 50% on each tick,
|
|
344
218
|
* while ````1.0```` causes no decay, allowing it continue moving, by the current rate of rotation.
|
|
@@ -350,24 +224,11 @@ export declare class CameraControl extends Component {
|
|
|
350
224
|
* Default is ````0.0````.
|
|
351
225
|
*
|
|
352
226
|
* Does not apply when {@link CameraControl.navMode} is ````"planView"````, which disallows rotation.
|
|
353
|
-
*
|
|
354
|
-
* @param {Number} rotationInertia New inertial factor.
|
|
355
227
|
*/
|
|
356
|
-
|
|
228
|
+
rotationInertia: number;
|
|
357
229
|
|
|
358
230
|
/**
|
|
359
|
-
*
|
|
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.
|
|
231
|
+
* How much the {@link Camera} pans each second with keyboard input.
|
|
371
232
|
*
|
|
372
233
|
* Default is ````5.0````, to pan the Camera ````5.0```` World-space units every second that
|
|
373
234
|
* a panning key is depressed. See the ````CameraControl```` class documentation for which keys control
|
|
@@ -378,58 +239,27 @@ export declare class CameraControl extends Component {
|
|
|
378
239
|
* and backwards, we pan along the direction the Camera is pointing.
|
|
379
240
|
*
|
|
380
241
|
* Unlike dollying when {@link followPointer} is ````true````, panning does not follow the pointer.
|
|
381
|
-
*
|
|
382
|
-
* @param {Number} keyboardPanRate The new keyboard pan rate.
|
|
383
242
|
*/
|
|
384
|
-
|
|
243
|
+
keyboardPanRate: number;
|
|
385
244
|
|
|
386
245
|
/**
|
|
387
|
-
*
|
|
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
|
|
246
|
+
* How fast the {@link Camera} pans on touch panning
|
|
404
247
|
*
|
|
405
248
|
* Default is ````1.0````.
|
|
406
|
-
*
|
|
407
|
-
* @returns {Number} The current touch pan rate.
|
|
408
249
|
*/
|
|
409
|
-
|
|
250
|
+
touchPanRate: number;
|
|
410
251
|
|
|
411
252
|
/**
|
|
412
|
-
*
|
|
253
|
+
* How many degrees per second the {@link Camera} rotates/orbits with keyboard input.
|
|
413
254
|
*
|
|
414
255
|
* Default is ````90.0````, to rotate/orbit the Camera ````90.0```` degrees every second that
|
|
415
256
|
* a rotation key is depressed. See the ````CameraControl```` class documentation for which keys control
|
|
416
257
|
* rotation/orbit.
|
|
417
|
-
*
|
|
418
|
-
* @param {Number} keyboardRotationRate The new keyboard rotation rate.
|
|
419
258
|
*/
|
|
420
|
-
|
|
259
|
+
keyboardRotationRate: number;
|
|
421
260
|
|
|
422
261
|
/**
|
|
423
|
-
*
|
|
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.
|
|
262
|
+
* The current drag rotation rate.
|
|
433
263
|
*
|
|
434
264
|
* This configures how many degrees the {@link Camera} rotates/orbits for a full sweep of the canvas by mouse or touch dragging.
|
|
435
265
|
*
|
|
@@ -441,40 +271,18 @@ export declare class CameraControl extends Component {
|
|
|
441
271
|
* vertically when we sweep the entire height of the canvas.
|
|
442
272
|
*
|
|
443
273
|
* 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.
|
|
455
274
|
*/
|
|
456
|
-
|
|
275
|
+
dragRotationRate: number;
|
|
457
276
|
|
|
458
277
|
/**
|
|
459
|
-
*
|
|
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.
|
|
278
|
+
* How much the {@link Camera} dollys each second with touch input.
|
|
469
279
|
*
|
|
470
280
|
* Default is ````0.2````.
|
|
471
|
-
*
|
|
472
|
-
* @returns {Number} The current touch dolly rate.
|
|
473
281
|
*/
|
|
474
|
-
|
|
282
|
+
touchDollyRate: number;
|
|
475
283
|
|
|
476
284
|
/**
|
|
477
|
-
*
|
|
285
|
+
* The dolly inertia factor.
|
|
478
286
|
*
|
|
479
287
|
* This factor configures how much the {@link Camera} keeps moving after you finish dollying it.
|
|
480
288
|
*
|
|
@@ -487,58 +295,25 @@ export declare class CameraControl extends Component {
|
|
|
487
295
|
* which can improve rendering performance.
|
|
488
296
|
*
|
|
489
297
|
* 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.
|
|
501
298
|
*/
|
|
502
|
-
|
|
299
|
+
dollyInertia: number;
|
|
503
300
|
|
|
504
301
|
/**
|
|
505
|
-
*
|
|
302
|
+
* The proximity to the closest object below which dolly speed decreases, and above which dolly speed increases.
|
|
506
303
|
*
|
|
507
304
|
* 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.
|
|
528
305
|
*/
|
|
529
|
-
|
|
306
|
+
dollyProximityThreshold: number;
|
|
530
307
|
|
|
531
308
|
/**
|
|
532
|
-
*
|
|
309
|
+
* The minimum dolly speed.
|
|
533
310
|
*
|
|
534
311
|
* Default is ````0.04````.
|
|
535
|
-
*
|
|
536
|
-
* @returns {Number} The current minimum dolly speed.
|
|
537
312
|
*/
|
|
538
|
-
|
|
313
|
+
dollyMinSpeed: number;
|
|
539
314
|
|
|
540
315
|
/**
|
|
541
|
-
*
|
|
316
|
+
* The pan inertia factor.
|
|
542
317
|
*
|
|
543
318
|
* This factor configures how much the {@link Camera} keeps moving after you finish panning it.
|
|
544
319
|
*
|
|
@@ -551,35 +326,11 @@ export declare class CameraControl extends Component {
|
|
|
551
326
|
* wich can improve rendering performance.
|
|
552
327
|
*
|
|
553
328
|
* 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.
|
|
578
329
|
*/
|
|
579
|
-
|
|
330
|
+
panInertia: number;
|
|
580
331
|
|
|
581
332
|
/**
|
|
582
|
-
*
|
|
333
|
+
* The keyboard layout.
|
|
583
334
|
*
|
|
584
335
|
* Supported layouts are:
|
|
585
336
|
*
|
|
@@ -587,9 +338,8 @@ export declare class CameraControl extends Component {
|
|
|
587
338
|
* * ````"azerty"````
|
|
588
339
|
*
|
|
589
340
|
* @deprecated
|
|
590
|
-
* @returns {String} The current keyboard layout.
|
|
591
341
|
*/
|
|
592
|
-
|
|
342
|
+
keyboardLayout: string;
|
|
593
343
|
|
|
594
344
|
/**
|
|
595
345
|
* Sets a sphere as the representation of the pivot position.
|
|
@@ -607,28 +357,14 @@ export declare class CameraControl extends Component {
|
|
|
607
357
|
disablePivotSphere(): void;
|
|
608
358
|
|
|
609
359
|
/**
|
|
610
|
-
*
|
|
360
|
+
* Whether mouse and touch input is enabled.
|
|
611
361
|
*
|
|
612
362
|
* Default is ````true````.
|
|
613
363
|
*
|
|
614
364
|
* Disabling mouse and touch input on ````CameraControl```` is useful when we want to temporarily use mouse or
|
|
615
365
|
* 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.
|
|
630
366
|
*/
|
|
631
|
-
|
|
367
|
+
pointerEnabled: boolean;
|
|
632
368
|
|
|
633
369
|
/**
|
|
634
370
|
* Sets the cursor to be used when a particular action is being performed.
|
|
@@ -654,42 +390,20 @@ export declare class CameraControl extends Component {
|
|
|
654
390
|
getCursorStyle(action: string): string | null;
|
|
655
391
|
|
|
656
392
|
/**
|
|
657
|
-
*
|
|
393
|
+
* How much the {@link Camera} dollys each second with keyboard input.
|
|
658
394
|
*
|
|
659
395
|
* Default is ````15.0````, to dolly the {@link Camera} ````15.0```` World-space units per second while we hold down
|
|
660
396
|
* 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.
|
|
672
397
|
*/
|
|
673
|
-
|
|
398
|
+
keyboardDollyRate: number;
|
|
674
399
|
|
|
675
400
|
/**
|
|
676
|
-
*
|
|
401
|
+
* How much the {@link Camera} dollys each second while the mouse wheel is spinning.
|
|
677
402
|
*
|
|
678
403
|
* Default is ````100.0````, to dolly the {@link Camera} ````10.0```` World-space units per second as we spin
|
|
679
404
|
* the mouse wheel.
|
|
680
|
-
*
|
|
681
|
-
* @param {Number} mouseWheelDollyRate The new mouse wheel dolly rate.
|
|
682
405
|
*/
|
|
683
|
-
|
|
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;
|
|
406
|
+
mouseWheelDollyRate: number;
|
|
693
407
|
|
|
694
408
|
/**
|
|
695
409
|
* Returns true if any keys configured for the given action are down.
|
|
@@ -700,72 +414,31 @@ export declare class CameraControl extends Component {
|
|
|
700
414
|
private _isKeyDownForAction;
|
|
701
415
|
|
|
702
416
|
/**
|
|
703
|
-
*
|
|
417
|
+
* The HTMl element to represent the pivot point when {@link CameraControl.followPointer} is true.
|
|
704
418
|
*
|
|
705
419
|
* See class comments for an example.
|
|
706
|
-
*
|
|
707
|
-
* @param {HTMLElement} element HTML element representing the pivot point.
|
|
708
420
|
*/
|
|
709
|
-
|
|
421
|
+
pivotElement: HTMLElement;
|
|
710
422
|
|
|
711
423
|
/**
|
|
712
|
-
*
|
|
424
|
+
* The current World-space 3D pivot position.
|
|
713
425
|
*
|
|
714
426
|
* Only applies when {@link CameraControl.followPointer} is ````true````.
|
|
715
|
-
*
|
|
716
|
-
* @param {Number[]} worldPos The new World-space 3D target position.
|
|
717
427
|
*/
|
|
718
|
-
|
|
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);
|
|
428
|
+
pivotPos: number[];
|
|
746
429
|
|
|
747
430
|
/**
|
|
748
431
|
* @deprecated
|
|
749
|
-
* @returns {Boolean} Returns ````true```` if dolly-to-pointer behaviour is enabled.
|
|
750
432
|
*/
|
|
751
|
-
|
|
433
|
+
dollyToPointer: boolean;
|
|
752
434
|
|
|
753
435
|
/**
|
|
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.
|
|
763
436
|
* @deprecated
|
|
764
437
|
*/
|
|
765
|
-
|
|
438
|
+
panToPointer: boolean;
|
|
766
439
|
|
|
767
440
|
/**
|
|
768
|
-
*
|
|
441
|
+
* Whether this ````CameraControl```` is in plan-view mode.
|
|
769
442
|
*
|
|
770
443
|
* When in plan-view mode, rotation is disabled.
|
|
771
444
|
*
|
|
@@ -773,13 +446,12 @@ export declare class CameraControl extends Component {
|
|
|
773
446
|
*
|
|
774
447
|
* Deprecated - use {@link CameraControl#navMode} instead.
|
|
775
448
|
*
|
|
776
|
-
* @returns {Boolean} Returns ````true```` if plan-view mode is enabled.
|
|
777
449
|
* @deprecated
|
|
778
450
|
*/
|
|
779
|
-
|
|
451
|
+
planView: boolean;
|
|
780
452
|
|
|
781
453
|
/**
|
|
782
|
-
*
|
|
454
|
+
* Whether this ````CameraControl```` is in first-person mode.
|
|
783
455
|
*
|
|
784
456
|
* In "first person" mode (disabled by default) the look position rotates about the eye position. Otherwise, {@link Camera.eye} rotates about {@link Camera.look}.
|
|
785
457
|
*
|
|
@@ -787,27 +459,12 @@ export declare class CameraControl extends Component {
|
|
|
787
459
|
*
|
|
788
460
|
* Deprecated - use {@link CameraControl.navMode} instead.
|
|
789
461
|
*
|
|
790
|
-
* @param {Boolean} value Set ````true```` to enable first-person mode.
|
|
791
462
|
* @deprecated
|
|
792
463
|
*/
|
|
793
|
-
|
|
464
|
+
firstPerson: boolean;
|
|
794
465
|
|
|
795
466
|
/**
|
|
796
|
-
*
|
|
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.
|
|
467
|
+
* Whether smart default pivoting is enabled.
|
|
811
468
|
*
|
|
812
469
|
* When ````true````, we'll pivot by default about the 3D position of the mouse/touch pointer on an
|
|
813
470
|
* imaginary sphere that's centered at {@link Camera.eye} and sized to the {@link Scene} boundary.
|
|
@@ -815,58 +472,22 @@ export declare class CameraControl extends Component {
|
|
|
815
472
|
* When ````false````, we'll pivot by default about {@link Camera.look}.
|
|
816
473
|
*
|
|
817
474
|
* 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}.
|
|
820
475
|
*/
|
|
821
|
-
|
|
476
|
+
smartPivot: boolean;
|
|
822
477
|
|
|
823
478
|
/**
|
|
824
|
-
*
|
|
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.
|
|
479
|
+
* The double click time frame length in milliseconds.
|
|
839
480
|
*
|
|
840
481
|
* If two mouse click events occur within this time frame, it is considered a double click.
|
|
841
482
|
*
|
|
842
483
|
* 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.
|
|
854
484
|
*/
|
|
855
|
-
|
|
485
|
+
doubleClickTimeFrame: number;
|
|
856
486
|
|
|
857
487
|
/**
|
|
858
|
-
*
|
|
488
|
+
* Whether to zoom the camera on mouse wheel
|
|
859
489
|
*
|
|
860
490
|
* 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}
|
|
870
491
|
*/
|
|
871
|
-
|
|
492
|
+
zoomOnMouseWheel: boolean;
|
|
872
493
|
}
|