@xeokit/xeokit-sdk 2.6.17 → 2.6.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 (37) hide show
  1. package/dist/xeokit-sdk.cjs.js +2262 -40
  2. package/dist/xeokit-sdk.es.js +2252 -41
  3. package/dist/xeokit-sdk.es5.js +190 -52
  4. package/dist/xeokit-sdk.min.cjs.js +4 -4
  5. package/dist/xeokit-sdk.min.es.js +5 -5
  6. package/dist/xeokit-sdk.min.es5.js +4 -4
  7. package/package.json +2 -2
  8. package/src/extras/PointerLens/PointerLens.js +2 -2
  9. package/src/plugins/AnnotationsPlugin/Annotation.js +1 -0
  10. package/src/plugins/CityJSONLoaderPlugin/CityJSONDefaultDataSource.js +15 -2
  11. package/src/plugins/DistanceMeasurementsPlugin/DistanceMeasurement.js +1 -1
  12. package/src/plugins/DotBIMLoaderPlugin/DotBIMDefaultDataSource.js +15 -2
  13. package/src/plugins/GLTFLoaderPlugin/GLTFDefaultDataSource.js +18 -5
  14. package/src/plugins/LASLoaderPlugin/LASDefaultDataSource.js +15 -1
  15. package/src/plugins/STLLoaderPlugin/STLDefaultDataSource.js +17 -0
  16. package/src/plugins/WebIFCLoaderPlugin/WebIFCDefaultDataSource.js +16 -1
  17. package/src/plugins/XKTLoaderPlugin/XKTDefaultDataSource.js +18 -4
  18. package/src/plugins/ZonesPlugin/index.js +2046 -0
  19. package/src/plugins/index.js +2 -1
  20. package/src/plugins/lib/html/Dot.js +19 -1
  21. package/src/viewer/Viewer.js +3 -1
  22. package/src/viewer/scene/CameraControl/lib/handlers/MousePickHandler.js +9 -0
  23. package/src/viewer/scene/geometry/builders/buildLineGeometry.js +267 -0
  24. package/src/viewer/scene/input/Input.js +41 -0
  25. package/src/viewer/scene/marker/Marker.js +1 -1
  26. package/src/viewer/scene/mesh/Mesh.js +5 -0
  27. package/src/viewer/scene/model/SceneModel.js +7 -1
  28. package/src/viewer/scene/scene/Scene.js +30 -6
  29. package/src/viewer/scene/sectionPlane/SectionPlane.js +3 -7
  30. package/src/viewer/scene/webgl/Renderer.js +1 -1
  31. package/src/viewer/scene/webgl/occlusion/OcclusionLayer.js +1 -1
  32. package/src/viewer/scene/webgl/occlusion/OcclusionTester.js +8 -4
  33. package/types/viewer/Viewer.d.ts +2 -0
  34. package/types/viewer/scene/geometry/builders/buildLineGeometry.d.ts +22 -0
  35. package/types/viewer/scene/geometry/builders/buildPolylineGeometry.d.ts +2 -2
  36. package/types/viewer/scene/scene/Scene.d.ts +11 -0
  37. package/dist/web-ifc.wasm +0 -0
@@ -0,0 +1,22 @@
1
+ import { Geometry } from "../Geometry";
2
+
3
+ export declare type buildLineGeometryConfiguration = {
4
+ /* Optional ID for the {@link Geometry}, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
5
+ id?: string;
6
+ /* 3D start point (x0, y0, z0). */
7
+ startPoint?: number[];
8
+ /* 3D end point (x1, y1, z1). */
9
+ endPoint?: number[];
10
+ /* Lengths of segments that describe a pattern. */
11
+ pattern?: number[];
12
+ /* If true: it will try to make sure the line doesn't end up with a gap, as it will extend the last segment. */
13
+ extendToEnd?: boolean;
14
+ };
15
+
16
+ /**
17
+ * @desc Creates a 3D line {@link Geometry}.
18
+ *
19
+ * @param {buildLineGeometryConfiguration} [cfg] Configs
20
+ * @returns {Object} Configuration for a {@link Geometry} subtype.
21
+ */
22
+ export function buildLineGeometry(cfg: buildLineGeometryConfiguration): Geometry;
@@ -19,7 +19,7 @@ export declare type buildPolylineGeometryFromCurveConfiguration = {
19
19
  /**
20
20
  * @desc Creates a 3D polyline {@link Geometry}.
21
21
  *
22
- * @param {buildBoxLinesGeometryConfiguration} [cfg] Configs
22
+ * @param {buildPolylineGeometryConfiguration} [cfg] Configs
23
23
  * @returns {Object} Configuration for a {@link Geometry} subtype.
24
24
  */
25
25
  export function buildPolylineGeometry(cfg: buildPolylineGeometryConfiguration): Geometry;
@@ -27,7 +27,7 @@ export function buildPolylineGeometry(cfg: buildPolylineGeometryConfiguration):
27
27
  /**
28
28
  * @desc Creates a 3D polyline from curve {@link Geometry}.
29
29
  *
30
- * @param {buildBoxLinesGeometryConfiguration} [cfg] Configs
30
+ * @param {buildPolylineGeometryFromCurveConfiguration} [cfg] Configs
31
31
  * @returns {Object} Configuration for a {@link Geometry} subtype.
32
32
  */
33
33
  export function buildPolylineGeometryFromCurve(cfg: buildPolylineGeometryFromCurveConfiguration): Geometry;
@@ -218,6 +218,17 @@ export declare class Scene extends Component {
218
218
  */
219
219
  get pbrEnabled(): boolean
220
220
 
221
+ /**
222
+ * Gets the Z value of offset for Marker's OcclusionTester.
223
+ * The closest the value is to 0.000 the more precise OcclusionTester will be, but at the same time the less
224
+ * precise it will behave for Markers that are located exactly on the Surface.
225
+ *
226
+ * Default is ````-0.001````.
227
+ *
228
+ * @returns {Number} Z offset for Marker
229
+ */
230
+ get markerZOffset(): number
231
+
221
232
  /**
222
233
  * Gets the IDs of the {@link Entity}s in {@link Scene.models}.
223
234
  *
package/dist/web-ifc.wasm DELETED
Binary file