@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
|
@@ -9,135 +9,61 @@ import { CustomProjection } from "./CustomProjection";
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class Camera extends Component {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* An optional matrix to premultiply into {@link Camera.matrix} matrix.
|
|
13
13
|
*
|
|
14
14
|
* This is intended to be used for stereo rendering with WebVR etc.
|
|
15
|
-
*
|
|
16
|
-
* @param {Number[]} matrix The matrix.
|
|
17
|
-
*/
|
|
18
|
-
set deviceMatrix(arg: number[]);
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Gets an optional matrix to premultiply into {@link Camera.matrix} matrix.
|
|
22
|
-
*
|
|
23
|
-
* @returns {Number[]} The matrix.
|
|
24
15
|
*/
|
|
25
|
-
|
|
16
|
+
deviceMatrix: number[];
|
|
26
17
|
|
|
27
18
|
/**
|
|
28
|
-
*
|
|
19
|
+
* The position of the Camera's eye.
|
|
29
20
|
*
|
|
30
21
|
* Default value is ````[0,0,10]````.
|
|
31
22
|
*
|
|
32
23
|
* @emits "eye" event on change, with the value of this property.
|
|
33
|
-
* @type {Number[]} New eye position.
|
|
34
24
|
*/
|
|
35
|
-
|
|
25
|
+
eye: number[];
|
|
36
26
|
|
|
37
27
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* Default vale is ````[0,0,10]````.
|
|
41
|
-
*
|
|
42
|
-
* @type {Number[]} New eye position.
|
|
43
|
-
*/
|
|
44
|
-
get eye(): number[];
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Sets the position of this Camera's point-of-interest.
|
|
28
|
+
* The position of this Camera's point-of-interest.
|
|
48
29
|
*
|
|
49
30
|
* Default value is ````[0,0,0]````.
|
|
50
31
|
*
|
|
51
32
|
* @emits "look" event on change, with the value of this property.
|
|
52
|
-
*
|
|
53
|
-
* @param {Number[]} look Camera look position.
|
|
54
|
-
*/
|
|
55
|
-
set look(arg: number[]);
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Gets the position of this Camera's point-of-interest.
|
|
59
|
-
*
|
|
60
|
-
* Default value is ````[0,0,0]````.
|
|
61
|
-
*
|
|
62
|
-
* @returns {Number[]} Camera look position.
|
|
63
33
|
*/
|
|
64
|
-
|
|
34
|
+
look: number[];
|
|
65
35
|
|
|
66
36
|
/**
|
|
67
|
-
*
|
|
37
|
+
* The direction of this Camera's {@link Camera.up} vector.
|
|
68
38
|
*
|
|
69
39
|
* @emits "up" event on change, with the value of this property.
|
|
70
|
-
*
|
|
71
|
-
* @param {Number[]} up Direction of "up".
|
|
72
|
-
*/
|
|
73
|
-
set up(arg: number[]);
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Gets the direction of this Camera's {@link Camera.up} vector.
|
|
77
|
-
*
|
|
78
|
-
* @returns {Number[]} Direction of "up".
|
|
79
40
|
*/
|
|
80
|
-
|
|
41
|
+
up: number[];
|
|
81
42
|
|
|
82
43
|
/**
|
|
83
|
-
*
|
|
44
|
+
* The up, right and forward axis of the World coordinate system.
|
|
84
45
|
*
|
|
85
46
|
* Has format: ````[rightX, rightY, rightZ, upX, upY, upZ, forwardX, forwardY, forwardZ]````
|
|
86
47
|
*
|
|
87
48
|
* Default axis is ````[1, 0, 0, 0, 1, 0, 0, 0, 1]````
|
|
88
|
-
*
|
|
89
|
-
* @param {Number[]} axis The new Wworld coordinate axis.
|
|
90
49
|
*/
|
|
91
|
-
|
|
50
|
+
worldAxis: number[];
|
|
92
51
|
|
|
93
52
|
/**
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
* Has format: ````[rightX, rightY, rightZ, upX, upY, upZ, forwardX, forwardY, forwardZ]````
|
|
97
|
-
*
|
|
98
|
-
* Default axis is ````[1, 0, 0, 0, 1, 0, 0, 0, 1]````
|
|
99
|
-
*
|
|
100
|
-
* @returns {Number[]} The current World coordinate axis.
|
|
101
|
-
*/
|
|
102
|
-
get worldAxis(): number[];
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Sets whether to lock yaw rotation to pivot about the World-space "up" axis.
|
|
53
|
+
* Whether to lock yaw rotation to pivot about the World-space "up" axis.
|
|
106
54
|
*
|
|
107
55
|
* Fires a {@link Camera.gimbalLock:event} event on change.
|
|
108
|
-
*
|
|
109
|
-
* @params {Boolean} gimbalLock Set true to lock gimbal.
|
|
110
|
-
*/
|
|
111
|
-
set gimbalLock(arg: boolean);
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Gets whether to lock yaw rotation to pivot about the World-space "up" axis.
|
|
115
|
-
*
|
|
116
|
-
* @returns {Boolean} Returns ````true```` if gimbal is locked.
|
|
117
56
|
*/
|
|
118
|
-
|
|
57
|
+
gimbalLock: boolean;
|
|
119
58
|
|
|
120
59
|
/**
|
|
121
|
-
*
|
|
60
|
+
* The active projection type.
|
|
122
61
|
*
|
|
123
62
|
* Accepted values are ````"perspective"````, ````"ortho"````, ````"frustum"```` and ````"customProjection"````.
|
|
124
63
|
*
|
|
125
64
|
* Default value is ````"perspective"````.
|
|
126
|
-
*
|
|
127
|
-
* @param {String} value Identifies the active projection type.
|
|
128
65
|
*/
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Gets the active projection type.
|
|
133
|
-
*
|
|
134
|
-
* Possible values are ````"perspective"````, ````"ortho"````, ````"frustum"```` and ````"customProjection"````.
|
|
135
|
-
*
|
|
136
|
-
* Default value is ````"perspective"````.
|
|
137
|
-
*
|
|
138
|
-
* @returns {String} Identifies the active projection type.
|
|
139
|
-
*/
|
|
140
|
-
get projection(): "perspective" | "ortho" | "frustum" | "customProjection";
|
|
66
|
+
projection: "perspective" | "ortho" | "frustum" | "customProjection";
|
|
141
67
|
|
|
142
68
|
/**
|
|
143
69
|
* Rotates {@link Camera.eye} about {@link Camera.look}, around the {@link Camera.up} vector
|
|
@@ -182,183 +108,137 @@ export declare class Camera extends Component {
|
|
|
182
108
|
zoom(delta: number): void;
|
|
183
109
|
|
|
184
110
|
/**
|
|
185
|
-
*
|
|
111
|
+
* The direction of World-space "up".
|
|
186
112
|
*
|
|
187
113
|
* This is set by {@link Camera.worldAxis}.
|
|
188
114
|
*
|
|
189
115
|
* Default value is ````[0,1,0]````.
|
|
190
|
-
*
|
|
191
|
-
* @returns {Number[]} The "up" vector.
|
|
192
116
|
*/
|
|
193
|
-
|
|
117
|
+
readonly worldUp: number[];
|
|
194
118
|
|
|
195
119
|
/**
|
|
196
|
-
*
|
|
197
|
-
* @returns {Boolean}
|
|
120
|
+
* Whether the World-space X-axis is "up".
|
|
198
121
|
*/
|
|
199
|
-
|
|
122
|
+
readonly xUp: boolean;
|
|
200
123
|
|
|
201
124
|
/**
|
|
202
|
-
*
|
|
203
|
-
* @returns {Boolean}
|
|
125
|
+
* Whether the World-space Y-axis is "up".
|
|
204
126
|
*/
|
|
205
|
-
|
|
127
|
+
readonly yUp: boolean;
|
|
206
128
|
|
|
207
129
|
/**
|
|
208
|
-
*
|
|
209
|
-
* @returns {Boolean}
|
|
130
|
+
* Whether the World-space Z-axis is "up".
|
|
210
131
|
*/
|
|
211
|
-
|
|
132
|
+
readonly zUp: boolean;
|
|
212
133
|
|
|
213
134
|
/**
|
|
214
|
-
*
|
|
135
|
+
* The direction of World-space "right".
|
|
215
136
|
*
|
|
216
137
|
* This is set by {@link Camera.worldAxis}.
|
|
217
138
|
*
|
|
218
139
|
* Default value is ````[1,0,0]````.
|
|
219
|
-
*
|
|
220
|
-
* @returns {Number[]} The "up" vector.
|
|
221
140
|
*/
|
|
222
|
-
|
|
141
|
+
readonly worldRight: number[];
|
|
223
142
|
|
|
224
143
|
/**
|
|
225
|
-
*
|
|
144
|
+
* The direction of World-space "forwards".
|
|
226
145
|
*
|
|
227
146
|
* This is set by {@link Camera.worldAxis}.
|
|
228
147
|
*
|
|
229
148
|
* Default value is ````[0,0,1]````.
|
|
230
|
-
*
|
|
231
|
-
* @returns {Number[]} The "up" vector.
|
|
232
|
-
*/
|
|
233
|
-
get worldForward(): number[];
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* Gets whether to prevent camera from being pitched upside down.
|
|
237
|
-
*
|
|
238
|
-
* The camera is upside down when the angle between {@link Camera.up} and {@link Camera.worldUp} is less than one degree.
|
|
239
|
-
*
|
|
240
|
-
* Default value is ````false````.
|
|
241
|
-
*
|
|
242
|
-
* @returns {Boolean} ````true```` if pitch rotation is currently constrained.
|
|
243
149
|
*/
|
|
244
|
-
|
|
150
|
+
readonly worldForward: number[];
|
|
245
151
|
|
|
246
152
|
/**
|
|
247
|
-
*
|
|
153
|
+
* Whether to prevent camera from being pitched upside down.
|
|
248
154
|
*
|
|
249
155
|
* The camera is upside down when the angle between {@link Camera.up} and {@link Camera.worldUp} is less than one degree.
|
|
250
156
|
*
|
|
251
157
|
* Fires a {@link Camera.constrainPitch:event} event on change.
|
|
252
158
|
*
|
|
253
159
|
* Default value is ````false````.
|
|
254
|
-
*
|
|
255
|
-
* @param {Boolean} value Set ````true```` to contrain pitch rotation.
|
|
256
160
|
*/
|
|
257
|
-
|
|
161
|
+
constrainPitch: boolean;
|
|
258
162
|
|
|
259
163
|
/**
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
* @returns {Number} The distance.
|
|
164
|
+
* Distance from {@link Camera.look} to {@link Camera.eye}.
|
|
263
165
|
*/
|
|
264
|
-
|
|
166
|
+
readonly eyeLookDist: number;
|
|
265
167
|
|
|
266
168
|
/**
|
|
267
|
-
*
|
|
169
|
+
* The Camera's viewing transformation matrix.
|
|
268
170
|
*
|
|
269
171
|
* Fires a {@link Camera.matrix:event} event on change.
|
|
270
|
-
*
|
|
271
|
-
* @returns {Number[]} The viewing transform matrix.
|
|
272
172
|
*/
|
|
273
|
-
|
|
173
|
+
readonly matrix: number[];
|
|
274
174
|
|
|
275
175
|
/**
|
|
276
|
-
*
|
|
176
|
+
* The Camera's viewing transformation matrix.
|
|
277
177
|
*
|
|
278
178
|
* Fires a {@link Camera.matrix:event} event on change.
|
|
279
|
-
*
|
|
280
|
-
* @returns {Number[]} The viewing transform matrix.
|
|
281
179
|
*/
|
|
282
|
-
|
|
180
|
+
readonly viewMatrix: number[];
|
|
283
181
|
|
|
284
182
|
/**
|
|
285
183
|
* The Camera's viewing normal transformation matrix.
|
|
286
184
|
*
|
|
287
185
|
* Fires a {@link Camera.matrix:event} event on change.
|
|
288
|
-
*
|
|
289
|
-
* @returns {Number[]} The viewing normal transform matrix.
|
|
290
186
|
*/
|
|
291
|
-
|
|
187
|
+
readonly normalMatrix: number[];
|
|
292
188
|
|
|
293
189
|
/**
|
|
294
190
|
* The Camera's viewing normal transformation matrix.
|
|
295
191
|
*
|
|
296
192
|
* Fires a {@link Camera.matrix:event} event on change.
|
|
297
|
-
*
|
|
298
|
-
* @returns {Number[]} The viewing normal transform matrix.
|
|
299
193
|
*/
|
|
300
|
-
|
|
194
|
+
readonly viewNormalMatrix: number[];
|
|
301
195
|
|
|
302
196
|
/**
|
|
303
|
-
*
|
|
197
|
+
* The inverse of the Camera's viewing transform matrix.
|
|
304
198
|
*
|
|
305
199
|
* This has the same value as {@link Camera.normalMatrix}.
|
|
306
|
-
*
|
|
307
|
-
* @returns {Number[]} The inverse viewing transform matrix.
|
|
308
200
|
*/
|
|
309
|
-
|
|
201
|
+
readonly inverseViewMatrix: number[];
|
|
310
202
|
|
|
311
203
|
/**
|
|
312
|
-
*
|
|
204
|
+
* The Camera's projection transformation projMatrix.
|
|
313
205
|
*
|
|
314
206
|
* Fires a {@link Camera.projMatrix:event} event on change.
|
|
315
|
-
*
|
|
316
|
-
* @returns {Number[]} The projection matrix.
|
|
317
207
|
*/
|
|
318
|
-
|
|
208
|
+
readonly projMatrix: number[];
|
|
319
209
|
|
|
320
210
|
/**
|
|
321
|
-
*
|
|
211
|
+
* The Camera's perspective projection.
|
|
322
212
|
*
|
|
323
213
|
* The Camera uses this while {@link Camera.projection} equals ````perspective````.
|
|
324
|
-
*
|
|
325
|
-
* @returns {Perspective} The Perspective component.
|
|
326
214
|
*/
|
|
327
|
-
|
|
215
|
+
readonly perspective: Perspective;
|
|
328
216
|
|
|
329
217
|
/**
|
|
330
|
-
*
|
|
218
|
+
* The Camera's orthographic projection.
|
|
331
219
|
*
|
|
332
220
|
* The Camera uses this while {@link Camera.projection} equals ````ortho````.
|
|
333
|
-
*
|
|
334
|
-
* @returns {Ortho} The Ortho component.
|
|
335
221
|
*/
|
|
336
|
-
|
|
222
|
+
readonly ortho: Ortho;
|
|
337
223
|
|
|
338
224
|
/**
|
|
339
|
-
*
|
|
225
|
+
* The Camera's frustum projection.
|
|
340
226
|
*
|
|
341
227
|
* The Camera uses this while {@link Camera.projection} equals ````frustum````.
|
|
342
|
-
*
|
|
343
|
-
* @returns {Frustum} The Ortho component.
|
|
344
228
|
*/
|
|
345
|
-
|
|
229
|
+
readonly frustum: Frustum;
|
|
346
230
|
|
|
347
231
|
/**
|
|
348
|
-
*
|
|
232
|
+
* The Camera's custom projection.
|
|
349
233
|
*
|
|
350
234
|
* This is used while {@link Camera.projection} equals "customProjection".
|
|
351
|
-
*
|
|
352
|
-
* @returns {CustomProjection} The custom projection.
|
|
353
235
|
*/
|
|
354
|
-
|
|
236
|
+
readonly customProjection: CustomProjection;
|
|
355
237
|
|
|
356
238
|
/**
|
|
357
|
-
*
|
|
239
|
+
* The currently active projection for this Camera.
|
|
358
240
|
*
|
|
359
241
|
* The currently active project is selected with {@link Camera.projection}.
|
|
360
|
-
*
|
|
361
|
-
* @returns {Perspective|Ortho|Frustum|CustomProjection} The currently active projection is active.
|
|
362
242
|
*/
|
|
363
|
-
|
|
243
|
+
readonly project: Perspective | Ortho | Frustum | CustomProjection;
|
|
364
244
|
}
|
|
@@ -5,88 +5,39 @@ import { Component } from "../Component";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare class CameraFlightAnimation extends Component {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* The flight duration, in seconds, when calling {@link CameraFlightAnimation.flyTo}.
|
|
9
9
|
*
|
|
10
10
|
* Stops any flight currently in progress.
|
|
11
11
|
*
|
|
12
12
|
* default value is ````0.5````.
|
|
13
|
-
*
|
|
14
|
-
* @param {Number} value New duration value.
|
|
15
13
|
*/
|
|
16
|
-
|
|
14
|
+
duration: number;
|
|
17
15
|
|
|
18
16
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* default value is ````0.5````.
|
|
22
|
-
*
|
|
23
|
-
* @returns {Number} New duration value.
|
|
24
|
-
*/
|
|
25
|
-
get duration(): number;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Sets if, when CameraFlightAnimation is flying to a boundary, it will always adjust the distance between the
|
|
17
|
+
* Whether, when CameraFlightAnimation is flying to a boundary, it will always adjust the distance between the
|
|
29
18
|
* {@link Camera.eye} and {@link Camera.look} so as to ensure that the target boundary is always filling the view volume.
|
|
30
19
|
*
|
|
31
20
|
* When false, the eye will remain at its current distance from the look position.
|
|
32
21
|
*
|
|
33
22
|
* Default value is ````true````.
|
|
34
|
-
*
|
|
35
|
-
* @param {Boolean} value Set ````true```` to activate this behaviour.
|
|
36
|
-
*/
|
|
37
|
-
set fit(arg: boolean);
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Gets if, when CameraFlightAnimation is flying to a boundary, it will always adjust the distance between the
|
|
41
|
-
* {@link Camera.eye} and {@link Camera.look} so as to ensure that the target boundary is always filling the view volume.
|
|
42
|
-
*
|
|
43
|
-
* When false, the eye will remain at its current distance from the look position.
|
|
44
|
-
*
|
|
45
|
-
* Default value is ````true````.
|
|
46
|
-
*
|
|
47
|
-
* @returns {Boolean} value Set ````true```` to activate this behaviour.
|
|
48
23
|
*/
|
|
49
|
-
|
|
24
|
+
fit: boolean;
|
|
50
25
|
|
|
51
26
|
/**
|
|
52
|
-
*
|
|
27
|
+
* How much of the perspective field-of-view, in degrees, that a target {@link Entity.aabb} should
|
|
53
28
|
* fill the canvas when calling {@link CameraFlightAnimation.flyTo} or {@link CameraFlightAnimation.jumpTo}.
|
|
54
29
|
*
|
|
55
30
|
* Default value is ````45````.
|
|
56
|
-
*
|
|
57
|
-
* @param {Number} value New FOV value.
|
|
58
|
-
*/
|
|
59
|
-
set fitFOV(arg: number);
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Gets how much of the perspective field-of-view, in degrees, that a target {@link Entity.aabb} should
|
|
63
|
-
* fill the canvas when calling {@link CameraFlightAnimation.flyTo} or {@link CameraFlightAnimation.jumpTo}.
|
|
64
|
-
*
|
|
65
|
-
* Default value is ````45````.
|
|
66
|
-
*
|
|
67
|
-
* @returns {Number} Current FOV value.
|
|
68
31
|
*/
|
|
69
|
-
|
|
32
|
+
fitFOV: number;
|
|
70
33
|
|
|
71
34
|
/**
|
|
72
|
-
*
|
|
35
|
+
* Whether this CameraFlightAnimation points the {@link Camera}
|
|
73
36
|
* in the direction that it is travelling when flying to a target after calling {@link CameraFlightAnimation.flyTo}.
|
|
74
37
|
*
|
|
75
38
|
* Default value is ````true````.
|
|
76
|
-
*
|
|
77
|
-
* @param {Boolean} value Set ````true```` to activate trailing behaviour.
|
|
78
|
-
*/
|
|
79
|
-
set trail(arg: boolean);
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Gets if this CameraFlightAnimation points the {@link Camera}
|
|
83
|
-
* in the direction that it is travelling when flying to a target after calling {@link CameraFlightAnimation.flyTo}.
|
|
84
|
-
*
|
|
85
|
-
* Default value is ````true````.
|
|
86
|
-
*
|
|
87
|
-
* @returns {Boolean} True if trailing behaviour is active.
|
|
88
39
|
*/
|
|
89
|
-
|
|
40
|
+
trail: boolean;
|
|
90
41
|
|
|
91
42
|
/**
|
|
92
43
|
* Flies the {@link Camera} to a target.
|
|
@@ -28,29 +28,24 @@ export declare class CameraPath extends Component {
|
|
|
28
28
|
constructor(owner?: Component, cfg?: CameraPathConfiguration);
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* @returns {{t:Number, eye:Object, look:Object, up: Object}[]} The frames on this CameraPath.
|
|
31
|
+
* The camera frames in this CameraPath.
|
|
34
32
|
*/
|
|
35
|
-
|
|
33
|
+
readonly frames: Frame[];
|
|
36
34
|
|
|
37
35
|
/**
|
|
38
|
-
*
|
|
39
|
-
* @returns {SplineCurve} The SplineCurve for {@link Camera#eye}.
|
|
36
|
+
* The {@link SplineCurve} along which {@link Camera#eye} travels.
|
|
40
37
|
*/
|
|
41
|
-
|
|
38
|
+
readonly eyeCurve: SplineCurve;
|
|
42
39
|
|
|
43
40
|
/**
|
|
44
|
-
*
|
|
45
|
-
* @returns {SplineCurve} The SplineCurve for {@link Camera#look}.
|
|
41
|
+
* The {@link SplineCurve} along which {@link Camera#look} travels.
|
|
46
42
|
*/
|
|
47
|
-
|
|
43
|
+
readonly lookCurve: SplineCurve;
|
|
48
44
|
|
|
49
45
|
/**
|
|
50
|
-
*
|
|
51
|
-
* @returns {SplineCurve} The SplineCurve for {@link Camera#up}.
|
|
46
|
+
* The {@link SplineCurve} along which {@link Camera#up} travels.
|
|
52
47
|
*/
|
|
53
|
-
|
|
48
|
+
readonly upCurve: SplineCurve;
|
|
54
49
|
|
|
55
50
|
/**
|
|
56
51
|
* Adds a frame to this CameraPath, given as the current position of the {@link Camera}.
|
|
@@ -19,32 +19,14 @@ export declare class CameraPathAnimation extends Component {
|
|
|
19
19
|
constructor(owner?: Component, cfg?: CameraPathAnimationConfiguration);
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
@param {CameraPath} value The new CameraPath.
|
|
25
|
-
*/
|
|
26
|
-
set cameraPath(arg: CameraPath);
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Gets the {@link CameraPath} animated by this CameraPathAnimation.
|
|
30
|
-
*
|
|
31
|
-
@returns {CameraPath} The CameraPath.
|
|
22
|
+
* The {@link CameraPath} animated by this CameraPathAnimation.
|
|
32
23
|
*/
|
|
33
|
-
|
|
24
|
+
cameraPath: CameraPath;
|
|
34
25
|
|
|
35
26
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* @param {Number} value The amount of progress per second.
|
|
39
|
-
*/
|
|
40
|
-
set rate(arg: number);
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Gets the rate at which the CameraPathAnimation animates the {@link Camera} along the {@link CameraPath}.
|
|
44
|
-
*
|
|
45
|
-
* @returns {*|number} The current playing rate.
|
|
27
|
+
* The rate at which the CameraPathAnimation animates the {@link Camera} along the {@link CameraPath}.
|
|
46
28
|
*/
|
|
47
|
-
|
|
29
|
+
rate: number;
|
|
48
30
|
|
|
49
31
|
/**
|
|
50
32
|
* Begins animating the {@link Camera} along CameraPathAnimation's {@link CameraPath} from the beginning.
|
|
@@ -11,38 +11,23 @@ export declare class CustomProjection extends Component {
|
|
|
11
11
|
camera: Camera;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* The CustomProjection's projection transform matrix.
|
|
15
15
|
*
|
|
16
16
|
* Fires a "matrix" event on change.
|
|
17
|
-
|
|
18
|
-
* Default value is ````[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]````.
|
|
19
|
-
*
|
|
20
|
-
* @param {Number[]} matrix New value for the CustomProjection's matrix.
|
|
21
|
-
*/
|
|
22
|
-
set matrix(arg: number[]);
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Gets the CustomProjection's projection transform matrix.
|
|
26
17
|
*
|
|
27
18
|
* Default value is ````[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]````.
|
|
28
|
-
*
|
|
29
|
-
* @return {Number[]} New value for the CustomProjection's matrix.
|
|
30
19
|
*/
|
|
31
|
-
|
|
20
|
+
matrix: number[];
|
|
32
21
|
|
|
33
22
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* @returns {Number[]} The inverse of {@link CustomProjection.matrix}.
|
|
23
|
+
* The inverse of {@link CustomProjection.matrix}.
|
|
37
24
|
*/
|
|
38
|
-
|
|
25
|
+
readonly inverseMatrix: number[];
|
|
39
26
|
|
|
40
27
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* @returns {Number[]} The transpose of {@link CustomProjection.matrix}.
|
|
28
|
+
* The transpose of {@link CustomProjection.matrix}.
|
|
44
29
|
*/
|
|
45
|
-
|
|
30
|
+
readonly transposedMatrix: number[];
|
|
46
31
|
|
|
47
32
|
/**
|
|
48
33
|
* Un-projects the given Canvas-space coordinates, using this CustomProjection.
|