@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,302 @@
|
|
|
1
|
+
export declare class PerformanceNode {
|
|
2
|
+
/**
|
|
3
|
+
* Returns true to indicate that PerformanceNode is an {@link Entity}.
|
|
4
|
+
* @type {Boolean}
|
|
5
|
+
*/
|
|
6
|
+
get isEntity(): boolean;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Always returns ````false```` because a PerformanceNode can never represent a model.
|
|
10
|
+
*
|
|
11
|
+
* @type {Boolean}
|
|
12
|
+
*/
|
|
13
|
+
get isModel(): boolean;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Returns ````true```` if this PerformanceNode represents an object.
|
|
17
|
+
*
|
|
18
|
+
* When ````true```` the PerformanceNode will be registered by {@link PerformanceNode#id} in
|
|
19
|
+
* {@link Scene#objects} and may also have a {@link MetaObject} with matching {@link MetaObject#id}.
|
|
20
|
+
*
|
|
21
|
+
* @type {Boolean}
|
|
22
|
+
*/
|
|
23
|
+
get isObject(): boolean;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* World-space 3D axis-aligned bounding box (AABB) of this PerformanceNode.
|
|
27
|
+
*
|
|
28
|
+
* Represented by a six-element Float64Array containing the min/max extents of the
|
|
29
|
+
* axis-aligned volume, ie. ````[xmin, ymin,zmin,xmax,ymax, zmax]````.
|
|
30
|
+
*
|
|
31
|
+
* @type {Float64Array}
|
|
32
|
+
*/
|
|
33
|
+
get aabb(): number[];
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The approximate number of triangles in this PerformanceNode.
|
|
37
|
+
*
|
|
38
|
+
* @type {Number}
|
|
39
|
+
*/
|
|
40
|
+
get numTriangles(): number;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Gets if this PerformanceNode is visible.
|
|
44
|
+
*
|
|
45
|
+
* Only rendered when {@link PerformanceNode#visible} is ````true```` and {@link PerformanceNode#culled} is ````false````.
|
|
46
|
+
*
|
|
47
|
+
* When both {@link PerformanceNode#isObject} and {@link PerformanceNode#visible} are ````true```` the PerformanceNode will be
|
|
48
|
+
* registered by {@link PerformanceNode#id} in {@link Scene#visibleObjects}.
|
|
49
|
+
*
|
|
50
|
+
* @type {Boolean}
|
|
51
|
+
*/
|
|
52
|
+
get visible(): boolean;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Sets if this PerformanceNode is visible.
|
|
56
|
+
*
|
|
57
|
+
* Only rendered when {@link PerformanceNode#visible} is ````true```` and {@link PerformanceNode#culled} is ````false````.
|
|
58
|
+
*
|
|
59
|
+
* When both {@link PerformanceNode#isObject} and {@link PerformanceNode#visible} are ````true```` the PerformanceNode will be
|
|
60
|
+
* registered by {@link PerformanceNode#id} in {@link Scene#visibleObjects}.
|
|
61
|
+
*
|
|
62
|
+
* @type {Boolean}
|
|
63
|
+
*/
|
|
64
|
+
set visible(visible: boolean);
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Gets if this PerformanceNode is highlighted.
|
|
68
|
+
*
|
|
69
|
+
* When both {@link PerformanceNode#isObject} and {@link PerformanceNode#highlighted} are ````true```` the PerformanceNode will be
|
|
70
|
+
* registered by {@link PerformanceNode#id} in {@link Scene#highlightedObjects}.
|
|
71
|
+
*
|
|
72
|
+
* @type {Boolean}
|
|
73
|
+
*/
|
|
74
|
+
get highlighted(): boolean;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Sets if this PerformanceNode is highlighted.
|
|
78
|
+
*
|
|
79
|
+
* When both {@link PerformanceNode#isObject} and {@link PerformanceNode#highlighted} are ````true```` the PerformanceNode will be
|
|
80
|
+
* registered by {@link PerformanceNode#id} in {@link Scene#highlightedObjects}.
|
|
81
|
+
*
|
|
82
|
+
* @type {Boolean}
|
|
83
|
+
*/
|
|
84
|
+
set highlighted(highlighted: boolean);
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Gets if this PerformanceNode is xrayed.
|
|
88
|
+
*
|
|
89
|
+
* When both {@link PerformanceNode#isObject} and {@link PerformanceNode#xrayed} are ````true```` the PerformanceNode will be
|
|
90
|
+
* registered by {@link PerformanceNode#id} in {@link Scene#xrayedObjects}.
|
|
91
|
+
*
|
|
92
|
+
* @type {Boolean}
|
|
93
|
+
*/
|
|
94
|
+
get xrayed(): boolean;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Sets if this PerformanceNode is xrayed.
|
|
98
|
+
*
|
|
99
|
+
* When both {@link PerformanceNode#isObject} and {@link PerformanceNode#xrayed} are ````true```` the PerformanceNode will be
|
|
100
|
+
* registered by {@link PerformanceNode#id} in {@link Scene#xrayedObjects}.
|
|
101
|
+
*
|
|
102
|
+
* @type {Boolean}
|
|
103
|
+
*/
|
|
104
|
+
set xrayed(xrayed: boolean);
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Sets if this PerformanceNode is selected.
|
|
108
|
+
*
|
|
109
|
+
* When both {@link PerformanceNode#isObject} and {@link PerformanceNode#selected} are ````true```` the PerformanceNode will be
|
|
110
|
+
* registered by {@link PerformanceNode#id} in {@link Scene#selectedObjects}.
|
|
111
|
+
*
|
|
112
|
+
* @type {Boolean}
|
|
113
|
+
*/
|
|
114
|
+
get selected(): boolean;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Gets if this PerformanceNode is selected.
|
|
118
|
+
*
|
|
119
|
+
* When both {@link PerformanceNode#isObject} and {@link PerformanceNode#selected} are ````true```` the PerformanceNode will be
|
|
120
|
+
* registered by {@link PerformanceNode#id} in {@link Scene#selectedObjects}.
|
|
121
|
+
*
|
|
122
|
+
* @type {Boolean}
|
|
123
|
+
*/
|
|
124
|
+
set selected(selected: boolean);
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Gets if this PerformanceNode's edges are enhanced.
|
|
128
|
+
*
|
|
129
|
+
* @type {Boolean}
|
|
130
|
+
*/
|
|
131
|
+
get edges(): boolean;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Sets if this PerformanceNode's edges are enhanced.
|
|
135
|
+
*
|
|
136
|
+
* @type {Boolean}
|
|
137
|
+
*/
|
|
138
|
+
set edges(edges: boolean);
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Gets if this PerformanceNode is culled.
|
|
142
|
+
*
|
|
143
|
+
* Only rendered when {@link PerformanceNode#visible} is ````true```` and {@link PerformanceNode#culled} is ````false````.
|
|
144
|
+
*
|
|
145
|
+
* @type {Boolean}
|
|
146
|
+
*/
|
|
147
|
+
get culled(): boolean;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Sets if this PerformanceNode is culled.
|
|
151
|
+
*
|
|
152
|
+
* Only rendered when {@link PerformanceNode#visible} is ````true```` and {@link PerformanceNode#culled} is ````false````.
|
|
153
|
+
*
|
|
154
|
+
* @type {Boolean}
|
|
155
|
+
*/
|
|
156
|
+
set culled(culled: boolean);
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Gets if this PerformanceNode is clippable.
|
|
160
|
+
*
|
|
161
|
+
* Clipping is done by the {@link SectionPlane}s in {@link Scene#sectionPlanes}.
|
|
162
|
+
*
|
|
163
|
+
* @type {Boolean}
|
|
164
|
+
*/
|
|
165
|
+
get clippable(): boolean;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Sets if this PerformanceNode is clippable.
|
|
169
|
+
*
|
|
170
|
+
* Clipping is done by the {@link SectionPlane}s in {@link Scene#sectionPlanes}.
|
|
171
|
+
*
|
|
172
|
+
* @type {Boolean}
|
|
173
|
+
*/
|
|
174
|
+
set clippable(clippable: boolean);
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Gets if this PerformanceNode is included in boundary calculations.
|
|
178
|
+
*
|
|
179
|
+
* @type {Boolean}
|
|
180
|
+
*/
|
|
181
|
+
get collidable(): boolean;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Sets if this PerformanceNode is included in boundary calculations.
|
|
185
|
+
*
|
|
186
|
+
* @type {Boolean}
|
|
187
|
+
*/
|
|
188
|
+
set collidable(collidable: boolean);
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Gets if this PerformanceNode is pickable.
|
|
192
|
+
*
|
|
193
|
+
* Picking is done via calls to {@link Scene#pick}.
|
|
194
|
+
*
|
|
195
|
+
* @type {Boolean}
|
|
196
|
+
*/
|
|
197
|
+
get pickable(): boolean;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Sets if this PerformanceNode is pickable.
|
|
201
|
+
*
|
|
202
|
+
* Picking is done via calls to {@link Scene#pick}.
|
|
203
|
+
*
|
|
204
|
+
* @type {Boolean}
|
|
205
|
+
*/
|
|
206
|
+
set pickable(pickable: boolean);
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Gets the PerformanceNode's RGB colorize color.
|
|
210
|
+
*
|
|
211
|
+
* Each element of the color is in range ````[0..1]````.
|
|
212
|
+
*
|
|
213
|
+
* @type {Number[]}
|
|
214
|
+
*/
|
|
215
|
+
get colorize(): number[];
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Sets the PerformanceNode's RGB colorize color.
|
|
219
|
+
*
|
|
220
|
+
* Each element of the color is in range ````[0..1]````.
|
|
221
|
+
*
|
|
222
|
+
* @type {Number[]}
|
|
223
|
+
*/
|
|
224
|
+
set colorize(color: number[]);
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Gets the PerformanceNode's opacity factor.
|
|
228
|
+
*
|
|
229
|
+
* This is a factor in range ````[0..1]```` which multiplies by the rendered fragment alphas.
|
|
230
|
+
*
|
|
231
|
+
* @type {Number}
|
|
232
|
+
*/
|
|
233
|
+
get opacity(): number;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Sets the PerformanceNode's opacity factor, multiplies by the PerformanceNode's rendered fragment alphas.
|
|
237
|
+
*
|
|
238
|
+
* This is a factor in range ````[0..1]````.
|
|
239
|
+
*
|
|
240
|
+
* @type {Number}
|
|
241
|
+
*/
|
|
242
|
+
set opacity(opacity: number);
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Gets the PerformanceNode's 3D World-space offset.
|
|
246
|
+
*
|
|
247
|
+
* Default value is ````[0,0,0]````.
|
|
248
|
+
*
|
|
249
|
+
* @type {Number[]}
|
|
250
|
+
*/
|
|
251
|
+
get offset(): number;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Sets the PerformanceNode's 3D World-space offset.
|
|
255
|
+
*
|
|
256
|
+
* The offset dynamically translates the PerformanceNode in World-space.
|
|
257
|
+
*
|
|
258
|
+
* Default value is ````[0, 0, 0]````.
|
|
259
|
+
*
|
|
260
|
+
* Provide a null or undefined value to reset to the default value.
|
|
261
|
+
*
|
|
262
|
+
* @type {Number[]}
|
|
263
|
+
*/
|
|
264
|
+
set offset(offset: number);
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Gets if this PerformanceNode casts shadows.
|
|
268
|
+
*
|
|
269
|
+
* @type {Boolean}
|
|
270
|
+
*/
|
|
271
|
+
get castsShadow(): boolean;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Sets if to this PerformanceNode casts shadows.
|
|
275
|
+
*
|
|
276
|
+
* @type {Boolean}
|
|
277
|
+
*/
|
|
278
|
+
set castsShadow(pickable: boolean);
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Whether or not this PerformanceNode can have shadows cast upon it
|
|
282
|
+
*
|
|
283
|
+
* @type {Boolean}
|
|
284
|
+
*/
|
|
285
|
+
get receivesShadow(): boolean;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Whether or not this PerformanceNode can have shadows cast upon it
|
|
289
|
+
*
|
|
290
|
+
* @type {Boolean}
|
|
291
|
+
*/
|
|
292
|
+
set receivesShadow(pickable: boolean);
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Gets if Scalable Ambient Obscurance (SAO) will apply to this PerformanceNode.
|
|
296
|
+
*
|
|
297
|
+
* SAO is configured by the Scene's {@link SAO} component.
|
|
298
|
+
*
|
|
299
|
+
* @type {Boolean}
|
|
300
|
+
*/
|
|
301
|
+
get saoEnabled(): boolean;
|
|
302
|
+
}
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
import { Component } from "../Component";
|
|
2
|
+
import { Perspective } from "./Perspective";
|
|
3
|
+
import { Ortho } from "./Ortho";
|
|
4
|
+
import { Frustum } from "./Frustum";
|
|
5
|
+
import { CustomProjection } from "./CustomProjection";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Manages viewing and projection transforms for its {@link Scene}.
|
|
9
|
+
*/
|
|
10
|
+
export declare class Camera extends Component {
|
|
11
|
+
/**
|
|
12
|
+
* Sets an optional matrix to premultiply into {@link Camera#matrix} matrix.
|
|
13
|
+
*
|
|
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
|
+
*/
|
|
25
|
+
get deviceMatrix(): number[];
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Sets the position of the Camera's eye.
|
|
29
|
+
*
|
|
30
|
+
* Default value is ````[0,0,10]````.
|
|
31
|
+
*
|
|
32
|
+
* @emits "eye" event on change, with the value of this property.
|
|
33
|
+
* @type {Number[]} New eye position.
|
|
34
|
+
*/
|
|
35
|
+
set eye(arg: number[]);
|
|
36
|
+
|
|
37
|
+
/**
|
|
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.
|
|
48
|
+
*
|
|
49
|
+
* Default value is ````[0,0,0]````.
|
|
50
|
+
*
|
|
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.
|
|
63
|
+
*/
|
|
64
|
+
get look(): number[];
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Sets the direction of this Camera's {@link Camera#up} vector.
|
|
68
|
+
*
|
|
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".
|
|
79
|
+
*/
|
|
80
|
+
get up(): number[];
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Sets the up, right and forward axis of the World coordinate system.
|
|
84
|
+
*
|
|
85
|
+
* Has format: ````[rightX, rightY, rightZ, upX, upY, upZ, forwardX, forwardY, forwardZ]````
|
|
86
|
+
*
|
|
87
|
+
* Default axis is ````[1, 0, 0, 0, 1, 0, 0, 0, 1]````
|
|
88
|
+
*
|
|
89
|
+
* @param {Number[]} axis The new Wworld coordinate axis.
|
|
90
|
+
*/
|
|
91
|
+
set worldAxis(arg: number[]);
|
|
92
|
+
|
|
93
|
+
/**
|
|
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.
|
|
106
|
+
*
|
|
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.
|
|
117
|
+
*/
|
|
118
|
+
get gimbalLock(): boolean;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Sets the active projection type.
|
|
122
|
+
*
|
|
123
|
+
* Accepted values are ````"perspective"````, ````"ortho"````, ````"frustum"```` and ````"customProjection"````.
|
|
124
|
+
*
|
|
125
|
+
* Default value is ````"perspective"````.
|
|
126
|
+
*
|
|
127
|
+
* @param {String} value Identifies the active projection type.
|
|
128
|
+
*/
|
|
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";
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Rotates {@link Camera#eye} about {@link Camera#look}, around the {@link Camera#up} vector
|
|
144
|
+
*
|
|
145
|
+
* @param {Number} angleInc Angle of rotation in degrees
|
|
146
|
+
*/
|
|
147
|
+
orbitYaw(angleInc: number): void;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Rotates {@link Camera#eye} about {@link Camera#look} around the right axis (orthogonal to {@link Camera#up} and "look").
|
|
151
|
+
*
|
|
152
|
+
* @param {Number} angleInc Angle of rotation in degrees
|
|
153
|
+
*/
|
|
154
|
+
orbitPitch(angleInc: number): void;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Rotates {@link Camera#look} about {@link Camera#eye}, around the {@link Camera#up} vector.
|
|
158
|
+
*
|
|
159
|
+
* @param {Number} angleInc Angle of rotation in degrees
|
|
160
|
+
*/
|
|
161
|
+
yaw(angleInc: number): void;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Rotates {@link Camera#look} about {@link Camera#eye}, around the right axis (orthogonal to {@link Camera#up} and "look").
|
|
165
|
+
*
|
|
166
|
+
* @param {Number} angleInc Angle of rotation in degrees
|
|
167
|
+
*/
|
|
168
|
+
pitch(angleInc: number): void;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Pans the Camera along its local X, Y and Z axis.
|
|
172
|
+
*
|
|
173
|
+
* @param {Number[]}pan The pan vector
|
|
174
|
+
*/
|
|
175
|
+
pan(pan: number[]): void;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Increments/decrements the Camera's zoom factor, which is the distance between {@link Camera#eye} and {@link Camera#look}.
|
|
179
|
+
*
|
|
180
|
+
* @param {Number} delta Zoom factor increment.
|
|
181
|
+
*/
|
|
182
|
+
zoom(delta: number): void;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Gets the direction of World-space "up".
|
|
186
|
+
*
|
|
187
|
+
* This is set by {@link Camera#worldAxis}.
|
|
188
|
+
*
|
|
189
|
+
* Default value is ````[0,1,0]````.
|
|
190
|
+
*
|
|
191
|
+
* @returns {Number[]} The "up" vector.
|
|
192
|
+
*/
|
|
193
|
+
get worldUp(): number[];
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Gets if the World-space X-axis is "up".
|
|
197
|
+
* @returns {boolean}
|
|
198
|
+
*/
|
|
199
|
+
get xUp(): boolean;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Gets if the World-space Y-axis is "up".
|
|
203
|
+
* @returns {boolean}
|
|
204
|
+
*/
|
|
205
|
+
get yUp(): boolean;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Gets if the World-space Z-axis is "up".
|
|
209
|
+
* @returns {boolean}
|
|
210
|
+
*/
|
|
211
|
+
get zUp(): boolean;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Gets the direction of World-space "right".
|
|
215
|
+
*
|
|
216
|
+
* This is set by {@link Camera#worldAxis}.
|
|
217
|
+
*
|
|
218
|
+
* Default value is ````[1,0,0]````.
|
|
219
|
+
*
|
|
220
|
+
* @returns {Number[]} The "up" vector.
|
|
221
|
+
*/
|
|
222
|
+
get worldRight(): number[];
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Gets the direction of World-space "forwards".
|
|
226
|
+
*
|
|
227
|
+
* This is set by {@link Camera#worldAxis}.
|
|
228
|
+
*
|
|
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.
|
|
243
|
+
*/
|
|
244
|
+
get constrainPitch(): boolean;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Sets whether to prevent camera from being pitched upside down.
|
|
248
|
+
*
|
|
249
|
+
* The camera is upside down when the angle between {@link Camera#up} and {@link Camera#worldUp} is less than one degree.
|
|
250
|
+
*
|
|
251
|
+
* Fires a {@link Camera#constrainPitch:event} event on change.
|
|
252
|
+
*
|
|
253
|
+
* Default value is ````false````.
|
|
254
|
+
*
|
|
255
|
+
* @param {Boolean} value Set ````true```` to contrain pitch rotation.
|
|
256
|
+
*/
|
|
257
|
+
set constrainPitch(arg: boolean);
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Gets distance from {@link Camera#look} to {@link Camera#eye}.
|
|
261
|
+
*
|
|
262
|
+
* @returns {Number} The distance.
|
|
263
|
+
*/
|
|
264
|
+
get eyeLookDist(): boolean;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Gets the Camera's viewing transformation matrix.
|
|
268
|
+
*
|
|
269
|
+
* Fires a {@link Camera#matrix:event} event on change.
|
|
270
|
+
*
|
|
271
|
+
* @returns {Number[]} The viewing transform matrix.
|
|
272
|
+
*/
|
|
273
|
+
get matrix(): number[];
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Gets the Camera's viewing transformation matrix.
|
|
277
|
+
*
|
|
278
|
+
* Fires a {@link Camera#matrix:event} event on change.
|
|
279
|
+
*
|
|
280
|
+
* @returns {Number[]} The viewing transform matrix.
|
|
281
|
+
*/
|
|
282
|
+
get viewMatrix(): number[];
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* The Camera's viewing normal transformation matrix.
|
|
286
|
+
*
|
|
287
|
+
* Fires a {@link Camera#matrix:event} event on change.
|
|
288
|
+
*
|
|
289
|
+
* @returns {Number[]} The viewing normal transform matrix.
|
|
290
|
+
*/
|
|
291
|
+
get normalMatrix(): number[];
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* The Camera's viewing normal transformation matrix.
|
|
295
|
+
*
|
|
296
|
+
* Fires a {@link Camera#matrix:event} event on change.
|
|
297
|
+
*
|
|
298
|
+
* @returns {Number[]} The viewing normal transform matrix.
|
|
299
|
+
*/
|
|
300
|
+
get viewNormalMatrix(): number[];
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Gets the inverse of the Camera's viewing transform matrix.
|
|
304
|
+
*
|
|
305
|
+
* This has the same value as {@link Camera#normalMatrix}.
|
|
306
|
+
*
|
|
307
|
+
* @returns {Number[]} The inverse viewing transform matrix.
|
|
308
|
+
*/
|
|
309
|
+
get inverseViewMatrix(): number[];
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Gets the Camera's projection transformation projMatrix.
|
|
313
|
+
*
|
|
314
|
+
* Fires a {@link Camera#projMatrix:event} event on change.
|
|
315
|
+
*
|
|
316
|
+
* @returns {Number[]} The projection matrix.
|
|
317
|
+
*/
|
|
318
|
+
get projMatrix(): number[];
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Gets the Camera's perspective projection.
|
|
322
|
+
*
|
|
323
|
+
* The Camera uses this while {@link Camera#projection} equals ````perspective````.
|
|
324
|
+
*
|
|
325
|
+
* @returns {Perspective} The Perspective component.
|
|
326
|
+
*/
|
|
327
|
+
get perspective(): Perspective;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Gets the Camera's orthographic projection.
|
|
331
|
+
*
|
|
332
|
+
* The Camera uses this while {@link Camera#projection} equals ````ortho````.
|
|
333
|
+
*
|
|
334
|
+
* @returns {Ortho} The Ortho component.
|
|
335
|
+
*/
|
|
336
|
+
get ortho(): Ortho;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Gets the Camera's frustum projection.
|
|
340
|
+
*
|
|
341
|
+
* The Camera uses this while {@link Camera#projection} equals ````frustum````.
|
|
342
|
+
*
|
|
343
|
+
* @returns {Frustum} The Ortho component.
|
|
344
|
+
*/
|
|
345
|
+
get frustum(): Frustum;
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Gets the Camera's custom projection.
|
|
349
|
+
*
|
|
350
|
+
* This is used while {@link Camera#projection} equals "customProjection".
|
|
351
|
+
*
|
|
352
|
+
* @returns {CustomProjection} The custom projection.
|
|
353
|
+
*/
|
|
354
|
+
get customProjection(): CustomProjection;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Gets the currently active projection for this Camera.
|
|
358
|
+
*
|
|
359
|
+
* The currently active project is selected with {@link Camera#projection}.
|
|
360
|
+
*
|
|
361
|
+
* @returns {Perspective|Ortho|Frustum|CustomProjection} The currently active projection is active.
|
|
362
|
+
*/
|
|
363
|
+
get project(): Perspective | Ortho | Frustum | CustomProjection;
|
|
364
|
+
}
|