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