@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
|
@@ -31,7 +31,7 @@ export declare class SceneModel extends Component {
|
|
|
31
31
|
* Returns true to indicate that this Component is a SceneModel.
|
|
32
32
|
* @type {Boolean}
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
readonly isPerformanceModel: boolean;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The {@link SceneModelTransform}s in this SceneModel.
|
|
@@ -40,7 +40,7 @@ export declare class SceneModel extends Component {
|
|
|
40
40
|
*
|
|
41
41
|
* @returns {*|{}}
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
readonly transforms: { [key: string]: SceneModelTransform };
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* The {@link SceneModelTexture}s in this SceneModel.
|
|
@@ -50,7 +50,7 @@ export declare class SceneModel extends Component {
|
|
|
50
50
|
*
|
|
51
51
|
* @returns {*|{}}
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
readonly textures: { [key: string]: SceneModelTexture };
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
56
|
* The {@link SceneModelTextureSet}s in this SceneModel.
|
|
@@ -59,7 +59,7 @@ export declare class SceneModel extends Component {
|
|
|
59
59
|
*
|
|
60
60
|
* @returns {*|{}}
|
|
61
61
|
*/
|
|
62
|
-
|
|
62
|
+
readonly textureSets: { [key: string]: SceneModelTextureSet };
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
65
|
* The {@link SceneModelMesh}es in this SceneModel.
|
|
@@ -68,16 +68,16 @@ export declare class SceneModel extends Component {
|
|
|
68
68
|
*
|
|
69
69
|
* @returns {*|{}}
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
readonly meshes: { [key: string]: SceneModelMesh };
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* The {@link SceneModelEntity}s in this SceneModel.
|
|
75
75
|
* @returns {*|{}}
|
|
76
76
|
*/
|
|
77
|
-
|
|
77
|
+
readonly objects: { [key: string]: SceneModelEntity };
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* The 3D World-space origin for this SceneModel.
|
|
81
81
|
*
|
|
82
82
|
* Each geometry or mesh origin, if supplied, is relative to this origin.
|
|
83
83
|
*
|
|
@@ -85,140 +85,86 @@ export declare class SceneModel extends Component {
|
|
|
85
85
|
*
|
|
86
86
|
* @type {number[]}
|
|
87
87
|
*/
|
|
88
|
-
|
|
88
|
+
readonly origin: number[];
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
91
|
+
* The SceneModel's local translation.
|
|
92
92
|
*
|
|
93
93
|
* Default value is ````[0,0,0]````.
|
|
94
94
|
*
|
|
95
95
|
* @type {number[]}
|
|
96
96
|
*/
|
|
97
|
-
|
|
97
|
+
position: number[];
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
100
|
+
* The SceneModel's local rotation, as Euler angles given in degrees, for each of the X, Y and Z axis.
|
|
101
101
|
*
|
|
102
102
|
* Default value is ````[0,0,0]````.
|
|
103
103
|
*
|
|
104
104
|
* @type {number[]}
|
|
105
105
|
*/
|
|
106
|
-
|
|
106
|
+
rotation: number[];
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
* Default value is ````[0,0,0]````.
|
|
112
|
-
*
|
|
113
|
-
* @type {number[]}
|
|
114
|
-
*/
|
|
115
|
-
set rotation(value: number[]);
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Gets the SceneModel's local rotation, as Euler angles given in degrees, for each of the X, Y and Z axis.
|
|
119
|
-
*
|
|
120
|
-
* Default value is ````[0,0,0]````.
|
|
121
|
-
*
|
|
122
|
-
* @type {number[]}
|
|
123
|
-
*/
|
|
124
|
-
get rotation(): number[];
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Sets the SceneModel's local rotation quaternion.
|
|
128
|
-
*
|
|
129
|
-
* Default value is ````[0,0,0,1]````.
|
|
130
|
-
*
|
|
131
|
-
* @type {number[]}
|
|
132
|
-
*/
|
|
133
|
-
set quaternion(value: number[]);
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Gets the VBOSceneModels's local rotation quaternion.
|
|
109
|
+
* The SceneModel's local rotation quaternion.
|
|
137
110
|
*
|
|
138
111
|
* Default value is ````[0,0,0,1]````.
|
|
139
112
|
*
|
|
140
113
|
* @type {number[]}
|
|
141
114
|
*/
|
|
142
|
-
|
|
115
|
+
quaternion: number[];
|
|
143
116
|
|
|
144
117
|
/**
|
|
145
|
-
*
|
|
118
|
+
* The SceneModel's local scale.
|
|
146
119
|
*
|
|
147
120
|
* Default value is ````[1,1,1]````.
|
|
148
121
|
*
|
|
149
122
|
* @type {number[]}
|
|
150
123
|
* @deprecated
|
|
151
124
|
*/
|
|
152
|
-
|
|
125
|
+
scale: number[];
|
|
153
126
|
|
|
154
127
|
/**
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
* Default value is ````[1,1,1]````.
|
|
158
|
-
*
|
|
159
|
-
* @type {number[]}
|
|
160
|
-
*/
|
|
161
|
-
get scale(): number[];
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Sets the SceneModel's local modeling transform matrix.
|
|
128
|
+
* The SceneModel's local modeling transform matrix.
|
|
165
129
|
*
|
|
166
130
|
* Default value is ````[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]````.
|
|
167
131
|
*
|
|
168
132
|
* @type {number[]}
|
|
169
133
|
*/
|
|
170
|
-
|
|
134
|
+
matrix: number[];
|
|
171
135
|
|
|
172
136
|
/**
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
* Default value is ````[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]````.
|
|
137
|
+
* The SceneModel's local modeling rotation transform matrix.
|
|
176
138
|
*
|
|
177
139
|
* @type {number[]}
|
|
178
140
|
*/
|
|
179
|
-
|
|
141
|
+
readonly rotationMatrix: number[];
|
|
180
142
|
|
|
181
143
|
/**
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
* @type {number[]}
|
|
185
|
-
*/
|
|
186
|
-
get rotationMatrix(): number[];
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Gets the conjugate of the SceneModel's local modeling rotation transform matrix.
|
|
144
|
+
* The conjugate of the SceneModel's local modeling rotation transform matrix.
|
|
190
145
|
*
|
|
191
146
|
* This is used for RTC view matrix management in renderers.
|
|
192
147
|
*
|
|
193
148
|
* @type {Number[]}
|
|
194
149
|
*/
|
|
195
|
-
|
|
150
|
+
readonly rotationMatrixConjugate: number[];
|
|
196
151
|
|
|
197
152
|
/**
|
|
198
|
-
*
|
|
153
|
+
* The SceneModel's World matrix.
|
|
199
154
|
*
|
|
200
155
|
* @type {number[]}
|
|
201
156
|
*/
|
|
202
|
-
|
|
157
|
+
readonly worldMatrix: number[];
|
|
203
158
|
|
|
204
159
|
/**
|
|
205
|
-
*
|
|
160
|
+
* The SceneModel's World normal matrix.
|
|
206
161
|
*
|
|
207
162
|
* @type {number[]}
|
|
208
163
|
*/
|
|
209
|
-
|
|
164
|
+
readonly worldNormalMatrix: number[];
|
|
210
165
|
|
|
211
166
|
/**
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
* Default is ````false````.
|
|
215
|
-
*
|
|
216
|
-
* @type {Boolean}
|
|
217
|
-
*/
|
|
218
|
-
get backfaces(): boolean;
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Sets if backfaces are rendered for this SceneModel.
|
|
167
|
+
* Whether backfaces are rendered for this SceneModel.
|
|
222
168
|
*
|
|
223
169
|
* Default is ````false````.
|
|
224
170
|
*
|
|
@@ -233,20 +179,20 @@ export declare class SceneModel extends Component {
|
|
|
233
179
|
*
|
|
234
180
|
* @type {Boolean}
|
|
235
181
|
*/
|
|
236
|
-
|
|
182
|
+
backfaces: boolean;
|
|
237
183
|
|
|
238
184
|
/**
|
|
239
|
-
*
|
|
185
|
+
* The list of {@link SceneModelEntity}s within this SceneModel.
|
|
240
186
|
*
|
|
241
187
|
* @returns {SceneModelEntity[]}
|
|
242
188
|
*/
|
|
243
|
-
|
|
189
|
+
readonly entityList: SceneModelEntity[];
|
|
244
190
|
|
|
245
191
|
/**
|
|
246
192
|
* Returns true to indicate that SceneModel is an {@link SceneModelEntity}.
|
|
247
193
|
* @type {Boolean}
|
|
248
194
|
*/
|
|
249
|
-
|
|
195
|
+
readonly isEntity: boolean;
|
|
250
196
|
|
|
251
197
|
/**
|
|
252
198
|
* Returns ````true```` if this SceneModel represents a model.
|
|
@@ -256,199 +202,119 @@ export declare class SceneModel extends Component {
|
|
|
256
202
|
*
|
|
257
203
|
* @type {Boolean}
|
|
258
204
|
*/
|
|
259
|
-
|
|
205
|
+
readonly isModel: boolean;
|
|
260
206
|
|
|
261
207
|
/**
|
|
262
208
|
* Returns ````false```` to indicate that SceneModel never represents an object.
|
|
263
209
|
*
|
|
264
210
|
* @type {Boolean}
|
|
265
211
|
*/
|
|
266
|
-
|
|
212
|
+
readonly isObject: boolean;
|
|
267
213
|
|
|
268
214
|
/**
|
|
269
|
-
*
|
|
215
|
+
* The SceneModel's World-space 3D axis-aligned bounding box.
|
|
270
216
|
*
|
|
271
217
|
* Represented by a six-element Float64Array containing the min/max extents of the
|
|
272
218
|
* axis-aligned volume, ie. ````[xmin, ymin,zmin,xmax,ymax, zmax]````.
|
|
273
219
|
*
|
|
274
220
|
* @type {number[]}
|
|
275
221
|
*/
|
|
276
|
-
|
|
222
|
+
readonly aabb: number[];
|
|
277
223
|
|
|
278
224
|
/**
|
|
279
225
|
* The approximate number of triangle primitives in this SceneModel.
|
|
280
226
|
*
|
|
281
227
|
* @type {number}
|
|
282
228
|
*/
|
|
283
|
-
|
|
229
|
+
readonly numTriangles: number;
|
|
284
230
|
|
|
285
231
|
/**
|
|
286
232
|
* The approximate number of line primitives in this SceneModel.
|
|
287
233
|
*
|
|
288
234
|
* @type {number}
|
|
289
235
|
*/
|
|
290
|
-
|
|
236
|
+
readonly numLines: number;
|
|
291
237
|
|
|
292
238
|
/**
|
|
293
239
|
* The approximate number of point primitives in this SceneModel.
|
|
294
240
|
*
|
|
295
241
|
* @type {number}
|
|
296
242
|
*/
|
|
297
|
-
|
|
243
|
+
readonly numPoints: number;
|
|
298
244
|
|
|
299
245
|
/**
|
|
300
|
-
*
|
|
246
|
+
* Whether this SceneModel is visible.
|
|
301
247
|
*
|
|
302
248
|
* The SceneModel is only rendered when {@link SceneModel.visible} is ````true```` and {@link SceneModel.culled} is ````false````.
|
|
303
249
|
*
|
|
304
250
|
* @type {Boolean}
|
|
305
251
|
*/
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* Sets if this SceneModel is visible.
|
|
310
|
-
*
|
|
311
|
-
* The SceneModel is only rendered when {@link SceneModel.visible} is ````true```` and {@link SceneModel.culled} is ````false````.
|
|
312
|
-
**
|
|
313
|
-
* @type {Boolean}
|
|
314
|
-
*/
|
|
315
|
-
set visible(visible: boolean);
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
* Gets if any {@link SceneModelEntity}s in this SceneModel are xrayed.
|
|
319
|
-
*
|
|
320
|
-
* @type {Boolean}
|
|
321
|
-
*/
|
|
322
|
-
get xrayed(): boolean
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* Sets if all {@link SceneModelEntity}s in this SceneModel are xrayed.
|
|
326
|
-
*
|
|
327
|
-
* @type {Boolean}
|
|
328
|
-
*/
|
|
329
|
-
set xrayed(xrayed: boolean);
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* Gets if any {@link SceneModelEntity}s in this SceneModel are highlighted.
|
|
333
|
-
*
|
|
334
|
-
* @type {Boolean}
|
|
335
|
-
*/
|
|
336
|
-
get highlighted(): boolean;
|
|
252
|
+
visible: boolean;
|
|
337
253
|
|
|
338
254
|
/**
|
|
339
|
-
*
|
|
255
|
+
* Whether any {@link SceneModelEntity}s in this SceneModel are xrayed.
|
|
340
256
|
*
|
|
341
257
|
* @type {Boolean}
|
|
342
258
|
*/
|
|
343
|
-
|
|
259
|
+
xrayed: boolean;
|
|
344
260
|
|
|
345
261
|
/**
|
|
346
|
-
*
|
|
262
|
+
* Whether any {@link SceneModelEntity}s in this SceneModel are highlighted.
|
|
347
263
|
*
|
|
348
264
|
* @type {Boolean}
|
|
349
265
|
*/
|
|
350
|
-
|
|
266
|
+
highlighted: boolean;
|
|
351
267
|
|
|
352
268
|
/**
|
|
353
|
-
*
|
|
269
|
+
* Whether any {@link SceneModelEntity}s in this SceneModel are selected.
|
|
354
270
|
*
|
|
355
271
|
* @type {Boolean}
|
|
356
272
|
*/
|
|
357
|
-
|
|
273
|
+
selected: boolean;
|
|
358
274
|
|
|
359
275
|
/**
|
|
360
|
-
*
|
|
361
|
-
*
|
|
362
|
-
* @type {Boolean}
|
|
363
|
-
*/
|
|
364
|
-
get edges(): boolean;
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* Sets if all {@link SceneModelEntity}s in this SceneModel have edges emphasised.
|
|
368
|
-
*
|
|
369
|
-
* @type {Boolean}
|
|
370
|
-
*/
|
|
371
|
-
set edges(edges: boolean);
|
|
372
|
-
|
|
373
|
-
/**
|
|
374
|
-
* Gets if this SceneModel is culled from view.
|
|
375
|
-
*
|
|
376
|
-
* The SceneModel is only rendered when {@link SceneModel.visible} is true and {@link SceneModel.culled} is false.
|
|
276
|
+
* Whether any {@link SceneModelEntity}s in this SceneModel have edges emphasised.
|
|
377
277
|
*
|
|
378
278
|
* @type {Boolean}
|
|
379
279
|
*/
|
|
380
|
-
|
|
280
|
+
edges: boolean;
|
|
381
281
|
|
|
382
282
|
/**
|
|
383
|
-
*
|
|
283
|
+
* Whether this SceneModel is culled from view.
|
|
384
284
|
*
|
|
385
285
|
* The SceneModel is only rendered when {@link SceneModel.visible} is true and {@link SceneModel.culled} is false.
|
|
386
286
|
*
|
|
387
287
|
* @type {Boolean}
|
|
388
288
|
*/
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
/**
|
|
392
|
-
* Gets if {@link SceneModelEntity}s in this SceneModel are clippable.
|
|
393
|
-
*
|
|
394
|
-
* Clipping is done by the {@link SectionPlane}s in {@link Scene.sectionPlanes}.
|
|
395
|
-
*
|
|
396
|
-
* @type {Boolean}
|
|
397
|
-
*/
|
|
398
|
-
get clippable(): boolean;
|
|
289
|
+
culled: boolean;
|
|
399
290
|
|
|
400
291
|
/**
|
|
401
|
-
*
|
|
292
|
+
* Whether {@link SceneModelEntity}s in this SceneModel are clippable.
|
|
402
293
|
*
|
|
403
294
|
* Clipping is done by the {@link SectionPlane}s in {@link Scene.sectionPlanes}.
|
|
404
295
|
*
|
|
405
296
|
* @type {Boolean}
|
|
406
297
|
*/
|
|
407
|
-
|
|
298
|
+
clippable: boolean;
|
|
408
299
|
|
|
409
300
|
/**
|
|
410
|
-
*
|
|
301
|
+
* Whether {@link SceneModelEntity}s in this SceneModel are collidable.
|
|
411
302
|
*
|
|
412
303
|
* @type {Boolean}
|
|
413
304
|
*/
|
|
414
|
-
|
|
305
|
+
collidable: boolean;
|
|
415
306
|
|
|
416
307
|
/**
|
|
417
|
-
*
|
|
418
|
-
*
|
|
419
|
-
* @type {Boolean}
|
|
420
|
-
*/
|
|
421
|
-
set collidable(collidable: boolean);
|
|
422
|
-
|
|
423
|
-
/**
|
|
424
|
-
* Gets if this SceneModel is pickable.
|
|
308
|
+
* Whether {@link SceneModelEntity}s in this SceneModel are pickable.
|
|
425
309
|
*
|
|
426
310
|
* Picking is done via calls to {@link Scene.pick}.
|
|
427
311
|
*
|
|
428
312
|
* @type {Boolean}
|
|
429
313
|
*/
|
|
430
|
-
|
|
314
|
+
pickable: boolean;
|
|
431
315
|
|
|
432
316
|
/**
|
|
433
|
-
*
|
|
434
|
-
*
|
|
435
|
-
* Picking is done via calls to {@link Scene.pick}.
|
|
436
|
-
*
|
|
437
|
-
* @type {Boolean}
|
|
438
|
-
*/
|
|
439
|
-
set pickable(pickable: boolean);
|
|
440
|
-
|
|
441
|
-
/**
|
|
442
|
-
* Gets the RGB colorize color for this SceneModel.
|
|
443
|
-
*
|
|
444
|
-
* Each element of the color is in range ````[0..1]````.
|
|
445
|
-
*
|
|
446
|
-
* @type {number[]}
|
|
447
|
-
*/
|
|
448
|
-
get colorize(): number[];
|
|
449
|
-
|
|
450
|
-
/**
|
|
451
|
-
* Sets the RGB colorize color for this SceneModel.
|
|
317
|
+
* The RGB colorize color for this SceneModel.
|
|
452
318
|
*
|
|
453
319
|
* Multiplies by rendered fragment colors.
|
|
454
320
|
*
|
|
@@ -456,56 +322,33 @@ export declare class SceneModel extends Component {
|
|
|
456
322
|
*
|
|
457
323
|
* @type {number[]}
|
|
458
324
|
*/
|
|
459
|
-
|
|
325
|
+
colorize: number[];
|
|
460
326
|
|
|
461
327
|
/**
|
|
462
|
-
*
|
|
328
|
+
* The opacity factor for this SceneModel.
|
|
463
329
|
*
|
|
464
330
|
* This is a factor in range ````[0..1]```` which multiplies by the rendered fragment alphas.
|
|
465
331
|
*
|
|
466
332
|
* @type {number}
|
|
467
333
|
*/
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
/**
|
|
471
|
-
* Sets the opacity factor for this SceneModel.
|
|
472
|
-
*
|
|
473
|
-
* This is a factor in range ````[0..1]```` which multiplies by the rendered fragment alphas.
|
|
474
|
-
*
|
|
475
|
-
* @type {number}
|
|
476
|
-
*/
|
|
477
|
-
set opacity(opacity: number);
|
|
478
|
-
|
|
479
|
-
/**
|
|
480
|
-
* Gets if this SceneModel casts a shadow.
|
|
481
|
-
*
|
|
482
|
-
* @type {Boolean}
|
|
483
|
-
*/
|
|
484
|
-
get castsShadow(): boolean;
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* Sets if this SceneModel casts a shadow.
|
|
488
|
-
*
|
|
489
|
-
* @type {Boolean}
|
|
490
|
-
*/
|
|
491
|
-
set castsShadow(castsShadow: boolean);
|
|
334
|
+
opacity: number;
|
|
492
335
|
|
|
493
336
|
/**
|
|
494
|
-
*
|
|
337
|
+
* Whether this SceneModel casts a shadow.
|
|
495
338
|
*
|
|
496
339
|
* @type {Boolean}
|
|
497
340
|
*/
|
|
498
|
-
|
|
341
|
+
castsShadow: boolean;
|
|
499
342
|
|
|
500
343
|
/**
|
|
501
|
-
*
|
|
344
|
+
* Whether this SceneModel can have shadow cast upon it.
|
|
502
345
|
*
|
|
503
346
|
* @type {Boolean}
|
|
504
347
|
*/
|
|
505
|
-
|
|
348
|
+
receivesShadow: boolean;
|
|
506
349
|
|
|
507
350
|
/**
|
|
508
|
-
*
|
|
351
|
+
* Whether Scalable Ambient Obscurance (SAO) will apply to this SceneModel.
|
|
509
352
|
*
|
|
510
353
|
* SAO is configured by the Scene's {@link SAO} component.
|
|
511
354
|
*
|
|
@@ -513,32 +356,32 @@ export declare class SceneModel extends Component {
|
|
|
513
356
|
*
|
|
514
357
|
* @type {Boolean}
|
|
515
358
|
*/
|
|
516
|
-
|
|
359
|
+
readonly saoEnabled: boolean;
|
|
517
360
|
|
|
518
361
|
/**
|
|
519
|
-
*
|
|
362
|
+
* Whether physically-based rendering (PBR) is enabled for this SceneModel.
|
|
520
363
|
*
|
|
521
364
|
* Only works when {@link Scene.pbrEnabled} is also true.
|
|
522
365
|
*
|
|
523
366
|
* @type {Boolean}
|
|
524
367
|
*/
|
|
525
|
-
|
|
368
|
+
readonly pbrEnabled: boolean;
|
|
526
369
|
|
|
527
370
|
/**
|
|
528
|
-
*
|
|
371
|
+
* Whether color textures are enabled for this SceneModel.
|
|
529
372
|
*
|
|
530
373
|
* Only works when {@link Scene#colorTextureEnabled} is also true.
|
|
531
374
|
*
|
|
532
375
|
* @type {Boolean}
|
|
533
376
|
*/
|
|
534
|
-
|
|
377
|
+
readonly colorTextureEnabled: boolean;
|
|
535
378
|
|
|
536
379
|
/**
|
|
537
380
|
* Returns true to indicate that SceneModel is implements {@link Drawable}.
|
|
538
381
|
*
|
|
539
382
|
* @type {Boolean}
|
|
540
383
|
*/
|
|
541
|
-
|
|
384
|
+
readonly isDrawable: boolean;
|
|
542
385
|
|
|
543
386
|
/**
|
|
544
387
|
* Configures the appearance of xrayed {@link SceneModelEntity}s within this SceneModel.
|
|
@@ -547,7 +390,7 @@ export declare class SceneModel extends Component {
|
|
|
547
390
|
*
|
|
548
391
|
* @type {EmphasisMaterial}
|
|
549
392
|
*/
|
|
550
|
-
|
|
393
|
+
readonly xrayMaterial: EmphasisMaterial;
|
|
551
394
|
|
|
552
395
|
/**
|
|
553
396
|
* Configures the appearance of highlighted {@link SceneModelEntity}s within this SceneModel.
|
|
@@ -556,7 +399,7 @@ export declare class SceneModel extends Component {
|
|
|
556
399
|
*
|
|
557
400
|
* @type {EmphasisMaterial}
|
|
558
401
|
*/
|
|
559
|
-
|
|
402
|
+
readonly highlightMaterial: EmphasisMaterial;
|
|
560
403
|
|
|
561
404
|
/**
|
|
562
405
|
* Configures the appearance of selected {@link SceneModelEntity}s within this SceneModel.
|
|
@@ -565,7 +408,7 @@ export declare class SceneModel extends Component {
|
|
|
565
408
|
*
|
|
566
409
|
* @type {EmphasisMaterial}
|
|
567
410
|
*/
|
|
568
|
-
|
|
411
|
+
readonly selectedMaterial: EmphasisMaterial;
|
|
569
412
|
|
|
570
413
|
/**
|
|
571
414
|
* Configures the appearance of edges of {@link SceneModelEntity}s within this SceneModel.
|
|
@@ -574,7 +417,7 @@ export declare class SceneModel extends Component {
|
|
|
574
417
|
*
|
|
575
418
|
* @type {EdgeMaterial}
|
|
576
419
|
*/
|
|
577
|
-
|
|
420
|
+
readonly edgeMaterial: EdgeMaterial;
|
|
578
421
|
|
|
579
422
|
/**
|
|
580
423
|
*
|