@xeokit/xeokit-sdk 2.3.0-beta-25 → 2.3.0-beta-26
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
CHANGED
|
@@ -10137,12 +10137,6 @@ class AngleMeasurementsControl extends Component {
|
|
|
10137
10137
|
return;
|
|
10138
10138
|
}
|
|
10139
10139
|
|
|
10140
|
-
this.startDot = new Dot(this.plugin._container,
|
|
10141
|
-
{
|
|
10142
|
-
fillColor: this.plugin.defaultColor,
|
|
10143
|
-
zIndex: this.plugin.zIndex + 1
|
|
10144
|
-
});
|
|
10145
|
-
|
|
10146
10140
|
const plugin = this.plugin;
|
|
10147
10141
|
const scene = this.scene;
|
|
10148
10142
|
const cameraControl = plugin.viewer.cameraControl;
|
|
@@ -10212,7 +10206,7 @@ class AngleMeasurementsControl extends Component {
|
|
|
10212
10206
|
const pickResult = scene.pick({
|
|
10213
10207
|
canvasPos: mouseHoverCanvasPos,
|
|
10214
10208
|
pickSurface: true,
|
|
10215
|
-
pickSurfacePrecision:
|
|
10209
|
+
pickSurfacePrecision: pickSurfacePrecisionEnabled
|
|
10216
10210
|
});
|
|
10217
10211
|
if (pickResult && pickResult.worldPos) {
|
|
10218
10212
|
worldPos.set(pickResult.worldPos);
|
|
@@ -10300,9 +10294,7 @@ class AngleMeasurementsControl extends Component {
|
|
|
10300
10294
|
});
|
|
10301
10295
|
|
|
10302
10296
|
this._onHoverNothing = cameraControl.on("hoverOff", event => {
|
|
10303
|
-
|
|
10304
|
-
this.startDot.setVisible(false);
|
|
10305
|
-
}
|
|
10297
|
+
|
|
10306
10298
|
isMouseHoveringEntity = false;
|
|
10307
10299
|
if (this._currentAngleMeasurement) {
|
|
10308
10300
|
switch (this._state) {
|
|
@@ -10422,11 +10414,6 @@ class AngleMeasurementsControl extends Component {
|
|
|
10422
10414
|
return;
|
|
10423
10415
|
}
|
|
10424
10416
|
|
|
10425
|
-
if (this.startDot) {
|
|
10426
|
-
this.startDot.destroy();
|
|
10427
|
-
this.startDot = null;
|
|
10428
|
-
}
|
|
10429
|
-
|
|
10430
10417
|
this.reset();
|
|
10431
10418
|
|
|
10432
10419
|
const input = this.plugin.viewer.scene.input;
|
|
@@ -86753,7 +86740,7 @@ class DistanceMeasurementsControl extends Component {
|
|
|
86753
86740
|
const pickResult = scene.pick({
|
|
86754
86741
|
canvasPos: touchEndCanvasPos,
|
|
86755
86742
|
pickSurface: true,
|
|
86756
|
-
pickSurfacePrecision:
|
|
86743
|
+
pickSurfacePrecision: pickSurfacePrecisionEnabled
|
|
86757
86744
|
});
|
|
86758
86745
|
if (pickResult && pickResult.worldPos) {
|
|
86759
86746
|
switch (touchState) {
|
|
@@ -86776,7 +86763,7 @@ class DistanceMeasurementsControl extends Component {
|
|
|
86776
86763
|
entity: mouseHoverEntity,
|
|
86777
86764
|
worldPos: pickResult.worldPos
|
|
86778
86765
|
},
|
|
86779
|
-
approximate:
|
|
86766
|
+
approximate: (!pickSurfacePrecisionEnabled)
|
|
86780
86767
|
});
|
|
86781
86768
|
touchState = FIRST_TOUCH_EXPECTED;
|
|
86782
86769
|
break;
|
package/dist/xeokit-sdk.es.js
CHANGED
|
@@ -10133,12 +10133,6 @@ class AngleMeasurementsControl extends Component {
|
|
|
10133
10133
|
return;
|
|
10134
10134
|
}
|
|
10135
10135
|
|
|
10136
|
-
this.startDot = new Dot(this.plugin._container,
|
|
10137
|
-
{
|
|
10138
|
-
fillColor: this.plugin.defaultColor,
|
|
10139
|
-
zIndex: this.plugin.zIndex + 1
|
|
10140
|
-
});
|
|
10141
|
-
|
|
10142
10136
|
const plugin = this.plugin;
|
|
10143
10137
|
const scene = this.scene;
|
|
10144
10138
|
const cameraControl = plugin.viewer.cameraControl;
|
|
@@ -10208,7 +10202,7 @@ class AngleMeasurementsControl extends Component {
|
|
|
10208
10202
|
const pickResult = scene.pick({
|
|
10209
10203
|
canvasPos: mouseHoverCanvasPos,
|
|
10210
10204
|
pickSurface: true,
|
|
10211
|
-
pickSurfacePrecision:
|
|
10205
|
+
pickSurfacePrecision: pickSurfacePrecisionEnabled
|
|
10212
10206
|
});
|
|
10213
10207
|
if (pickResult && pickResult.worldPos) {
|
|
10214
10208
|
worldPos.set(pickResult.worldPos);
|
|
@@ -10296,9 +10290,7 @@ class AngleMeasurementsControl extends Component {
|
|
|
10296
10290
|
});
|
|
10297
10291
|
|
|
10298
10292
|
this._onHoverNothing = cameraControl.on("hoverOff", event => {
|
|
10299
|
-
|
|
10300
|
-
this.startDot.setVisible(false);
|
|
10301
|
-
}
|
|
10293
|
+
|
|
10302
10294
|
isMouseHoveringEntity = false;
|
|
10303
10295
|
if (this._currentAngleMeasurement) {
|
|
10304
10296
|
switch (this._state) {
|
|
@@ -10418,11 +10410,6 @@ class AngleMeasurementsControl extends Component {
|
|
|
10418
10410
|
return;
|
|
10419
10411
|
}
|
|
10420
10412
|
|
|
10421
|
-
if (this.startDot) {
|
|
10422
|
-
this.startDot.destroy();
|
|
10423
|
-
this.startDot = null;
|
|
10424
|
-
}
|
|
10425
|
-
|
|
10426
10413
|
this.reset();
|
|
10427
10414
|
|
|
10428
10415
|
const input = this.plugin.viewer.scene.input;
|
|
@@ -86749,7 +86736,7 @@ class DistanceMeasurementsControl extends Component {
|
|
|
86749
86736
|
const pickResult = scene.pick({
|
|
86750
86737
|
canvasPos: touchEndCanvasPos,
|
|
86751
86738
|
pickSurface: true,
|
|
86752
|
-
pickSurfacePrecision:
|
|
86739
|
+
pickSurfacePrecision: pickSurfacePrecisionEnabled
|
|
86753
86740
|
});
|
|
86754
86741
|
if (pickResult && pickResult.worldPos) {
|
|
86755
86742
|
switch (touchState) {
|
|
@@ -86772,7 +86759,7 @@ class DistanceMeasurementsControl extends Component {
|
|
|
86772
86759
|
entity: mouseHoverEntity,
|
|
86773
86760
|
worldPos: pickResult.worldPos
|
|
86774
86761
|
},
|
|
86775
|
-
approximate:
|
|
86762
|
+
approximate: (!pickSurfacePrecisionEnabled)
|
|
86776
86763
|
});
|
|
86777
86764
|
touchState = FIRST_TOUCH_EXPECTED;
|
|
86778
86765
|
break;
|