@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
@@ -55,33 +55,26 @@ export declare class SpecularMaterial extends Material {
55
55
  constructor(owner: Component, cfg?: SpecularMaterialConfiguration)
56
56
 
57
57
  /**
58
- * Sets the RGB diffuse color of this SpecularMaterial.
58
+ * RGB diffuse color of this SpecularMaterial.
59
59
  *
60
60
  * Multiplies by the *RGB* components of {@link SpecularMaterial#diffuseMap}.
61
61
  *
62
62
  * Default value is ````[1.0, 1.0, 1.0]````.
63
63
  * @type {Number[]}
64
64
  */
65
- set diffuse(value: number[]);
65
+ diffuse: number[];
66
66
 
67
67
  /**
68
- * Gets the RGB diffuse color of this SpecularMaterial.
69
- *
70
- * @type {Number[]}
71
- */
72
- get diffuse(): number[];
73
-
74
- /**
75
- * Gets the RGB {@link Texture} containing the diffuse color of this SpecularMaterial, with optional *A* component for alpha.
68
+ * RGB {@link Texture} containing the diffuse color of this SpecularMaterial, with optional *A* component for alpha.
76
69
  *
77
70
  * The *RGB* components multipliues by the {@link SpecularMaterial#diffuse} property, while the *A* component, if present, multiplies by the {@link SpecularMaterial#alpha} property.
78
71
  *
79
72
  * @type {Texture}
80
73
  */
81
- get diffuseMap(): Texture;
74
+ readonly diffuseMap: Texture;
82
75
 
83
76
  /**
84
- * Sets the RGB specular color of this SpecularMaterial.
77
+ * RGB specular color of this SpecularMaterial.
85
78
  *
86
79
  * Multiplies by {@link SpecularMaterial#specularMap} and the *A* component of {@link SpecularMaterial#specularGlossinessMap}.
87
80
  *
@@ -89,35 +82,28 @@ export declare class SpecularMaterial extends Material {
89
82
  *
90
83
  * @type {Number[]}
91
84
  */
92
- set specular(value: number[]);
93
-
94
- /**
95
- * Gets the RGB specular color of this SpecularMaterial.
96
- *
97
- * @type {Number[]}
98
- */
99
- get specular(): number[];
85
+ specular: number[];
100
86
 
101
87
  /**
102
- * Gets the RGB texture containing the specular color of this SpecularMaterial.
88
+ * RGB texture containing the specular color of this SpecularMaterial.
103
89
  *
104
90
  * Multiplies by {@link SpecularMaterial#specular}.
105
91
  *
106
92
  * @type {Texture}
107
93
  */
108
- get specularMap(): Texture;
94
+ readonly specularMap: Texture;
109
95
 
110
96
  /**
111
- * Gets the RGBA texture containing this SpecularMaterial's specular color in its *RGB* components and glossiness in its *A* component.
97
+ * RGBA texture containing this SpecularMaterial's specular color in its *RGB* components and glossiness in its *A* component.
112
98
  *
113
99
  * The *RGB* components multiplies {@link SpecularMaterial#specular}, while the *A* component multiplies by {@link SpecularMaterial#glossiness}.
114
100
  *
115
101
  * @type {Texture}
116
102
  */
117
- get specularGlossinessMap(): Texture;
103
+ readonly specularGlossinessMap: Texture;
118
104
 
119
105
  /**
120
- * Sets the Factor in the range [0..1] indicating how glossy this SpecularMaterial is.
106
+ * Factor in the range [0..1] indicating how glossy this SpecularMaterial is.
121
107
  *
122
108
  * ````0```` is no glossiness, ````1```` is full glossiness.
123
109
  *
@@ -127,40 +113,27 @@ export declare class SpecularMaterial extends Material {
127
113
  *
128
114
  * @type {Number}
129
115
  */
130
- set glossiness(value: number);
131
-
132
- /**
133
- * Gets the Factor in the range ````[0..1]```` indicating how glossy this SpecularMaterial is.
134
- * @type {Number}
135
- */
136
- get glossiness(): number;
116
+ glossiness: number;
137
117
 
138
118
  /**
139
- * Gets the RGB texture containing this SpecularMaterial's glossiness in its *R* component.
119
+ * RGB texture containing this SpecularMaterial's glossiness in its *R* component.
140
120
  *
141
121
  * The *R* component multiplies by {@link SpecularMaterial#glossiness}.
142
- ** @type {Texture}
122
+ * @type {Texture}
143
123
  */
144
- get glossinessMap(): Texture;
124
+ readonly glossinessMap: Texture;
145
125
 
146
126
  /**
147
- * Sets the factor in the range ````[0..1]```` indicating amount of specular Fresnel.
127
+ * Factor in the range ````[0..1]```` indicating amount of specular Fresnel.
148
128
  *
149
129
  * Default value is ````0.0````.
150
130
  *
151
131
  * @type {Number}
152
132
  */
153
- set specularF0(value: number);
133
+ specularF0: number;
154
134
 
155
135
  /**
156
- * Gets the factor in the range ````[0..1]```` indicating amount of specular Fresnel.
157
- *
158
- * @type {Number}
159
- */
160
- get specularF0(): number;
161
-
162
- /**
163
- * Sets the RGB emissive color of this SpecularMaterial.
136
+ * RGB emissive color of this SpecularMaterial.
164
137
  *
165
138
  * Multiplies by {@link SpecularMaterial#emissiveMap}.
166
139
 
@@ -168,26 +141,19 @@ export declare class SpecularMaterial extends Material {
168
141
  *
169
142
  * @type {Number[]}
170
143
  */
171
- set emissive(value: number[]);
172
-
173
- /**
174
- * Gets the RGB emissive color of this SpecularMaterial.
175
- *
176
- * @type {Number[]}
177
- */
178
- get emissive(): number[];
144
+ emissive: number[];
179
145
 
180
146
  /**
181
- * Gets the RGB texture containing the emissive color of this SpecularMaterial.
147
+ * RGB texture containing the emissive color of this SpecularMaterial.
182
148
  *
183
149
  * Multiplies by {@link SpecularMaterial#emissive}.
184
150
  *
185
151
  * @type {Texture}
186
152
  */
187
- get emissiveMap(): Texture;
153
+ readonly emissiveMap: Texture;
188
154
 
189
155
  /**
190
- * Sets the factor in the range [0..1] indicating how transparent this SpecularMaterial is.
156
+ * Factor in the range [0..1] indicating how transparent this SpecularMaterial is.
191
157
  *
192
158
  * A value of ````0.0```` is fully transparent, while ````1.0```` is fully opaque.
193
159
  *
@@ -197,42 +163,35 @@ export declare class SpecularMaterial extends Material {
197
163
  *
198
164
  * @type {Number}
199
165
  */
200
- set alpha(value: number);
166
+ alpha: number;
201
167
 
202
168
  /**
203
- * Gets the factor in the range [0..1] indicating how transparent this SpecularMaterial is.
204
- *
205
- * @type {Number}
206
- */
207
- get alpha(): number;
208
-
209
- /**
210
- * Gets the RGB {@link Texture} with alpha in its *R* component.
169
+ * RGB {@link Texture} with alpha in its *R* component.
211
170
  *
212
171
  * The *R* component multiplies by the {@link SpecularMaterial#alpha} property.
213
172
  *
214
173
  * @type {Texture}
215
174
  */
216
- get alphaMap(): Texture;
175
+ readonly alphaMap: Texture;
217
176
 
218
177
  /**
219
- * Gets the RGB tangent-space normal {@link Texture} attached to this SpecularMaterial.
178
+ * RGB tangent-space normal {@link Texture} attached to this SpecularMaterial.
220
179
  *
221
180
  * @type {Texture}
222
181
  */
223
- get normalMap(): Texture;
182
+ readonly normalMap: Texture;
224
183
 
225
184
  /**
226
- * Gets the RGB ambient occlusion {@link Texture} attached to this SpecularMaterial.
185
+ * RGB ambient occlusion {@link Texture} attached to this SpecularMaterial.
227
186
  *
228
187
  * Multiplies by the specular and diffuse light reflected by surfaces.
229
188
  *
230
189
  * @type {Texture}
231
190
  */
232
- get occlusionMap(): Texture;
191
+ readonly occlusionMap: Texture;
233
192
 
234
193
  /**
235
- * Sets the alpha rendering mode.
194
+ * Alpha rendering mode.
236
195
  *
237
196
  * This governs how alpha is treated. Alpha is the combined result of the {@link SpecularMaterial#alpha} and {@link SpecularMaterial#alphaMap} properties.
238
197
  *
@@ -244,10 +203,10 @@ export declare class SpecularMaterial extends Material {
244
203
  *
245
204
  * @type {String}
246
205
  */
247
- set alphaMode(alphaMode: "opaque" | "blend" | "mask");
206
+ alphaMode: "opaque" | "blend" | "mask";
248
207
 
249
208
  /**
250
- * Sets the alpha cutoff value.
209
+ * Alpha cutoff value.
251
210
  *
252
211
  * Specifies the cutoff threshold when {@link SpecularMaterial#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 material as fully transparent. This value is ignored for other modes.
253
212
  *
@@ -257,17 +216,10 @@ export declare class SpecularMaterial extends Material {
257
216
  *
258
217
  * @type {Number}
259
218
  */
260
- set alphaCutoff(alphaCutoff: number);
261
-
262
- /**
263
- * Gets the alpha cutoff value.
264
-
265
- * @type {Number}
266
- */
267
- get alphaCutoff(): number;
219
+ alphaCutoff: number;
268
220
 
269
221
  /**
270
- * Sets whether backfaces are visible on attached {@link Mesh}es.
222
+ * Whether backfaces are visible on attached {@link Mesh}es.
271
223
  *
272
224
  * The backfaces will belong to {@link ReadableGeometry} compoents that are also attached to the {@link Mesh}es.
273
225
  *
@@ -275,33 +227,19 @@ export declare class SpecularMaterial extends Material {
275
227
  *
276
228
  * @type {Boolean}
277
229
  */
278
- set backfaces(value: boolean);
230
+ backfaces: boolean;
279
231
 
280
232
  /**
281
- * Gets whether backfaces are visible on attached {@link Mesh}es.
282
- *
283
- * @type {Boolean}
284
- */
285
- get backfaces(): boolean;
286
-
287
- /**
288
- * Sets the winding direction of front faces of {@link Geometry} of attached {@link Mesh}es.
233
+ * Winding direction of front faces of {@link Geometry} of attached {@link Mesh}es.
289
234
  *
290
235
  * Default value is ````"ccw"````.
291
236
  *
292
237
  * @type {String}
293
238
  */
294
- set frontface(value: "cw" | "ccw");
239
+ frontface: "cw" | "ccw";
295
240
 
296
241
  /**
297
- * Gets the winding direction of front faces of {@link Geometry} of attached {@link Mesh}es.
298
- *
299
- * @type {String}
300
- */
301
- get frontface(): "cw" | "ccw";
302
-
303
- /**
304
- * Sets the SpecularMaterial's line width.
242
+ * SpecularMaterial's line width.
305
243
  *
306
244
  * This is not supported by WebGL implementations based on DirectX [2019].
307
245
  *
@@ -309,30 +247,16 @@ export declare class SpecularMaterial extends Material {
309
247
  *
310
248
  * @type {Number}
311
249
  */
312
- set lineWidth(value: number);
250
+ lineWidth: number;
313
251
 
314
252
  /**
315
- * Gets the SpecularMaterial's line width.
316
- *
317
- * @type {Number}
318
- */
319
- get lineWidth(): number;
320
-
321
- /**
322
- * Sets the SpecularMaterial's point size.
253
+ * SpecularMaterial's point size.
323
254
  *
324
255
  * Default value is ````1.0````.
325
256
  *
326
257
  * @type {Number}
327
258
  */
328
- set pointSize(value: number);
329
-
330
- /**
331
- * Sets the SpecularMaterial's point size.
332
- *
333
- * @type {Number}
334
- */
335
- get pointSize(): number;
259
+ pointSize: number;
336
260
 
337
261
  /**
338
262
  * Destroys this SpecularMaterial.
@@ -35,88 +35,48 @@ export declare class Texture extends Component {
35
35
  constructor(owner: Component, cfg?: TextureConfiguration);
36
36
 
37
37
  /**
38
- * Sets the 2D translation vector added to this Texture's *S* and *T* UV coordinates.
38
+ * 2D translation vector added to this Texture's *S* and *T* UV coordinates.
39
39
  *
40
40
  * Default value is ````[0, 0]````.
41
41
  *
42
42
  * @type {Number[]}
43
43
  */
44
- set translate(arg: number[]);
44
+ translate: number[];
45
45
  /**
46
- * Gets the 2D translation vector added to this Texture's *S* and *T* UV coordinates.
47
- *
48
- * Default value is ````[0, 0]````.
49
- *
50
- * @type {Number[]}
51
- */
52
- get translate(): number[];
53
- /**
54
- * Sets the 2D scaling vector that will be applied to this Texture's *S* and *T* UV coordinates.
55
- *
56
- * Default value is ````[1, 1]````.
57
- *
58
- * @type {Number[]}
59
- */
60
- set scale(arg: number[]);
61
- /**
62
- * Gets the 2D scaling vector that will be applied to this Texture's *S* and *T* UV coordinates.
46
+ * 2D scaling vector that will be applied to this Texture's *S* and *T* UV coordinates.
63
47
  *
64
48
  * Default value is ````[1, 1]````.
65
49
  *
66
50
  * @type {Number[]}
67
51
  */
68
- get scale(): number[];
69
- /**
70
- * Sets the rotation angles, in degrees, that will be applied to this Texture's *S* and *T* UV coordinates.
71
- *
72
- * Default value is ````0````.
73
- *
74
- * @type {Number}
75
- */
76
- set rotate(arg: number);
52
+ scale: number[];
77
53
  /**
78
- * Gets the rotation angles, in degrees, that will be applied to this Texture's *S* and *T* UV coordinates.
54
+ * Rotation angles, in degrees, that will be applied to this Texture's *S* and *T* UV coordinates.
79
55
  *
80
56
  * Default value is ````0````.
81
57
  *
82
58
  * @type {Number}
83
59
  */
84
- get rotate(): number;
60
+ rotate: number;
85
61
  /**
86
- * Sets path to an image file to source this Texture from.
62
+ * Path to an image file to source this Texture from.
87
63
  *
88
64
  * Sets {@link Texture.image} null.
89
65
  *
90
66
  * @type {String}
91
67
  */
92
- set src(arg: string);
93
- /**
94
- * Gets path to the image file this Texture from, if any.
95
- *
96
- * Returns null if not set.
97
- *
98
- * @type {String}
99
- */
100
- get src(): string;
68
+ src: string;
101
69
  /**
102
- * Sets an HTML DOM Image object to source this Texture from.
70
+ * HTML DOM Image object to source this Texture from.
103
71
  *
104
72
  * Sets {@link Texture.src} null.
105
73
  *
106
74
  * @type {HTMLImageElement}
107
75
  */
108
- set image(arg: HTMLImageElement);
109
- /**
110
- * Gets HTML DOM Image object this Texture is sourced from, if any.
111
- *
112
- * Returns null if not set.
113
- *
114
- * @type {HTMLImageElement}
115
- */
116
- get image(): HTMLImageElement;
76
+ image: HTMLImageElement;
117
77
 
118
78
  /**
119
- * Gets how this Texture is sampled when a texel covers less than one pixel.
79
+ * How this Texture is sampled when a texel covers less than one pixel.
120
80
  *
121
81
  * Options are:
122
82
  *
@@ -151,9 +111,9 @@ export declare class Texture extends Component {
151
111
  *
152
112
  * @type {String}
153
113
  */
154
- get minFilter(): string;
114
+ readonly minFilter: string;
155
115
  /**
156
- * Gets how this Texture is sampled when a texel covers more than one pixel.
116
+ * How this Texture is sampled when a texel covers more than one pixel.
157
117
  *
158
118
  * * "nearest" - Uses the value of the texture element that is nearest
159
119
  * (in Manhattan distance) to the center of the pixel being textured.
@@ -164,9 +124,9 @@ export declare class Texture extends Component {
164
124
  *
165
125
  * @type {String}
166
126
  */
167
- get magFilter(): string;
127
+ readonly magFilter: string;
168
128
  /**
169
- * Gets the wrap parameter for this Texture's *S* coordinate.
129
+ * Wrap parameter for this Texture's *S* coordinate.
170
130
  *
171
131
  * Values can be:
172
132
  *
@@ -181,9 +141,9 @@ export declare class Texture extends Component {
181
141
  *
182
142
  * @type {String}
183
143
  */
184
- get wrapS(): string;
144
+ readonly wrapS: string;
185
145
  /**
186
- * Gets the wrap parameter for this Texture's *T* coordinate.
146
+ * Wrap parameter for this Texture's *T* coordinate.
187
147
  *
188
148
  * Values can be:
189
149
  *
@@ -198,19 +158,19 @@ export declare class Texture extends Component {
198
158
  *
199
159
  * @type {String}
200
160
  */
201
- get wrapT(): string;
161
+ readonly wrapT: string;
202
162
  /**
203
- * Gets if this Texture's source data is flipped along its vertical axis.
163
+ * Whether this Texture's source data is flipped along its vertical axis.
204
164
  *
205
165
  * @type {Boolean}
206
166
  */
207
- get flipY(): boolean;
167
+ readonly flipY: boolean;
208
168
  /**
209
- * Gets the Texture's encoding format.
169
+ * Texture's encoding format.
210
170
  *
211
171
  * @type {String}
212
172
  */
213
- get encoding(): string;
173
+ readonly encoding: string;
214
174
  /**
215
175
  * Destroys this Texture
216
176
  */