@xeokit/xeokit-sdk 2.2.5-beta-2 → 2.2.5-beta-3

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 (67) hide show
  1. package/dist/xeokit-sdk.cjs.js +16 -16
  2. package/dist/xeokit-sdk.es.js +16 -16
  3. package/package.json +7 -4
  4. package/types/extras/ContextMenu/ContextMenu.d.ts +8 -8
  5. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +1 -1
  6. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsControl.d.ts +26 -1
  7. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsPlugin.d.ts +76 -62
  8. package/types/plugins/AnnotationsPlugin/Annotation.d.ts +11 -10
  9. package/types/plugins/AnnotationsPlugin/AnnotationsPlugin.d.ts +32 -18
  10. package/types/plugins/AnnotationsPlugin/index.d.ts +1 -0
  11. package/types/plugins/AxisGizmoPlugin/AxisGizmoPlugin.d.ts +1 -1
  12. package/types/plugins/BCFViewpointsPlugin/BCFViewpointsPlugin.d.ts +10 -10
  13. package/types/plugins/CityJSONLoaderPlugin/CityJSONLoaderPlugin.d.ts +2 -2
  14. package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurement.d.ts +6 -6
  15. package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsControl.d.ts +26 -1
  16. package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsPlugin.d.ts +22 -7
  17. package/types/plugins/FastNavPlugin/FastNavPlugin.d.ts +9 -9
  18. package/types/plugins/GLTFLoaderPlugin/GLTFLoaderPlugin.d.ts +8 -8
  19. package/types/plugins/LASLoaderPlugin/LASLoaderPlugin.d.ts +4 -4
  20. package/types/plugins/NavCubePlugin/NavCubePlugin.d.ts +6 -6
  21. package/types/plugins/OBJLoaderPlugin/OBJLoaderPlugin.d.ts +2 -2
  22. package/types/plugins/STLLoaderPlugin/STLLoaderPlugin.d.ts +2 -2
  23. package/types/plugins/STLLoaderPlugin/index.d.ts +0 -1
  24. package/types/plugins/SectionPlanesPlugin/SectionPlanesPlugin.d.ts +4 -4
  25. package/types/plugins/SkyboxesPlugin/SkyboxesPlugin.d.ts +1 -1
  26. package/types/plugins/StoreyViewsPlugin/StoreyViewsPlugin.d.ts +156 -149
  27. package/types/plugins/TreeViewPlugin/TreeViewPlugin.d.ts +20 -6
  28. package/types/plugins/ViewCullPlugin/ViewCullPlugin.d.ts +2 -2
  29. package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +16 -16
  30. package/types/plugins/XKTLoaderPlugin/XKTLoaderPlugin.d.ts +20 -20
  31. package/types/plugins/XML3DLoaderPlugin/XML3DLoaderPlugin.d.ts +4 -4
  32. package/types/viewer/Plugin.d.ts +6 -6
  33. package/types/viewer/Viewer.d.ts +13 -13
  34. package/types/viewer/localization/LocaleService.d.ts +160 -153
  35. package/types/viewer/metadata/MetaModel.d.ts +2 -2
  36. package/types/viewer/metadata/MetaObject.d.ts +5 -5
  37. package/types/viewer/metadata/MetaScene.d.ts +11 -11
  38. package/types/viewer/metadata/index.d.ts +1 -1
  39. package/types/viewer/scene/CameraControl/CameraControl.d.ts +27 -19
  40. package/types/viewer/scene/Component.d.ts +6 -6
  41. package/types/viewer/scene/Entity.d.ts +29 -29
  42. package/types/viewer/scene/PerformanceModel/PerformanceModel.d.ts +45 -28
  43. package/types/viewer/scene/PerformanceModel/PerformanceNode.d.ts +26 -26
  44. package/types/viewer/scene/camera/Camera.d.ts +28 -28
  45. package/types/viewer/scene/camera/CameraFlightAnimation.d.ts +19 -19
  46. package/types/viewer/scene/camera/CustomProjection.d.ts +5 -5
  47. package/types/viewer/scene/camera/Frustum.d.ts +15 -15
  48. package/types/viewer/scene/camera/Ortho.d.ts +5 -5
  49. package/types/viewer/scene/camera/Perspective.d.ts +5 -5
  50. package/types/viewer/scene/index.d.ts +2 -1
  51. package/types/viewer/scene/marker/Marker.d.ts +15 -15
  52. package/types/viewer/scene/materials/EmphasisMaterial.d.ts +3 -3
  53. package/types/viewer/scene/materials/Fresnel.d.ts +2 -3
  54. package/types/viewer/scene/materials/LinesMaterial.d.ts +1 -1
  55. package/types/viewer/scene/materials/PhongMaterial.d.ts +26 -26
  56. package/types/viewer/scene/materials/PointsMaterial.d.ts +14 -14
  57. package/types/viewer/scene/materials/Texture.d.ts +14 -15
  58. package/types/viewer/scene/materials/index.d.ts +1 -0
  59. package/types/viewer/scene/math/math.d.ts +28 -28
  60. package/types/viewer/scene/mesh/Mesh.d.ts +786 -0
  61. package/types/viewer/scene/mesh/index.d.ts +1 -0
  62. package/types/viewer/scene/nodes/Node.d.ts +664 -0
  63. package/types/viewer/scene/nodes/index.d.ts +1 -0
  64. package/types/viewer/scene/scene/Scene.d.ts +155 -111
  65. package/types/viewer/scene/sectionPlane/SectionPlane.d.ts +3 -3
  66. package/types/viewer/scene/viewport/Viewport.d.ts +2 -2
  67. package/types/viewer/scene/webgl/PickResult.d.ts +2 -2
@@ -50,9 +50,9 @@ export declare type PhongMaterialConfiguration = {
50
50
  alphaFresnel?: Fresnel;
51
51
  /** A reflectivity {@link Fresnel"}}Fresnel{{/crossLink}}. Must be within the same {@link Scene} as this PhongMaterial. */
52
52
  reflectivityFresnel?: Fresnel;
53
- /** The alpha blend mode - accepted values are "opaque", "blend" and "mask". See the {@link PhongMaterial#alphaMode} property for more info. */
53
+ /** The alpha blend mode - accepted values are "opaque", "blend" and "mask". See the {@link PhongMaterial.alphaMode} property for more info. */
54
54
  alphaMode?: "opaque"| "blend" | "mask";
55
- /** The alpha cutoff value. See the {@link PhongMaterial#alphaCutoff} property for more info. */
55
+ /** The alpha cutoff value. See the {@link PhongMaterial.alphaCutoff} property for more info. */
56
56
  alphaCutoff?: number;
57
57
  /** Whether to render geometry backfaces. */
58
58
  backfaces?: boolean;
@@ -91,7 +91,7 @@ export declare class PhongMaterial extends Material {
91
91
  /**
92
92
  * Sets the PhongMaterial's diffuse color.
93
93
  *
94
- * Multiplies by {@link PhongMaterial#diffuseMap}.
94
+ * Multiplies by {@link PhongMaterial.diffuseMap}.
95
95
  *
96
96
  * Default value is ````[1.0, 1.0, 1.0]````.
97
97
  *
@@ -102,7 +102,7 @@ export declare class PhongMaterial extends Material {
102
102
  /**
103
103
  * Sets the PhongMaterial's diffuse color.
104
104
  *
105
- * Multiplies by {@link PhongMaterial#diffuseMap}.
105
+ * Multiplies by {@link PhongMaterial.diffuseMap}.
106
106
  *
107
107
  * Default value is ````[1.0, 1.0, 1.0]````.
108
108
  *
@@ -113,7 +113,7 @@ export declare class PhongMaterial extends Material {
113
113
  /**
114
114
  * Sets the PhongMaterial's specular color.
115
115
  *
116
- * Multiplies by {@link PhongMaterial#specularMap}.
116
+ * Multiplies by {@link PhongMaterial.specularMap}.
117
117
  * Default value is ````[1.0, 1.0, 1.0]````.
118
118
  * @type {Number[]}
119
119
  */
@@ -122,7 +122,7 @@ export declare class PhongMaterial extends Material {
122
122
  /**
123
123
  * Gets the PhongMaterial's specular color.
124
124
  *
125
- * Multiplies by {@link PhongMaterial#specularMap}.
125
+ * Multiplies by {@link PhongMaterial.specularMap}.
126
126
  * Default value is ````[1.0, 1.0, 1.0]````.
127
127
  * @type {Number[]}
128
128
  */
@@ -131,7 +131,7 @@ export declare class PhongMaterial extends Material {
131
131
  /**
132
132
  * Sets the PhongMaterial's emissive color.
133
133
  *
134
- * Multiplies by {@link PhongMaterial#emissiveMap}.
134
+ * Multiplies by {@link PhongMaterial.emissiveMap}.
135
135
  *
136
136
  * Default value is ````[0.0, 0.0, 0.0]````.
137
137
  * @type {Number[]}
@@ -141,7 +141,7 @@ export declare class PhongMaterial extends Material {
141
141
  /**
142
142
  * Gets the PhongMaterial's emissive color.
143
143
  *
144
- * Multiplies by {@link PhongMaterial#emissiveMap}.
144
+ * Multiplies by {@link PhongMaterial.emissiveMap}.
145
145
  *
146
146
  * Default value is ````[0.0, 0.0, 0.0]````.
147
147
  * @type {Number[]}
@@ -155,7 +155,7 @@ export declare class PhongMaterial extends Material {
155
155
  *
156
156
  * A value of 0.0 indicates fully transparent, 1.0 is fully opaque.
157
157
  *
158
- * Multiplies by {@link PhongMaterial#alphaMap}.
158
+ * Multiplies by {@link PhongMaterial.alphaMap}.
159
159
  *
160
160
  * Default value is ````1.0````.
161
161
  *
@@ -170,7 +170,7 @@ export declare class PhongMaterial extends Material {
170
170
  *
171
171
  * A value of 0.0 indicates fully transparent, 1.0 is fully opaque.
172
172
  *
173
- * Multiplies by {@link PhongMaterial#alphaMap}.
173
+ * Multiplies by {@link PhongMaterial.alphaMap}.
174
174
  *
175
175
  * Default value is ````1.0````.
176
176
  *
@@ -215,7 +215,7 @@ export declare class PhongMaterial extends Material {
215
215
  *
216
216
  * The surface will be non-reflective when this is ````0````, and completely mirror-like when it is ````1.0````.
217
217
  *
218
- * Multiplies by {@link PhongMaterial#reflectivityMap}.
218
+ * Multiplies by {@link PhongMaterial.reflectivityMap}.
219
219
  *
220
220
  * @type {Number}
221
221
  */
@@ -228,7 +228,7 @@ export declare class PhongMaterial extends Material {
228
228
  *
229
229
  * The surface will be non-reflective when this is ````0````, and completely mirror-like when it is ````1.0````.
230
230
  *
231
- * Multiplies by {@link PhongMaterial#reflectivityMap}.
231
+ * Multiplies by {@link PhongMaterial.reflectivityMap}.
232
232
  *
233
233
  * @type {Number}
234
234
  */
@@ -277,7 +277,7 @@ export declare class PhongMaterial extends Material {
277
277
  /**
278
278
  * Sets the PhongMaterial's alpha rendering mode.
279
279
  *
280
- * This governs how alpha is treated. Alpha is the combined result of {@link PhongMaterial#alpha} and {@link PhongMaterial#alphaMap}.
280
+ * This governs how alpha is treated. Alpha is the combined result of {@link PhongMaterial.alpha} and {@link PhongMaterial.alphaMap}.
281
281
  *
282
282
  * Supported values are:
283
283
  *
@@ -299,10 +299,10 @@ export declare class PhongMaterial extends Material {
299
299
  /**
300
300
  * Sets the PhongMaterial's alpha cutoff value.
301
301
  *
302
- * This specifies the cutoff threshold when {@link PhongMaterial#alphaMode} equals "mask". If the alpha is greater than or equal to this value then it is rendered as fully
302
+ * This specifies the cutoff threshold when {@link PhongMaterial.alphaMode} equals "mask". If the alpha is greater than or equal to this value then it is rendered as fully
303
303
  * 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.
304
304
  *
305
- * Alpha is the combined result of {@link PhongMaterial#alpha} and {@link PhongMaterial#alphaMap}.
305
+ * Alpha is the combined result of {@link PhongMaterial.alpha} and {@link PhongMaterial.alphaMap}.
306
306
  *
307
307
  * Default value is ````0.5````.
308
308
  *
@@ -363,7 +363,7 @@ export declare class PhongMaterial extends Material {
363
363
  /**
364
364
  * Gets the PhongMaterials's ambient {@link Texture}.
365
365
  *
366
- * Multiplies by {@link PhongMaterial#ambient}.
366
+ * Multiplies by {@link PhongMaterial.ambient}.
367
367
  *
368
368
  * @type {Texture}
369
369
  */
@@ -372,7 +372,7 @@ export declare class PhongMaterial extends Material {
372
372
  /**
373
373
  * Gets the PhongMaterials's diffuse {@link Texture}.
374
374
  *
375
- * Multiplies by {@link PhongMaterial#diffuse}.
375
+ * Multiplies by {@link PhongMaterial.diffuse}.
376
376
  *
377
377
  * @type {Texture}
378
378
  */
@@ -381,7 +381,7 @@ export declare class PhongMaterial extends Material {
381
381
  /**
382
382
  * Gets the PhongMaterials's specular {@link Texture}.
383
383
  *
384
- * Multiplies by {@link PhongMaterial#specular}.
384
+ * Multiplies by {@link PhongMaterial.specular}.
385
385
  *
386
386
  * @type {Texture}
387
387
  */
@@ -390,7 +390,7 @@ export declare class PhongMaterial extends Material {
390
390
  /**
391
391
  * Gets the PhongMaterials's emissive {@link Texture}.
392
392
  *
393
- * Multiplies by {@link PhongMaterial#emissive}.
393
+ * Multiplies by {@link PhongMaterial.emissive}.
394
394
  *
395
395
  * @type {Texture}
396
396
  */
@@ -399,7 +399,7 @@ export declare class PhongMaterial extends Material {
399
399
  /**
400
400
  * Gets the PhongMaterials's alpha {@link Texture}.
401
401
  *
402
- * Multiplies by {@link PhongMaterial#alpha}.
402
+ * Multiplies by {@link PhongMaterial.alpha}.
403
403
  *
404
404
  * @type {Texture}
405
405
  */
@@ -408,7 +408,7 @@ export declare class PhongMaterial extends Material {
408
408
  /**
409
409
  * Gets the PhongMaterials's reflectivity {@link Texture}.
410
410
  *
411
- * Multiplies by {@link PhongMaterial#reflectivity}.
411
+ * Multiplies by {@link PhongMaterial.reflectivity}.
412
412
  *
413
413
  * @type {Texture}
414
414
  */
@@ -424,7 +424,7 @@ export declare class PhongMaterial extends Material {
424
424
  /**
425
425
  * Gets the PhongMaterials's diffuse {@link Fresnel}.
426
426
  *
427
- * Applies to {@link PhongMaterial#diffuse}.
427
+ * Applies to {@link PhongMaterial.diffuse}.
428
428
  *
429
429
  * @type {Fresnel}
430
430
  */
@@ -433,7 +433,7 @@ export declare class PhongMaterial extends Material {
433
433
  /**
434
434
  * Gets the PhongMaterials's specular {@link Fresnel}.
435
435
  *
436
- * Applies to {@link PhongMaterial#specular}.
436
+ * Applies to {@link PhongMaterial.specular}.
437
437
  *
438
438
  * @type {Fresnel}
439
439
  */
@@ -442,7 +442,7 @@ export declare class PhongMaterial extends Material {
442
442
  /**
443
443
  * Gets the PhongMaterials's emissive {@link Fresnel}.
444
444
  *
445
- * Applies to {@link PhongMaterial#emissive}.
445
+ * Applies to {@link PhongMaterial.emissive}.
446
446
  *
447
447
  * @type {Fresnel}
448
448
  */
@@ -451,7 +451,7 @@ export declare class PhongMaterial extends Material {
451
451
  /**
452
452
  * Gets the PhongMaterials's alpha {@link Fresnel}.
453
453
  *
454
- * Applies to {@link PhongMaterial#alpha}.
454
+ * Applies to {@link PhongMaterial.alpha}.
455
455
  *
456
456
  * @type {Fresnel}
457
457
  */
@@ -460,7 +460,7 @@ export declare class PhongMaterial extends Material {
460
460
  /**
461
461
  * Gets the PhongMaterials's reflectivity {@link Fresnel}.
462
462
  *
463
- * Applies to {@link PhongMaterial#reflectivity}.
463
+ * Applies to {@link PhongMaterial.reflectivity}.
464
464
  *
465
465
  * @type {Fresnel}
466
466
  */
@@ -8,7 +8,7 @@ export declare type PointsMaterialConfiguration = {
8
8
  pointSize?: number;
9
9
  /** Whether points are round (````true````) or square (````false````). */
10
10
  roundPoints?: boolean;
11
- /** Whether apparent point size reduces with distance when {@link Camera#projection} is set to "perspective". */
11
+ /** Whether apparent point size reduces with distance when {@link Camera.projection} is set to "perspective". */
12
12
  perspectivePoints?: boolean;
13
13
  /** When ````perspectivePoints```` is ````true````, this is the minimum rendered size of each point in pixels. */
14
14
  minPerspectivePointSize?: number;
@@ -20,7 +20,7 @@ export declare type PointsMaterialConfiguration = {
20
20
  minIntensity?: number;
21
21
  /** When ````filterIntensity```` is ````true````, points with intensity above this value will not be rendered. */
22
22
  maxIntensity?: number;
23
- /** Selects a preset PointsMaterial configuration - see {@link PointsMaterial#presets}. */
23
+ /** Selects a preset PointsMaterial configuration - see {@link PointsMaterial.presets}. */
24
24
  preset?: string;
25
25
  };
26
26
 
@@ -97,7 +97,7 @@ export declare class PointsMaterial extends Material {
97
97
  get roundPoints(): boolean;
98
98
 
99
99
  /**
100
- * Sets if rendered point size reduces with distance when {@link Camera#projection} is set to ````"perspective"````.
100
+ * Sets if rendered point size reduces with distance when {@link Camera.projection} is set to ````"perspective"````.
101
101
  *
102
102
  * Default is ````true````.
103
103
  *
@@ -106,7 +106,7 @@ export declare class PointsMaterial extends Material {
106
106
  set perspectivePoints(arg: boolean);
107
107
 
108
108
  /**
109
- * Gets if rendered point size reduces with distance when {@link Camera#projection} is set to "perspective".
109
+ * Gets if rendered point size reduces with distance when {@link Camera.projection} is set to "perspective".
110
110
  *
111
111
  * Default is ````false````.
112
112
  *
@@ -115,7 +115,7 @@ export declare class PointsMaterial extends Material {
115
115
  get perspectivePoints(): boolean;
116
116
 
117
117
  /**
118
- * Sets the minimum rendered size of points when {@link PointsMaterial#perspectivePoints} is ````true````.
118
+ * Sets the minimum rendered size of points when {@link PointsMaterial.perspectivePoints} is ````true````.
119
119
  *
120
120
  * Default value is ````1.0```` pixels.
121
121
  *
@@ -124,7 +124,7 @@ export declare class PointsMaterial extends Material {
124
124
  set minPerspectivePointSize(arg: number);
125
125
 
126
126
  /**
127
- * Gets the minimum rendered size of points when {@link PointsMaterial#perspectivePoints} is ````true````.
127
+ * Gets the minimum rendered size of points when {@link PointsMaterial.perspectivePoints} is ````true````.
128
128
  *
129
129
  * Default value is ````1.0```` pixels.
130
130
  *
@@ -133,7 +133,7 @@ export declare class PointsMaterial extends Material {
133
133
  get minPerspectivePointSize(): number;
134
134
 
135
135
  /**
136
- * Sets the maximum rendered size of points when {@link PointsMaterial#perspectivePoints} is ````true````.
136
+ * Sets the maximum rendered size of points when {@link PointsMaterial.perspectivePoints} is ````true````.
137
137
  *
138
138
  * Default value is ````6```` pixels.
139
139
  *
@@ -142,7 +142,7 @@ export declare class PointsMaterial extends Material {
142
142
  set maxPerspectivePointSize(arg: number);
143
143
 
144
144
  /**
145
- * Gets the maximum rendered size of points when {@link PointsMaterial#perspectivePoints} is ````true````.
145
+ * Gets the maximum rendered size of points when {@link PointsMaterial.perspectivePoints} is ````true````.
146
146
  *
147
147
  * Default value is ````6```` pixels.
148
148
  *
@@ -151,7 +151,7 @@ export declare class PointsMaterial extends Material {
151
151
  get maxPerspectivePointSize(): number;
152
152
 
153
153
  /**
154
- * Sets if rendered point size reduces with distance when {@link Camera#projection} is set to ````"perspective"````.
154
+ * Sets if rendered point size reduces with distance when {@link Camera.projection} is set to ````"perspective"````.
155
155
  *
156
156
  * Default is ````false````.
157
157
  *
@@ -160,7 +160,7 @@ export declare class PointsMaterial extends Material {
160
160
  set filterIntensity(arg: boolean);
161
161
 
162
162
  /**
163
- * Gets if rendered point size reduces with distance when {@link Camera#projection} is set to "perspective".
163
+ * Gets if rendered point size reduces with distance when {@link Camera.projection} is set to "perspective".
164
164
  *
165
165
  * Default is ````false````.
166
166
  *
@@ -169,7 +169,7 @@ export declare class PointsMaterial extends Material {
169
169
  get filterIntensity(): boolean;
170
170
 
171
171
  /**
172
- * Sets the minimum rendered size of points when {@link PointsMaterial#perspectivePoints} is ````true````.
172
+ * Sets the minimum rendered size of points when {@link PointsMaterial.perspectivePoints} is ````true````.
173
173
  *
174
174
  * Default value is ````0````.
175
175
  *
@@ -178,7 +178,7 @@ export declare class PointsMaterial extends Material {
178
178
  set minIntensity(arg: number);
179
179
 
180
180
  /**
181
- * Gets the minimum rendered size of points when {@link PointsMaterial#filterIntensity} is ````true````.
181
+ * Gets the minimum rendered size of points when {@link PointsMaterial.filterIntensity} is ````true````.
182
182
  *
183
183
  * Default value is ````0````.
184
184
  *
@@ -187,7 +187,7 @@ export declare class PointsMaterial extends Material {
187
187
  get minIntensity(): number;
188
188
 
189
189
  /**
190
- * Sets the maximum rendered size of points when {@link PointsMaterial#filterIntensity} is ````true````.
190
+ * Sets the maximum rendered size of points when {@link PointsMaterial.filterIntensity} is ````true````.
191
191
  *
192
192
  * Default value is ````1````.
193
193
  *
@@ -196,7 +196,7 @@ export declare class PointsMaterial extends Material {
196
196
  set maxIntensity(arg: number);
197
197
 
198
198
  /**
199
- * Gets the maximum rendered size of points when {@link PointsMaterial#filterIntensity} is ````true````.
199
+ * Gets the maximum rendered size of points when {@link PointsMaterial.filterIntensity} is ````true````.
200
200
  *
201
201
  * Default value is ````1````.
202
202
  *
@@ -2,15 +2,15 @@
2
2
  * @desc A 2D texture map.
3
3
  *
4
4
  * * Textures are attached to {@link Material}s, which are attached to {@link Mesh}es.
5
- * * To create a Texture from an image file, set {@link Texture#src} to the image file path.
6
- * * To create a Texture from an HTMLImageElement, set the Texture's {@link Texture#image} to the HTMLImageElement.
5
+ * * To create a Texture from an image file, set {@link Texture.src} to the image file path.
6
+ * * To create a Texture from an HTMLImageElement, set the Texture's {@link Texture.image} to the HTMLImageElement.
7
7
  *
8
8
  * ## Usage
9
9
  *
10
10
  * In this example we have a Mesh with a {@link PhongMaterial} which applies diffuse {@link Texture}, and a {@link buildTorusGeometry} which builds a {@link ReadableGeometry}.
11
11
  *
12
- * Note that xeokit will ignore {@link PhongMaterial#diffuse} and {@link PhongMaterial#specular}, since we override those
13
- * with {@link PhongMaterial#diffuseMap} and {@link PhongMaterial#specularMap}. The {@link Texture} pixel colors directly
12
+ * Note that xeokit will ignore {@link PhongMaterial.diffuse} and {@link PhongMaterial.specular}, since we override those
13
+ * with {@link PhongMaterial.diffuseMap} and {@link PhongMaterial.specularMap}. The {@link Texture} pixel colors directly
14
14
  * provide the diffuse and specular components for each fragment across the {@link ReadableGeometry} surface.
15
15
  *
16
16
  * [[Run this example](http://xeokit.github.io/xeokit-sdk/examples/#materials_Texture)]
@@ -52,20 +52,20 @@ export declare class Texture extends Component {
52
52
  * @param {Component} owner Owner component. When destroyed, the owner will destroy this Texture as well.
53
53
  * @param {*} [cfg] Configs
54
54
  * @param {String} [cfg.id] Optional ID for this Texture, unique among all components in the parent scene, generated automatically when omitted.
55
- * @param {String} [cfg.src=null] Path to image file to load into this Texture. See the {@link Texture#src} property for more info.
56
- * @param {HTMLImageElement} [cfg.image=null] HTML Image object to load into this Texture. See the {@link Texture#image} property for more info.
57
- * @param {String} [cfg.minFilter="linearMipmapLinear"] How the texture is sampled when a texel covers less than one pixel. See the {@link Texture#minFilter} property for more info.
58
- * @param {String} [cfg.magFilter="linear"] How the texture is sampled when a texel covers more than one pixel. See the {@link Texture#magFilter} property for more info.
59
- * @param {String} [cfg.wrapS="repeat"] Wrap parameter for texture coordinate *S*. See the {@link Texture#wrapS} property for more info.
60
- * @param {String} [cfg.wrapT="repeat"] Wrap parameter for texture coordinate *S*. See the {@link Texture#wrapT} property for more info.
55
+ * @param {String} [cfg.src=null] Path to image file to load into this Texture. See the {@link Texture.src} property for more info.
56
+ * @param {HTMLImageElement} [cfg.image=null] HTML Image object to load into this Texture. See the {@link Texture.image} property for more info.
57
+ * @param {String} [cfg.minFilter="linearMipmapLinear"] How the texture is sampled when a texel covers less than one pixel. See the {@link Texture.minFilter} property for more info.
58
+ * @param {String} [cfg.magFilter="linear"] How the texture is sampled when a texel covers more than one pixel. See the {@link Texture.magFilter} property for more info.
59
+ * @param {String} [cfg.wrapS="repeat"] Wrap parameter for texture coordinate *S*. See the {@link Texture.wrapS} property for more info.
60
+ * @param {String} [cfg.wrapT="repeat"] Wrap parameter for texture coordinate *S*. See the {@link Texture.wrapT} property for more info.
61
61
  * @param {Boolean} [cfg.flipY=false] Flips this Texture's source data along its vertical axis when true.
62
62
  * @param {Number[]} [cfg.translate=[0,0]] 2D translation vector that will be added to texture's *S* and *T* coordinates.
63
63
  * @param {Number[]} [cfg.scale=[1,1]] 2D scaling vector that will be applied to texture's *S* and *T* coordinates.
64
64
  * @param {Number} [cfg.rotate=0] Rotation, in degrees, that will be applied to texture's *S* and *T* coordinates.
65
- * @param {String} [cfg.encoding="linear"] Encoding format. See the {@link Texture#encoding} property for more info.
65
+ * @param {String} [cfg.encoding="linear"] Encoding format. See the {@link Texture.encoding} property for more info.
66
66
  */
67
67
  constructor(owner: Component, cfg?: any);
68
- _state: RenderState;
68
+ _state: any;
69
69
  _src: string;
70
70
  _image: any;
71
71
  _translate: any;
@@ -123,7 +123,7 @@ export declare class Texture extends Component {
123
123
  /**
124
124
  * Sets path to an image file to source this Texture from.
125
125
  *
126
- * Sets {@link Texture#image} null.
126
+ * Sets {@link Texture.image} null.
127
127
  *
128
128
  * @type {String}
129
129
  */
@@ -139,7 +139,7 @@ export declare class Texture extends Component {
139
139
  /**
140
140
  * Sets an HTML DOM Image object to source this Texture from.
141
141
  *
142
- * Sets {@link Texture#src} null.
142
+ * Sets {@link Texture.src} null.
143
143
  *
144
144
  * @type {HTMLImageElement}
145
145
  */
@@ -258,4 +258,3 @@ export declare class Texture extends Component {
258
258
  get encoding(): string;
259
259
  }
260
260
  import { Component } from "../Component.js";
261
- import { RenderState } from "../webgl/RenderState.js";
@@ -1,3 +1,4 @@
1
+ export * from "./Material";
1
2
  export * from "./EdgeMaterial";
2
3
  export * from "./EmphasisMaterial";
3
4
  export * from "./LinesMaterial";
@@ -1,36 +1,36 @@
1
1
  declare const math: {
2
- unglobalizeObjectId(modelId: string, globalId: string): string;
3
- globalizeObjectId(modelId: string, objectId: string): string;
2
+ unglobalizeObjectId(modelId: string, globalId: string): string;
3
+ globalizeObjectId(modelId: string, objectId: string): string;
4
4
 
5
- /**
6
- * Returns a new, uninitialized two-element vector.
7
- * @returns {Number[]}
8
- */
9
- vec2: (values?: number[])=> number[];
5
+ /**
6
+ * Returns a new, uninitialized two-element vector.
7
+ * @returns {Number[]}
8
+ */
9
+ vec2: (values?: number[]) => number[];
10
10
 
11
- /**
12
- * Returns a new, uninitialized three-element vector.
13
- * @returns {Number[]}
14
- */
15
- vec3: (values?: number[])=> number[];
11
+ /**
12
+ * Returns a new, uninitialized three-element vector.
13
+ * @returns {Number[]}
14
+ */
15
+ vec3: (values?: number[]) => number[];
16
16
 
17
- /**
18
- * Returns a new, uninitialized four-element vector.
19
- * @returns {Number[]}
20
- */
21
- vec4: (values?: number[])=> number[];
17
+ /**
18
+ * Returns a new, uninitialized four-element vector.
19
+ * @returns {Number[]}
20
+ */
21
+ vec4: (values?: number[]) => number[];
22
22
 
23
- /**
24
- * Gets the center of a 2D AABB.
25
- * @returns {Number[]}
26
- */
27
- getAABB2Center(aabb: number[], dest?: (values?: number[])=> number[]);
23
+ /**
24
+ * Gets the center of a 2D AABB.
25
+ * @returns {Number[]}
26
+ */
27
+ getAABB2Center(aabb: number[], dest?: (values?: number[]) => number[]): number[];
28
28
 
29
- /**
30
- * Gets the center of an AABB.
31
- * @returns {Number[]}
32
- */
33
- getAABB3Center(aabb: number[], dest?: (values?: number[])=> number[]);
29
+ /**
30
+ * Gets the center of an AABB.
31
+ * @returns {Number[]}
32
+ */
33
+ getAABB3Center(aabb: number[], dest?: (values?: number[]) => number[]): number[];
34
34
  };
35
35
 
36
- export { math };
36
+ export {math};