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