@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
|
@@ -92,7 +92,7 @@ export declare class Scene extends Component {
|
|
|
92
92
|
/**
|
|
93
93
|
* The epoch time (in milliseconds since 1970) when this Scene was instantiated.
|
|
94
94
|
*/
|
|
95
|
-
|
|
95
|
+
readonly startTime: Date;
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
98
|
* Map of {@link Entity}s that represent models.
|
|
@@ -100,7 +100,7 @@ export declare class Scene extends Component {
|
|
|
100
100
|
* Each {@link Entity} is mapped here by {@link Entity.id} when {@link Entity.isModel} is ````true````.
|
|
101
101
|
* @type {{String:Entity}}
|
|
102
102
|
*/
|
|
103
|
-
|
|
103
|
+
readonly models: {[key: string]: Entity};
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
106
|
* Map of {@link Entity}s that represents objects.
|
|
@@ -109,7 +109,7 @@ export declare class Scene extends Component {
|
|
|
109
109
|
* @final
|
|
110
110
|
* @type {{String:Entity}}
|
|
111
111
|
*/
|
|
112
|
-
|
|
112
|
+
readonly objects: {[key: string]: Entity};
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
115
|
* Map of {@link SectionPlane}s that represent sliced section planes.
|
|
@@ -117,7 +117,7 @@ export declare class Scene extends Component {
|
|
|
117
117
|
* Each {@link SectionPlane} is mapped here by {@link SectionPlane.id}.
|
|
118
118
|
* @type {{String:SectionPlane}}
|
|
119
119
|
*/
|
|
120
|
-
|
|
120
|
+
readonly sectionPlanes: { [key: string]: SectionPlane };
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
123
|
* Map of currently visible {@link Entity}s that represent objects.
|
|
@@ -125,7 +125,7 @@ export declare class Scene extends Component {
|
|
|
125
125
|
* An Entity represents an object if {@link Entity.isObject} is ````true````, and is visible when {@link Entity.visible} is true.
|
|
126
126
|
* @type {{String:Object}}
|
|
127
127
|
*/
|
|
128
|
-
|
|
128
|
+
readonly visibleObjects: {[key: string]: Entity};
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
131
|
* Map of currently xrayed {@link Entity}s that represent objects.
|
|
@@ -136,7 +136,7 @@ export declare class Scene extends Component {
|
|
|
136
136
|
*
|
|
137
137
|
* @type {{String:Object}}
|
|
138
138
|
*/
|
|
139
|
-
|
|
139
|
+
readonly xrayedObjects: {[key: string]: Entity};
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
142
|
* Map of currently highlighted {@link Entity}s that represent objects.
|
|
@@ -147,7 +147,7 @@ export declare class Scene extends Component {
|
|
|
147
147
|
*
|
|
148
148
|
* @type {{String:Object}}
|
|
149
149
|
*/
|
|
150
|
-
|
|
150
|
+
readonly highlightedObjects: {[key: string]: Entity};
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
153
|
* Map of currently selected {@link Entity}s that represent objects.
|
|
@@ -158,7 +158,7 @@ export declare class Scene extends Component {
|
|
|
158
158
|
*
|
|
159
159
|
* @type {{String:Object}}
|
|
160
160
|
*/
|
|
161
|
-
|
|
161
|
+
readonly selectedObjects: {[key: string]: Entity};
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
164
|
* Map of currently colorized {@link Entity}s that represent objects.
|
|
@@ -169,7 +169,7 @@ export declare class Scene extends Component {
|
|
|
169
169
|
*
|
|
170
170
|
* @type {{String:Object}}
|
|
171
171
|
*/
|
|
172
|
-
|
|
172
|
+
readonly colorizedObjects: {[key: string]: Entity};
|
|
173
173
|
|
|
174
174
|
/**
|
|
175
175
|
* Map of {@link Entity}s that represent objects whose opacity was updated.
|
|
@@ -180,7 +180,7 @@ export declare class Scene extends Component {
|
|
|
180
180
|
*
|
|
181
181
|
* @type {{String:Object}}
|
|
182
182
|
*/
|
|
183
|
-
|
|
183
|
+
readonly opacityObjects: {[key: string]: Entity};
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
186
|
* Map of {@link Entity}s that represent objects whose {@link Entity.offset}s were updated.
|
|
@@ -193,7 +193,7 @@ export declare class Scene extends Component {
|
|
|
193
193
|
* @final
|
|
194
194
|
* @type {{String:Object}}
|
|
195
195
|
*/
|
|
196
|
-
|
|
196
|
+
readonly offsetObjects: {[key: string]: Entity};
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
199
|
* Whether {@link Entity.offset} is enabled.
|
|
@@ -202,7 +202,7 @@ export declare class Scene extends Component {
|
|
|
202
202
|
*
|
|
203
203
|
* @returns {Boolean} True if {@link Entity.offset} is enabled.
|
|
204
204
|
*/
|
|
205
|
-
|
|
205
|
+
readonly entityOffsetsEnabled: boolean;
|
|
206
206
|
|
|
207
207
|
/**
|
|
208
208
|
* Whether geometry is readable.
|
|
@@ -215,7 +215,7 @@ export declare class Scene extends Component {
|
|
|
215
215
|
*
|
|
216
216
|
* @returns {Boolean} True if geometry is readable.
|
|
217
217
|
*/
|
|
218
|
-
|
|
218
|
+
readonly readableGeometryEnabled: boolean;
|
|
219
219
|
|
|
220
220
|
/**
|
|
221
221
|
* Whether precision surface picking is enabled.
|
|
@@ -228,7 +228,7 @@ export declare class Scene extends Component {
|
|
|
228
228
|
*
|
|
229
229
|
* @returns {Boolean} True if precision picking is enabled.
|
|
230
230
|
*/
|
|
231
|
-
|
|
231
|
+
readonly pickSurfacePrecisionEnabled: boolean;
|
|
232
232
|
|
|
233
233
|
/**
|
|
234
234
|
* Whether logarithmic depth buffer is enabled.
|
|
@@ -237,10 +237,10 @@ export declare class Scene extends Component {
|
|
|
237
237
|
*
|
|
238
238
|
* @returns {Boolean} True if logarithmic depth buffer is enabled.
|
|
239
239
|
*/
|
|
240
|
-
|
|
240
|
+
readonly logarithmicDepthBufferEnabled: boolean;
|
|
241
241
|
|
|
242
242
|
/**
|
|
243
|
-
*
|
|
243
|
+
* The number of {@link SectionPlane}s for which this Scene pre-caches resources.
|
|
244
244
|
*
|
|
245
245
|
* This property enhances the efficiency of SectionPlane creation by proactively allocating and caching Viewer resources for a specified quantity
|
|
246
246
|
* of SectionPlanes. Introducing this parameter streamlines the initial creation speed of SectionPlanes, particularly up to the designated quantity. This parameter internally
|
|
@@ -250,40 +250,19 @@ export declare class Scene extends Component {
|
|
|
250
250
|
*
|
|
251
251
|
* Default is ````0````.
|
|
252
252
|
*/
|
|
253
|
-
|
|
253
|
+
numCachedSectionPlanes: number;
|
|
254
254
|
|
|
255
255
|
/**
|
|
256
|
-
*
|
|
257
|
-
*
|
|
258
|
-
* This property enhances the efficiency of SectionPlane creation by proactively allocating and caching Viewer resources for a specified quantity
|
|
259
|
-
* of SectionPlanes. Introducing this parameter streamlines the initial creation speed of SectionPlanes, particularly up to the designated quantity. This parameter internally
|
|
260
|
-
* configures renderer logic for the specified number of SectionPlanes, eliminating the need for setting up logic with each SectionPlane creation and thereby enhancing
|
|
261
|
-
* responsiveness. It is important to consider that each SectionPlane impacts rendering performance, so it is recommended to set this value to a quantity that aligns with
|
|
262
|
-
* your expected usage.
|
|
263
|
-
*
|
|
264
|
-
* Default is ````0````.
|
|
265
|
-
*
|
|
266
|
-
* @returns {number} The number of {@link SectionPlane}s for which this Scene pre-caches resources.
|
|
267
|
-
*/
|
|
268
|
-
get numCachedSectionPlanes(): number;
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* Sets whether physically-based rendering is enabled.
|
|
272
|
-
*
|
|
273
|
-
*/
|
|
274
|
-
set pbrEnabled(value: boolean);
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Gets whether quality rendering is enabled.
|
|
256
|
+
* Whether physically-based rendering is enabled.
|
|
278
257
|
*
|
|
279
258
|
* Default is ````false````.
|
|
280
259
|
*
|
|
281
260
|
* @returns {Boolean} True if quality rendering is enabled.
|
|
282
261
|
*/
|
|
283
|
-
|
|
262
|
+
pbrEnabled: boolean;
|
|
284
263
|
|
|
285
264
|
/**
|
|
286
|
-
*
|
|
265
|
+
* Whether data texture scene representation (DTX) is enabled for the {@link Scene}.
|
|
287
266
|
*
|
|
288
267
|
* Even when enabled, DTX will only work if supported.
|
|
289
268
|
*
|
|
@@ -291,37 +270,19 @@ export declare class Scene extends Component {
|
|
|
291
270
|
*
|
|
292
271
|
* @type {Boolean}
|
|
293
272
|
*/
|
|
294
|
-
|
|
273
|
+
dtxEnabled: boolean;
|
|
295
274
|
|
|
296
275
|
/**
|
|
297
|
-
*
|
|
298
|
-
*
|
|
299
|
-
* Even when enabled, DTX will only apply if supported.
|
|
300
|
-
*
|
|
301
|
-
* Default value is ````false````.
|
|
302
|
-
*
|
|
303
|
-
* @type {Boolean}
|
|
304
|
-
*/
|
|
305
|
-
get dtxEnabled(): boolean;
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* Sets whether basic color texture rendering is enabled.
|
|
309
|
-
*
|
|
310
|
-
* Default is ````true````.
|
|
311
|
-
*/
|
|
312
|
-
set colorTextureEnabled(colorTextureEnabled: boolean);
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* Gets whether basic color texture rendering is enabled.
|
|
276
|
+
* Whether basic color texture rendering is enabled.
|
|
316
277
|
*
|
|
317
278
|
* Default is ````true````.
|
|
318
279
|
*
|
|
319
280
|
* @returns {Boolean} True if basic color texture rendering is enabled.
|
|
320
281
|
*/
|
|
321
|
-
|
|
282
|
+
colorTextureEnabled: boolean;
|
|
322
283
|
|
|
323
284
|
/**
|
|
324
|
-
*
|
|
285
|
+
* The Z value of offset for Marker's OcclusionTester.
|
|
325
286
|
* The closest the value is to 0.000 the more precise OcclusionTester will be, but at the same time the less
|
|
326
287
|
* precise it will behave for Markers that are located exactly on the Surface.
|
|
327
288
|
*
|
|
@@ -329,175 +290,139 @@ export declare class Scene extends Component {
|
|
|
329
290
|
*
|
|
330
291
|
* @returns {Number} Z offset for Marker
|
|
331
292
|
*/
|
|
332
|
-
|
|
293
|
+
readonly markerZOffset: number;
|
|
333
294
|
|
|
334
295
|
/**
|
|
335
|
-
*
|
|
296
|
+
* The IDs of the {@link Entity}s in {@link Scene.models}.
|
|
336
297
|
*
|
|
337
298
|
* @type {String[]}
|
|
338
299
|
*/
|
|
339
|
-
|
|
300
|
+
readonly modelIds: string[];
|
|
340
301
|
|
|
341
302
|
/**
|
|
342
|
-
*
|
|
303
|
+
* The number of {@link Entity}s in {@link Scene.objects}.
|
|
343
304
|
*
|
|
344
305
|
* @type {Number}
|
|
345
306
|
*/
|
|
346
|
-
|
|
307
|
+
readonly numObjects: number;
|
|
347
308
|
|
|
348
309
|
/**
|
|
349
|
-
*
|
|
310
|
+
* The IDs of the {@link Entity}s in {@link Scene.objects}.
|
|
350
311
|
*
|
|
351
312
|
* @type {String[]}
|
|
352
313
|
*/
|
|
353
|
-
|
|
314
|
+
readonly objectIds: string[];
|
|
354
315
|
|
|
355
316
|
/**
|
|
356
|
-
*
|
|
317
|
+
* The number of {@link Entity}s in {@link Scene.visibleObjects}.
|
|
357
318
|
*
|
|
358
319
|
* @type {Number}
|
|
359
320
|
*/
|
|
360
|
-
|
|
321
|
+
readonly numVisibleObjects: number;
|
|
361
322
|
|
|
362
323
|
/**
|
|
363
|
-
*
|
|
324
|
+
* The IDs of the {@link Entity}s in {@link Scene.visibleObjects}.
|
|
364
325
|
*
|
|
365
326
|
* @type {String[]}
|
|
366
327
|
*/
|
|
367
|
-
|
|
328
|
+
readonly visibleObjectIds: string[];
|
|
368
329
|
|
|
369
330
|
/**
|
|
370
|
-
*
|
|
331
|
+
* The number of {@link Entity}s in {@link Scene.xrayedObjects}.
|
|
371
332
|
*
|
|
372
333
|
* @type {Number}
|
|
373
334
|
*/
|
|
374
|
-
|
|
335
|
+
readonly numXRayedObjects: number;
|
|
375
336
|
|
|
376
337
|
/**
|
|
377
|
-
*
|
|
338
|
+
* The IDs of the {@link Entity}s in {@link Scene.xrayedObjects}.
|
|
378
339
|
*
|
|
379
340
|
* @type {String[]}
|
|
380
341
|
*/
|
|
381
|
-
|
|
342
|
+
readonly xrayedObjectIds: string[];
|
|
382
343
|
|
|
383
344
|
/**
|
|
384
|
-
*
|
|
345
|
+
* The number of {@link Entity}s in {@link Scene.highlightedObjects}.
|
|
385
346
|
*
|
|
386
347
|
* @type {Number}
|
|
387
348
|
*/
|
|
388
|
-
|
|
349
|
+
readonly numHighlightedObjects: number;
|
|
389
350
|
|
|
390
351
|
/**
|
|
391
|
-
*
|
|
352
|
+
* The IDs of the {@link Entity}s in {@link Scene.highlightedObjects}.
|
|
392
353
|
*
|
|
393
354
|
* @type {String[]}
|
|
394
355
|
*/
|
|
395
|
-
|
|
356
|
+
readonly highlightedObjectIds: string[];
|
|
396
357
|
|
|
397
358
|
/**
|
|
398
|
-
*
|
|
359
|
+
* The number of {@link Entity}s in {@link Scene.selectedObjects}.
|
|
399
360
|
*
|
|
400
361
|
* @type {Number}
|
|
401
362
|
*/
|
|
402
|
-
|
|
363
|
+
readonly numSelectedObjects: number;
|
|
403
364
|
|
|
404
365
|
/**
|
|
405
|
-
*
|
|
366
|
+
* The IDs of the {@link Entity}s in {@link Scene.selectedObjects}.
|
|
406
367
|
*
|
|
407
368
|
* @type {String[]}
|
|
408
369
|
*/
|
|
409
|
-
|
|
370
|
+
readonly selectedObjectIds: string[];
|
|
410
371
|
|
|
411
372
|
/**
|
|
412
|
-
*
|
|
373
|
+
* The number of {@link Entity}s in {@link Scene.colorizedObjects}.
|
|
413
374
|
*
|
|
414
375
|
* @type {Number}
|
|
415
376
|
*/
|
|
416
|
-
|
|
377
|
+
readonly numColorizedObjects: number;
|
|
417
378
|
|
|
418
379
|
/**
|
|
419
|
-
*
|
|
380
|
+
* The IDs of the {@link Entity}s in {@link Scene.colorizedObjects}.
|
|
420
381
|
*
|
|
421
382
|
* @type {String[]}
|
|
422
383
|
*/
|
|
423
|
-
|
|
384
|
+
readonly colorizedObjectIds: string[];
|
|
424
385
|
|
|
425
386
|
/**
|
|
426
|
-
*
|
|
387
|
+
* The IDs of the {@link Entity}s in {@link Scene.opacityObjects}.
|
|
427
388
|
*
|
|
428
389
|
* @type {String[]}
|
|
429
390
|
*/
|
|
430
|
-
|
|
391
|
+
readonly opacityObjectIds: string[];
|
|
431
392
|
|
|
432
393
|
/**
|
|
433
|
-
*
|
|
394
|
+
* The IDs of the {@link Entity}s in {@link Scene.offsetObjects}.
|
|
434
395
|
*
|
|
435
396
|
* @type {String[]}
|
|
436
397
|
*/
|
|
437
|
-
|
|
398
|
+
readonly offsetObjectIds: string[];
|
|
438
399
|
|
|
439
400
|
/**
|
|
440
|
-
*
|
|
401
|
+
* The number of "ticks" that happen between each render or this Scene.
|
|
441
402
|
*
|
|
442
403
|
* Default value is ````1````.
|
|
443
404
|
*
|
|
444
405
|
* @type {Number}
|
|
445
406
|
*/
|
|
446
|
-
|
|
407
|
+
ticksPerRender: number;
|
|
447
408
|
|
|
448
409
|
/**
|
|
449
|
-
*
|
|
450
|
-
*
|
|
451
|
-
* Default value is ````1````.
|
|
452
|
-
*
|
|
453
|
-
* @type {Number}
|
|
454
|
-
*/
|
|
455
|
-
get ticksPerRender(): number;
|
|
456
|
-
|
|
457
|
-
/**
|
|
458
|
-
* Sets the number of "ticks" that happen between occlusion testing for {@link Marker}s.
|
|
410
|
+
* The number of "ticks" that happen between occlusion testing for {@link Marker}s.
|
|
459
411
|
*
|
|
460
412
|
* Default value is ````20````.
|
|
461
413
|
*
|
|
462
414
|
* @type {Number}
|
|
463
415
|
*/
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
/**
|
|
467
|
-
* Gets the number of "ticks" that happen between each render of this Scene.
|
|
468
|
-
*
|
|
469
|
-
* Default value is ````1````.
|
|
470
|
-
*
|
|
471
|
-
* @type {Number}
|
|
472
|
-
*/
|
|
473
|
-
get ticksPerOcclusionTest(): number;
|
|
474
|
-
|
|
475
|
-
/**
|
|
476
|
-
* Sets the number of times this Scene renders per frame.
|
|
477
|
-
*
|
|
478
|
-
* Default value is ````1````.
|
|
479
|
-
*
|
|
480
|
-
* @type {Number}
|
|
481
|
-
*/
|
|
482
|
-
set passes(value: number)
|
|
416
|
+
ticksPerOcclusionTest: number;
|
|
483
417
|
|
|
484
418
|
/**
|
|
485
|
-
*
|
|
419
|
+
* The number of times this Scene renders per frame.
|
|
486
420
|
*
|
|
487
421
|
* Default value is ````1````.
|
|
488
422
|
*
|
|
489
423
|
* @type {Number}
|
|
490
424
|
*/
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
/**
|
|
494
|
-
* When {@link Scene.passes} is greater than ````1````, indicates whether or not to clear the canvas before each pass (````true````) or just before the first pass (````false````).
|
|
495
|
-
*
|
|
496
|
-
* Default value is ````false````.
|
|
497
|
-
*
|
|
498
|
-
* @type {Boolean}
|
|
499
|
-
*/
|
|
500
|
-
set clearEachPass(value: boolean);
|
|
425
|
+
passes: number;
|
|
501
426
|
|
|
502
427
|
/**
|
|
503
428
|
* When {@link Scene.passes} is greater than ````1````, indicates whether or not to clear the canvas before each pass (````true````) or just before the first pass (````false````).
|
|
@@ -506,64 +431,37 @@ export declare class Scene extends Component {
|
|
|
506
431
|
*
|
|
507
432
|
* @type {Boolean}
|
|
508
433
|
*/
|
|
509
|
-
|
|
434
|
+
clearEachPass: boolean;
|
|
510
435
|
|
|
511
436
|
/**
|
|
512
|
-
*
|
|
437
|
+
* Whether or not {@link Scene} should expect all {@link Texture}s and colors to have pre-multiplied gamma.
|
|
513
438
|
*
|
|
514
439
|
* Default value is ````false````.
|
|
515
440
|
*
|
|
516
441
|
* @type {Boolean}
|
|
517
442
|
*/
|
|
518
|
-
|
|
443
|
+
gammaInput: boolean;
|
|
519
444
|
|
|
520
445
|
/**
|
|
521
|
-
*
|
|
446
|
+
* Whether or not to render pixels with pre-multiplied gama.
|
|
522
447
|
*
|
|
523
448
|
* Default value is ````false````.
|
|
524
449
|
*
|
|
525
450
|
* @type {Boolean}
|
|
526
451
|
*/
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
/**
|
|
530
|
-
* Sets whether or not to render pixels with pre-multiplied gama.
|
|
531
|
-
*
|
|
532
|
-
* Default value is ````false````.
|
|
533
|
-
*
|
|
534
|
-
* @type {Boolean}
|
|
535
|
-
*/
|
|
536
|
-
set gammaOutput(value: boolean);
|
|
537
|
-
|
|
538
|
-
/**
|
|
539
|
-
* Gets whether or not to render pixels with pre-multiplied gama.
|
|
540
|
-
*
|
|
541
|
-
* Default value is ````true````.
|
|
542
|
-
*
|
|
543
|
-
* @type {Boolean}
|
|
544
|
-
*/
|
|
545
|
-
get gammaOutput(): boolean;
|
|
546
|
-
|
|
547
|
-
/**
|
|
548
|
-
* Sets the gamma factor to use when {@link Scene.gammaOutput} is set true.
|
|
549
|
-
*
|
|
550
|
-
* Default value is ````2.2````.
|
|
551
|
-
*
|
|
552
|
-
* @type {Number}
|
|
553
|
-
*/
|
|
554
|
-
set gammaFactor(value: number);
|
|
452
|
+
gammaOutput: boolean;
|
|
555
453
|
|
|
556
454
|
/**
|
|
557
|
-
*
|
|
455
|
+
* The gamma factor to use when {@link Scene.gammaOutput} is set true.
|
|
558
456
|
*
|
|
559
457
|
* Default value is ````2.2````.
|
|
560
458
|
*
|
|
561
459
|
* @type {Number}
|
|
562
460
|
*/
|
|
563
|
-
|
|
461
|
+
gammaFactor: number;
|
|
564
462
|
|
|
565
463
|
/**
|
|
566
|
-
*
|
|
464
|
+
* The default {@link Geometry} for this Scene, which is a {@link ReadableGeometry} with a unit-sized box shape.
|
|
567
465
|
*
|
|
568
466
|
* Has {@link ReadableGeometry.id} set to "default.geometry".
|
|
569
467
|
*
|
|
@@ -571,10 +469,10 @@ export declare class Scene extends Component {
|
|
|
571
469
|
*
|
|
572
470
|
* @type {ReadableGeometry}
|
|
573
471
|
*/
|
|
574
|
-
|
|
472
|
+
readonly geometry: ReadableGeometry;
|
|
575
473
|
|
|
576
474
|
/**
|
|
577
|
-
*
|
|
475
|
+
* The default {@link Material} for this Scene, which is a {@link PhongMaterial}.
|
|
578
476
|
*
|
|
579
477
|
* Has {@link PhongMaterial.id} set to "default.material".
|
|
580
478
|
*
|
|
@@ -582,10 +480,10 @@ export declare class Scene extends Component {
|
|
|
582
480
|
*
|
|
583
481
|
* @type {PhongMaterial}
|
|
584
482
|
*/
|
|
585
|
-
|
|
483
|
+
readonly material: PhongMaterial;
|
|
586
484
|
|
|
587
485
|
/**
|
|
588
|
-
*
|
|
486
|
+
* The default xraying {@link EmphasisMaterial} for this Scene.
|
|
589
487
|
*
|
|
590
488
|
* Has {@link EmphasisMaterial.id} set to "default.xrayMaterial".
|
|
591
489
|
*
|
|
@@ -595,10 +493,10 @@ export declare class Scene extends Component {
|
|
|
595
493
|
*
|
|
596
494
|
* @type {EmphasisMaterial}
|
|
597
495
|
*/
|
|
598
|
-
|
|
496
|
+
readonly xrayMaterial: EmphasisMaterial;
|
|
599
497
|
|
|
600
498
|
/**
|
|
601
|
-
*
|
|
499
|
+
* The default highlight {@link EmphasisMaterial} for this Scene.
|
|
602
500
|
*
|
|
603
501
|
* Has {@link EmphasisMaterial.id} set to "default.highlightMaterial".
|
|
604
502
|
*
|
|
@@ -608,10 +506,10 @@ export declare class Scene extends Component {
|
|
|
608
506
|
*
|
|
609
507
|
* @type {EmphasisMaterial}
|
|
610
508
|
*/
|
|
611
|
-
|
|
509
|
+
readonly highlightMaterial: EmphasisMaterial;
|
|
612
510
|
|
|
613
511
|
/**
|
|
614
|
-
*
|
|
512
|
+
* The default selection {@link EmphasisMaterial} for this Scene.
|
|
615
513
|
*
|
|
616
514
|
* Has {@link EmphasisMaterial.id} set to "default.selectedMaterial".
|
|
617
515
|
*
|
|
@@ -621,10 +519,10 @@ export declare class Scene extends Component {
|
|
|
621
519
|
*
|
|
622
520
|
* @type {EmphasisMaterial}
|
|
623
521
|
*/
|
|
624
|
-
|
|
522
|
+
readonly selectedMaterial: EmphasisMaterial;
|
|
625
523
|
|
|
626
524
|
/**
|
|
627
|
-
*
|
|
525
|
+
* The default {@link EdgeMaterial} for this Scene.
|
|
628
526
|
*
|
|
629
527
|
* Has {@link EdgeMaterial.id} set to "default.edgeMaterial".
|
|
630
528
|
*
|
|
@@ -634,45 +532,45 @@ export declare class Scene extends Component {
|
|
|
634
532
|
*
|
|
635
533
|
* @type {EdgeMaterial}
|
|
636
534
|
*/
|
|
637
|
-
|
|
535
|
+
readonly edgeMaterial: EdgeMaterial;
|
|
638
536
|
|
|
639
537
|
/**
|
|
640
|
-
*
|
|
538
|
+
* The {@link PointsMaterial} for this Scene.
|
|
641
539
|
*
|
|
642
540
|
* @type {PointsMaterial}
|
|
643
541
|
*/
|
|
644
|
-
|
|
542
|
+
readonly pointsMaterial: PointsMaterial;
|
|
645
543
|
|
|
646
544
|
/**
|
|
647
|
-
*
|
|
545
|
+
* The {@link LinesMaterial} for this Scene.
|
|
648
546
|
*
|
|
649
547
|
* @type {LinesMaterial}
|
|
650
548
|
*/
|
|
651
|
-
|
|
549
|
+
readonly linesMaterial: LinesMaterial;
|
|
652
550
|
|
|
653
551
|
/**
|
|
654
|
-
*
|
|
552
|
+
* The {@link Viewport} for this Scene.
|
|
655
553
|
*
|
|
656
554
|
* @type Viewport
|
|
657
555
|
*/
|
|
658
|
-
|
|
556
|
+
readonly viewport: Viewport;
|
|
659
557
|
|
|
660
558
|
/**
|
|
661
|
-
*
|
|
559
|
+
* The {@link Camera} for this Scene.
|
|
662
560
|
*
|
|
663
561
|
* @type {Camera}
|
|
664
562
|
*/
|
|
665
|
-
|
|
563
|
+
readonly camera: Camera;
|
|
666
564
|
|
|
667
565
|
/**
|
|
668
|
-
*
|
|
566
|
+
* The World-space 3D center of this Scene.
|
|
669
567
|
*
|
|
670
568
|
*@type {Number[]}
|
|
671
569
|
*/
|
|
672
|
-
|
|
570
|
+
readonly center: number[];
|
|
673
571
|
|
|
674
572
|
/**
|
|
675
|
-
*
|
|
573
|
+
* The World-space axis-aligned 3D boundary (AABB) of this Scene.
|
|
676
574
|
*
|
|
677
575
|
* The AABB is represented by a six-element Float64Array containing the min/max extents of the axis-aligned volume, ie. ````[xmin, ymin,zmin,xmax,ymax, zmax]````.
|
|
678
576
|
*
|
|
@@ -680,11 +578,11 @@ export declare class Scene extends Component {
|
|
|
680
578
|
*
|
|
681
579
|
* @type {Number[]}
|
|
682
580
|
*/
|
|
683
|
-
|
|
581
|
+
readonly aabb: number[];
|
|
684
582
|
|
|
685
|
-
|
|
583
|
+
readonly sao: SAO;
|
|
686
584
|
|
|
687
|
-
|
|
585
|
+
readonly input: Input;
|
|
688
586
|
|
|
689
587
|
/**
|
|
690
588
|
* Performs an occlusion test on all {@link Marker}s in this {@link Scene}.
|