@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.
- package/dist/xeokit-sdk.cjs.js +32532 -15213
- package/dist/xeokit-sdk.es.js +32531 -15214
- package/dist/xeokit-sdk.es5.js +29446 -30855
- package/dist/xeokit-sdk.min.cjs.js +8 -8
- package/dist/xeokit-sdk.min.es.js +8 -8
- package/dist/xeokit-sdk.min.es5.js +33 -34
- package/package.json +4 -7
- package/src/plugins/CxConverterIFCLoaderPlugin/CxConverterIFCLoaderPlugin.js +68 -68
- package/src/plugins/CxConverterIFCLoaderPlugin/index.js +1 -1
- package/src/plugins/LASLoaderPlugin/index.js +1 -1
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV1.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV10.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV12.js +9 -9
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV2.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV3.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV4.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV5.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV6.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV7.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV8.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV9.js +5 -5
- package/src/plugins/index.js +2 -2
- package/src/viewer/scene/Entity.js +6 -0
- package/src/viewer/scene/model/SceneModelEntity.js +26 -0
- package/src/viewer/scene/model/vbo/batching/triangles/VBOBatchingTrianglesLayer.js +44 -0
- package/src/viewer/scene/model/vbo/instancing/triangles/VBOInstancingTrianglesLayer.js +58 -0
- package/src/viewer/scene/sectionCaps/SectionCaps.js +33 -27
- package/src/viewer/scene/webgl/ArrayBuf.js +20 -0
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +108 -26
- package/types/plugins/CityJSONLoaderPlugin/CityJSONLoaderPlugin.d.ts +14 -3
- package/types/plugins/DotBIMLoaderPlugin/DotBIMLoaderPlugin.d.ts +23 -5
- package/types/plugins/GLTFLoaderPlugin/GLTFLoaderPlugin.d.ts +25 -5
- package/types/plugins/LASLoaderPlugin/LASLoaderPlugin.d.ts +100 -20
- package/types/plugins/STLLoaderPlugin/STLLoaderPlugin.d.ts +14 -3
- package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +83 -18
- package/types/plugins/XKTLoaderPlugin/XKTLoaderPlugin.d.ts +106 -21
- package/types/viewer/Configs.d.ts +24 -6
- package/types/viewer/scene/CameraControl/CameraControl.d.ts +445 -66
- package/types/viewer/scene/Component.d.ts +1 -1
- package/types/viewer/scene/Entity.d.ts +191 -40
- package/types/viewer/scene/camera/Camera.d.ts +170 -50
- package/types/viewer/scene/camera/CameraFlightAnimation.d.ts +57 -8
- package/types/viewer/scene/camera/CameraPath.d.ts +13 -8
- package/types/viewer/scene/camera/CameraPathAnimation.d.ts +22 -4
- package/types/viewer/scene/camera/CustomProjection.d.ts +21 -6
- package/types/viewer/scene/camera/Frustum.d.ts +90 -18
- package/types/viewer/scene/camera/Ortho.d.ts +54 -14
- package/types/viewer/scene/camera/Perspective.d.ts +70 -16
- package/types/viewer/scene/geometry/ReadableGeometry.d.ts +25 -21
- package/types/viewer/scene/geometry/VBOGeometry.d.ts +7 -7
- package/types/viewer/scene/lights/AmbientLight.d.ts +26 -4
- package/types/viewer/scene/lights/DirLight.d.ts +52 -8
- package/types/viewer/scene/lights/PointLight.d.ts +93 -14
- package/types/viewer/scene/materials/EdgeMaterial.d.ts +37 -12
- package/types/viewer/scene/materials/EmphasisMaterial.d.ts +119 -22
- package/types/viewer/scene/materials/Fresnel.d.ts +50 -10
- package/types/viewer/scene/materials/LambertMaterial.d.ts +90 -16
- package/types/viewer/scene/materials/LinesMaterial.d.ts +25 -7
- package/types/viewer/scene/materials/MetallicMaterial.d.ts +127 -40
- package/types/viewer/scene/materials/PhongMaterial.d.ts +185 -52
- package/types/viewer/scene/materials/PointsMaterial.d.ts +101 -20
- package/types/viewer/scene/materials/SpecularMaterial.d.ts +117 -41
- package/types/viewer/scene/materials/Texture.d.ts +62 -22
- package/types/viewer/scene/models/SceneModel.d.ts +233 -76
- package/types/viewer/scene/models/SceneModelEntity.d.ts +217 -51
- package/types/viewer/scene/models/SceneModelMesh.d.ts +4 -4
- package/types/viewer/scene/models/SceneModelTransform.d.ts +59 -14
- package/types/viewer/scene/paths/CubicBezierCurve.d.ts +73 -12
- package/types/viewer/scene/paths/Curve.d.ts +19 -6
- package/types/viewer/scene/paths/Path.d.ts +57 -10
- package/types/viewer/scene/paths/QuadraticBezierCurve.d.ts +57 -10
- package/types/viewer/scene/paths/SplineCurve.d.ts +32 -6
- package/types/viewer/scene/scene/Scene.d.ts +196 -94
- package/types/viewer/scene/sectionPlane/SectionPlane.d.ts +69 -12
- package/types/viewer/scene/viewport/Viewport.d.ts +14 -4
- package/types/viewer/scene/webgl/PickResult.d.ts +28 -13
- package/dist/xeokit-sdk.es5.js.map +0 -1
- package/dist/xeokit-sdk.min.es5.js.map +0 -1
|
@@ -55,26 +55,33 @@ export declare class SpecularMaterial extends Material {
|
|
|
55
55
|
constructor(owner: Component, cfg?: SpecularMaterialConfiguration)
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
|
-
* RGB diffuse color of this SpecularMaterial.
|
|
58
|
+
* Sets the 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
|
-
diffuse: number[];
|
|
65
|
+
set diffuse(value: number[]);
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
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.
|
|
69
76
|
*
|
|
70
77
|
* The *RGB* components multipliues by the {@link SpecularMaterial#diffuse} property, while the *A* component, if present, multiplies by the {@link SpecularMaterial#alpha} property.
|
|
71
78
|
*
|
|
72
79
|
* @type {Texture}
|
|
73
80
|
*/
|
|
74
|
-
|
|
81
|
+
get diffuseMap(): Texture;
|
|
75
82
|
|
|
76
83
|
/**
|
|
77
|
-
* RGB specular color of this SpecularMaterial.
|
|
84
|
+
* Sets the RGB specular color of this SpecularMaterial.
|
|
78
85
|
*
|
|
79
86
|
* Multiplies by {@link SpecularMaterial#specularMap} and the *A* component of {@link SpecularMaterial#specularGlossinessMap}.
|
|
80
87
|
*
|
|
@@ -82,28 +89,35 @@ export declare class SpecularMaterial extends Material {
|
|
|
82
89
|
*
|
|
83
90
|
* @type {Number[]}
|
|
84
91
|
*/
|
|
85
|
-
specular: number[];
|
|
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[];
|
|
86
100
|
|
|
87
101
|
/**
|
|
88
|
-
* RGB texture containing the specular color of this SpecularMaterial.
|
|
102
|
+
* Gets the RGB texture containing the specular color of this SpecularMaterial.
|
|
89
103
|
*
|
|
90
104
|
* Multiplies by {@link SpecularMaterial#specular}.
|
|
91
105
|
*
|
|
92
106
|
* @type {Texture}
|
|
93
107
|
*/
|
|
94
|
-
|
|
108
|
+
get specularMap(): Texture;
|
|
95
109
|
|
|
96
110
|
/**
|
|
97
|
-
* RGBA texture containing this SpecularMaterial's specular color in its *RGB* components and glossiness in its *A* component.
|
|
111
|
+
* Gets the RGBA texture containing this SpecularMaterial's specular color in its *RGB* components and glossiness in its *A* component.
|
|
98
112
|
*
|
|
99
113
|
* The *RGB* components multiplies {@link SpecularMaterial#specular}, while the *A* component multiplies by {@link SpecularMaterial#glossiness}.
|
|
100
114
|
*
|
|
101
115
|
* @type {Texture}
|
|
102
116
|
*/
|
|
103
|
-
|
|
117
|
+
get specularGlossinessMap(): Texture;
|
|
104
118
|
|
|
105
119
|
/**
|
|
106
|
-
* Factor in the range [0..1] indicating how glossy this SpecularMaterial is.
|
|
120
|
+
* Sets the Factor in the range [0..1] indicating how glossy this SpecularMaterial is.
|
|
107
121
|
*
|
|
108
122
|
* ````0```` is no glossiness, ````1```` is full glossiness.
|
|
109
123
|
*
|
|
@@ -113,27 +127,40 @@ export declare class SpecularMaterial extends Material {
|
|
|
113
127
|
*
|
|
114
128
|
* @type {Number}
|
|
115
129
|
*/
|
|
116
|
-
glossiness: number;
|
|
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;
|
|
117
137
|
|
|
118
138
|
/**
|
|
119
|
-
* RGB texture containing this SpecularMaterial's glossiness in its *R* component.
|
|
139
|
+
* Gets the RGB texture containing this SpecularMaterial's glossiness in its *R* component.
|
|
120
140
|
*
|
|
121
141
|
* The *R* component multiplies by {@link SpecularMaterial#glossiness}.
|
|
122
|
-
|
|
142
|
+
** @type {Texture}
|
|
123
143
|
*/
|
|
124
|
-
|
|
144
|
+
get glossinessMap(): Texture;
|
|
125
145
|
|
|
126
146
|
/**
|
|
127
|
-
*
|
|
147
|
+
* Sets the factor in the range ````[0..1]```` indicating amount of specular Fresnel.
|
|
128
148
|
*
|
|
129
149
|
* Default value is ````0.0````.
|
|
130
150
|
*
|
|
131
151
|
* @type {Number}
|
|
132
152
|
*/
|
|
133
|
-
specularF0: number;
|
|
153
|
+
set specularF0(value: number);
|
|
134
154
|
|
|
135
155
|
/**
|
|
136
|
-
*
|
|
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.
|
|
137
164
|
*
|
|
138
165
|
* Multiplies by {@link SpecularMaterial#emissiveMap}.
|
|
139
166
|
|
|
@@ -141,19 +168,26 @@ export declare class SpecularMaterial extends Material {
|
|
|
141
168
|
*
|
|
142
169
|
* @type {Number[]}
|
|
143
170
|
*/
|
|
144
|
-
emissive: number[];
|
|
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[];
|
|
145
179
|
|
|
146
180
|
/**
|
|
147
|
-
* RGB texture containing the emissive color of this SpecularMaterial.
|
|
181
|
+
* Gets the RGB texture containing the emissive color of this SpecularMaterial.
|
|
148
182
|
*
|
|
149
183
|
* Multiplies by {@link SpecularMaterial#emissive}.
|
|
150
184
|
*
|
|
151
185
|
* @type {Texture}
|
|
152
186
|
*/
|
|
153
|
-
|
|
187
|
+
get emissiveMap(): Texture;
|
|
154
188
|
|
|
155
189
|
/**
|
|
156
|
-
*
|
|
190
|
+
* Sets the factor in the range [0..1] indicating how transparent this SpecularMaterial is.
|
|
157
191
|
*
|
|
158
192
|
* A value of ````0.0```` is fully transparent, while ````1.0```` is fully opaque.
|
|
159
193
|
*
|
|
@@ -163,35 +197,42 @@ export declare class SpecularMaterial extends Material {
|
|
|
163
197
|
*
|
|
164
198
|
* @type {Number}
|
|
165
199
|
*/
|
|
166
|
-
alpha: number;
|
|
200
|
+
set alpha(value: number);
|
|
167
201
|
|
|
168
202
|
/**
|
|
169
|
-
*
|
|
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.
|
|
170
211
|
*
|
|
171
212
|
* The *R* component multiplies by the {@link SpecularMaterial#alpha} property.
|
|
172
213
|
*
|
|
173
214
|
* @type {Texture}
|
|
174
215
|
*/
|
|
175
|
-
|
|
216
|
+
get alphaMap(): Texture;
|
|
176
217
|
|
|
177
218
|
/**
|
|
178
|
-
* RGB tangent-space normal {@link Texture} attached to this SpecularMaterial.
|
|
219
|
+
* Gets the RGB tangent-space normal {@link Texture} attached to this SpecularMaterial.
|
|
179
220
|
*
|
|
180
221
|
* @type {Texture}
|
|
181
222
|
*/
|
|
182
|
-
|
|
223
|
+
get normalMap(): Texture;
|
|
183
224
|
|
|
184
225
|
/**
|
|
185
|
-
* RGB ambient occlusion {@link Texture} attached to this SpecularMaterial.
|
|
226
|
+
* Gets the RGB ambient occlusion {@link Texture} attached to this SpecularMaterial.
|
|
186
227
|
*
|
|
187
228
|
* Multiplies by the specular and diffuse light reflected by surfaces.
|
|
188
229
|
*
|
|
189
230
|
* @type {Texture}
|
|
190
231
|
*/
|
|
191
|
-
|
|
232
|
+
get occlusionMap(): Texture;
|
|
192
233
|
|
|
193
234
|
/**
|
|
194
|
-
*
|
|
235
|
+
* Sets the alpha rendering mode.
|
|
195
236
|
*
|
|
196
237
|
* This governs how alpha is treated. Alpha is the combined result of the {@link SpecularMaterial#alpha} and {@link SpecularMaterial#alphaMap} properties.
|
|
197
238
|
*
|
|
@@ -203,10 +244,10 @@ export declare class SpecularMaterial extends Material {
|
|
|
203
244
|
*
|
|
204
245
|
* @type {String}
|
|
205
246
|
*/
|
|
206
|
-
alphaMode: "opaque" | "blend" | "mask";
|
|
247
|
+
set alphaMode(alphaMode: "opaque" | "blend" | "mask");
|
|
207
248
|
|
|
208
249
|
/**
|
|
209
|
-
*
|
|
250
|
+
* Sets the alpha cutoff value.
|
|
210
251
|
*
|
|
211
252
|
* 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.
|
|
212
253
|
*
|
|
@@ -216,10 +257,17 @@ export declare class SpecularMaterial extends Material {
|
|
|
216
257
|
*
|
|
217
258
|
* @type {Number}
|
|
218
259
|
*/
|
|
219
|
-
alphaCutoff: number;
|
|
260
|
+
set alphaCutoff(alphaCutoff: number);
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Gets the alpha cutoff value.
|
|
264
|
+
|
|
265
|
+
* @type {Number}
|
|
266
|
+
*/
|
|
267
|
+
get alphaCutoff(): number;
|
|
220
268
|
|
|
221
269
|
/**
|
|
222
|
-
*
|
|
270
|
+
* Sets whether backfaces are visible on attached {@link Mesh}es.
|
|
223
271
|
*
|
|
224
272
|
* The backfaces will belong to {@link ReadableGeometry} compoents that are also attached to the {@link Mesh}es.
|
|
225
273
|
*
|
|
@@ -227,19 +275,33 @@ export declare class SpecularMaterial extends Material {
|
|
|
227
275
|
*
|
|
228
276
|
* @type {Boolean}
|
|
229
277
|
*/
|
|
230
|
-
backfaces: boolean;
|
|
278
|
+
set backfaces(value: boolean);
|
|
231
279
|
|
|
232
280
|
/**
|
|
233
|
-
*
|
|
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.
|
|
234
289
|
*
|
|
235
290
|
* Default value is ````"ccw"````.
|
|
236
291
|
*
|
|
237
292
|
* @type {String}
|
|
238
293
|
*/
|
|
239
|
-
frontface: "cw" | "ccw";
|
|
294
|
+
set frontface(value: "cw" | "ccw");
|
|
240
295
|
|
|
241
296
|
/**
|
|
242
|
-
*
|
|
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.
|
|
243
305
|
*
|
|
244
306
|
* This is not supported by WebGL implementations based on DirectX [2019].
|
|
245
307
|
*
|
|
@@ -247,16 +309,30 @@ export declare class SpecularMaterial extends Material {
|
|
|
247
309
|
*
|
|
248
310
|
* @type {Number}
|
|
249
311
|
*/
|
|
250
|
-
lineWidth: number;
|
|
312
|
+
set lineWidth(value: number);
|
|
251
313
|
|
|
252
314
|
/**
|
|
253
|
-
* SpecularMaterial's
|
|
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.
|
|
254
323
|
*
|
|
255
324
|
* Default value is ````1.0````.
|
|
256
325
|
*
|
|
257
326
|
* @type {Number}
|
|
258
327
|
*/
|
|
259
|
-
pointSize: number;
|
|
328
|
+
set pointSize(value: number);
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Sets the SpecularMaterial's point size.
|
|
332
|
+
*
|
|
333
|
+
* @type {Number}
|
|
334
|
+
*/
|
|
335
|
+
get pointSize(): number;
|
|
260
336
|
|
|
261
337
|
/**
|
|
262
338
|
* Destroys this SpecularMaterial.
|
|
@@ -35,48 +35,88 @@ export declare class Texture extends Component {
|
|
|
35
35
|
constructor(owner: Component, cfg?: TextureConfiguration);
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
* 2D translation vector added to this Texture's *S* and *T* UV coordinates.
|
|
38
|
+
* Sets the 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
|
-
translate: number[];
|
|
44
|
+
set translate(arg: number[]);
|
|
45
45
|
/**
|
|
46
|
-
* 2D
|
|
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.
|
|
47
63
|
*
|
|
48
64
|
* Default value is ````[1, 1]````.
|
|
49
65
|
*
|
|
50
66
|
* @type {Number[]}
|
|
51
67
|
*/
|
|
52
|
-
scale: number[];
|
|
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);
|
|
53
77
|
/**
|
|
54
|
-
*
|
|
78
|
+
* Gets the rotation angles, in degrees, that will be applied to this Texture's *S* and *T* UV coordinates.
|
|
55
79
|
*
|
|
56
80
|
* Default value is ````0````.
|
|
57
81
|
*
|
|
58
82
|
* @type {Number}
|
|
59
83
|
*/
|
|
60
|
-
rotate: number;
|
|
84
|
+
get rotate(): number;
|
|
61
85
|
/**
|
|
62
|
-
*
|
|
86
|
+
* Sets path to an image file to source this Texture from.
|
|
63
87
|
*
|
|
64
88
|
* Sets {@link Texture.image} null.
|
|
65
89
|
*
|
|
66
90
|
* @type {String}
|
|
67
91
|
*/
|
|
68
|
-
src: string;
|
|
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;
|
|
69
101
|
/**
|
|
70
|
-
* HTML DOM Image object to source this Texture from.
|
|
102
|
+
* Sets an HTML DOM Image object to source this Texture from.
|
|
71
103
|
*
|
|
72
104
|
* Sets {@link Texture.src} null.
|
|
73
105
|
*
|
|
74
106
|
* @type {HTMLImageElement}
|
|
75
107
|
*/
|
|
76
|
-
image: HTMLImageElement;
|
|
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;
|
|
77
117
|
|
|
78
118
|
/**
|
|
79
|
-
*
|
|
119
|
+
* Gets how this Texture is sampled when a texel covers less than one pixel.
|
|
80
120
|
*
|
|
81
121
|
* Options are:
|
|
82
122
|
*
|
|
@@ -111,9 +151,9 @@ export declare class Texture extends Component {
|
|
|
111
151
|
*
|
|
112
152
|
* @type {String}
|
|
113
153
|
*/
|
|
114
|
-
|
|
154
|
+
get minFilter(): string;
|
|
115
155
|
/**
|
|
116
|
-
*
|
|
156
|
+
* Gets how this Texture is sampled when a texel covers more than one pixel.
|
|
117
157
|
*
|
|
118
158
|
* * "nearest" - Uses the value of the texture element that is nearest
|
|
119
159
|
* (in Manhattan distance) to the center of the pixel being textured.
|
|
@@ -124,9 +164,9 @@ export declare class Texture extends Component {
|
|
|
124
164
|
*
|
|
125
165
|
* @type {String}
|
|
126
166
|
*/
|
|
127
|
-
|
|
167
|
+
get magFilter(): string;
|
|
128
168
|
/**
|
|
129
|
-
*
|
|
169
|
+
* Gets the wrap parameter for this Texture's *S* coordinate.
|
|
130
170
|
*
|
|
131
171
|
* Values can be:
|
|
132
172
|
*
|
|
@@ -141,9 +181,9 @@ export declare class Texture extends Component {
|
|
|
141
181
|
*
|
|
142
182
|
* @type {String}
|
|
143
183
|
*/
|
|
144
|
-
|
|
184
|
+
get wrapS(): string;
|
|
145
185
|
/**
|
|
146
|
-
*
|
|
186
|
+
* Gets the wrap parameter for this Texture's *T* coordinate.
|
|
147
187
|
*
|
|
148
188
|
* Values can be:
|
|
149
189
|
*
|
|
@@ -158,19 +198,19 @@ export declare class Texture extends Component {
|
|
|
158
198
|
*
|
|
159
199
|
* @type {String}
|
|
160
200
|
*/
|
|
161
|
-
|
|
201
|
+
get wrapT(): string;
|
|
162
202
|
/**
|
|
163
|
-
*
|
|
203
|
+
* Gets if this Texture's source data is flipped along its vertical axis.
|
|
164
204
|
*
|
|
165
205
|
* @type {Boolean}
|
|
166
206
|
*/
|
|
167
|
-
|
|
207
|
+
get flipY(): boolean;
|
|
168
208
|
/**
|
|
169
|
-
* Texture's encoding format.
|
|
209
|
+
* Gets the Texture's encoding format.
|
|
170
210
|
*
|
|
171
211
|
* @type {String}
|
|
172
212
|
*/
|
|
173
|
-
|
|
213
|
+
get encoding(): string;
|
|
174
214
|
/**
|
|
175
215
|
* Destroys this Texture
|
|
176
216
|
*/
|