@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
@@ -15,71 +15,143 @@ export declare class Frustum extends Component {
15
15
  camera: Camera;
16
16
 
17
17
  /**
18
- * The position of the Frustum's left plane on the View-space X-axis.
18
+ * Sets the position of the Frustum's left plane on the View-space X-axis.
19
19
  *
20
20
  * Fires a {@link Frustum.left:emits} emits on change.
21
+ *
22
+ * @param {Number} value New left frustum plane position.
23
+ */
24
+ set left(arg: number);
25
+
26
+ /**
27
+ * Gets the position of the Frustum's left plane on the View-space X-axis.
28
+ *
29
+ * @return {Number} Left frustum plane position.
30
+ */
31
+ get left(): number;
32
+
33
+ /**
34
+ * Sets the position of the Frustum's right plane on the View-space X-axis.
35
+ *
36
+ * Fires a {@link Frustum.right:emits} emits on change.
37
+ *
38
+ * @param {Number} value New right frustum plane position.
21
39
  */
22
- left: number;
40
+ set right(arg: number);
23
41
 
24
42
  /**
25
- * The position of the Frustum's right plane on the View-space X-axis.
43
+ * Gets the position of the Frustum's right plane on the View-space X-axis.
26
44
  *
27
45
  * Fires a {@link Frustum.right:emits} emits on change.
46
+ *
47
+ * @return {Number} Right frustum plane position.
28
48
  */
29
- right: number;
49
+ get right(): number;
30
50
 
31
51
  /**
32
- * The position of the Frustum's bottom plane on the View-space Y-axis.
52
+ * Sets the position of the Frustum's bottom plane on the View-space Y-axis.
33
53
  *
34
54
  * Fires a {@link Frustum.bottom:emits} emits on change.
35
55
  *
36
56
  * @emits {"bottom"} event with the value of this property whenever it changes.
57
+ *
58
+ * @param {Number} value New bottom frustum plane position.
37
59
  */
38
- bottom: number;
60
+ set bottom(arg: number);
39
61
 
40
62
  /**
41
- * The position of the Frustum's top plane on the View-space Y-axis.
63
+ * Gets the position of the Frustum's bottom plane on the View-space Y-axis.
64
+ *
65
+ * Fires a {@link Frustum.bottom:emits} emits on change.
66
+ *
67
+ * @return {Number} Bottom frustum plane position.
68
+ */
69
+ get bottom(): number;
70
+
71
+ /**
72
+ * Sets the position of the Frustum's top plane on the View-space Y-axis.
42
73
  *
43
74
  * Fires a {@link Frustum.top:emits} emits on change.
75
+ *
76
+ * @param {Number} value New top frustum plane position.
44
77
  */
45
- top: number;
78
+ set top(arg: number);
46
79
 
47
80
  /**
48
- * The position of the Frustum's near plane on the positive View-space Z-axis.
81
+ * Gets the position of the Frustum's top plane on the View-space Y-axis.
82
+ *
83
+ * Fires a {@link Frustum.top:emits} emits on change.
84
+ *
85
+ * @return {Number} Top frustum plane position.
86
+ */
87
+ get top(): number;
88
+
89
+ /**
90
+ * Sets the position of the Frustum's near plane on the positive View-space Z-axis.
91
+ *
92
+ * Fires a {@link Frustum.near:emits} emits on change.
93
+ *
94
+ * Default value is ````0.1````.
95
+ *
96
+ * @param {Number} value New Frustum near plane position.
97
+ */
98
+ set near(arg: number);
99
+
100
+ /**
101
+ * Gets the position of the Frustum's near plane on the positive View-space Z-axis.
49
102
  *
50
103
  * Fires a {@link Frustum.near:emits} emits on change.
51
104
  *
52
105
  * Default value is ````0.1````.
106
+ *
107
+ * @return {Number} Near frustum plane position.
53
108
  */
54
- near: number;
109
+ get near(): number;
55
110
 
56
111
  /**
57
- * The position of the Frustum's far plane on the positive View-space Z-axis.
112
+ * Sets the position of the Frustum's far plane on the positive View-space Z-axis.
58
113
  *
59
114
  * Fires a {@link Frustum.far:emits} emits on change.
60
115
  *
61
116
  * Default value is ````10000.0````.
117
+ *
118
+ * @param {Number} value New far frustum plane position.
62
119
  */
63
- far: number;
120
+ set far(arg: number);
64
121
 
65
122
  /**
66
- * The Frustum's projection transform matrix.
123
+ * Gets the position of the Frustum's far plane on the positive View-space Z-axis.
124
+ *
125
+ * Default value is ````10000.0````.
126
+ *
127
+ * @return {Number} Far frustum plane position.
128
+ */
129
+ get far(): number;
130
+
131
+ /**
132
+ * Gets the Frustum's projection transform matrix.
67
133
  *
68
134
  * Fires a {@link Frustum.matrix:emits} emits on change.
69
135
  *
70
136
  * Default value is ````[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]````.
137
+ *
138
+ * @returns {Number[]} The Frustum's projection matrix matrix.
71
139
  */
72
- readonly matrix: number[];
140
+ get matrix(): number[];
73
141
 
74
142
  /**
75
- * The inverse of {@link Frustum.matrix}.
143
+ * Gets the inverse of {@link Frustum.matrix}.
144
+ *
145
+ * @returns {Number[]} The inverse orthographic projection matrix.
76
146
  */
77
- readonly inverseMatrix: number[];
147
+ get inverseMatrix(): number[];
78
148
 
79
149
  /**
80
- * The transpose of {@link Frustum.matrix}.
150
+ * Gets the transpose of {@link Frustum.matrix}.
151
+ *
152
+ * @returns {Number[]} The transpose of {@link Frustum.matrix}.
81
153
  */
82
- readonly transposedMatrix: number[];
154
+ get transposedMatrix(): number[];
83
155
 
84
156
  /**
85
157
  * Un-projects the given Canvas-space coordinates, using this Frustum projection.
@@ -15,52 +15,92 @@ export declare class Ortho extends Component {
15
15
  camera: Camera;
16
16
 
17
17
  /**
18
- * Scale factor for this Ortho's extents on X and Y axis.
18
+ * Sets scale factor for this Ortho's extents on X and Y axis.
19
19
  *
20
- * Clamps to minimum value of ````0.01````.
20
+ * Clamps to minimum value of ````0.01```.
21
21
  *
22
22
  * Fires a "scale" event on change.
23
23
  *
24
24
  * Default value is ````1.0````
25
+ * @param {Number} value New scale value.
25
26
  */
26
- scale: number;
27
+ set scale(arg: number);
27
28
 
28
29
  /**
29
- * The position of the Ortho's near plane on the positive View-space Z-axis.
30
+ * Gets scale factor for this Ortho's extents on X and Y axis.
31
+ *
32
+ * Clamps to minimum value of ````0.01```.
33
+ *
34
+ * Default value is ````1.0````
35
+ *
36
+ * @returns {Number} New Ortho scale value.
37
+ */
38
+ get scale(): number;
39
+
40
+ /**
41
+ * Sets the position of the Ortho's near plane on the positive View-space Z-axis.
30
42
  *
31
43
  * Fires a "near" emits on change.
32
44
  *
33
45
  * Default value is ````0.1````.
46
+ *
47
+ * @param {Number} value New Ortho near plane position.
34
48
  */
35
- near: number;
49
+ set near(arg: number);
36
50
 
37
51
  /**
38
- * The position of the Ortho's far plane on the positive View-space Z-axis.
52
+ * Gets the position of the Ortho's near plane on the positive View-space Z-axis.
53
+ *
54
+ * Default value is ````0.1````.
55
+ *
56
+ * @returns {Number} New Ortho near plane position.
57
+ */
58
+ get near(): number;
59
+
60
+ /**
61
+ * Sets the position of the Ortho's far plane on the positive View-space Z-axis.
39
62
  *
40
63
  * Fires a "far" event on change.
41
64
  *
42
65
  * Default value is ````2000.0````.
66
+ *
67
+ * @param {Number} value New far ortho plane position.
43
68
  */
44
- far: number;
69
+ set far(arg: number);
45
70
 
46
71
  /**
47
- * The Ortho's projection transform matrix.
72
+ * Gets the position of the Ortho's far plane on the positive View-space Z-axis.
73
+ *
74
+ * Default value is ````10000.0````.
75
+ *
76
+ * @returns {Number} New far ortho plane position.
77
+ */
78
+ get far(): number;
79
+
80
+ /**
81
+ * Gets the Ortho's projection transform matrix.
48
82
  *
49
83
  * Fires a "matrix" event on change.
50
84
  *
51
85
  * Default value is ````[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]````.
86
+ *
87
+ * @returns {Number[]} The Ortho's projection matrix.
52
88
  */
53
- readonly matrix: number[];
89
+ get matrix(): number[];
54
90
 
55
91
  /**
56
- * The inverse of {@link Ortho.matrix}.
92
+ * Gets the inverse of {@link Ortho.matrix}.
93
+ *
94
+ * @returns {Number[]} The inverse of {@link Ortho.matrix}.
57
95
  */
58
- readonly inverseMatrix: number[];
96
+ get inverseMatrix(): number[];
59
97
 
60
98
  /**
61
- * The transpose of {@link Ortho.matrix}.
99
+ * Gets the transpose of {@link Ortho.matrix}.
100
+ *
101
+ * @returns {Number[]} The transpose of {@link Ortho.matrix}.
62
102
  */
63
- readonly transposedMatrix: number[];
103
+ get transposedMatrix(): number[];
64
104
 
65
105
  /**
66
106
  * Un-projects the given Canvas-space coordinates, using this Ortho projection.
@@ -72,4 +112,4 @@ export declare class Ortho extends Component {
72
112
  * @param {Number[]} worldPos Outputs un-projected 3D World-space coordinates.
73
113
  */
74
114
  unproject(canvasPos: number[], screenZ: number, screenPos: number[], viewPos: number[], worldPos: number[]): number[];
75
- }
115
+ }
@@ -15,59 +15,113 @@ export declare class Perspective extends Component {
15
15
  camera: Camera;
16
16
 
17
17
  /**
18
- * The Perspective's field-of-view angle (FOV).
18
+ * Sets the Perspective's field-of-view angle (FOV).
19
19
  *
20
20
  * Fires an "fov" event on change.
21
+
22
+ * Default value is ````60.0````.
23
+ *
24
+ * @param {Number} value New field-of-view.
25
+ */
26
+ set fov(arg: number);
27
+
28
+ /**
29
+ * Gets the Perspective's field-of-view angle (FOV).
21
30
  *
22
31
  * Default value is ````60.0````.
32
+ *
33
+ * @returns {Number} Current field-of-view.
23
34
  */
24
- fov: number;
35
+ get fov(): number;
25
36
 
26
37
  /**
27
- * The Perspective's FOV axis.
38
+ * Sets the Perspective's FOV axis.
28
39
  *
29
40
  * Options are ````"x"````, ````"y"```` or ````"min"````, to use the minimum axis.
30
41
  *
31
42
  * Fires an "fovAxis" event on change.
43
+
44
+ * Default value ````"min"````.
45
+ *
46
+ * @param {String} value New FOV axis value.
47
+ */
48
+ set fovAxis(arg: string);
49
+
50
+ /**
51
+ * Gets the Perspective's FOV axis.
32
52
  *
33
- * Default value is ````"min"````.
34
- */
35
- fovAxis: string;
53
+ * Options are ````"x"````, ````"y"```` or ````"min"````, to use the minimum axis.
54
+ *
55
+ * Fires an "fovAxis" event on change.
56
+
57
+ * Default value is ````"min"````.
58
+ *
59
+ * @returns {String} The current FOV axis value.
60
+ */
61
+ get fovAxis(): string;
36
62
 
37
63
  /**
38
- * The position of the Perspective's near plane on the positive View-space Z-axis.
64
+ * Sets the position of the Perspective's near plane on the positive View-space Z-axis.
39
65
  *
40
66
  * Fires a "near" event on change.
41
67
  *
42
68
  * Default value is ````0.1````.
69
+ *
70
+ * @param {Number} value New Perspective near plane position.
71
+ */
72
+ set near(arg: number);
73
+
74
+ /**
75
+ * Gets the position of the Perspective's near plane on the positive View-space Z-axis.
76
+ *
77
+ * Fires an "emits" emits on change.
78
+ *
79
+ * Default value is ````0.1````.
80
+ *
81
+ * @returns The Perspective's near plane position.
43
82
  */
44
- near: number;
83
+ get near(): number;
45
84
 
46
85
  /**
47
- * The position of this Perspective's far plane on the positive View-space Z-axis.
86
+ * Sets the position of this Perspective's far plane on the positive View-space Z-axis.
48
87
  *
49
88
  * Fires a "far" event on change.
89
+ *
90
+ * @param {Number} value New Perspective far plane position.
50
91
  */
51
- far: number;
92
+ set far(arg: number);
52
93
 
53
94
  /**
54
- * The Perspective's projection transform matrix.
95
+ * Gets the position of this Perspective's far plane on the positive View-space Z-axis.
96
+ *
97
+ * @return {Number} The Perspective's far plane position.
98
+ */
99
+ get far(): number;
100
+
101
+ /**
102
+ * Gets the Perspective's projection transform matrix.
55
103
  *
56
104
  * Fires a "matrix" event on change.
57
105
  *
58
106
  * Default value is ````[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]````.
107
+ *
108
+ * @returns {Number[]} The Perspective's projection matrix.
59
109
  */
60
- readonly matrix: number[];
110
+ get matrix(): number[];
61
111
 
62
112
  /**
63
- * The inverse of {@link Perspective.matrix}.
113
+ * Gets the inverse of {@link Perspective.matrix}.
114
+ *
115
+ * @returns {Number[]} The inverse of {@link Perspective.matrix}.
64
116
  */
65
- readonly inverseMatrix: number[];
117
+ get inverseMatrix(): number[];
66
118
 
67
119
  /**
68
- * The transpose of {@link Perspective.matrix}.
120
+ * Gets the transpose of {@link Perspective.matrix}.
121
+ *
122
+ * @returns {Number[]} The transpose of {@link Perspective.matrix}.
69
123
  */
70
- readonly transposedMatrix: number[];
124
+ get transposedMatrix(): number[];
71
125
 
72
126
  /**
73
127
  * Un-projects the given Canvas-space coordinates and Screen-space depth, using this Perspective projection.
@@ -40,66 +40,70 @@ export declare class ReadableGeometry extends Geometry {
40
40
  constructor(owner: Component, cfg?: ReadableGeometryConfiguration);
41
41
 
42
42
  /**
43
- * Geometry's primitive type.
43
+ * Gets the Geometry"s primitive type.
44
44
  */
45
- readonly primitive: "points" | "lines"| "line-loop"| "line-strip"| "triangles"| "triangle-strip" | "triangle-fan";
45
+ get primitive(): "points" | "lines"| "line-loop"| "line-strip"| "triangles"| "triangle-strip" | "triangle-fan";
46
46
 
47
47
  /**
48
- * Whether this Geometry is quantized.
48
+ * Indicates if this Geometry is quantized.
49
49
  */
50
- readonly compressGeometry: boolean;
50
+ get compressGeometry(): boolean;
51
51
 
52
52
  /**
53
- * Geometry's vertex positions.
53
+ * The Geometry's vertex positions.
54
54
  */
55
- positions: number[];
55
+ get positions(): number[];
56
+ set positions(arg: number[]);
56
57
 
57
58
  /**
58
- * Geometry's vertex normals.
59
+ * The Geometry's vertex normals.
59
60
  */
60
- normals: number[];
61
+ get normals(): number[];
62
+ set normals(arg: number[]);
61
63
 
62
64
  /**
63
- * Geometry's UV coordinates.
65
+ The Geometry's UV coordinates.
64
66
  */
65
- uv: number[];
67
+ get uv(): number[];
68
+ set uv(arg: number[]);
66
69
 
67
70
  /**
68
- * Geometry's vertex colors.
71
+ * The Geometry's vertex colors.
69
72
  */
70
- colors: number[];
73
+ get colors(): number[];
74
+ set colors(arg: number[]);
71
75
 
72
76
  /**
73
- * Geometry's indices.
77
+ * The Geometry's indices.
74
78
  */
75
- readonly indices: Uint16Array | Uint32Array;
79
+ get indices(): Uint16Array | Uint32Array;
76
80
 
77
81
  /**
78
82
  * Local-space axis-aligned 3D boundary (AABB) of this geometry.
79
83
  */
80
- readonly aabb: number[];
84
+ get aabb(): number[];
81
85
 
82
86
  /**
83
87
  * Local-space oriented 3D boundary (OBB) of this geometry.
84
88
  */
85
- readonly obb: number[];
89
+ get obb(): number[];
86
90
 
87
91
  /**
88
- * Surface area of this Mesh.
92
+ * Returns the surface area of this Mesh.
89
93
  * @returns {number}
90
94
  */
91
- readonly surfaceArea: number;
95
+ get surfaceArea(): number;
92
96
 
93
97
  /**
94
- * Centroid of this Mesh.
98
+ * Returns the centroid of this Mesh.
95
99
  * @returns {number}
96
100
  */
97
- readonly centroid: number;
101
+ get centroid(): number;
98
102
 
99
103
  /**
100
104
  * Approximate number of triangles in this ReadableGeometry.
101
105
  */
102
- readonly numTriangles: number;
106
+ get numTriangles(): number;
103
107
 
104
108
  destroy(): void;
105
109
  }
@@ -36,30 +36,30 @@ export declare class VBOGeometry extends Geometry {
36
36
  constructor(owner: Component, cfg?: VBOGeometryConfiguration);
37
37
 
38
38
  /**
39
- * Primitive type.
39
+ * Gets the primitive type.
40
40
  */
41
- readonly primitive: "points" | "lines"| "line-loop"| "line-strip"| "triangles"| "triangle-strip" | "triangle-fan";
41
+ get primitive(): "points" | "lines"| "line-loop"| "line-strip"| "triangles"| "triangle-strip" | "triangle-fan";
42
42
 
43
43
  /**
44
- * Local-space axis-aligned 3D boundary (AABB).
44
+ * Gets the local-space axis-aligned 3D boundary (AABB).
45
45
  *
46
46
  * The AABB is represented by a six-element Float64Array containing the min/max extents of the axis-aligned volume, ie. ````[xmin, ymin,zmin,xmax,ymax, zmax]````.
47
47
  */
48
- readonly aabb: Number[];
48
+ get aabb(): Number[];
49
49
 
50
50
  /**
51
- * Local-space oriented 3D boundary (OBB).
51
+ * Gets the local-space oriented 3D boundary (OBB).
52
52
  *
53
53
  * The OBB is represented by a 32-element Float64Array containing the eight vertices of the box, where each vertex is a homogeneous coordinate having [x,y,z,w] elements.
54
54
  */
55
- readonly obb: Number[];
55
+ get obb(): Number[];
56
56
 
57
57
  /**
58
58
  * Approximate number of triangles in this VBOGeometry.
59
59
  *
60
60
  * Will be zero if {@link VBOGeometry#primitive} is not 'triangles', 'triangle-strip' or 'triangle-fan'.
61
61
  */
62
- readonly numTriangles: Number;
62
+ get numTriangles(): Number;
63
63
 
64
64
  destroy(): void;
65
65
  }
@@ -18,18 +18,40 @@ export declare class AmbientLight extends Light {
18
18
  constructor(owner: Component, cfg: AmbientLightConfiguration);
19
19
 
20
20
  /**
21
- * The RGB color of this AmbientLight.
21
+ * Sets the RGB color of this AmbientLight.
22
22
  *
23
23
  * Default value is ````[0.7, 0.7, 0.8]````.
24
+ *
25
+ * @param {Number[]} color The AmbientLight's RGB color.
26
+ */
27
+ set color(color: number[]);
28
+
29
+ /**
30
+ * Gets the RGB color of this AmbientLight.
31
+ *
32
+ * Default value is ````[0.7, 0.7, 0.8]````.
33
+ *
34
+ * @returns {Number[]} The AmbientLight's RGB color.
24
35
  */
25
- color: number[];
36
+ get color(): number;
26
37
 
27
38
  /**
28
- * The intensity of this AmbientLight.
39
+ * Sets the intensity of this AmbientLight.
29
40
  *
30
41
  * Default value is ````1.0```` for maximum intensity.
42
+ *
43
+ * @param {Number} intensity The AmbientLight's intensity.
44
+ */
45
+ set intensity(intensity: number);
46
+
47
+ /**
48
+ * Gets the intensity of this AmbientLight.
49
+ *
50
+ * Default value is ````1.0```` for maximum intensity.
51
+ *
52
+ * @returns {Number} The AmbientLight's intensity.
31
53
  */
32
- intensity: number;
54
+ get intensity(): number;
33
55
 
34
56
  /**
35
57
  * Destroys this AmbientLight.
@@ -24,32 +24,76 @@ export declare class DirLight extends Light {
24
24
  constructor(owner: Component, cfg: DirLightConfiguration);
25
25
 
26
26
  /**
27
- * The direction in which the DirLight is shining.
27
+ * Sets the direction in which the DirLight is shining.
28
28
  *
29
29
  * Default value is ````[1.0, 1.0, 1.0]````.
30
+ *
31
+ * @param {Number[]} value The direction vector.
32
+ */
33
+ set dir(value: number);
34
+
35
+ /**
36
+ * Gets the direction in which the DirLight is shining.
37
+ *
38
+ * Default value is ````[1.0, 1.0, 1.0]````.
39
+ *
40
+ * @returns {Number[]} The direction vector.
30
41
  */
31
- dir: number[];
42
+ get dir(): number;
32
43
 
33
44
  /**
34
- * The RGB color of this DirLight.
45
+ * Sets the RGB color of this DirLight.
35
46
  *
36
47
  * Default value is ````[0.7, 0.7, 0.8]````.
48
+ *
49
+ * @param {Number[]} color The DirLight's RGB color.
50
+ */
51
+ set color(color: number[]);
52
+
53
+ /**
54
+ * Gets the RGB color of this DirLight.
55
+ *
56
+ * Default value is ````[0.7, 0.7, 0.8]````.
57
+ *
58
+ * @returns {Number[]} The DirLight's RGB color.
37
59
  */
38
- color: number[];
60
+ get color(): number[];
39
61
 
40
62
  /**
41
- * The intensity of this DirLight.
63
+ * Sets the intensity of this DirLight.
64
+ *
65
+ * Default intensity is ````1.0```` for maximum intensity.
66
+ *
67
+ * @param {Number} intensity The DirLight's intensity
68
+ */
69
+ set intensity(intensity: number);
70
+
71
+ /**
72
+ * Gets the intensity of this DirLight.
42
73
  *
43
74
  * Default value is ````1.0```` for maximum intensity.
75
+ *
76
+ * @returns {Number} The DirLight's intensity.
44
77
  */
45
- intensity: number;
78
+ get intensity(): number;
46
79
 
47
80
  /**
48
- * Whether this DirLight casts a shadow.
81
+ * Sets if this DirLight casts a shadow.
49
82
  *
50
83
  * Default value is ````false````.
84
+ *
85
+ * @param {Boolean} castsShadow Set ````true```` to cast shadows.
86
+ */
87
+ set castsShadow(castsShadow: boolean);
88
+
89
+ /**
90
+ * Gets if this DirLight casts a shadow.
91
+ *
92
+ * Default value is ````false````.
93
+ *
94
+ * @returns {Boolean} ````true```` if this DirLight casts shadows.
51
95
  */
52
- castsShadow: boolean;
96
+ get castsShadow(): boolean;
53
97
 
54
98
  /**
55
99
  * Destroys this DirLight.