@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
@@ -30,55 +30,134 @@ export declare class PointLight extends Light {
30
30
  constructor(owner: Component, cfg: PointLightConfiguration);
31
31
 
32
32
  /**
33
- * The position of this PointLight.
33
+ * Sets the position of this PointLight.
34
34
  *
35
35
  * This will be either World- or View-space, depending on the value of {@link PointLight#space}.
36
36
  *
37
37
  * Default value is ````[1.0, 1.0, 1.0]````.
38
+ *
39
+ * @param {Number[]} pos The position.
38
40
  */
39
- pos: number[];
41
+ set pos(pos: number[]);
40
42
 
41
43
  /**
42
- * The RGB color of this PointLight.
44
+ * Gets the position of this PointLight.
45
+ *
46
+ * This will be either World- or View-space, depending on the value of {@link PointLight#space}.
47
+ *
48
+ * Default value is ````[1.0, 1.0, 1.0]````.
49
+ *
50
+ * @returns {Number[]} The position.
51
+ */
52
+ get pos(): number[];
53
+
54
+ /**
55
+ * Sets the RGB color of this PointLight.
43
56
  *
44
57
  * Default value is ````[0.7, 0.7, 0.8]````.
58
+ *
59
+ * @param {Number[]} color The PointLight's RGB color.
45
60
  */
46
- color: number[];
61
+ set color(color: number[]);
47
62
 
48
63
  /**
49
- * The intensity of this PointLight.
64
+ * Gets the RGB color of this PointLight.
65
+ *
66
+ * Default value is ````[0.7, 0.7, 0.8]````.
67
+ *
68
+ * @returns {Number[]} The PointLight's RGB color.
69
+ */
70
+ get color(): number[];
71
+
72
+ /**
73
+ * Sets the intensity of this PointLight.
74
+ *
75
+ * Default intensity is ````1.0```` for maximum intensity.
76
+ *
77
+ * @param {Number} intensity The PointLight's intensity
78
+ */
79
+ set intensity(intensity: number);
80
+
81
+ /**
82
+ * Gets the intensity of this PointLight.
50
83
  *
51
84
  * Default value is ````1.0```` for maximum intensity.
85
+ *
86
+ * @returns {Number} The PointLight's intensity.
87
+ */
88
+ get intensity(): number;
89
+
90
+ /**
91
+ * Sets the constant attenuation factor for this PointLight.
92
+ *
93
+ * Default value is ````0````.
94
+ *
95
+ * @param {Number} value The constant attenuation factor.
52
96
  */
53
- intensity: number;
97
+ set constantAttenuation(value: number);
54
98
 
55
99
  /**
56
- * The constant attenuation factor for this PointLight.
100
+ * Gets the constant attenuation factor for this PointLight.
57
101
  *
58
102
  * Default value is ````0````.
103
+ *
104
+ * @returns {Number} The constant attenuation factor.
59
105
  */
60
- constantAttenuation: number;
106
+ get constantAttenuation(): number;
61
107
 
62
108
  /**
63
- * The linear attenuation factor for this PointLight.
109
+ * Sets the linear attenuation factor for this PointLight.
64
110
  *
65
111
  * Default value is ````0````.
112
+ *
113
+ * @param {Number} value The linear attenuation factor.
66
114
  */
67
- linearAttenuation: number;
115
+ set linearAttenuation(value: number);
68
116
 
69
117
  /**
70
- * The quadratic attenuation factor for this PointLight.
118
+ * Gets the linear attenuation factor for this PointLight.
71
119
  *
72
120
  * Default value is ````0````.
121
+ *
122
+ * @returns {Number} The linear attenuation factor.
73
123
  */
74
- quadraticAttenuation: number;
124
+ get linearAttenuation(): number;
75
125
 
76
126
  /**
77
- * Whether this PointLight casts a shadow.
127
+ * Sets the quadratic attenuation factor for this PointLight.
128
+ *
129
+ * Default value is ````0````.
130
+ *
131
+ * @param {Number} value The quadratic attenuation factor.
132
+ */
133
+ set quadraticAttenuation(value: number);
134
+
135
+ /**
136
+ * Gets the quadratic attenuation factor for this PointLight.
137
+ *
138
+ * Default value is ````0````.
139
+ *
140
+ * @returns {Number} The quadratic attenuation factor.
141
+ */
142
+ get quadraticAttenuation(): number;
143
+
144
+ /**
145
+ * Sets if this PointLight casts a shadow.
146
+ *
147
+ * Default value is ````false````.
148
+ *
149
+ * @param {Boolean} castsShadow Set ````true```` to cast shadows.
150
+ */
151
+ set castsShadow(castsShadow: boolean);
152
+
153
+ /**
154
+ * Gets if this PointLight casts a shadow.
78
155
  *
79
156
  * Default value is ````false````.
157
+ *
158
+ * @returns {Boolean} ````true```` if this PointLight casts shadows.
80
159
  */
81
- castsShadow: boolean;
160
+ get castsShadow(): boolean;
82
161
 
83
162
  /**
84
163
  * Destroys this PointLight.
@@ -26,33 +26,58 @@ export declare class EdgeMaterial extends Material {
26
26
  constructor(owner: Component, cfg?: EdgeMaterialConfiguration);
27
27
 
28
28
  /**
29
- * Available EdgeMaterial presets.
29
+ * Gets available EdgeMaterial presets.
30
30
  */
31
- readonly presets: any;
31
+ get presets(): any;
32
32
 
33
33
  /**
34
- * Preset EdgeMaterial configuration.
34
+ * Selects a preset EdgeMaterial configuration.
35
35
  * @type {String}
36
36
  */
37
- preset: string;
37
+ set preset(arg: string);
38
38
 
39
39
  /**
40
- * RGB edge color.
40
+ * The current preset EdgeMaterial configuration.
41
41
  */
42
- edgeColor: number[];
42
+ get preset(): string;
43
43
 
44
44
  /**
45
- * Edge transparency.
45
+ * Sets RGB edge color.
46
46
  */
47
- edgeAlpha: number;
47
+ set edgeColor(arg: number[]);
48
48
 
49
49
  /**
50
- * Edge width.
50
+ * Gets RGB edge color.
51
51
  */
52
- edgeWidth: number;
52
+ get edgeColor(): number[];
53
53
 
54
54
  /**
55
- * Whether edges are visible.
55
+ * Sets edge transparency.
56
56
  */
57
- edges: boolean;
57
+ set edgeAlpha(arg: number);
58
+
59
+ /**
60
+ * Gets edge transparency.
61
+ */
62
+ get edgeAlpha(): number;
63
+
64
+ /**
65
+ * Sets edge width.
66
+ */
67
+ set edgeWidth(arg: number);
68
+
69
+ /**
70
+ * Gets edge width.
71
+ */
72
+ get edgeWidth(): number;
73
+
74
+ /**
75
+ * Sets if edges are visible.
76
+ */
77
+ set edges(arg: boolean);
78
+
79
+ /**
80
+ * Gets if edges are visible.
81
+ */
82
+ get edges(): boolean;
58
83
  }
@@ -38,41 +38,68 @@ export declare class EmphasisMaterial extends Material {
38
38
  constructor(owner: Component, cfg?: EmphasisMaterialConfiguration);
39
39
 
40
40
  /**
41
- * Available EmphasisMaterial presets.
41
+ * Gets available EmphasisMaterial presets.
42
42
  *
43
43
  * @type {Object}
44
44
  */
45
- readonly presets: any;
45
+ get presets(): any;
46
46
 
47
47
  /**
48
- * Preset EmphasisMaterial configuration.
48
+ * Selects a preset EmphasisMaterial configuration.
49
49
  *
50
50
  * Default value is "default".
51
51
  *
52
52
  * @type {String}
53
53
  */
54
- preset: string;
54
+ set preset(arg: string);
55
55
 
56
56
  /**
57
- * Whether surfaces are filled with color.
57
+ * Gets the current preset EmphasisMaterial configuration.
58
+ *
59
+ * Default value is "default".
60
+ *
61
+ * @type {String}
62
+ */
63
+ get preset(): string;
64
+
65
+ /**
66
+ * Sets if surfaces are filled with color.
67
+ *
68
+ * Default is ````true````.
69
+ *
70
+ * @type {Boolean}
71
+ */
72
+ set fill(arg: boolean);
73
+
74
+ /**
75
+ * Gets if surfaces are filled with color.
58
76
  *
59
77
  * Default is ````true````.
60
78
  *
61
79
  * @type {Boolean}
62
80
  */
63
- fill: boolean;
81
+ get fill(): boolean;
64
82
 
65
83
  /**
66
- * RGB color of filled faces.
84
+ * Sets the RGB color of filled faces.
67
85
  *
68
86
  * Default is ````[0.4, 0.4, 0.4]````.
69
87
  *
70
88
  * @type {Number[]}
71
89
  */
72
- fillColor: number[];
90
+ set fillColor(arg: number[]);
73
91
 
74
92
  /**
75
- * Transparency of filled faces.
93
+ * Gets the RGB color of filled faces.
94
+ *
95
+ * Default is ````[0.4, 0.4, 0.4]````.
96
+ *
97
+ * @type {Number[]}
98
+ */
99
+ get fillColor(): number[];
100
+
101
+ /**
102
+ * Sets the transparency of filled faces.
76
103
  *
77
104
  * A value of ````0.0```` indicates fully transparent, ````1.0```` is fully opaque.
78
105
  *
@@ -80,28 +107,58 @@ export declare class EmphasisMaterial extends Material {
80
107
  *
81
108
  * @type {Number}
82
109
  */
83
- fillAlpha: number;
110
+ set fillAlpha(arg: number);
84
111
 
85
112
  /**
86
- * Whether edges are visible.
113
+ * Gets the transparency of filled faces.
114
+ *
115
+ * A value of ````0.0```` indicates fully transparent, ````1.0```` is fully opaque.
116
+ *
117
+ * Default is ````0.2````.
118
+ *
119
+ * @type {Number}
120
+ */
121
+
122
+ get fillAlpha(): number;
123
+
124
+ /**
125
+ * Sets if edges are visible.
87
126
  *
88
127
  * Default is ````true````.
89
128
  *
90
129
  * @type {Boolean}
91
130
  */
92
- edges: boolean;
131
+ set edges(arg: boolean);
93
132
 
94
133
  /**
95
- * RGB color of edges.
134
+ * Gets if edges are visible.
135
+ *
136
+ * Default is ````true````.
137
+ *
138
+ * @type {Boolean}
139
+ */
140
+ get edges(): boolean;
141
+
142
+ /**
143
+ * Sets the RGB color of edges.
96
144
  *
97
145
  * Default is ```` [0.2, 0.2, 0.2]````.
98
146
  *
99
147
  * @type {Number[]}
100
148
  */
101
- edgeColor: number[];
149
+ set edgeColor(arg: number[]);
102
150
 
103
151
  /**
104
- * Transparency of edges.
152
+ * Gets the RGB color of edges.
153
+ *
154
+ * Default is ```` [0.2, 0.2, 0.2]````.
155
+ *
156
+ * @type {Number[]}
157
+ */
158
+ get edgeColor(): number[];
159
+
160
+ /**
161
+ * Sets the transparency of edges.
105
162
  *
106
163
  * A value of ````0.0```` indicates fully transparent, ````1.0```` is fully opaque.
107
164
  *
@@ -109,10 +166,32 @@ export declare class EmphasisMaterial extends Material {
109
166
  *
110
167
  * @type {Number}
111
168
  */
112
- edgeAlpha: number;
169
+ set edgeAlpha(arg: number);
170
+
171
+ /**
172
+ * Gets the transparency of edges.
173
+ *
174
+ * A value of ````0.0```` indicates fully transparent, ````1.0```` is fully opaque.
175
+ *
176
+ * Default is ````0.2````.
177
+ *
178
+ * @type {Number}
179
+ */
180
+ get edgeAlpha(): number;
181
+
182
+ /**
183
+ * Sets edge width.
184
+ *
185
+ * This is not supported by WebGL implementations based on DirectX [2019].
186
+ *
187
+ * Default value is ````1.0```` pixels.
188
+ *
189
+ * @type {Number}
190
+ */
191
+ set edgeWidth(arg: number);
113
192
 
114
193
  /**
115
- * Edge width.
194
+ * Gets edge width.
116
195
  *
117
196
  * This is not supported by WebGL implementations based on DirectX [2019].
118
197
  *
@@ -120,19 +199,28 @@ export declare class EmphasisMaterial extends Material {
120
199
  *
121
200
  * @type {Number}
122
201
  */
123
- edgeWidth: number;
202
+ get edgeWidth(): number;
124
203
 
125
204
  /**
126
- * Whether to render backfaces when {@link EmphasisMaterial.fill} is ````true````.
205
+ * Sets whether to render backfaces when {@link EmphasisMaterial.fill} is ````true````.
127
206
  *
128
207
  * Default is ````false````.
129
208
  *
130
209
  * @type {Boolean}
131
210
  */
132
- backfaces: boolean;
211
+ set backfaces(arg: boolean);
133
212
 
134
213
  /**
135
- * Whether to render emphasized objects over the top of other objects, as if they were "glowing through".
214
+ * Gets whether to render backfaces when {@link EmphasisMaterial.fill} is ````true````.
215
+ *
216
+ * Default is ````true````.
217
+ *
218
+ * @type {Boolean}
219
+ */
220
+ get backfaces(): boolean;
221
+
222
+ /**
223
+ * Sets whether to render emphasized objects over the top of other objects, as if they were "glowing through".
136
224
  *
137
225
  * Default is ````true````.
138
226
  *
@@ -140,7 +228,16 @@ export declare class EmphasisMaterial extends Material {
140
228
  *
141
229
  * @type {Boolean}
142
230
  */
143
- glowThrough: boolean;
231
+ set glowThrough(arg: boolean);
232
+
233
+ /**
234
+ * Sets whether to render emphasized objects over the top of other objects, as if they were "glowing through".
235
+ *
236
+ * Default is ````true````.
237
+ *
238
+ * @type {Boolean}
239
+ */
240
+ get glowThrough(): boolean;
144
241
 
145
242
  /**
146
243
  * Destroys this EmphasisMaterial.
@@ -24,45 +24,85 @@ export declare class Fresnel extends Component {
24
24
  constructor(owner: Component, cfg?: FresnelMaterialConfiguration);
25
25
 
26
26
  /**
27
- * Fresnel's edge color.
27
+ * Sets the Fresnel's edge color.
28
28
  *
29
29
  * Default value is ````[0.0, 0.0, 0.0]````.
30
30
  *
31
31
  * @type {Number[]}
32
32
  */
33
- edgeColor: number[];
33
+ set edgeColor(arg: number[]);
34
34
  /**
35
- * Fresnel's center color.
35
+ * Gets the Fresnel's edge color.
36
+ *
37
+ * Default value is ````[0.0, 0.0, 0.0]````.
38
+ *
39
+ * @type {Number[]}
40
+ */
41
+ get edgeColor(): number[];
42
+ /**
43
+ * Sets the Fresnel's center color.
36
44
  *
37
45
  * Default value is ````[1.0, 1.0, 1.0]````.
38
46
  *
39
47
  * @type {Number[]}
40
48
  */
41
- centerColor: number[];
49
+ set centerColor(arg: number[]);
50
+ /**
51
+ * Gets the Fresnel's center color.
52
+ *
53
+ * Default value is ````[1.0, 1.0, 1.0]````.
54
+ *
55
+ * @type {Number[]}
56
+ */
57
+ get centerColor(): number[];
58
+ /**
59
+ * Sets the Fresnel's edge bias.
60
+ *
61
+ * Default value is ````0````.
62
+ *
63
+ * @type {Number}
64
+ */
65
+ set edgeBias(arg: number);
42
66
  /**
43
- * Fresnel's edge bias.
67
+ * Gets the Fresnel's edge bias.
44
68
  *
45
69
  * Default value is ````0````.
46
70
  *
47
71
  * @type {Number}
48
72
  */
49
- edgeBias: number;
73
+ get edgeBias(): number;
74
+ /**
75
+ * Sets the Fresnel's center bias.
76
+ *
77
+ * Default value is ````1````.
78
+ *
79
+ * @type {Number}
80
+ */
81
+ set centerBias(arg: number);
82
+ /**
83
+ * Gets the Fresnel's center bias.
84
+ *
85
+ * Default value is ````1````.
86
+ *
87
+ * @type {Number}
88
+ */
89
+ get centerBias(): number;
50
90
  /**
51
- * Fresnel's center bias.
91
+ * Sets the Fresnel's power.
52
92
  *
53
93
  * Default value is ````1````.
54
94
  *
55
95
  * @type {Number}
56
96
  */
57
- centerBias: number;
97
+ set power(arg: number);
58
98
  /**
59
- * Fresnel's power.
99
+ * Gets the Fresnel's power.
60
100
  *
61
101
  * Default value is ````1````.
62
102
  *
63
103
  * @type {Number}
64
104
  */
65
- power: number;
105
+ get power(): number;
66
106
 
67
107
  /**
68
108
  * Destroys this Fresnel.
@@ -38,34 +38,72 @@ export declare class LambertMaterial extends Material {
38
38
  constructor(owner: Component, cfg?: LambertMaterialConfiguration);
39
39
 
40
40
  /**
41
- * LambertMaterial's ambient color.
41
+ * Sets the LambertMaterial's ambient color.
42
42
  *
43
43
  * Default value is ````[0.3, 0.3, 0.3]````.
44
44
  *
45
45
  * @type {Number[]}
46
46
  */
47
- ambient: number[];
47
+ set ambient(value: number[]);
48
48
 
49
49
  /**
50
- * LambertMaterial's diffuse color.
50
+ * Gets the LambertMaterial's ambient color.
51
+ *
52
+ * Default value is ````[0.3, 0.3, 0.3]````.
53
+ *
54
+ * @type {Number[]}
55
+ */
56
+ get ambient(): number[];
57
+
58
+ /**
59
+ * Sets the LambertMaterial's diffuse color.
51
60
  *
52
61
  * Default value is ````[1.0, 1.0, 1.0]````.
53
62
  *
54
63
  * @type {Number[]}
55
64
  */
56
- color: number[];
65
+ set color(value: number[]);
66
+
67
+ /**
68
+ * Gets the LambertMaterial's diffuse color.
69
+ *
70
+ * Default value is ````[1.0, 1.0, 1.0]````.
71
+ *
72
+ * @type {Number[]}
73
+ */
74
+ get color(): number[];
57
75
 
58
76
  /**
59
- * LambertMaterial's emissive color.
77
+ * Sets the LambertMaterial's emissive color.
60
78
  *
61
79
  * Default value is ````[0.0, 0.0, 0.0]````.
62
80
  *
63
81
  * @type {Number[]}
64
82
  */
65
- emissive: number[];
83
+ set emissive(value: number[]);
84
+
85
+ /**
86
+ * Gets the LambertMaterial's emissive color.
87
+ *
88
+ * Default value is ````[0.0, 0.0, 0.0]````.
89
+ *
90
+ * @type {Number[]}
91
+ */
92
+ get emissive(): number[];
93
+
94
+ /**
95
+ * Sets factor in the range ````[0..1]```` indicating how transparent the LambertMaterial is.
96
+ *
97
+ * A value of ````0.0```` indicates fully transparent, ````1.0```` is fully opaque.
98
+ *
99
+ * Default value is ````1.0````
100
+ *
101
+ * @type {Number}
102
+ */
103
+ set alpha(value: number);
66
104
 
67
105
  /**
68
- * Factor in the range ````[0..1]```` indicating how transparent the LambertMaterial is.
106
+ * Gets factor in the range ````[0..1]```` indicating how transparent the LambertMaterial is.
69
107
  *
70
108
  * A value of ````0.0```` indicates fully transparent, ````1.0```` is fully opaque.
71
109
  *
@@ -73,10 +111,10 @@ export declare class LambertMaterial extends Material {
73
111
  *
74
112
  * @type {Number}
75
113
  */
76
- alpha: number;
114
+ get alpha(): number;
77
115
 
78
116
  /**
79
- * LambertMaterial's line width.
117
+ * Sets the LambertMaterial's line width.
80
118
  *
81
119
  * This is not supported by WebGL implementations based on DirectX [2019].
82
120
  *
@@ -84,32 +122,68 @@ export declare class LambertMaterial extends Material {
84
122
  *
85
123
  * @type {Number}
86
124
  */
87
- lineWidth: number;
125
+ set lineWidth(value: number);
88
126
 
89
127
  /**
90
- * LambertMaterial's point size.
128
+ * Gets the LambertMaterial's line width.
129
+ *
130
+ * This is not supported by WebGL implementations based on DirectX [2019].
91
131
  *
92
132
  * Default value is ````1.0````.
93
133
  *
94
134
  * @type {Number}
95
135
  */
96
- pointSize: number;
136
+ get lineWidth(): number;
97
137
 
98
138
  /**
99
- * Whether backfaces are visible on attached {@link Mesh}es.
139
+ * Sets the LambertMaterial's point size.
140
+ *
141
+ * Default value is ````1.0````.
142
+ *
143
+ * @type {Number}
144
+ */
145
+ set pointSize(value: number);
146
+
147
+ /**
148
+ * Gets the LambertMaterial's point size.
149
+ *
150
+ * Default value is ````1.0````.
151
+ *
152
+ * @type {Number}
153
+ */
154
+ get pointSize(): number;
155
+
156
+ /**
157
+ * Sets whether backfaces are visible on attached {@link Mesh}es.
158
+ *
159
+ * @type {Boolean}
160
+ */
161
+ set backfaces(value: boolean);
162
+
163
+ /**
164
+ * Gets whether backfaces are visible on attached {@link Mesh}es.
100
165
  *
101
166
  * @type {Boolean}
102
167
  */
103
- backfaces: boolean;
168
+ get backfaces(): boolean;
169
+
170
+ /**
171
+ * Sets the winding direction of front faces of {@link Geometry} of attached {@link Mesh}es.
172
+ *
173
+ * Default value is ````"ccw"````.
174
+ *
175
+ * @type {String}
176
+ */
177
+ set frontface(value: "cw" | "ccw");
104
178
 
105
179
  /**
106
- * Winding direction of front faces of {@link Geometry} of attached {@link Mesh}es.
180
+ * Gets the winding direction of front faces of {@link Geometry} of attached {@link Mesh}es.
107
181
  *
108
182
  * Default value is ````"ccw"````.
109
183
  *
110
184
  * @type {String}
111
185
  */
112
- frontface: "cw" | "ccw";
186
+ get frontface(): "cw" | "ccw";
113
187
 
114
188
  /**
115
189
  * Destroys this LambertMaterial.