@xeokit/xeokit-sdk 2.2.4 → 2.2.5-beta-2
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/dist/xeokit-sdk.cjs.js +77 -40
- package/dist/xeokit-sdk.es.js +77 -40
- package/dist/xeokit-sdk.min.cjs.js +1 -1
- package/dist/xeokit-sdk.min.es.js +1 -1
- package/package.json +4 -2
- package/types/extras/ContextMenu/ContextMenu.d.ts +125 -0
- package/types/extras/ContextMenu/index.d.ts +1 -0
- package/types/extras/index.d.ts +1 -0
- package/types/index.d.ts +3 -0
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +144 -0
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsControl.d.ts +42 -0
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsPlugin.d.ts +85 -0
- package/types/plugins/AngleMeasurementsPlugin/index.d.ts +1 -0
- package/types/plugins/AnnotationsPlugin/Annotation.d.ts +134 -0
- package/types/plugins/AnnotationsPlugin/AnnotationsPlugin.d.ts +117 -0
- package/types/plugins/AnnotationsPlugin/index.d.ts +1 -0
- package/types/plugins/AxisGizmoPlugin/AxisGizmoPlugin.d.ts +28 -0
- package/types/plugins/AxisGizmoPlugin/index.d.ts +1 -0
- package/types/plugins/BCFViewpointsPlugin/BCFViewpointsPlugin.d.ts +146 -0
- package/types/plugins/BCFViewpointsPlugin/index.d.ts +1 -0
- package/types/plugins/CityJSONLoaderPlugin/CityJSONLoaderPlugin.d.ts +81 -0
- package/types/plugins/CityJSONLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurement.d.ts +137 -0
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsControl.d.ts +40 -0
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsPlugin.d.ts +120 -0
- package/types/plugins/DistanceMeasurementsPlugin/index.d.ts +1 -0
- package/types/plugins/FastNavPlugin/FastNavPlugin.d.ts +203 -0
- package/types/plugins/FastNavPlugin/index.d.ts +1 -0
- package/types/plugins/GLTFLoaderPlugin/GLTFLoaderPlugin.d.ts +140 -0
- package/types/plugins/GLTFLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/LASLoaderPlugin/LASLoaderPlugin.d.ts +146 -0
- package/types/plugins/LASLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/NavCubePlugin/NavCubePlugin.d.ts +160 -0
- package/types/plugins/NavCubePlugin/index.d.ts +1 -0
- package/types/plugins/OBJLoaderPlugin/OBJLoaderPlugin.d.ts +44 -0
- package/types/plugins/OBJLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/STLLoaderPlugin/STLLoaderPlugin.d.ts +88 -0
- package/types/plugins/STLLoaderPlugin/index.d.ts +2 -0
- package/types/plugins/SectionPlanesPlugin/SectionPlanesPlugin.d.ts +103 -0
- package/types/plugins/SectionPlanesPlugin/index.d.ts +1 -0
- package/types/plugins/SkyboxesPlugin/SkyboxesPlugin.d.ts +34 -0
- package/types/plugins/SkyboxesPlugin/index.d.ts +1 -0
- package/types/plugins/StoreyViewsPlugin/Storey.d.ts +47 -0
- package/types/plugins/StoreyViewsPlugin/StoreyMap.d.ts +41 -0
- package/types/plugins/StoreyViewsPlugin/StoreyViewsPlugin.d.ts +173 -0
- package/types/plugins/StoreyViewsPlugin/index.d.ts +1 -0
- package/types/plugins/TreeViewPlugin/ModelTreeView.d.ts +24 -0
- package/types/plugins/TreeViewPlugin/TreeViewNode.d.ts +66 -0
- package/types/plugins/TreeViewPlugin/TreeViewPlugin.d.ts +136 -0
- package/types/plugins/TreeViewPlugin/index.d.ts +1 -0
- package/types/plugins/ViewCullPlugin/ViewCullPlugin.d.ts +34 -0
- package/types/plugins/ViewCullPlugin/index.d.ts +1 -0
- package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +230 -0
- package/types/plugins/WebIFCLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/XKTLoaderPlugin/XKTLoaderPlugin.d.ts +277 -0
- package/types/plugins/XKTLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/XML3DLoaderPlugin/XML3DLoaderPlugin.d.ts +65 -0
- package/types/plugins/XML3DLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/index.d.ts +34 -0
- package/types/viewer/Configs.d.ts +20 -0
- package/types/viewer/Plugin.d.ts +69 -0
- package/types/viewer/Viewer.d.ts +212 -0
- package/types/viewer/index.d.ts +6 -0
- package/types/viewer/localization/LocaleService.d.ts +176 -0
- package/types/viewer/metadata/IFCObjectDefaults.d.ts +9 -0
- package/types/viewer/metadata/MetaModel.d.ts +65 -0
- package/types/viewer/metadata/MetaObject.d.ts +74 -0
- package/types/viewer/metadata/MetaScene.d.ts +135 -0
- package/types/viewer/metadata/Property.d.ts +29 -0
- package/types/viewer/metadata/PropertySet.d.ts +31 -0
- package/types/viewer/metadata/index.d.ts +6 -0
- package/types/viewer/scene/CameraControl/CameraControl.d.ts +591 -0
- package/types/viewer/scene/Component.d.ts +155 -0
- package/types/viewer/scene/Entity.d.ts +394 -0
- package/types/viewer/scene/PerformanceModel/PerformanceModel.d.ts +605 -0
- package/types/viewer/scene/PerformanceModel/PerformanceNode.d.ts +302 -0
- package/types/viewer/scene/camera/Camera.d.ts +364 -0
- package/types/viewer/scene/camera/CameraFlightAnimation.d.ts +167 -0
- package/types/viewer/scene/camera/CameraPath.d.ts +28 -0
- package/types/viewer/scene/camera/CameraPathAnimation.d.ts +95 -0
- package/types/viewer/scene/camera/CustomProjection.d.ts +57 -0
- package/types/viewer/scene/camera/Frustum.d.ts +166 -0
- package/types/viewer/scene/camera/Ortho.d.ts +115 -0
- package/types/viewer/scene/camera/Perspective.d.ts +136 -0
- package/types/viewer/scene/camera/index.d.ts +4 -0
- package/types/viewer/scene/geometry/Geometry.d.ts +7 -0
- package/types/viewer/scene/geometry/ReadableGeometry.d.ts +95 -0
- package/types/viewer/scene/geometry/index.d.ts +1 -0
- package/types/viewer/scene/index.d.ts +6 -0
- package/types/viewer/scene/marker/Marker.d.ts +136 -0
- package/types/viewer/scene/marker/index.d.ts +1 -0
- package/types/viewer/scene/materials/EdgeMaterial.d.ts +83 -0
- package/types/viewer/scene/materials/EmphasisMaterial.d.ts +241 -0
- package/types/viewer/scene/materials/Fresnel.d.ts +149 -0
- package/types/viewer/scene/materials/LinesMaterial.d.ts +71 -0
- package/types/viewer/scene/materials/Material.d.ts +3 -0
- package/types/viewer/scene/materials/PhongMaterial.d.ts +468 -0
- package/types/viewer/scene/materials/PointsMaterial.d.ts +206 -0
- package/types/viewer/scene/materials/Texture.d.ts +261 -0
- package/types/viewer/scene/materials/index.d.ts +5 -0
- package/types/viewer/scene/math/math.d.ts +36 -0
- package/types/viewer/scene/postfx/SAO.d.ts +209 -0
- package/types/viewer/scene/scene/Scene.d.ts +727 -0
- package/types/viewer/scene/sectionPlane/SectionPlane.d.ts +93 -0
- package/types/viewer/scene/sectionPlane/index.d.ts +1 -0
- package/types/viewer/scene/viewport/Viewport.d.ts +23 -0
- package/types/viewer/scene/webgl/PickResult.d.ts +103 -0
|
@@ -0,0 +1,591 @@
|
|
|
1
|
+
import { Component } from "../Component";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Controls the {@link Camera} with user input, and fires events when the user interacts with pickable {@link Entity}s.
|
|
5
|
+
*/
|
|
6
|
+
export declare class CameraControl extends Component {
|
|
7
|
+
PAN_LEFT: number;
|
|
8
|
+
PAN_RIGHT: number;
|
|
9
|
+
PAN_UP: number;
|
|
10
|
+
PAN_DOWN: number;
|
|
11
|
+
PAN_FORWARDS: number;
|
|
12
|
+
PAN_BACKWARDS: number;
|
|
13
|
+
ROTATE_X_POS: number;
|
|
14
|
+
ROTATE_X_NEG: number;
|
|
15
|
+
ROTATE_Y_POS: number;
|
|
16
|
+
ROTATE_Y_NEG: number;
|
|
17
|
+
DOLLY_FORWARDS: number;
|
|
18
|
+
DOLLY_BACKWARDS: number;
|
|
19
|
+
AXIS_VIEW_RIGHT: number;
|
|
20
|
+
AXIS_VIEW_BACK: number;
|
|
21
|
+
AXIS_VIEW_LEFT: number;
|
|
22
|
+
AXIS_VIEW_FRONT: number;
|
|
23
|
+
AXIS_VIEW_TOP: number;
|
|
24
|
+
AXIS_VIEW_BOTTOM: number;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Sets the current navigation mode.
|
|
28
|
+
*
|
|
29
|
+
* Accepted values are:
|
|
30
|
+
*
|
|
31
|
+
* * "orbit" - rotation orbits about the current target or pivot point,
|
|
32
|
+
* * "firstPerson" - rotation is about the current eye position,
|
|
33
|
+
* * "planView" - rotation is disabled.
|
|
34
|
+
*
|
|
35
|
+
* See class comments for more info.
|
|
36
|
+
*
|
|
37
|
+
* @param {String} navMode The navigation mode.
|
|
38
|
+
*/
|
|
39
|
+
set navMode(arg: "orbit" | "firstPerson" | "planView");
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Gets the current navigation mode.
|
|
43
|
+
*
|
|
44
|
+
* @returns {String} The navigation mode
|
|
45
|
+
*/
|
|
46
|
+
get navMode(): "orbit" | "firstPerson" | "planView";
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Sets whether to vertically constrain the {@link Camera} position for first-person navigation.
|
|
50
|
+
*
|
|
51
|
+
* When set ````true````, this constrains {@link Camera#eye} to its current vertical position.
|
|
52
|
+
*
|
|
53
|
+
* Only applies when {@link CameraControl#navMode} is ````"firstPerson"````.
|
|
54
|
+
*
|
|
55
|
+
* Default is ````false````.
|
|
56
|
+
*
|
|
57
|
+
* @param {Boolean} value Set ````true```` to vertically constrain the Camera.
|
|
58
|
+
*/
|
|
59
|
+
set constrainVertical(arg: boolean);
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Gets whether to vertically constrain the {@link Camera} position for first-person navigation.
|
|
63
|
+
*
|
|
64
|
+
* When set ````true````, this constrains {@link Camera#eye} to its current vertical position.
|
|
65
|
+
*
|
|
66
|
+
* Only applies when {@link CameraControl#navMode} is ````"firstPerson"````.
|
|
67
|
+
*
|
|
68
|
+
* Default is ````false````.
|
|
69
|
+
*
|
|
70
|
+
* @returns {Boolean} ````true```` when Camera is vertically constrained.
|
|
71
|
+
*/
|
|
72
|
+
get constrainVertical(): boolean;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Sets custom mappings of keys to ````CameraControl```` actions.
|
|
76
|
+
*
|
|
77
|
+
* See class docs for usage.
|
|
78
|
+
*
|
|
79
|
+
* @param {{Number:Number}|String} value Either a set of new key mappings, or a string to select a keyboard layout,
|
|
80
|
+
* which causes ````CameraControl```` to use the default key mappings for that layout.
|
|
81
|
+
*/
|
|
82
|
+
set keyMap(arg: {
|
|
83
|
+
Number: number;
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Gets custom mappings of keys to {@link CameraControl} actions.
|
|
88
|
+
*
|
|
89
|
+
* @returns {{Number:Number}} Current key mappings.
|
|
90
|
+
*/
|
|
91
|
+
get keyMap(): {
|
|
92
|
+
Number: number;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Sets whether double-picking an {@link Entity} causes the {@link Camera} to fly to its boundary.
|
|
97
|
+
*
|
|
98
|
+
* Default is ````false````.
|
|
99
|
+
*
|
|
100
|
+
* @param {Boolean} value Set ````true```` to enable double-pick-fly-to mode.
|
|
101
|
+
*/
|
|
102
|
+
set doublePickFlyTo(arg: boolean);
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Gets whether double-picking an {@link Entity} causes the {@link Camera} to fly to its boundary.
|
|
106
|
+
*
|
|
107
|
+
* Default is ````false````.
|
|
108
|
+
*
|
|
109
|
+
* @returns {Boolean} Returns ````true```` when double-pick-fly-to mode is enabled.
|
|
110
|
+
*/
|
|
111
|
+
get doublePickFlyTo(): boolean;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Sets whether either right-clicking (true) or middle-clicking (false) pans the {@link Camera}.
|
|
115
|
+
*
|
|
116
|
+
* Default is ````true````.
|
|
117
|
+
*
|
|
118
|
+
* @param {Boolean} value Set ````false```` to disable pan on right-click.
|
|
119
|
+
*/
|
|
120
|
+
set panRightClick(arg: boolean);
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Gets whether right-clicking pans the {@link Camera}.
|
|
124
|
+
*
|
|
125
|
+
* Default is ````true````.
|
|
126
|
+
*
|
|
127
|
+
* @returns {Boolean} Returns ````false```` when pan on right-click is disabled.
|
|
128
|
+
*/
|
|
129
|
+
get panRightClick(): boolean;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Sets if this ````CameraControl```` is active or not.
|
|
133
|
+
*
|
|
134
|
+
* When inactive, the ````CameraControl```` will not react to input.
|
|
135
|
+
*
|
|
136
|
+
* Default is ````true````.
|
|
137
|
+
*
|
|
138
|
+
* @param {Boolean} value Set ````true```` to activate this ````CameraControl````.
|
|
139
|
+
*/
|
|
140
|
+
set active(arg: boolean);
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Gets if this ````CameraControl```` is active or not.
|
|
144
|
+
*
|
|
145
|
+
* When inactive, the ````CameraControl```` will not react to input.
|
|
146
|
+
*
|
|
147
|
+
* Default is ````true````.
|
|
148
|
+
*
|
|
149
|
+
* @returns {Boolean} Returns ````true```` if this ````CameraControl```` is active.
|
|
150
|
+
*/
|
|
151
|
+
get active(): boolean;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Sets whether the {@link Camera} follows the mouse/touch pointer.
|
|
155
|
+
*
|
|
156
|
+
* In orbiting mode, the Camera will orbit about the pointer, and will dolly to and from the pointer.
|
|
157
|
+
*
|
|
158
|
+
* In fly-to mode, the Camera will dolly to and from the pointer, however the World will always rotate about the Camera position.
|
|
159
|
+
*
|
|
160
|
+
* In plan-view mode, the Camera will dolly to and from the pointer, however the Camera will not rotate.
|
|
161
|
+
*
|
|
162
|
+
* Default is ````true````.
|
|
163
|
+
*
|
|
164
|
+
* See class comments for more info.
|
|
165
|
+
*
|
|
166
|
+
* @param {Boolean} value Set ````true```` to enable the Camera to follow the pointer.
|
|
167
|
+
*/
|
|
168
|
+
set followPointer(arg: boolean);
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Sets whether the {@link Camera} follows the mouse/touch pointer.
|
|
172
|
+
*
|
|
173
|
+
* In orbiting mode, the Camera will orbit about the pointer, and will dolly to and from the pointer.
|
|
174
|
+
*
|
|
175
|
+
* In fly-to mode, the Camera will dolly to and from the pointer, however the World will always rotate about the Camera position.
|
|
176
|
+
*
|
|
177
|
+
* In plan-view mode, the Camera will dolly to and from the pointer, however the Camera will not rotate.
|
|
178
|
+
*
|
|
179
|
+
* Default is ````true````.
|
|
180
|
+
*
|
|
181
|
+
* See class comments for more info.
|
|
182
|
+
*
|
|
183
|
+
* @returns {Boolean} Returns ````true```` if the Camera follows the pointer.
|
|
184
|
+
*/
|
|
185
|
+
get followPointer(): boolean;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Sets a factor in range ````[0..1]```` indicating how much the {@link Camera} keeps moving after you finish rotating it.
|
|
189
|
+
*
|
|
190
|
+
* A value of ````0.0```` causes it to immediately stop, ````0.5```` causes its movement to decay 50% on each tick,
|
|
191
|
+
* while ````1.0```` causes no decay, allowing it continue moving, by the current rate of rotation.
|
|
192
|
+
*
|
|
193
|
+
* You may choose an inertia of zero when you want be able to precisely rotate the Camera,
|
|
194
|
+
* without interference from inertia. Zero inertia can also mean that less frames are rendered while
|
|
195
|
+
* you are rotating the Camera.
|
|
196
|
+
*
|
|
197
|
+
* Default is ````0.0````.
|
|
198
|
+
*
|
|
199
|
+
* Does not apply when {@link CameraControl#navMode} is ````"planView"````, which disallows rotation.
|
|
200
|
+
*
|
|
201
|
+
* @param {Number} rotationInertia New inertial factor.
|
|
202
|
+
*/
|
|
203
|
+
set rotationInertia(arg: number);
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Gets the rotation inertia factor.
|
|
207
|
+
*
|
|
208
|
+
* Default is ````0.0````.
|
|
209
|
+
*
|
|
210
|
+
* Does not apply when {@link CameraControl#navMode} is ````"planView"````, which disallows rotation.
|
|
211
|
+
*
|
|
212
|
+
* @returns {Number} The inertia factor.
|
|
213
|
+
*/
|
|
214
|
+
get rotationInertia(): number;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Sets how much the {@link Camera} pans each second with keyboard input.
|
|
218
|
+
*
|
|
219
|
+
* Default is ````5.0````, to pan the Camera ````5.0```` World-space units every second that
|
|
220
|
+
* a panning key is depressed. See the ````CameraControl```` class documentation for which keys control
|
|
221
|
+
* panning.
|
|
222
|
+
*
|
|
223
|
+
* Panning direction is aligned to our Camera's orientation. When we pan horizontally, we pan
|
|
224
|
+
* to our left and right, when we pan vertically, we pan upwards and downwards, and when we pan forwards
|
|
225
|
+
* and backwards, we pan along the direction the Camera is pointing.
|
|
226
|
+
*
|
|
227
|
+
* Unlike dollying when {@link followPointer} is ````true````, panning does not follow the pointer.
|
|
228
|
+
*
|
|
229
|
+
* @param {Number} keyboardPanRate The new keyboard pan rate.
|
|
230
|
+
*/
|
|
231
|
+
set keyboardPanRate(arg: number);
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Gets how much the {@link Camera} pans each second with keyboard input.
|
|
235
|
+
*
|
|
236
|
+
* Default is ````5.0````.
|
|
237
|
+
*
|
|
238
|
+
* @returns {Number} The current keyboard pan rate.
|
|
239
|
+
*/
|
|
240
|
+
get keyboardPanRate(): number;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Sets how fast the camera pans on touch panning
|
|
244
|
+
*
|
|
245
|
+
* @param {Number} touchPanRate The new touch pan rate.
|
|
246
|
+
*/
|
|
247
|
+
set touchPanRate(arg: number);
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Gets how fast the {@link Camera} pans on touch panning
|
|
251
|
+
*
|
|
252
|
+
* Default is ````1.0````.
|
|
253
|
+
*
|
|
254
|
+
* @returns {Number} The current touch pan rate.
|
|
255
|
+
*/
|
|
256
|
+
get touchPanRate(): number;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Sets how many degrees per second the {@link Camera} rotates/orbits with keyboard input.
|
|
260
|
+
*
|
|
261
|
+
* Default is ````90.0````, to rotate/orbit the Camera ````90.0```` degrees every second that
|
|
262
|
+
* a rotation key is depressed. See the ````CameraControl```` class documentation for which keys control
|
|
263
|
+
* rotation/orbit.
|
|
264
|
+
*
|
|
265
|
+
* @param {Number} keyboardRotationRate The new keyboard rotation rate.
|
|
266
|
+
*/
|
|
267
|
+
set keyboardRotationRate(arg: number);
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Sets how many degrees per second the {@link Camera} rotates/orbits with keyboard input.
|
|
271
|
+
*
|
|
272
|
+
* Default is ````90.0````.
|
|
273
|
+
*
|
|
274
|
+
* @returns {Number} The current keyboard rotation rate.
|
|
275
|
+
*/
|
|
276
|
+
get keyboardRotationRate(): number;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Sets the current drag rotation rate.
|
|
280
|
+
*
|
|
281
|
+
* This configures how many degrees the {@link Camera} rotates/orbits for a full sweep of the canvas by mouse or touch dragging.
|
|
282
|
+
*
|
|
283
|
+
* For example, a value of ````360.0```` indicates that the ````Camera```` rotates/orbits ````360.0```` degrees horizontally
|
|
284
|
+
* when we sweep the entire width of the canvas.
|
|
285
|
+
*
|
|
286
|
+
* ````CameraControl```` makes vertical rotation half as sensitive as horizontal rotation, so that we don't tend to
|
|
287
|
+
* flip upside-down. Therefore, a value of ````360.0```` rotates/orbits the ````Camera```` through ````180.0```` degrees
|
|
288
|
+
* vertically when we sweep the entire height of the canvas.
|
|
289
|
+
*
|
|
290
|
+
* Default is ````360.0````.
|
|
291
|
+
*
|
|
292
|
+
* @param {Number} dragRotationRate The new drag rotation rate.
|
|
293
|
+
*/
|
|
294
|
+
set dragRotationRate(arg: number);
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Gets the current drag rotation rate.
|
|
298
|
+
*
|
|
299
|
+
* Default is ````360.0````.
|
|
300
|
+
*
|
|
301
|
+
* @returns {Number} The current drag rotation rate.
|
|
302
|
+
*/
|
|
303
|
+
get dragRotationRate(): number;
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Sets how much the {@link Camera} dollys with touch input.
|
|
307
|
+
*
|
|
308
|
+
* Default is ````0.2````
|
|
309
|
+
*
|
|
310
|
+
* @param {Number} touchDollyRate The new touch dolly rate.
|
|
311
|
+
*/
|
|
312
|
+
set touchDollyRate(arg: number);
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Gets how much the {@link Camera} dollys each second with touch input.
|
|
316
|
+
*
|
|
317
|
+
* Default is ````0.2````.
|
|
318
|
+
*
|
|
319
|
+
* @returns {Number} The current touch dolly rate.
|
|
320
|
+
*/
|
|
321
|
+
get touchDollyRate(): number;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Sets the dolly inertia factor.
|
|
325
|
+
*
|
|
326
|
+
* This factor configures how much the {@link Camera} keeps moving after you finish dollying it.
|
|
327
|
+
*
|
|
328
|
+
* This factor is a value in range ````[0..1]````. A value of ````0.0```` causes dollying to immediately stop,
|
|
329
|
+
* ````0.5```` causes dollying to decay 50% on each animation frame, while ````1.0```` causes no decay, which allows dollying
|
|
330
|
+
* to continue until further input stops it.
|
|
331
|
+
*
|
|
332
|
+
* You might set ````dollyInertia```` to zero when you want be able to precisely position or rotate the Camera,
|
|
333
|
+
* without interference from inertia. This also means that xeokit renders less frames while dollying the Camera,
|
|
334
|
+
* which can improve rendering performance.
|
|
335
|
+
*
|
|
336
|
+
* Default is ````0````.
|
|
337
|
+
*
|
|
338
|
+
* @param {Number} dollyInertia New dolly inertia factor.
|
|
339
|
+
*/
|
|
340
|
+
set dollyInertia(arg: number);
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Gets the dolly inertia factor.
|
|
344
|
+
*
|
|
345
|
+
* Default is ````0````.
|
|
346
|
+
*
|
|
347
|
+
* @returns {Number} The current dolly inertia factor.
|
|
348
|
+
*/
|
|
349
|
+
get dollyInertia(): number;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Sets the proximity to the closest object below which dolly speed decreases, and above which dolly speed increases.
|
|
353
|
+
*
|
|
354
|
+
* Default is ````35.0````.
|
|
355
|
+
*
|
|
356
|
+
* @param {Number} dollyProximityThreshold New dolly proximity threshold.
|
|
357
|
+
*/
|
|
358
|
+
set dollyProximityThreshold(arg: number);
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Gets the proximity to the closest object below which dolly speed decreases, and above which dolly speed increases.
|
|
362
|
+
*
|
|
363
|
+
* Default is ````35.0````.
|
|
364
|
+
*
|
|
365
|
+
* @returns {Number} The current dolly proximity threshold.
|
|
366
|
+
*/
|
|
367
|
+
get dollyProximityThreshold(): number;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Sets the minimum dolly speed.
|
|
371
|
+
*
|
|
372
|
+
* Default is ````0.04````.
|
|
373
|
+
*
|
|
374
|
+
* @param {Number} dollyMinSpeed New dolly minimum speed.
|
|
375
|
+
*/
|
|
376
|
+
set dollyMinSpeed(arg: number);
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Gets the minimum dolly speed.
|
|
380
|
+
*
|
|
381
|
+
* Default is ````0.04````.
|
|
382
|
+
*
|
|
383
|
+
* @returns {Number} The current minimum dolly speed.
|
|
384
|
+
*/
|
|
385
|
+
get dollyMinSpeed(): number;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Sets the pan inertia factor.
|
|
389
|
+
*
|
|
390
|
+
* This factor configures how much the {@link Camera} keeps moving after you finish panning it.
|
|
391
|
+
*
|
|
392
|
+
* This factor is a value in range ````[0..1]````. A value of ````0.0```` causes panning to immediately stop,
|
|
393
|
+
* ````0.5```` causes panning to decay 50% on each animation frame, while ````1.0```` causes no decay, which allows panning
|
|
394
|
+
* to continue until further input stops it.
|
|
395
|
+
*
|
|
396
|
+
* You might set ````panInertia```` to zero when you want be able to precisely position or rotate the Camera,
|
|
397
|
+
* without interference from inertia. This also means that xeokit renders less frames while panning the Camera,
|
|
398
|
+
* wich can improve rendering performance.
|
|
399
|
+
*
|
|
400
|
+
* Default is ````0.5````.
|
|
401
|
+
*
|
|
402
|
+
* @param {Number} panInertia New pan inertia factor.
|
|
403
|
+
*/
|
|
404
|
+
set panInertia(arg: number);
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Gets the pan inertia factor.
|
|
408
|
+
*
|
|
409
|
+
* Default is ````0.5````.
|
|
410
|
+
*
|
|
411
|
+
* @returns {Number} The current pan inertia factor.
|
|
412
|
+
*/
|
|
413
|
+
get panInertia(): number;
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Sets whether mouse and touch input is enabled.
|
|
417
|
+
*
|
|
418
|
+
* Default is ````true````.
|
|
419
|
+
*
|
|
420
|
+
* Disabling mouse and touch input on ````CameraControl```` is useful when we want to temporarily use mouse or
|
|
421
|
+
* touch input to interact with some other 3D control, without disturbing the {@link Camera}.
|
|
422
|
+
*
|
|
423
|
+
* @param {Boolean} value Set ````true```` to enable mouse and touch input.
|
|
424
|
+
*/
|
|
425
|
+
set pointerEnabled(arg: boolean);
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* Gets whether mouse and touch input is enabled.
|
|
429
|
+
*
|
|
430
|
+
* Default is ````true````.
|
|
431
|
+
*
|
|
432
|
+
* Disabling mouse and touch input on ````CameraControl```` is desirable when we want to temporarily use mouse or
|
|
433
|
+
* touch input to interact with some other 3D control, without interfering with the {@link Camera}.
|
|
434
|
+
*
|
|
435
|
+
* @returns {Boolean} Returns ````true```` if mouse and touch input is enabled.
|
|
436
|
+
*/
|
|
437
|
+
get pointerEnabled(): boolean;
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* Sets how much the {@link Camera} dollys each second with keyboard input.
|
|
441
|
+
*
|
|
442
|
+
* Default is ````15.0````, to dolly the {@link Camera} ````15.0```` World-space units per second while we hold down
|
|
443
|
+
* the ````+```` and ````-```` keys.
|
|
444
|
+
*
|
|
445
|
+
* @param {Number} keyboardDollyRate The new keyboard dolly rate.
|
|
446
|
+
*/
|
|
447
|
+
set keyboardDollyRate(arg: number);
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Gets how much the {@link Camera} dollys each second with keyboard input.
|
|
451
|
+
*
|
|
452
|
+
* Default is ````15.0````.
|
|
453
|
+
*
|
|
454
|
+
* @returns {Number} The current keyboard dolly rate.
|
|
455
|
+
*/
|
|
456
|
+
get keyboardDollyRate(): number;
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Sets how much the {@link Camera} dollys each second while the mouse wheel is spinning.
|
|
460
|
+
*
|
|
461
|
+
* Default is ````100.0````, to dolly the {@link Camera} ````10.0```` World-space units per second as we spin
|
|
462
|
+
* the mouse wheel.
|
|
463
|
+
*
|
|
464
|
+
* @param {Number} mouseWheelDollyRate The new mouse wheel dolly rate.
|
|
465
|
+
*/
|
|
466
|
+
set mouseWheelDollyRate(arg: number);
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Gets how much the {@link Camera} dollys each second while the mouse wheel is spinning.
|
|
470
|
+
*
|
|
471
|
+
* Default is ````100.0````.
|
|
472
|
+
*
|
|
473
|
+
* @returns {Number} The current mouseWheel dolly rate.
|
|
474
|
+
*/
|
|
475
|
+
get mouseWheelDollyRate(): number;
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Returns true if any keys configured for the given action are down.
|
|
479
|
+
* @param action
|
|
480
|
+
* @param keyDownMap
|
|
481
|
+
* @private
|
|
482
|
+
*/
|
|
483
|
+
private _isKeyDownForAction;
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Sets the HTMl element to represent the pivot point when {@link CameraControl#followPointer} is true.
|
|
487
|
+
*
|
|
488
|
+
* See class comments for an example.
|
|
489
|
+
*
|
|
490
|
+
* @param {HTMLElement} element HTML element representing the pivot point.
|
|
491
|
+
*/
|
|
492
|
+
set pivotElement(arg: HTMLElement);
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* Sets the current World-space 3D target position.
|
|
496
|
+
*
|
|
497
|
+
* Only applies when {@link CameraControl#followPointer} is ````true````.
|
|
498
|
+
*
|
|
499
|
+
* @param {Number[]} worldPos The new World-space 3D target position.
|
|
500
|
+
*/
|
|
501
|
+
set pivotPos(arg: number[]);
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Gets the current World-space 3D pivot position.
|
|
505
|
+
*
|
|
506
|
+
* Only applies when {@link CameraControl#followPointer} is ````true````.
|
|
507
|
+
*
|
|
508
|
+
* @return {Number[]} worldPos The current World-space 3D pivot position.
|
|
509
|
+
*/
|
|
510
|
+
get pivotPos(): number[];
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* @deprecated
|
|
514
|
+
* @param {Boolean} value Set ````true```` to enable dolly-to-pointer behaviour.
|
|
515
|
+
*/
|
|
516
|
+
set dollyToPointer(arg: boolean);
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* @deprecated
|
|
520
|
+
* @returns {Boolean} Returns ````true```` if dolly-to-pointer behaviour is enabled.
|
|
521
|
+
*/
|
|
522
|
+
get dollyToPointer(): boolean;
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* @deprecated
|
|
526
|
+
* @param {Boolean} value Set ````true```` to enable dolly-to-pointer behaviour.
|
|
527
|
+
*/
|
|
528
|
+
set panToPointer(arg: boolean);
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* @deprecated
|
|
532
|
+
* @returns {Boolean} Returns ````true```` if dolly-to-pointer behaviour is enabled.
|
|
533
|
+
*/
|
|
534
|
+
get panToPointer(): boolean;
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Sets whether this ````CameraControl```` is in first-person mode.
|
|
538
|
+
*
|
|
539
|
+
* In "first person" mode (disabled by default) the look position rotates about the eye position. Otherwise, {@link Camera#eye} rotates about {@link Camera#look}.
|
|
540
|
+
*
|
|
541
|
+
* Default is ````false````.
|
|
542
|
+
*
|
|
543
|
+
* Deprecated - use {@link CameraControl#navMode} instead.
|
|
544
|
+
*
|
|
545
|
+
* @param {Boolean} value Set ````true```` to enable first-person mode.
|
|
546
|
+
* @deprecated
|
|
547
|
+
*/
|
|
548
|
+
set firstPerson(arg: boolean);
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* Gets whether this ````CameraControl```` is in first-person mode.
|
|
552
|
+
*
|
|
553
|
+
* In "first person" mode (disabled by default) the look position rotates about the eye position. Otherwise, {@link Camera#eye} rotates about {@link Camera#look}.
|
|
554
|
+
*
|
|
555
|
+
* Default is ````false````.
|
|
556
|
+
*
|
|
557
|
+
* Deprecated - use {@link CameraControl#navMode} instead.
|
|
558
|
+
*
|
|
559
|
+
* @returns {Boolean} Returns ````true```` if first-person mode is enabled.
|
|
560
|
+
* @deprecated
|
|
561
|
+
*/
|
|
562
|
+
get firstPerson(): boolean;
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* Sets whether smart default pivoting is enabled.
|
|
566
|
+
*
|
|
567
|
+
* When ````true````, we'll pivot by default about the 3D position of the mouse/touch pointer on an
|
|
568
|
+
* imaginary sphere that's centered at {@link Camera#eye} and sized to the {@link Scene} boundary.
|
|
569
|
+
*
|
|
570
|
+
* When ````false````, we'll pivot by default about {@link Camera#look}.
|
|
571
|
+
*
|
|
572
|
+
* Default is ````false````.
|
|
573
|
+
*
|
|
574
|
+
* @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}.
|
|
575
|
+
*/
|
|
576
|
+
set smartPivot(arg: boolean);
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* Gets whether smart default pivoting is enabled.
|
|
580
|
+
*
|
|
581
|
+
* When ````true````, we'll pivot by default about the 3D position of the mouse/touch pointer on an
|
|
582
|
+
* imaginary sphere that's centered at {@link Camera#eye} and sized to the {@link Scene} boundary.
|
|
583
|
+
*
|
|
584
|
+
* When ````false````, we'll pivot by default about {@link Camera#look}.
|
|
585
|
+
*
|
|
586
|
+
* Default is ````false````.
|
|
587
|
+
*
|
|
588
|
+
* @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}.
|
|
589
|
+
*/
|
|
590
|
+
get smartPivot(): boolean;
|
|
591
|
+
}
|