@xtctwins/tctwins-core 1.1.18 → 1.1.20

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 (151) hide show
  1. package/README.md +4 -4
  2. package/dist/tctwins-core.es5.js +27337 -27310
  3. package/dist/tctwins-core.min.es5.js +3 -3
  4. package/package.json +84 -84
  5. package/types/extras/ContextMenu/ContextMenu.d.ts +127 -127
  6. package/types/extras/ContextMenu/index.d.ts +1 -1
  7. package/types/extras/PointerCircle/PointerCircle.d.ts +51 -51
  8. package/types/extras/PointerCircle/index.d.ts +1 -1
  9. package/types/extras/PointerLens/PointerLens.d.ts +146 -146
  10. package/types/extras/index.d.ts +3 -3
  11. package/types/index.d.ts +3 -3
  12. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +204 -204
  13. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsControl.d.ts +91 -91
  14. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsMouseControl.d.ts +125 -125
  15. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsPlugin.d.ts +151 -151
  16. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsSimulateMouseControl.d.ts +86 -86
  17. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsTouchControl.d.ts +124 -124
  18. package/types/plugins/AngleMeasurementsPlugin/index.d.ts +5 -5
  19. package/types/plugins/AnnotationsPlugin/Annotation.d.ts +135 -135
  20. package/types/plugins/AnnotationsPlugin/AnnotationsPlugin.d.ts +172 -172
  21. package/types/plugins/AnnotationsPlugin/index.d.ts +2 -2
  22. package/types/plugins/BCFViewpointsPlugin/BCFViewpointsPlugin.d.ts +148 -148
  23. package/types/plugins/BCFViewpointsPlugin/index.d.ts +1 -1
  24. package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurement.d.ts +253 -253
  25. package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsControl.d.ts +96 -96
  26. package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsMouseControl.d.ts +102 -102
  27. package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsPlugin.d.ts +192 -192
  28. package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsSimulateMouseControl.d.ts +83 -83
  29. package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsTouchControl.d.ts +103 -103
  30. package/types/plugins/DistanceMeasurementsPlugin/index.d.ts +5 -5
  31. package/types/plugins/FastNavPlugin/FastNavPlugin.d.ts +223 -223
  32. package/types/plugins/FastNavPlugin/index.d.ts +1 -1
  33. package/types/plugins/GLTFLoaderPlugin/GLTFLoaderPlugin.d.ts +142 -142
  34. package/types/plugins/GLTFLoaderPlugin/index.d.ts +1 -1
  35. package/types/plugins/LASLoaderPlugin/LASLoaderPlugin.d.ts +240 -240
  36. package/types/plugins/LASLoaderPlugin/index.d.ts +1 -1
  37. package/types/plugins/NavCubePlugin/NavCubePlugin.d.ts +177 -177
  38. package/types/plugins/NavCubePlugin/index.d.ts +1 -1
  39. package/types/plugins/ObjectEditPlugin/ObjectEditPlugin.d.ts +242 -242
  40. package/types/plugins/ObjectEditPlugin/index.d.ts +1 -1
  41. package/types/plugins/SectionPlanesPlugin/SectionBoxControl.d.ts +36 -36
  42. package/types/plugins/SectionPlanesPlugin/SectionPlanesPlugin.d.ts +186 -186
  43. package/types/plugins/SectionPlanesPlugin/index.d.ts +2 -2
  44. package/types/plugins/SkyboxesPlugin/SkyboxesPlugin.d.ts +66 -66
  45. package/types/plugins/SkyboxesPlugin/index.d.ts +1 -1
  46. package/types/plugins/StoreyViewsPlugin/Storey.d.ts +69 -69
  47. package/types/plugins/StoreyViewsPlugin/StoreyMap.d.ts +41 -41
  48. package/types/plugins/StoreyViewsPlugin/StoreyViewsPlugin.d.ts +180 -180
  49. package/types/plugins/StoreyViewsPlugin/index.d.ts +1 -1
  50. package/types/plugins/TreeViewPlugin/ModelTreeView.d.ts +24 -24
  51. package/types/plugins/TreeViewPlugin/TreeViewNode.d.ts +71 -71
  52. package/types/plugins/TreeViewPlugin/TreeViewPlugin.d.ts +267 -267
  53. package/types/plugins/TreeViewPlugin/index.d.ts +1 -1
  54. package/types/plugins/TreeViewPlugin/renderService.d.ts +128 -128
  55. package/types/plugins/ViewCullPlugin/ViewCullPlugin.d.ts +34 -34
  56. package/types/plugins/ViewCullPlugin/index.d.ts +1 -1
  57. package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +236 -236
  58. package/types/plugins/WebIFCLoaderPlugin/index.d.ts +1 -1
  59. package/types/plugins/XTCLoaderPlugin/XTCLoaderPlugin.d.ts +288 -288
  60. package/types/plugins/XTCLoaderPlugin/index.d.ts +1 -1
  61. package/types/plugins/index.d.ts +30 -30
  62. package/types/viewer/Configs.d.ts +46 -46
  63. package/types/viewer/Plugin.d.ts +69 -69
  64. package/types/viewer/Viewer.d.ts +282 -282
  65. package/types/viewer/index.d.ts +6 -6
  66. package/types/viewer/localization/LocaleService.d.ts +183 -183
  67. package/types/viewer/metadata/IFCObjectDefaults.d.ts +9 -9
  68. package/types/viewer/metadata/MetaModel.d.ts +94 -94
  69. package/types/viewer/metadata/MetaObject.d.ts +74 -74
  70. package/types/viewer/metadata/MetaScene.d.ts +135 -135
  71. package/types/viewer/metadata/Property.d.ts +29 -29
  72. package/types/viewer/metadata/PropertySet.d.ts +31 -31
  73. package/types/viewer/metadata/index.d.ts +6 -6
  74. package/types/viewer/scene/Bitmap/Bitmap.d.ts +255 -255
  75. package/types/viewer/scene/CameraControl/CameraControl.d.ts +777 -777
  76. package/types/viewer/scene/Component.d.ts +155 -155
  77. package/types/viewer/scene/Entity.d.ts +401 -401
  78. package/types/viewer/scene/LineSet/LineSet.d.ts +111 -111
  79. package/types/viewer/scene/camera/Camera.d.ts +364 -364
  80. package/types/viewer/scene/camera/CameraFlightAnimation.d.ts +167 -167
  81. package/types/viewer/scene/camera/CameraPath.d.ts +28 -28
  82. package/types/viewer/scene/camera/CameraPathAnimation.d.ts +95 -95
  83. package/types/viewer/scene/camera/CustomProjection.d.ts +57 -57
  84. package/types/viewer/scene/camera/Frustum.d.ts +166 -166
  85. package/types/viewer/scene/camera/Ortho.d.ts +115 -115
  86. package/types/viewer/scene/camera/Perspective.d.ts +136 -136
  87. package/types/viewer/scene/camera/index.d.ts +4 -4
  88. package/types/viewer/scene/geometry/Geometry.d.ts +7 -7
  89. package/types/viewer/scene/geometry/ReadableGeometry.d.ts +95 -95
  90. package/types/viewer/scene/geometry/VBOGeometry.d.ts +62 -62
  91. package/types/viewer/scene/geometry/builders/buildBoxGeometry.d.ts +21 -21
  92. package/types/viewer/scene/geometry/builders/buildBoxLinesGeometry.d.ts +21 -21
  93. package/types/viewer/scene/geometry/builders/buildCylinderGeometry.d.ts +27 -27
  94. package/types/viewer/scene/geometry/builders/buildGridGeometry.d.ts +17 -17
  95. package/types/viewer/scene/geometry/builders/buildPlaneGeometry.d.ts +21 -21
  96. package/types/viewer/scene/geometry/builders/buildSphereGeometry.d.ts +21 -21
  97. package/types/viewer/scene/geometry/builders/buildTorusGeometry.d.ts +25 -25
  98. package/types/viewer/scene/geometry/builders/buildVectorTextGeometry.d.ts +21 -21
  99. package/types/viewer/scene/geometry/builders/index.d.ts +8 -8
  100. package/types/viewer/scene/geometry/index.d.ts +2 -2
  101. package/types/viewer/scene/index.d.ts +23 -23
  102. package/types/viewer/scene/input/input.d.ts +69 -69
  103. package/types/viewer/scene/lights/AmbientLight.d.ts +19 -19
  104. package/types/viewer/scene/lights/DirLight.d.ts +25 -25
  105. package/types/viewer/scene/lights/Light.d.ts +3 -3
  106. package/types/viewer/scene/lights/PointLight.d.ts +30 -30
  107. package/types/viewer/scene/lights/index.d.ts +2 -2
  108. package/types/viewer/scene/marker/Marker.d.ts +136 -136
  109. package/types/viewer/scene/marker/SpriteMarker.d.ts +185 -185
  110. package/types/viewer/scene/marker/index.d.ts +2 -2
  111. package/types/viewer/scene/materials/EdgeMaterial.d.ts +83 -83
  112. package/types/viewer/scene/materials/EmphasisMaterial.d.ts +241 -241
  113. package/types/viewer/scene/materials/Fresnel.d.ts +148 -148
  114. package/types/viewer/scene/materials/LinesMaterial.d.ts +71 -71
  115. package/types/viewer/scene/materials/Material.d.ts +3 -3
  116. package/types/viewer/scene/materials/PhongMaterial.d.ts +468 -468
  117. package/types/viewer/scene/materials/PointsMaterial.d.ts +206 -206
  118. package/types/viewer/scene/materials/Texture.d.ts +260 -260
  119. package/types/viewer/scene/materials/index.d.ts +6 -6
  120. package/types/viewer/scene/math/Frustum.d.ts +41 -41
  121. package/types/viewer/scene/math/index.d.ts +1 -1
  122. package/types/viewer/scene/math/math.d.ts +104 -104
  123. package/types/viewer/scene/mementos/CameraMemento.d.ts +28 -28
  124. package/types/viewer/scene/mementos/ModelMemento.d.ts +44 -44
  125. package/types/viewer/scene/mementos/ObjectsMemento.d.ts +39 -39
  126. package/types/viewer/scene/mementos/index.d.ts +3 -3
  127. package/types/viewer/scene/mesh/Mesh.d.ts +793 -793
  128. package/types/viewer/scene/mesh/index.d.ts +1 -1
  129. package/types/viewer/scene/models/PerformanceModel/PerformanceModel.d.ts +9 -9
  130. package/types/viewer/scene/models/PerformanceModel/index.d.ts +1 -1
  131. package/types/viewer/scene/models/SceneModel.d.ts +757 -757
  132. package/types/viewer/scene/models/SceneModelEntity.d.ts +417 -417
  133. package/types/viewer/scene/models/SceneModelMesh.d.ts +68 -68
  134. package/types/viewer/scene/models/SceneModelTexture.d.ts +16 -16
  135. package/types/viewer/scene/models/SceneModelTextureSet.d.ts +51 -51
  136. package/types/viewer/scene/models/SceneModelTransform.d.ts +197 -197
  137. package/types/viewer/scene/models/VBOSceneModel/VBOSceneModel.d.ts +7 -7
  138. package/types/viewer/scene/models/index.d.ts +7 -7
  139. package/types/viewer/scene/nodes/Node.d.ts +664 -664
  140. package/types/viewer/scene/nodes/index.d.ts +1 -1
  141. package/types/viewer/scene/postfx/CrossSections.d.ts +42 -42
  142. package/types/viewer/scene/postfx/SAO.d.ts +209 -209
  143. package/types/viewer/scene/scene/Scene.d.ts +1068 -1068
  144. package/types/viewer/scene/sectionPlane/SectionPlane.d.ts +110 -110
  145. package/types/viewer/scene/sectionPlane/index.d.ts +1 -1
  146. package/types/viewer/scene/stats.d.ts +40 -40
  147. package/types/viewer/scene/utils.d.ts +165 -165
  148. package/types/viewer/scene/viewport/Viewport.d.ts +23 -23
  149. package/types/viewer/scene/viewport/index.d.ts +1 -1
  150. package/types/viewer/scene/webgl/PickResult.d.ts +115 -115
  151. package/types/viewer/scene/webgl/index.d.ts +1 -1
@@ -1,240 +1,240 @@
1
- import { Entity, Plugin, SceneModel, Viewer } from "../../viewer";
2
- import { ModelStats } from "../index";
3
-
4
- export declare interface ILASDefaultDataSource {
5
- /**
6
- * Gets the contents of the given LAS file in an arraybuffer.
7
- *
8
- * @param {String|Number} src Path or ID of an LAS file.
9
- * @param {Function} ok Callback fired on success, argument is the LAS file in an arraybuffer.
10
- * @param {Function} error Callback fired on error.
11
- */
12
- getLAS(src: string | number, ok: (LAS: ArrayBuffer) => void, error: (e: Error) => void): void;
13
- }
14
-
15
- export declare type LASLoaderPluginConfiguration = {
16
- /** Optional ID for this plugin, so that we can find it within {@link Viewer.plugins}. */
17
- id?: string;
18
- /** A custom data source through which the LASLoaderPlugin can load model and metadata files. Defaults to an instance of {@link LASDefaultDataSource}, which loads over HTTP. */
19
- dataSource?: ILASDefaultDataSource;
20
- /** Configures LASLoaderPlugin to load every **n** points.*/
21
- skip?: number;
22
- /** Configures if LASLoaderPlugin assumes that LAS positions are stored in 64-bit floats instead of 32-bit. */
23
- fp64?: number;
24
- /** Configures whether LASLoaderPlugin assumes that LAS colors are encoded using 8 or 16 bits. Accepted values are 8, 16 an "auto". */
25
- colorDepth?: 8 | 16 | "auto";
26
- /** Whether to center the LAS points. Applied before "rotateX", "rotate" and "transform". */
27
- center?: boolean;
28
- /** Whether to rotate the LAS point positions 90 degrees. Applied after "center". */
29
- rotateX?: boolean;
30
- /** Rotations to apply to the LAS points, given as Euler angles in degrees, for each of the X, Y and Z axis. Rotation is applied after "center" and "rotateX".*/
31
- rotate?: number[];
32
- /** 4x4 transform matrix to immediately apply to the LAS points. This is applied after "center", "rotateX" and "rotate". Typically used instead of "rotateX" and "rotate". */
33
- transform?: number[];
34
- };
35
-
36
- export declare type LoadLASModel = {
37
- /** ID to assign to the root {@link Entity.id}, unique among all components in the Viewer's {@link Scene}, generated automatically by default. */
38
- id?: string;
39
- /** Path to a LAS file, as an alternative to the ````las```` parameter. */
40
- src?: string;
41
- /** The LAS file data, as an alternative to the ````src```` parameter. */
42
- las?: ArrayBuffer;
43
- /** Create entity with this id */
44
- entityId?: string;
45
- /** Creates a MetaModel from json */
46
- metaModelJSON?: any;
47
- /** Whether to load metadata for the LAS model. */
48
- loadMetadata?: boolean;
49
- /** The model's World-space double-precision 3D origin. Use this to position the model within xeokit's World coordinate system, using double-precision coordinates. */
50
- origin?: number[];
51
- /** The model single-precision 3D position, relative to the ````origin```` parameter. */
52
- position?: number[];
53
- /** The model's scale. */
54
- scale?: number[];
55
- /** The model's orientation, given as Euler angles in degrees, for each of the X, Y and Z axis. */
56
- rotation?: number[];
57
- /** The model's world transform matrix. Overrides the position, scale and rotation parameters. Relative to ````origin````. */
58
- matrix?: number[];
59
- /** Collects model statistics. */
60
- stats?: ModelStats;
61
- };
62
-
63
- /**
64
- * {@link Viewer} plugin that loads lidar point cloud geometry from LAS files.
65
- */
66
- export declare class LASLoaderPlugin extends Plugin {
67
- /**
68
- * @constructor
69
- *
70
- * @param {Viewer} viewer The Viewer.
71
- * @param {LASLoaderPluginConfiguration} cfg Plugin configuration.
72
- */
73
- constructor(viewer: Viewer, cfg?: LASLoaderPluginConfiguration);
74
-
75
- /**
76
- * Sets a custom data source through which the LASLoaderPlugin can load LAS files.
77
- *
78
- * Default value is {@link LASDefaultDataSource}, which loads via HTTP.
79
- *
80
- * @type {ILASDefaultDataSource}
81
- */
82
- set dataSource(arg: ILASDefaultDataSource);
83
-
84
- /**
85
- * Gets the custom data source through which the LASLoaderPlugin can load LAS files.
86
- *
87
- * Default value is {@link LASDefaultDataSource}, which loads via HTTP.
88
- *
89
- * @type {ILASDefaultDataSource}
90
- */
91
- get dataSource(): ILASDefaultDataSource;
92
-
93
- /**
94
- * Configures LASLoaderPlugin to load every **n** points.
95
- *
96
- * Default value is ````1````.
97
- *
98
- * @param {Number} value The **n**th point that LASLoaderPlugin will read.
99
- */
100
- set skip(value: number);
101
-
102
- /**
103
- * When LASLoaderPlugin is configured to load every **n** points, returns the value of **n**.
104
- *
105
- * Default value is ````1````.
106
- *
107
- * @returns {Number} The **n**th point that LASLoaderPlugin will read.
108
- */
109
- get skip(): number;
110
-
111
- /**
112
- * Configures if LASLoaderPlugin assumes that LAS positions are stored in 64-bit floats instead of 32-bit.
113
- *
114
- * Default value is ````false````.
115
- *
116
- * @param {Boolean} value True if LASLoaderPlugin assumes that positions are stored in 64-bit floats instead of 32-bit.
117
- */
118
- set fp64(value: boolean);
119
-
120
- /**
121
- * Gets if LASLoaderPlugin assumes that LAS positions are stored in 64-bit floats instead of 32-bit.
122
- *
123
- * Default value is ````false````.
124
- *
125
- * @returns {Boolean} True if LASLoaderPlugin assumes that positions are stored in 64-bit floats instead of 32-bit.
126
- */
127
- get fp64(): boolean;
128
-
129
- /**
130
- * Configures whether LASLoaderPlugin assumes that LAS colors are encoded using 8 or 16 bits.
131
- *
132
- * Default value is ````8````.
133
- *
134
- * Note: LAS specification recommends 16 bits.
135
- *
136
- * @param {Number|String} value Valid values are 8, 16 and "auto".
137
- */
138
- set colorDepth(value: 8 | 16 | "auto");
139
-
140
- /**
141
- * Gets whether LASLoaderPlugin assumes that LAS colors are encoded using 8 or 16 bits.
142
- *
143
- * Default value is ````8````.
144
- *
145
- * Note: LAS specification recommends 16 bits.
146
- *
147
- * @returns {Number|String} Possible returned values are 8, 16 and "auto".
148
- */
149
- get colorDepth(): 8 | 16 | "auto";
150
-
151
- /**
152
- * Gets if LASLoaderPlugin immediately centers LAS positions.
153
- *
154
- * If this is ````true```` then centering is the first thing that happens to LAS positions as they are loaded.
155
- *
156
- * Default value is ````false````.
157
- *
158
- * @returns {Boolean} True if LASLoaderPlugin immediately centers LAS positions.
159
- */
160
- get center(): number[];
161
-
162
- /**
163
- * Configures if LASLoaderPlugin immediately centers LAS positions.
164
- *
165
- * If this is ````true```` then centering is the first thing that happens to LAS positions as they are loaded.
166
- *
167
- * Default value is ````false````.
168
- *
169
- * @param {Boolean} value True if LASLoaderPlugin immediately centers LAS positions.
170
- */
171
- set center(value: number[]);
172
-
173
- /**
174
- * Gets the current transformation to apply to LAS positions as they are loaded.
175
- *
176
- * If this is ````true```` then LAS positions will be transformed right after they are centered.
177
- *
178
- * Default value is null.
179
- *
180
- * @returns {Number[]|null} A 16-element array containing a 4x4 transformation matrix.
181
- */
182
- get transform(): number[];
183
-
184
- /**
185
- * Sets the current transformation to apply to LAS positions as they are loaded.
186
- *
187
- * Default value is null.
188
- *
189
- * @param {Number[]|null} transform A 16-element array containing a 4x4 transformation matrix.
190
- */
191
- set transform(transform: number[]);
192
-
193
- /**
194
- * Gets the current rotations to apply to LAS positions as they are loaded.
195
- *
196
- * Rotations are an array of three Euler angles in degrees, for each of the X, Y and Z axis, applied in that order.
197
- *
198
- * Default value is null.
199
- *
200
- * @returns {Number[]|null} If defined, an array of three Euler angles in degrees, for each of the X, Y and Z axis. Null if undefined.
201
- */
202
- get rotate(): number[];
203
-
204
- /**
205
- * Sets the current rotations to apply to LAS positions as they are loaded.
206
- *
207
- * Rotations are an array of three Euler angles in degrees, for each of the X, Y and Z axis, applied in that order.
208
- *
209
- * Default value is null.
210
- *
211
- * @param {Number[]|null} rotate Array of three Euler angles in degrees, for each of the X, Y and Z axis.
212
- */
213
- set rotate(rotate: number[]);
214
-
215
- /**
216
- * Gets if LAS positions are rotated 90 degrees about X as they are loaded.
217
- *
218
- * Default value is ````false````.
219
- *
220
- * @returns {*}
221
- */
222
- get rotateX(): boolean;
223
-
224
- /**
225
- * Sets if LAS positions are rotated 90 degrees about X as they are loaded.
226
- *
227
- * Default value is ````false````.
228
- *
229
- * @param rotateX
230
- */
231
- set rotateX(rotateX: boolean);
232
-
233
- /**
234
- * Loads an ````LAS```` model into this LASLoaderPlugin's {@link Viewer}.
235
- *
236
- * @param {LoadLASModel} params Loading parameters.
237
- * @returns {SceneModel} SceneModel representing the model, which will have {@link Entity.isModel} set ````true```` and will be registered by {@link Entity.id} in {@link Scene.models}.
238
- */
239
- load(params?: LoadLASModel): SceneModel;
240
- }
1
+ import { Entity, Plugin, SceneModel, Viewer } from "../../viewer";
2
+ import { ModelStats } from "../index";
3
+
4
+ export declare interface ILASDefaultDataSource {
5
+ /**
6
+ * Gets the contents of the given LAS file in an arraybuffer.
7
+ *
8
+ * @param {String|Number} src Path or ID of an LAS file.
9
+ * @param {Function} ok Callback fired on success, argument is the LAS file in an arraybuffer.
10
+ * @param {Function} error Callback fired on error.
11
+ */
12
+ getLAS(src: string | number, ok: (LAS: ArrayBuffer) => void, error: (e: Error) => void): void;
13
+ }
14
+
15
+ export declare type LASLoaderPluginConfiguration = {
16
+ /** Optional ID for this plugin, so that we can find it within {@link Viewer.plugins}. */
17
+ id?: string;
18
+ /** A custom data source through which the LASLoaderPlugin can load model and metadata files. Defaults to an instance of {@link LASDefaultDataSource}, which loads over HTTP. */
19
+ dataSource?: ILASDefaultDataSource;
20
+ /** Configures LASLoaderPlugin to load every **n** points.*/
21
+ skip?: number;
22
+ /** Configures if LASLoaderPlugin assumes that LAS positions are stored in 64-bit floats instead of 32-bit. */
23
+ fp64?: number;
24
+ /** Configures whether LASLoaderPlugin assumes that LAS colors are encoded using 8 or 16 bits. Accepted values are 8, 16 an "auto". */
25
+ colorDepth?: 8 | 16 | "auto";
26
+ /** Whether to center the LAS points. Applied before "rotateX", "rotate" and "transform". */
27
+ center?: boolean;
28
+ /** Whether to rotate the LAS point positions 90 degrees. Applied after "center". */
29
+ rotateX?: boolean;
30
+ /** Rotations to apply to the LAS points, given as Euler angles in degrees, for each of the X, Y and Z axis. Rotation is applied after "center" and "rotateX".*/
31
+ rotate?: number[];
32
+ /** 4x4 transform matrix to immediately apply to the LAS points. This is applied after "center", "rotateX" and "rotate". Typically used instead of "rotateX" and "rotate". */
33
+ transform?: number[];
34
+ };
35
+
36
+ export declare type LoadLASModel = {
37
+ /** ID to assign to the root {@link Entity.id}, unique among all components in the Viewer's {@link Scene}, generated automatically by default. */
38
+ id?: string;
39
+ /** Path to a LAS file, as an alternative to the ````las```` parameter. */
40
+ src?: string;
41
+ /** The LAS file data, as an alternative to the ````src```` parameter. */
42
+ las?: ArrayBuffer;
43
+ /** Create entity with this id */
44
+ entityId?: string;
45
+ /** Creates a MetaModel from json */
46
+ metaModelJSON?: any;
47
+ /** Whether to load metadata for the LAS model. */
48
+ loadMetadata?: boolean;
49
+ /** The model's World-space double-precision 3D origin. Use this to position the model within xeokit's World coordinate system, using double-precision coordinates. */
50
+ origin?: number[];
51
+ /** The model single-precision 3D position, relative to the ````origin```` parameter. */
52
+ position?: number[];
53
+ /** The model's scale. */
54
+ scale?: number[];
55
+ /** The model's orientation, given as Euler angles in degrees, for each of the X, Y and Z axis. */
56
+ rotation?: number[];
57
+ /** The model's world transform matrix. Overrides the position, scale and rotation parameters. Relative to ````origin````. */
58
+ matrix?: number[];
59
+ /** Collects model statistics. */
60
+ stats?: ModelStats;
61
+ };
62
+
63
+ /**
64
+ * {@link Viewer} plugin that loads lidar point cloud geometry from LAS files.
65
+ */
66
+ export declare class LASLoaderPlugin extends Plugin {
67
+ /**
68
+ * @constructor
69
+ *
70
+ * @param {Viewer} viewer The Viewer.
71
+ * @param {LASLoaderPluginConfiguration} cfg Plugin configuration.
72
+ */
73
+ constructor(viewer: Viewer, cfg?: LASLoaderPluginConfiguration);
74
+
75
+ /**
76
+ * Sets a custom data source through which the LASLoaderPlugin can load LAS files.
77
+ *
78
+ * Default value is {@link LASDefaultDataSource}, which loads via HTTP.
79
+ *
80
+ * @type {ILASDefaultDataSource}
81
+ */
82
+ set dataSource(arg: ILASDefaultDataSource);
83
+
84
+ /**
85
+ * Gets the custom data source through which the LASLoaderPlugin can load LAS files.
86
+ *
87
+ * Default value is {@link LASDefaultDataSource}, which loads via HTTP.
88
+ *
89
+ * @type {ILASDefaultDataSource}
90
+ */
91
+ get dataSource(): ILASDefaultDataSource;
92
+
93
+ /**
94
+ * Configures LASLoaderPlugin to load every **n** points.
95
+ *
96
+ * Default value is ````1````.
97
+ *
98
+ * @param {Number} value The **n**th point that LASLoaderPlugin will read.
99
+ */
100
+ set skip(value: number);
101
+
102
+ /**
103
+ * When LASLoaderPlugin is configured to load every **n** points, returns the value of **n**.
104
+ *
105
+ * Default value is ````1````.
106
+ *
107
+ * @returns {Number} The **n**th point that LASLoaderPlugin will read.
108
+ */
109
+ get skip(): number;
110
+
111
+ /**
112
+ * Configures if LASLoaderPlugin assumes that LAS positions are stored in 64-bit floats instead of 32-bit.
113
+ *
114
+ * Default value is ````false````.
115
+ *
116
+ * @param {Boolean} value True if LASLoaderPlugin assumes that positions are stored in 64-bit floats instead of 32-bit.
117
+ */
118
+ set fp64(value: boolean);
119
+
120
+ /**
121
+ * Gets if LASLoaderPlugin assumes that LAS positions are stored in 64-bit floats instead of 32-bit.
122
+ *
123
+ * Default value is ````false````.
124
+ *
125
+ * @returns {Boolean} True if LASLoaderPlugin assumes that positions are stored in 64-bit floats instead of 32-bit.
126
+ */
127
+ get fp64(): boolean;
128
+
129
+ /**
130
+ * Configures whether LASLoaderPlugin assumes that LAS colors are encoded using 8 or 16 bits.
131
+ *
132
+ * Default value is ````8````.
133
+ *
134
+ * Note: LAS specification recommends 16 bits.
135
+ *
136
+ * @param {Number|String} value Valid values are 8, 16 and "auto".
137
+ */
138
+ set colorDepth(value: 8 | 16 | "auto");
139
+
140
+ /**
141
+ * Gets whether LASLoaderPlugin assumes that LAS colors are encoded using 8 or 16 bits.
142
+ *
143
+ * Default value is ````8````.
144
+ *
145
+ * Note: LAS specification recommends 16 bits.
146
+ *
147
+ * @returns {Number|String} Possible returned values are 8, 16 and "auto".
148
+ */
149
+ get colorDepth(): 8 | 16 | "auto";
150
+
151
+ /**
152
+ * Gets if LASLoaderPlugin immediately centers LAS positions.
153
+ *
154
+ * If this is ````true```` then centering is the first thing that happens to LAS positions as they are loaded.
155
+ *
156
+ * Default value is ````false````.
157
+ *
158
+ * @returns {Boolean} True if LASLoaderPlugin immediately centers LAS positions.
159
+ */
160
+ get center(): number[];
161
+
162
+ /**
163
+ * Configures if LASLoaderPlugin immediately centers LAS positions.
164
+ *
165
+ * If this is ````true```` then centering is the first thing that happens to LAS positions as they are loaded.
166
+ *
167
+ * Default value is ````false````.
168
+ *
169
+ * @param {Boolean} value True if LASLoaderPlugin immediately centers LAS positions.
170
+ */
171
+ set center(value: number[]);
172
+
173
+ /**
174
+ * Gets the current transformation to apply to LAS positions as they are loaded.
175
+ *
176
+ * If this is ````true```` then LAS positions will be transformed right after they are centered.
177
+ *
178
+ * Default value is null.
179
+ *
180
+ * @returns {Number[]|null} A 16-element array containing a 4x4 transformation matrix.
181
+ */
182
+ get transform(): number[];
183
+
184
+ /**
185
+ * Sets the current transformation to apply to LAS positions as they are loaded.
186
+ *
187
+ * Default value is null.
188
+ *
189
+ * @param {Number[]|null} transform A 16-element array containing a 4x4 transformation matrix.
190
+ */
191
+ set transform(transform: number[]);
192
+
193
+ /**
194
+ * Gets the current rotations to apply to LAS positions as they are loaded.
195
+ *
196
+ * Rotations are an array of three Euler angles in degrees, for each of the X, Y and Z axis, applied in that order.
197
+ *
198
+ * Default value is null.
199
+ *
200
+ * @returns {Number[]|null} If defined, an array of three Euler angles in degrees, for each of the X, Y and Z axis. Null if undefined.
201
+ */
202
+ get rotate(): number[];
203
+
204
+ /**
205
+ * Sets the current rotations to apply to LAS positions as they are loaded.
206
+ *
207
+ * Rotations are an array of three Euler angles in degrees, for each of the X, Y and Z axis, applied in that order.
208
+ *
209
+ * Default value is null.
210
+ *
211
+ * @param {Number[]|null} rotate Array of three Euler angles in degrees, for each of the X, Y and Z axis.
212
+ */
213
+ set rotate(rotate: number[]);
214
+
215
+ /**
216
+ * Gets if LAS positions are rotated 90 degrees about X as they are loaded.
217
+ *
218
+ * Default value is ````false````.
219
+ *
220
+ * @returns {*}
221
+ */
222
+ get rotateX(): boolean;
223
+
224
+ /**
225
+ * Sets if LAS positions are rotated 90 degrees about X as they are loaded.
226
+ *
227
+ * Default value is ````false````.
228
+ *
229
+ * @param rotateX
230
+ */
231
+ set rotateX(rotateX: boolean);
232
+
233
+ /**
234
+ * Loads an ````LAS```` model into this LASLoaderPlugin's {@link Viewer}.
235
+ *
236
+ * @param {LoadLASModel} params Loading parameters.
237
+ * @returns {SceneModel} SceneModel representing the model, which will have {@link Entity.isModel} set ````true```` and will be registered by {@link Entity.id} in {@link Scene.models}.
238
+ */
239
+ load(params?: LoadLASModel): SceneModel;
240
+ }
@@ -1 +1 @@
1
- export * from "./LASLoaderPlugin";
1
+ export * from "./LASLoaderPlugin";