@xeokit/xeokit-sdk 2.6.0-beta-11 → 2.6.0-beta-13

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.
@@ -1,3 +1,4 @@
1
1
  export * from "./DistanceMeasurementsPlugin.js";
2
2
  export * from "./DistanceMeasurementsControl.js";
3
3
  export * from "./DistanceMeasurementsMouseControl.js";
4
+ export * from "./DistanceMeasurementsTouchControl.js";
@@ -3,7 +3,7 @@ import {CameraFlightAnimation} from "./scene/camera/CameraFlightAnimation.js";
3
3
  import {CameraControl} from "./scene/CameraControl/CameraControl.js";
4
4
  import {MetaScene} from "./metadata/MetaScene.js";
5
5
  import {LocaleService} from "./localization/LocaleService.js";
6
- import html2canvas from '../../node_modules/html2canvas/dist/html2canvas.esm.js';
6
+ import html2canvas from 'html2canvas/dist/html2canvas.esm.js';
7
7
 
8
8
  /**
9
9
  * The 3D Viewer at the heart of the xeokit SDK.
@@ -539,4 +539,4 @@ class Viewer {
539
539
  }
540
540
  }
541
541
 
542
- export {Viewer}
542
+ export {Viewer}
@@ -336,6 +336,14 @@ class PickResult {
336
336
  }
337
337
  }
338
338
 
339
+ /**
340
+ * True if snapped to edge or vertex.
341
+ * @returns {boolean}
342
+ */
343
+ get snapped() {
344
+ return this.snappedToEdge || this.snappedToVertex;
345
+ }
346
+
339
347
  /**
340
348
  * @private
341
349
  */