@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.
Files changed (78) hide show
  1. package/dist/xeokit-sdk.cjs.js +32532 -15213
  2. package/dist/xeokit-sdk.es.js +32531 -15214
  3. package/dist/xeokit-sdk.es5.js +29446 -30855
  4. package/dist/xeokit-sdk.min.cjs.js +8 -8
  5. package/dist/xeokit-sdk.min.es.js +8 -8
  6. package/dist/xeokit-sdk.min.es5.js +33 -34
  7. package/package.json +4 -7
  8. package/src/plugins/CxConverterIFCLoaderPlugin/CxConverterIFCLoaderPlugin.js +68 -68
  9. package/src/plugins/CxConverterIFCLoaderPlugin/index.js +1 -1
  10. package/src/plugins/LASLoaderPlugin/index.js +1 -1
  11. package/src/plugins/XKTLoaderPlugin/parsers/ParserV1.js +5 -5
  12. package/src/plugins/XKTLoaderPlugin/parsers/ParserV10.js +5 -5
  13. package/src/plugins/XKTLoaderPlugin/parsers/ParserV12.js +9 -9
  14. package/src/plugins/XKTLoaderPlugin/parsers/ParserV2.js +5 -5
  15. package/src/plugins/XKTLoaderPlugin/parsers/ParserV3.js +5 -5
  16. package/src/plugins/XKTLoaderPlugin/parsers/ParserV4.js +5 -5
  17. package/src/plugins/XKTLoaderPlugin/parsers/ParserV5.js +5 -5
  18. package/src/plugins/XKTLoaderPlugin/parsers/ParserV6.js +5 -5
  19. package/src/plugins/XKTLoaderPlugin/parsers/ParserV7.js +5 -5
  20. package/src/plugins/XKTLoaderPlugin/parsers/ParserV8.js +5 -5
  21. package/src/plugins/XKTLoaderPlugin/parsers/ParserV9.js +5 -5
  22. package/src/plugins/index.js +2 -2
  23. package/src/viewer/scene/Entity.js +6 -0
  24. package/src/viewer/scene/model/SceneModelEntity.js +26 -0
  25. package/src/viewer/scene/model/vbo/batching/triangles/VBOBatchingTrianglesLayer.js +44 -0
  26. package/src/viewer/scene/model/vbo/instancing/triangles/VBOInstancingTrianglesLayer.js +58 -0
  27. package/src/viewer/scene/sectionCaps/SectionCaps.js +33 -27
  28. package/src/viewer/scene/webgl/ArrayBuf.js +20 -0
  29. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +108 -26
  30. package/types/plugins/CityJSONLoaderPlugin/CityJSONLoaderPlugin.d.ts +14 -3
  31. package/types/plugins/DotBIMLoaderPlugin/DotBIMLoaderPlugin.d.ts +23 -5
  32. package/types/plugins/GLTFLoaderPlugin/GLTFLoaderPlugin.d.ts +25 -5
  33. package/types/plugins/LASLoaderPlugin/LASLoaderPlugin.d.ts +100 -20
  34. package/types/plugins/STLLoaderPlugin/STLLoaderPlugin.d.ts +14 -3
  35. package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +83 -18
  36. package/types/plugins/XKTLoaderPlugin/XKTLoaderPlugin.d.ts +106 -21
  37. package/types/viewer/Configs.d.ts +24 -6
  38. package/types/viewer/scene/CameraControl/CameraControl.d.ts +445 -66
  39. package/types/viewer/scene/Component.d.ts +1 -1
  40. package/types/viewer/scene/Entity.d.ts +191 -40
  41. package/types/viewer/scene/camera/Camera.d.ts +170 -50
  42. package/types/viewer/scene/camera/CameraFlightAnimation.d.ts +57 -8
  43. package/types/viewer/scene/camera/CameraPath.d.ts +13 -8
  44. package/types/viewer/scene/camera/CameraPathAnimation.d.ts +22 -4
  45. package/types/viewer/scene/camera/CustomProjection.d.ts +21 -6
  46. package/types/viewer/scene/camera/Frustum.d.ts +90 -18
  47. package/types/viewer/scene/camera/Ortho.d.ts +54 -14
  48. package/types/viewer/scene/camera/Perspective.d.ts +70 -16
  49. package/types/viewer/scene/geometry/ReadableGeometry.d.ts +25 -21
  50. package/types/viewer/scene/geometry/VBOGeometry.d.ts +7 -7
  51. package/types/viewer/scene/lights/AmbientLight.d.ts +26 -4
  52. package/types/viewer/scene/lights/DirLight.d.ts +52 -8
  53. package/types/viewer/scene/lights/PointLight.d.ts +93 -14
  54. package/types/viewer/scene/materials/EdgeMaterial.d.ts +37 -12
  55. package/types/viewer/scene/materials/EmphasisMaterial.d.ts +119 -22
  56. package/types/viewer/scene/materials/Fresnel.d.ts +50 -10
  57. package/types/viewer/scene/materials/LambertMaterial.d.ts +90 -16
  58. package/types/viewer/scene/materials/LinesMaterial.d.ts +25 -7
  59. package/types/viewer/scene/materials/MetallicMaterial.d.ts +127 -40
  60. package/types/viewer/scene/materials/PhongMaterial.d.ts +185 -52
  61. package/types/viewer/scene/materials/PointsMaterial.d.ts +101 -20
  62. package/types/viewer/scene/materials/SpecularMaterial.d.ts +117 -41
  63. package/types/viewer/scene/materials/Texture.d.ts +62 -22
  64. package/types/viewer/scene/models/SceneModel.d.ts +233 -76
  65. package/types/viewer/scene/models/SceneModelEntity.d.ts +217 -51
  66. package/types/viewer/scene/models/SceneModelMesh.d.ts +4 -4
  67. package/types/viewer/scene/models/SceneModelTransform.d.ts +59 -14
  68. package/types/viewer/scene/paths/CubicBezierCurve.d.ts +73 -12
  69. package/types/viewer/scene/paths/Curve.d.ts +19 -6
  70. package/types/viewer/scene/paths/Path.d.ts +57 -10
  71. package/types/viewer/scene/paths/QuadraticBezierCurve.d.ts +57 -10
  72. package/types/viewer/scene/paths/SplineCurve.d.ts +32 -6
  73. package/types/viewer/scene/scene/Scene.d.ts +196 -94
  74. package/types/viewer/scene/sectionPlane/SectionPlane.d.ts +69 -12
  75. package/types/viewer/scene/viewport/Viewport.d.ts +14 -4
  76. package/types/viewer/scene/webgl/PickResult.d.ts +28 -13
  77. package/dist/xeokit-sdk.es5.js.map +0 -1
  78. package/dist/xeokit-sdk.min.es5.js.map +0 -1
@@ -21,33 +21,51 @@ export declare class LinesMaterial extends Material {
21
21
  */
22
22
  constructor(owner: Component, cfg?: LinesMaterialConfiguration);
23
23
  /**
24
- * Available LinesMaterial presets.
24
+ * Gets available LinesMaterial presets.
25
25
  *
26
26
  * @type {Object}
27
27
  */
28
- readonly presets: any;
28
+ get presets(): any;
29
29
 
30
30
  /**
31
- * Preset LinesMaterial configuration.
31
+ * Selects a preset LinesMaterial configuration.
32
32
  *
33
33
  * Default value is ````"default"````.
34
34
  *
35
35
  * @type {String}
36
36
  */
37
- preset: string;
37
+ set preset(arg: string);
38
38
 
39
39
  /**
40
- * Line width.
40
+ * The current preset LinesMaterial configuration.
41
+ *
42
+ * Default value is ````"default"````.
43
+ *
44
+ * @type {String}
45
+ */
46
+ get preset(): string;
47
+
48
+ /**
49
+ * Sets line width.
50
+ *
51
+ * Default value is ````1```` pixels.
52
+ *
53
+ * @type {Number}
54
+ */
55
+ set lineWidth(arg: number);
56
+
57
+ /**
58
+ * Gets the line width.
41
59
  *
42
60
  * Default value is ````1```` pixels.
43
61
  *
44
62
  * @type {Number}
45
63
  */
46
- lineWidth: number;
64
+ get lineWidth(): number;
47
65
 
48
66
  /**
49
67
  * @private
50
68
  * @return {string}
51
69
  */
52
- private readonly hash: string;
70
+ private get hash();
53
71
  }
@@ -56,26 +56,36 @@ export declare class MetallicMaterial extends Material {
56
56
  constructor(owner: Component, cfg?: MetallicMaterialConfiguration);
57
57
 
58
58
  /**
59
- * RGB diffuse color.
59
+ * Sets the RGB diffuse color.
60
60
  *
61
61
  * Multiplies by the RGB components of {@link MetallicMaterial#baseColorMap}.
62
62
  *
63
63
  * Default value is ````[1.0, 1.0, 1.0]````.
64
64
  * @type {Number[]}
65
65
  */
66
- baseColor: number[];
66
+ set baseColor(value: number[]);
67
67
 
68
68
  /**
69
- * RGB {@link Texture} containing the diffuse color of this MetallicMaterial, with optional *A* component for alpha.
69
+ * Gets the RGB diffuse color.
70
+ *
71
+ * Multiplies by the RGB components of {@link MetallicMaterial#baseColorMap}.
72
+ *
73
+ * Default value is ````[1.0, 1.0, 1.0]````.
74
+ * @type {Number[]}
75
+ */
76
+ get baseColor(): number[];
77
+
78
+ /**
79
+ * Gets the RGB {@link Texture} containing the diffuse color of this MetallicMaterial, with optional *A* component for alpha.
70
80
  *
71
81
  * The RGB components multiply by {@link MetallicMaterial#baseColor}, while the *A* component, if present, multiplies by {@link MetallicMaterial#alpha}.
72
82
  *
73
83
  * @type {Texture}
74
84
  */
75
- readonly baseColorMap: Texture;
85
+ get baseColorMap(): Texture;
76
86
 
77
87
  /**
78
- * Metallic factor.
88
+ * Sets the metallic factor.
79
89
  *
80
90
  * This is in the range ````[0..1]```` and indicates how metallic this MetallicMaterial is.
81
91
  *
@@ -87,19 +97,26 @@ export declare class MetallicMaterial extends Material {
87
97
  *
88
98
  * @type {Number}
89
99
  */
90
- metallic: number;
100
+ set metallic(value: number);
91
101
 
92
102
  /**
93
- * RGB {@link Texture} containing this MetallicMaterial's metallic factor in its *R* component.
103
+ * Gets the metallic factor.
104
+ *
105
+ * @type {Number}
106
+ */
107
+ get metallic(): number;
108
+
109
+ /**
110
+ * Gets the RGB {@link Texture} containing this MetallicMaterial's metallic factor in its *R* component.
94
111
  *
95
112
  * The *R* component multiplies by {@link MetallicMaterial#metallic}.
96
113
  *
97
114
  * @type {Texture}
98
115
  */
99
- readonly metallicMap: Texture;
116
+ get metallicMap(): Texture;
100
117
 
101
118
  /**
102
- * Roughness factor.
119
+ * Sets the roughness factor.
103
120
  *
104
121
  * This factor is in the range ````[0..1]````, where ````0```` is fully smooth,````1```` is fully rough.
105
122
  *
@@ -109,37 +126,51 @@ export declare class MetallicMaterial extends Material {
109
126
  *
110
127
  * @type {Number}
111
128
  */
112
- roughness: number;
129
+ set roughness(value: number);
113
130
 
114
131
  /**
115
- * RGB {@link Texture} containing this MetallicMaterial's roughness factor in its *R* component.
132
+ * Gets the roughness factor.
133
+ *
134
+ * @type {Number}
135
+ */
136
+ get roughness(): number;
137
+
138
+ /**
139
+ * Gets the RGB {@link Texture} containing this MetallicMaterial's roughness factor in its *R* component.
116
140
  *
117
141
  * The *R* component multiplies by {@link MetallicMaterial#roughness}.
118
142
  *
119
143
  * @type {Texture}
120
144
  */
121
- readonly roughnessMap: Texture;
145
+ get roughnessMap(): Texture;
122
146
 
123
147
  /**
124
- * RGB {@link Texture} containing this MetallicMaterial's metalness in its *R* component and roughness in its *G* component.
148
+ * Gets the RGB {@link Texture} containing this MetallicMaterial's metalness in its *R* component and roughness in its *G* component.
125
149
  *
126
150
  * Its *B* component multiplies by the {@link MetallicMaterial#metallic} property, while its *G* component multiplies by the {@link MetallicMaterial#roughness} property.
127
151
  *
128
152
  * @type {Texture}
129
153
  */
130
- readonly metallicRoughnessMap: Texture;
154
+ get metallicRoughnessMap(): Texture;
131
155
 
132
156
  /**
133
- * Factor in the range [0..1] indicating specular Fresnel value.
157
+ * Sets the factor in the range [0..1] indicating specular Fresnel value.
134
158
  *
135
159
  * Default value is ````0.0````.
136
160
  *
137
161
  * @type {Number}
138
162
  */
139
- specularF0: number;
163
+ set specularF0(value: number);
164
+
165
+ /**
166
+ * Gets the factor in the range [0..1] indicating specular Fresnel value.
167
+ *
168
+ * @type {Number}
169
+ */
170
+ get specularF0(): number;
140
171
 
141
172
  /**
142
- * RGB emissive color.
173
+ * Sets the RGB emissive color.
143
174
  *
144
175
  * Multiplies by {@link MetallicMaterial#emissiveMap}.
145
176
  *
@@ -147,28 +178,35 @@ export declare class MetallicMaterial extends Material {
147
178
  *
148
179
  * @type {Number[]}
149
180
  */
150
- emissive: number[];
181
+ set emissive(value: number[]);
151
182
 
152
183
  /**
153
- * RGB emissive map.
184
+ * Gets the RGB emissive color.
185
+ *
186
+ * @type {Number[]}
187
+ */
188
+ get emissive(): number[];
189
+
190
+ /**
191
+ * Gets the RGB emissive map.
154
192
  *
155
193
  * Multiplies by {@link MetallicMaterial#emissive}.
156
194
  *
157
195
  * @type {Texture}
158
196
  */
159
- readonly emissiveMap: Texture;
197
+ get emissiveMap(): Texture;
160
198
 
161
199
  /**
162
- * RGB ambient occlusion map.
200
+ * Gets the RGB ambient occlusion map.
163
201
  *
164
202
  * Multiplies by the specular and diffuse light reflected by surfaces.
165
203
  *
166
204
  * @type {Texture}
167
205
  */
168
- readonly occlusionMap: Texture;
206
+ get occlusionMap(): Texture;
169
207
 
170
208
  /**
171
- * Factor in the range ````[0..1]```` that indicates the alpha value.
209
+ * Sets factor in the range ````[0..1]```` that indicates the alpha value.
172
210
  *
173
211
  * Multiplies by the *R* component of {@link MetallicMaterial#alphaMap} and the *A* component, if present, of {@link MetallicMaterial#baseColorMap}.
174
212
  *
@@ -178,26 +216,33 @@ export declare class MetallicMaterial extends Material {
178
216
  *
179
217
  * @type {Number}
180
218
  */
181
- alpha: number;
219
+ set alpha(value: number);
220
+
221
+ /**
222
+ * Gets factor in the range ````[0..1]```` that indicates the alpha value.
223
+ *
224
+ * @type {Number}
225
+ */
226
+ get alpha(): number;
182
227
 
183
228
  /**
184
- * RGB {@link Texture} containing this MetallicMaterial's alpha in its *R* component.
229
+ * Gets the RGB {@link Texture} containing this MetallicMaterial's alpha in its *R* component.
185
230
  *
186
231
  * The *R* component multiplies by the {@link MetallicMaterial#alpha} property.
187
232
  *
188
233
  * @type {Texture}
189
234
  */
190
- readonly alphaMap: Texture;
235
+ get alphaMap(): Texture;
191
236
 
192
237
  /**
193
- * RGB tangent-space normal map {@link Texture}.
238
+ * Gets the RGB tangent-space normal map {@link Texture}.
194
239
  *
195
240
  * @type {Texture}
196
241
  */
197
- readonly normalMap: Texture;
242
+ get normalMap(): Texture;
198
243
 
199
244
  /**
200
- * Alpha rendering mode.
245
+ * Sets the alpha rendering mode.
201
246
  *
202
247
  * This specifies how alpha is interpreted. Alpha is the combined result of the {@link MetallicMaterial#alpha} and {@link MetallicMaterial#alphaMap} properties.
203
248
  *
@@ -209,10 +254,17 @@ export declare class MetallicMaterial extends Material {
209
254
  *
210
255
  * @type {String}
211
256
  */
212
- alphaMode: string;
257
+ set alphaMode(alphaMode: string);
258
+
259
+ /**
260
+ * Gets the alpha rendering mode.
261
+ *
262
+ * @type {String}
263
+ */
264
+ get alphaMode(): string;
213
265
 
214
266
  /**
215
- * Alpha cutoff value.
267
+ * Sets the alpha cutoff value.
216
268
  *
217
269
  * Specifies the cutoff threshold when {@link MetallicMaterial#alphaMode} equals "mask". If the alpha is greater than or equal to this value then it is rendered as fully opaque, otherwise, it is rendered as fully transparent. A value greater than 1.0 will render the entire
218
270
  * material as fully transparent. This value is ignored for other modes.
@@ -223,10 +275,17 @@ export declare class MetallicMaterial extends Material {
223
275
  *
224
276
  * @type {Number}
225
277
  */
226
- alphaCutoff: number;
278
+ set alphaCutoff(alphaCutoff: number);
279
+
280
+ /**
281
+ * Gets the alpha cutoff value.
282
+ *
283
+ * @type {Number}
284
+ */
285
+ get alphaCutoff(): number;
227
286
 
228
287
  /**
229
- * Whether backfaces are visible on attached {@link Mesh}es.
288
+ * Sets whether backfaces are visible on attached {@link Mesh}es.
230
289
  *
231
290
  * The backfaces will belong to {@link ReadableGeometry} compoents that are also attached to the {@link Mesh}es.
232
291
  *
@@ -234,19 +293,33 @@ export declare class MetallicMaterial extends Material {
234
293
  *
235
294
  * @type {Boolean}
236
295
  */
237
- backfaces: boolean;
296
+ set backfaces(value: boolean);
238
297
 
239
298
  /**
240
- * Winding direction of front faces of {@link Geometry} of attached {@link Mesh}es.
299
+ * Gets whether backfaces are visible on attached {@link Mesh}es.
300
+ *
301
+ * @type {Boolean}
302
+ */
303
+ get backfaces(): boolean;
304
+
305
+ /**
306
+ * Sets the winding direction of front faces of {@link Geometry} of attached {@link Mesh}es.
241
307
  *
242
308
  * Default value is ````"ccw"````.
243
309
  *
244
310
  * @type {String}
245
311
  */
246
- frontface: "cw" | "ccw";
312
+ set frontface(value: "cw" | "ccw");
313
+
314
+ /**
315
+ * Gets the winding direction of front faces of {@link Geometry} of attached {@link Mesh}es.
316
+ *
317
+ * @type {String}
318
+ */
319
+ get frontface(): string;
247
320
 
248
321
  /**
249
- * MetallicMaterial's line width.
322
+ * Sets the MetallicMaterial's line width.
250
323
  *
251
324
  * This is not supported by WebGL implementations based on DirectX [2019].
252
325
  *
@@ -254,16 +327,30 @@ export declare class MetallicMaterial extends Material {
254
327
  *
255
328
  * @type {Number}
256
329
  */
257
- lineWidth: number;
330
+ set lineWidth(value: number);
258
331
 
259
332
  /**
260
- * MetallicMaterial's point size.
333
+ * Gets the MetallicMaterial's line width.
334
+ *
335
+ * @type {Number}
336
+ */
337
+ get lineWidth(): number;
338
+
339
+ /**
340
+ * Sets the MetallicMaterial's point size.
261
341
  *
262
342
  * Default value is ````1.0````.
263
343
  *
264
344
  * @type {Number}
265
345
  */
266
- pointSize: number;
346
+ set pointSize(value: number);
347
+
348
+ /**
349
+ * Gets the MetallicMaterial's point size.
350
+ *
351
+ * @type {Number}
352
+ */
353
+ get pointSize(): number;
267
354
 
268
355
  /**
269
356
  * Destroys this MetallicMaterial.