@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
@@ -23,104 +23,47 @@ export declare class SectionPlane extends Component {
23
23
  constructor(owner?: Component, cfg?: SectionPlaneConfiguration);
24
24
 
25
25
  /**
26
- * Sets if this SectionPlane is active or not.
26
+ * Whether this SectionPlane is active or not.
27
27
  *
28
28
  * Default value is ````true````.
29
- *
30
- * @param {Boolean} value Set ````true```` to activate else ````false```` to deactivate.
31
- */
32
- set active(arg: boolean);
33
-
34
- /**
35
- * Gets if this SectionPlane is active or not.
36
- *
37
- * Default value is ````true````.
38
- *
39
- * @returns {Boolean} Returns ````true```` if active.
40
- */
41
- get active(): boolean;
42
-
43
- /**
44
- * Sets the World-space position of this SectionPlane's plane.
45
- *
46
- * Default value is ````[0, 0, 0]````.
47
- *
48
- * @param {Number[]} value New position.
49
29
  */
50
- set pos(arg: number[]);
30
+ active: boolean;
51
31
 
52
32
  /**
53
- * Gets the World-space position of this SectionPlane's plane.
33
+ * The World-space position of this SectionPlane's plane.
54
34
  *
55
35
  * Default value is ````[0, 0, 0]````.
56
- *
57
- * @returns {Number[]} Current position.
58
- */
59
- get pos(): number[];
60
-
61
- /**
62
- * Sets the quaternion of this SectionPlane's plane.
63
- *
64
- * Default value is ````[0, -1, 0, 0]````.
65
- *
66
- * @param {Number[]} value New quaternion.
67
36
  */
68
- set quaternion(value: number[]);
37
+ pos: number[];
69
38
 
70
39
  /**
71
- * Gets the quaternion of this SectionPlane's plane.
40
+ * The quaternion of this SectionPlane's plane.
72
41
  *
73
42
  * Default value is ````[0, -1, 0, 0]````.
74
- *
75
- * @returns {Number[]} value Current quaternion.
76
- */
77
- get quaternion(): number[];
78
-
79
- /**
80
- * Sets the roll of this SectionPlane's plane.
81
- *
82
- * Default value is ````0````.
83
- *
84
- * @param {Number[]} value New roll.
85
43
  */
86
- set roll(value: number[]);
44
+ quaternion: number[];
87
45
 
88
46
  /**
89
- * Gets the roll of this SectionPlane's plane.
47
+ * The roll of this SectionPlane's plane.
90
48
  *
91
49
  * Default value is ````0````.
92
- *
93
- * @returns {Number[]} value Current roll.
94
50
  */
95
- get roll(): number[];
51
+ roll: number[];
96
52
 
97
53
  /**
98
- * Sets the direction of this SectionPlane's plane.
54
+ * The direction of this SectionPlane's plane.
99
55
  *
100
56
  * Default value is ````[0, 0, -1]````.
101
- *
102
- * @param {Number[]} value New direction.
103
57
  */
104
- set dir(arg: number[]);
58
+ dir: number[];
105
59
 
106
60
  /**
107
- * Gets the direction of this SectionPlane's plane.
108
- *
109
- * Default value is ````[0, 0, -1]````.
110
- *
111
- * @returns {Number[]} value Current direction.
112
- */
113
- get dir(): number[];
114
-
115
- /**
116
- * Gets this SectionPlane's distance to the origin of the World-space coordinate system.
61
+ * This SectionPlane's distance to the origin of the World-space coordinate system.
117
62
  *
118
63
  * This is the dot product of {@link SectionPlane.pos} and {@link SectionPlane.dir} and is automatically re-calculated
119
64
  * each time either of two properties are updated.
120
- *
121
- * @returns {Number}
122
65
  */
123
- get dist(): number;
66
+ readonly dist: number;
124
67
 
125
68
  /**
126
69
  * Inverts the direction of {@link SectionPlane.dir}.
@@ -2,22 +2,12 @@ import { Component } from "../Component";
2
2
 
3
3
  export declare class Viewport extends Component {
4
4
  /**
5
- * Sets the canvas-space boundary of this Viewport, indicated as ````[min, max, width, height]````.
5
+ * The canvas-space boundary of this Viewport, indicated as ````[min, max, width, height]````.
6
6
  */
7
- set boundary(arg: number[]);
7
+ boundary: number[];
8
8
 
9
9
  /**
10
- * Gets the canvas-space boundary of this Viewport, indicated as ````[min, max, width, height]````.
10
+ * Whether {@link Viewport.boundary} automatically synchronizes with {@link Canvas.boundary}.
11
11
  */
12
- get boundary(): number[];
13
-
14
- /**
15
- * Sets if {@link Viewport.boundary} automatically synchronizes with {@link Canvas.boundary}.
16
- */
17
- set autoBoundary(arg: boolean);
18
-
19
- /**
20
- * Gets if {@link Viewport.boundary} automatically synchronizes with {@link Canvas.boundary}.
21
- */
22
- get autoBoundary(): boolean;
12
+ autoBoundary: boolean;
23
13
  }
@@ -41,90 +41,75 @@ export declare class PickResult {
41
41
 
42
42
  /**
43
43
  * Canvas coordinates when picking with a 2D pointer.
44
- * @property canvasPos
45
- * @type {Number[]}
46
44
  */
47
- get canvasPos(): number[];
45
+ readonly canvasPos: number[];
48
46
 
49
47
  /**
50
48
  * World-space 3D ray origin when raypicked.
51
- * @type {Number[]}
52
49
  */
53
- get origin(): number[];
50
+ readonly origin: number[];
54
51
 
55
52
  /**
56
53
  * World-space 3D ray direction when raypicked.
57
- * @type {Number[]}
58
54
  */
59
- get direction(): number[];
55
+ readonly direction: number[];
60
56
 
61
57
  /**
62
58
  * Picked triangle's vertex indices.
63
59
  * Only defined when an entity and triangle was picked.
64
- * @type {Int32Array}
65
60
  */
66
- get indices(): Int32Array;
61
+ readonly indices: Int32Array;
67
62
 
68
63
  /**
69
64
  * Picked Local-space point on surface.
70
65
  * Only defined when an entity and a point on its surface was picked.
71
- * @type {Number[]}
72
66
  */
73
- get localPos(): number[];
67
+ readonly localPos: number[];
74
68
 
75
69
  /**
76
70
  * Canvas cursor coordinates, snapped when snap picking, otherwise same as {@link PickResult#pointerPos}.
77
- * @property snappedCanvasPos
78
- * @type {Number[]}
79
71
  */
80
- get snappedCanvasPos(): number[];
72
+ readonly snappedCanvasPos: number[];
81
73
 
82
74
  /**
83
75
  * Picked World-space point on surface.
84
76
  * Only defined when an entity and a point on its surface was picked.
85
- * @type {Number[]}
86
77
  */
87
- get worldPos(): number[];
78
+ readonly worldPos: number[];
88
79
 
89
80
  /**
90
81
  * Picked View-space point on surface.
91
82
  * Only defined when an entity and a point on its surface was picked.
92
- * @type {Number[]}
93
83
  */
94
- get viewPos(): number[];
84
+ readonly viewPos: number[];
95
85
 
96
86
  /**
97
87
  * Barycentric coordinate within picked triangle.
98
88
  * Only defined when an entity and a point on its surface was picked.
99
- * @type {Number[]}
100
89
  */
101
- get bary(): number[];
90
+ readonly bary: number[];
102
91
 
103
92
  /**
104
93
  * Normal vector at picked position on surface.
105
94
  * Only defined when an entity and a point on its surface was picked.
106
- * @type {Number[]}
107
95
  */
108
- get worldNormal(): number[];
96
+ readonly worldNormal: number[];
109
97
 
110
98
  /**
111
99
  * UV coordinates at picked position on surface.
112
100
  * Only defined when an entity and a point on its surface was picked.
113
- * @type {Number[]}
114
101
  */
115
- get uv(): number[];
102
+ readonly uv: number[];
116
103
 
117
104
  /**
118
105
  * True if snapped to edge or vertex.
119
- * @returns {boolean}
120
106
  */
121
- get snapped(): boolean;
107
+ readonly snapped: boolean;
122
108
 
123
109
  /**
124
110
  * True when snapped to the nearest vertex position.
125
- * @type {boolean}
126
111
  */
127
- snappedToVertex : false;
112
+ snappedToVertex: boolean;
128
113
 
129
114
  /**
130
115
  * True when snapped to the nearest edge.