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