@realsee/dnalogel 4.0.0-webgpu.14 → 4.0.0-webgpu.16
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/CHANGELOG.md +18 -0
- package/TERMS.txt +24 -87
- package/dist/floorplan.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +34 -32
- package/dist/index.js.map +1 -1
- package/dist/internal/{BasePlugin-CPJ1ahrJ.js → BasePlugin-89hE8Cux.js} +2 -2
- package/dist/internal/{BasePlugin-CPJ1ahrJ.js.map → BasePlugin-89hE8Cux.js.map} +1 -1
- package/dist/internal/BasePluginWithData-BLOUilj_.js +7 -0
- package/dist/internal/{BasePluginWithData-Uq1cY5sC.js.map → BasePluginWithData-BLOUilj_.js.map} +1 -1
- package/dist/internal/{pano-measure-BEUknZ_O.js → Controller-B-10xO2H.js} +56 -42
- package/dist/internal/Controller-B-10xO2H.js.map +1 -0
- package/dist/internal/{measure-CTsB8Z-c.js → Controller-Bt2czarX.js} +10 -7
- package/dist/internal/Controller-Bt2czarX.js.map +1 -0
- package/dist/internal/{Controller-B9xMQukV.js → Controller-CTQsxSIv.js} +2 -2
- package/dist/internal/{Controller-B9xMQukV.js.map → Controller-CTQsxSIv.js.map} +1 -1
- package/dist/internal/{PointHelper-Bgbt0S7b.js → PointHelper-grrf8vu1.js} +23 -8
- package/dist/internal/PointHelper-grrf8vu1.js.map +1 -0
- package/dist/internal/{Rectangle-Dyjp88lU.js → Rectangle-CrP2ewnA.js} +3 -3
- package/dist/internal/{Rectangle-Dyjp88lU.js.map → Rectangle-CrP2ewnA.js.map} +1 -1
- package/dist/internal/{Work-nlQCCreU.js → Work-BeXbgDwp.js} +4 -4
- package/dist/internal/{Work-nlQCCreU.js.map → Work-BeXbgDwp.js.map} +1 -1
- package/dist/internal/{area-maker-DwPBgIH_.js → area-maker-CPQF8Zvc.js} +2 -2
- package/dist/internal/{area-maker-DwPBgIH_.js.map → area-maker-CPQF8Zvc.js.map} +1 -1
- package/dist/internal/{controller-B3u-PyQb.js → controller-18q1jMVV.js} +16 -16
- package/dist/internal/{controller-B3u-PyQb.js.map → controller-18q1jMVV.js.map} +1 -1
- package/dist/internal/{cruise-XCsWQQtZ.js → cruise-CVIrFchH.js} +2 -2
- package/dist/internal/{cruise-XCsWQQtZ.js.map → cruise-CVIrFchH.js.map} +1 -1
- package/dist/internal/{current-pano-image-Yt0ptdOO.js → current-pano-image-BaYriyS_.js} +2 -2
- package/dist/internal/{current-pano-image-Yt0ptdOO.js.map → current-pano-image-BaYriyS_.js.map} +1 -1
- package/dist/internal/edgeSnap-8fdFCcXB.js +469 -0
- package/dist/internal/edgeSnap-8fdFCcXB.js.map +1 -0
- package/dist/internal/{floorplan-Bnk3Jg8m.js → floorplan-CofR5nkn.js} +2 -2
- package/dist/internal/{floorplan-Bnk3Jg8m.js.map → floorplan-CofR5nkn.js.map} +1 -1
- package/dist/internal/measure-BEPx6Dxe.js +7 -0
- package/dist/internal/measure-BEPx6Dxe.js.map +1 -0
- package/dist/internal/measure-v2-sRY76hly.js +83 -0
- package/dist/internal/measure-v2-sRY76hly.js.map +1 -0
- package/dist/internal/{model-maker-tbF87kJz.js → model-maker-ggAsocXZ.js} +2 -2
- package/dist/internal/{model-maker-tbF87kJz.js.map → model-maker-ggAsocXZ.js.map} +1 -1
- package/dist/internal/object3d-helper-DFamC2FE.js +7 -0
- package/dist/internal/{object3d-helper-BgYvVhp2.js.map → object3d-helper-DFamC2FE.js.map} +1 -1
- package/dist/internal/{pano-compass-BwxmzCPI.js → pano-compass-DGHhaCBJ.js} +2 -2
- package/dist/internal/{pano-compass-BwxmzCPI.js.map → pano-compass-DGHhaCBJ.js.map} +1 -1
- package/dist/internal/{pano-door-label-Bwvaf5xx.js → pano-door-label-CWY7Kxkk.js} +2 -2
- package/dist/internal/{pano-door-label-Bwvaf5xx.js.map → pano-door-label-CWY7Kxkk.js.map} +1 -1
- package/dist/internal/pano-measure-CQ_ZZzz5.js +9 -0
- package/dist/internal/pano-measure-CQ_ZZzz5.js.map +1 -0
- package/dist/internal/pano-measure-v2-CzOdP5Yv.js +301 -0
- package/dist/internal/pano-measure-v2-CzOdP5Yv.js.map +1 -0
- package/dist/internal/{pano-tag-CaRrmqmS.js → pano-tag-C6g7mXhw.js} +2 -2
- package/dist/internal/{pano-tag-CaRrmqmS.js.map → pano-tag-C6g7mXhw.js.map} +1 -1
- package/dist/internal/{pano-video-DLjuDeQV.js → pano-video-DTbKV54W.js} +2 -2
- package/dist/internal/{pano-video-DLjuDeQV.js.map → pano-video-DTbKV54W.js.map} +1 -1
- package/dist/internal/{pipeline-Dg9R3h54.js → pipeline-CkYhFOhG.js} +2 -2
- package/dist/internal/{pipeline-Dg9R3h54.js.map → pipeline-CkYhFOhG.js.map} +1 -1
- package/dist/internal/{sculpt-CMFBenui.js → sculpt-rEvaT1IE.js} +3 -3
- package/dist/internal/{sculpt-CMFBenui.js.map → sculpt-rEvaT1IE.js.map} +1 -1
- package/dist/plugins/area-maker.js +1 -1
- package/dist/plugins/cruise.js +2 -2
- package/dist/plugins/current-pano-image.js +1 -1
- package/dist/plugins/guide-line.js +1 -1
- package/dist/plugins/measure-v2.d.ts +2 -0
- package/dist/plugins/measure-v2.js +3 -0
- package/dist/plugins/measure.js +3 -1
- package/dist/plugins/model-maker.js +1 -1
- package/dist/plugins/object3d-helper.js +2 -2
- package/dist/plugins/pano-compass.js +1 -1
- package/dist/plugins/pano-door-label.js +1 -1
- package/dist/plugins/pano-measure-v2.d.ts +2 -0
- package/dist/plugins/pano-measure-v2.js +1 -0
- package/dist/plugins/pano-measure.js +1 -1
- package/dist/plugins/pano-tag.js +2 -2
- package/dist/plugins/pano-video.js +1 -1
- package/dist/plugins/pipeline.js +1 -1
- package/dist/plugins/sculpt.js +2 -2
- package/dist/types/MeasurePlugin/Controller.d.ts +1 -0
- package/dist/types/MeasurePluginV2/Controller.d.ts +49 -0
- package/dist/types/MeasurePluginV2/Magnifier.d.ts +29 -0
- package/dist/types/MeasurePluginV2/PointHelper.d.ts +22 -0
- package/dist/types/MeasurePluginV2/PointOverlay.d.ts +88 -0
- package/dist/types/MeasurePluginV2/PointSelector.d.ts +51 -0
- package/dist/types/MeasurePluginV2/edgeSnap.d.ts +53 -0
- package/dist/types/MeasurePluginV2/index.d.ts +28 -0
- package/dist/types/PanoMeasurePlugin/Controller/BaseController.d.ts +1 -0
- package/dist/types/PanoMeasurePlugin/Controller/EditController.d.ts +4 -2
- package/dist/types/PanoMeasurePlugin/Controller/MixedController.d.ts +3 -1
- package/dist/types/PanoMeasurePlugin/Controller/WatchController.d.ts +4 -0
- package/dist/types/PanoMeasurePlugin/Controller/index.d.ts +9 -3
- package/dist/types/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +5 -5
- package/dist/types/PanoMeasurePluginV2/Controller.d.ts +32 -0
- package/dist/types/PanoMeasurePluginV2/PointSelector.d.ts +32 -0
- package/dist/types/PanoMeasurePluginV2/PreviewLine.d.ts +6 -0
- package/dist/types/PanoMeasurePluginV2/controllers.d.ts +44 -0
- package/dist/types/PanoMeasurePluginV2/index.d.ts +8 -0
- package/dist/types/public/index.d.ts +4 -0
- package/dist/types/public/plugins/measure-v2.d.ts +5 -0
- package/dist/types/public/plugins/pano-measure-v2.d.ts +2 -0
- package/dist/types/shared-utils/three/Magnifier.d.ts +21 -0
- package/dist/types/shared-utils/three/PointSelector/index.d.ts +16 -7
- package/dist/utils.js +1 -1
- package/package.json +9 -1
- package/LICENSE-UPDATE.txt +0 -5
- package/dist/internal/BasePluginWithData-Uq1cY5sC.js +0 -7
- package/dist/internal/PointHelper-Bgbt0S7b.js.map +0 -1
- package/dist/internal/measure-CTsB8Z-c.js.map +0 -1
- package/dist/internal/object3d-helper-BgYvVhp2.js +0 -7
- package/dist/internal/pano-measure-BEUknZ_O.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as e } from "./rolldown-runtime-B0aSnxlc.js";
|
|
2
2
|
import { t } from "./Subscribe-DLlAl88n.js";
|
|
3
|
-
import {
|
|
3
|
+
import { c as n, g as r, n as i, r as a } from "./PointHelper-grrf8vu1.js";
|
|
4
4
|
import { a as o, g as s, n as c, t as l } from "./generatePolygonGeometry-DEr9kX3D.js";
|
|
5
5
|
import { t as u } from "./getFiveModel-CZVrrU1D.js";
|
|
6
6
|
import { n as d } from "./util-vGeVT4oo.js";
|
|
@@ -10,7 +10,7 @@ import { n as m, t as h } from "./isNil-CQNA0Sbe.js";
|
|
|
10
10
|
import { t as g } from "./uuid-BfVaI9vM.js";
|
|
11
11
|
import { n as _, t as v } from "./tween.esm-CJDtohfp.js";
|
|
12
12
|
import { i as y } from "./animationFrame-CacKXN8l.js";
|
|
13
|
-
import { t as b } from "./BasePlugin-
|
|
13
|
+
import { t as b } from "./BasePlugin-89hE8Cux.js";
|
|
14
14
|
import { C as x, G as S, J as C, K as w, L as T, M as E, N as ee, O as te, P as D, Q as O, R as k, S as ne, U as A, V as j, W as re, X as M, Y as N, Z as ie, _ as ae, b as oe, d as se, et as ce, it as P, j as F, k as le, l as I, m as L, n as R, o as z, p as B, q as ue, rt as V, st as H, t as de, x as fe, z as U } from "./component.svelte-D5LYqt50.js";
|
|
15
15
|
import { n as pe, t as me } from "./safeObj-ic96Cf8D.js";
|
|
16
16
|
import { t as he } from "./FiveLine-0OtX3RDV.js";
|
|
@@ -336,18 +336,19 @@ var Qe = class {
|
|
|
336
336
|
this.five = e.five, this.hook = e.hook, this.model = e.model, this.getMeasureType = e.getMeasureType, this.config = e.config, this.editParams = e.editParams, this.magnifierParams = e.pointSelectorConfig?.helper?.magnifierParams, this.magnifier = e.magnifier, this.pointSelectorConfig = {
|
|
337
337
|
...e.pointSelectorConfig,
|
|
338
338
|
helper: { ...e.pointSelectorConfig?.helper }
|
|
339
|
-
}, this.container = e.container, this.isMobile = e.openParams?.isMobile ?? !1, this.workUtil = e.workUtil, this.userDistanceItemCreator = e.userDistanceItemCreator, this.group = e.group, this.mouseGroup = e.mouseGroup, this.dashed =
|
|
340
|
-
0,
|
|
341
|
-
0,
|
|
342
|
-
0
|
|
343
|
-
]), new X([
|
|
344
|
-
0,
|
|
345
|
-
0,
|
|
346
|
-
0
|
|
347
|
-
]), this.model), this.dashed.distanceItem.setCanSelect(!1), this.dashed.mesh.setMaterial({
|
|
339
|
+
}, this.container = e.container, this.isMobile = e.openParams?.isMobile ?? !1, this.workUtil = e.workUtil, this.userDistanceItemCreator = e.userDistanceItemCreator, this.group = e.group, this.mouseGroup = e.mouseGroup, this.dashed = this.createPreviewLine(), this.dashed.distanceItem.setCanSelect(!1), this.dashed.mesh.setMaterial({
|
|
348
340
|
dashed: !0,
|
|
349
341
|
dashScale: 100
|
|
350
|
-
}), this.dashed.mesh.name = "dashLine", this.perpendicularDashed =
|
|
342
|
+
}), this.dashed.mesh.name = "dashLine", this.perpendicularDashed = this.createPreviewLine(), this.perpendicularDashed.distanceItem.setCanSelect(!1), this.perpendicularDashed.mesh.setMaterial({
|
|
343
|
+
dashed: !0,
|
|
344
|
+
dashScale: 40,
|
|
345
|
+
color: new K(10218089)
|
|
346
|
+
}), this.perpendicularDashed.mesh.name = "perpendicularDashLine";
|
|
347
|
+
let t = this.five.getElement();
|
|
348
|
+
t && (t.addEventListener("touchstart", et), t.addEventListener("contextmenu", et));
|
|
349
|
+
}
|
|
350
|
+
createPreviewLine() {
|
|
351
|
+
return new Y(new X([
|
|
351
352
|
0,
|
|
352
353
|
0,
|
|
353
354
|
0
|
|
@@ -355,13 +356,7 @@ var Qe = class {
|
|
|
355
356
|
0,
|
|
356
357
|
0,
|
|
357
358
|
0
|
|
358
|
-
]), this.model)
|
|
359
|
-
dashed: !0,
|
|
360
|
-
dashScale: 40,
|
|
361
|
-
color: new K(10218089)
|
|
362
|
-
}), this.perpendicularDashed.mesh.name = "perpendicularDashLine";
|
|
363
|
-
let t = this.five.getElement();
|
|
364
|
-
t && (t.addEventListener("touchstart", et), t.addEventListener("contextmenu", et));
|
|
359
|
+
]), this.model);
|
|
365
360
|
}
|
|
366
361
|
updateDistanceUI = () => {
|
|
367
362
|
this.dashed.distanceItem.update(this.five), this.model.getAllLines().forEach((e) => e.distanceItem.update(this.five));
|
|
@@ -711,15 +706,7 @@ var ft = () => !1, Q = class extends tt {
|
|
|
711
706
|
let t = e.type === "area", n = Array.isArray(e) && e[0]?.type === "line";
|
|
712
707
|
t && this.unHighlightArea(e), n && this.unHighlightLines(e);
|
|
713
708
|
}
|
|
714
|
-
}).appendTo(this.container), this.pointSelector = new
|
|
715
|
-
...this.pointSelectorConfig,
|
|
716
|
-
mode: this.editParams.pointSelectorMode,
|
|
717
|
-
helper: {
|
|
718
|
-
magnifierParams: this.magnifierParams,
|
|
719
|
-
container: this.container,
|
|
720
|
-
...this.pointSelectorConfig.helper
|
|
721
|
-
}
|
|
722
|
-
}), this.pointSelector.enable(), this.polyline = new Z({ model: this.model }), this.area = new at(void 0, {
|
|
709
|
+
}).appendTo(this.container), this.pointSelector = this.createPointSelector(e), this.pointSelector.enable(), this.polyline = new Z({ model: this.model }), this.area = new at(void 0, {
|
|
723
710
|
five: this.five,
|
|
724
711
|
model: this.model,
|
|
725
712
|
meshContainer: this.group,
|
|
@@ -732,6 +719,17 @@ var ft = () => !1, Q = class extends tt {
|
|
|
732
719
|
});
|
|
733
720
|
}), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsTapGesture", this.wantsTapGesture), this.five.on("wantsMoveToPano", this.wantsMoveToPano), this.five.on("wantsChangeMode", ft), this.pointSelector.on("intersectionUpdate", this.onIntersectionUpdate), this.pointSelector.on("intersectionUpdate", this.checkMouseLeave), this.pointSelector.on("select", this.onSelect), this.pointSelector.on("wantsSelect", this.onWantsSelect), this.polyline.hook.on("lineAdded", this.onLineChanged), this.polyline.hook.on("lineRemoved", this.onLineChanged), this.five.helperVisible = !1, this.hook.emit("anchorChange", null), this.hook.emit("editedDashedLineChange", null), this.five.refresh();
|
|
734
721
|
}
|
|
722
|
+
createPointSelector(e) {
|
|
723
|
+
return new a(this.five, {
|
|
724
|
+
...this.pointSelectorConfig,
|
|
725
|
+
mode: this.editParams.pointSelectorMode,
|
|
726
|
+
helper: {
|
|
727
|
+
magnifierParams: this.magnifierParams,
|
|
728
|
+
container: this.container,
|
|
729
|
+
...this.pointSelectorConfig.helper
|
|
730
|
+
}
|
|
731
|
+
});
|
|
732
|
+
}
|
|
735
733
|
dispose() {
|
|
736
734
|
super.dispose(), this.model.areas.forEach((e) => {
|
|
737
735
|
(e.points.length < 2 || e.polygon.isBlank) && this.model.removeArea(e);
|
|
@@ -1080,14 +1078,18 @@ var _t = () => !1, vt = class extends tt {
|
|
|
1080
1078
|
}) || (this.editPointState = r, this.magnifier.appendTo(this.container), this.magnifier.enable(), this.group.add(this.mouseGroup));
|
|
1081
1079
|
};
|
|
1082
1080
|
onPanEnd = () => {
|
|
1083
|
-
this.editPointState && (this.editPointState.associatedLines.forEach((e) => e.mesh.setMaterial({ dashed: !1 })), this.highlightLines(this.editPointState.associatedLines), this.editPointState = void 0, this.magnifier.disable(), this.group.remove(this.mouseGroup));
|
|
1081
|
+
this.editPointState && (this.editPointState.associatedLines.forEach((e) => e.mesh.setMaterial({ dashed: !1 })), this.highlightLines(this.editPointState.associatedLines), this.editPointState = void 0, this.magnifier.disable(), this.group.remove(this.mouseGroup), this.onPointEditEnd());
|
|
1084
1082
|
};
|
|
1083
|
+
onPointEditEnd() {}
|
|
1084
|
+
resolveIntersection(e, t) {
|
|
1085
|
+
return e;
|
|
1086
|
+
}
|
|
1085
1087
|
onPan = (e) => {
|
|
1086
1088
|
if (!this.editPointState || !this.fiveElement) return;
|
|
1087
1089
|
let t = gt(e).ndcPoint, n = new Ee();
|
|
1088
1090
|
n.setFromCamera(t, this.five.camera);
|
|
1089
1091
|
let [r] = u(this.five).intersectRaycaster(n);
|
|
1090
|
-
r && this.onIntersectionUpdate(r);
|
|
1092
|
+
r && this.onIntersectionUpdate(this.resolveIntersection(r, t));
|
|
1091
1093
|
};
|
|
1092
1094
|
onIntersectionUpdate = (e, t) => {
|
|
1093
1095
|
if (this.editPointState) {
|
|
@@ -1331,7 +1333,9 @@ var wt = class {
|
|
|
1331
1333
|
}, o = s(a, this.five.getElement());
|
|
1332
1334
|
this.centerMouseXY = o;
|
|
1333
1335
|
};
|
|
1334
|
-
getIntersection
|
|
1336
|
+
getIntersection() {
|
|
1337
|
+
return this.centerMouseXY ? (this.raycaster.setFromCamera(this.centerMouseXY, this.five.camera), u(this.five).intersectRaycaster(this.raycaster)[0] || null) : null;
|
|
1338
|
+
}
|
|
1335
1339
|
pieceChange(e) {
|
|
1336
1340
|
let t = e.face, n = e.point;
|
|
1337
1341
|
if (t && n) {
|
|
@@ -1394,12 +1398,15 @@ var wt = class {
|
|
|
1394
1398
|
rangePieceController;
|
|
1395
1399
|
disposers = [];
|
|
1396
1400
|
constructor(e) {
|
|
1397
|
-
super(e), this.model = new yt(this.config), this.polyline = new Z({ model: this.model }), this.rangePieceController =
|
|
1401
|
+
super(e), this.model = new yt(this.config), this.polyline = new Z({ model: this.model }), this.rangePieceController = this.createRangePieceController(e), this.deleteDom = new lt(this.five, {
|
|
1398
1402
|
i18n: this.config.i18n,
|
|
1399
1403
|
onClick: this.deleteDomClickCallback,
|
|
1400
1404
|
cancel: this.cancelDeleteClickCallback
|
|
1401
1405
|
}).appendTo(this.container), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsTapGesture", this.onWantsTapGesture), this.five.on("wantsToMoveToPano", this.onWantsToMoveToPano), this.five.helperVisible = !1, this.hook.emit("editedDashedLineChange", null), this.hook.on("getStartPoint", this.onGetStartPoint), this.hook.on("getEndPoint", this.onGetEndPoint), this.hook.on("nowPointChange", this.onNowPointChange), this.hook.on("willChangeState", this.onWillChangeState), this.five.refresh();
|
|
1402
1406
|
}
|
|
1407
|
+
createRangePieceController(e) {
|
|
1408
|
+
return new wt(e);
|
|
1409
|
+
}
|
|
1403
1410
|
dispose() {
|
|
1404
1411
|
super.dispose(), this.disposers.forEach((e) => e()), this.five.helperVisible = !0, this.rangePieceController.dispose(), this.deleteDom.dispose(), this.group.remove(this.mouseGroup), this.dashed.remove(), this.perpendicularDashed.remove(), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("wantsTapGesture", this.onWantsTapGesture), this.five.off("wantsToMoveToPano", this.onWantsToMoveToPano), this.hook.off("getStartPoint", this.onGetStartPoint), this.hook.off("getEndPoint", this.onGetEndPoint), this.hook.off("nowPointChange", this.onNowPointChange), this.hook.off("willChangeState", this.onWillChangeState), this.hook.emit("selectedChange", []), this.five.needsRender = !0;
|
|
1405
1412
|
}
|
|
@@ -2343,18 +2350,18 @@ var _n = {
|
|
|
2343
2350
|
container = document.createElement("div");
|
|
2344
2351
|
shortcutKeyController;
|
|
2345
2352
|
constructor(e, t) {
|
|
2346
|
-
super(e), this.five = e, this.params = t, this.config = ge(t, ["openParams", "pointSelectorConfig"]), this.model = new yt(this.config), this.isMobile = t?.openParams?.isMobile ?? !1, this.magnifier =
|
|
2353
|
+
super(e), this.five = e, this.params = t, this.config = ge(t, ["openParams", "pointSelectorConfig"]), this.model = new yt(this.config), this.isMobile = t?.openParams?.isMobile ?? !1, this.magnifier = this.createMagnifier(e, t.pointSelectorConfig?.helper?.magnifierParams ?? {
|
|
2347
2354
|
width: 190,
|
|
2348
2355
|
height: 190,
|
|
2349
2356
|
scale: 2
|
|
2350
2357
|
}), this.allowMeasureType = Array.from(new Set(t.editParams?.allowMeasureType ?? ["line"])), this.currentMeasureType = this.allowMeasureType[0] ?? "line", this.group = new be(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.visibility = "hidden", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0", this.container.style.zIndex = "1";
|
|
2351
|
-
let
|
|
2358
|
+
let r = t.editParams?.pointSelectorMode ?? (n ? "fixed" : "cursor"), i = this.params.openParams ?? {};
|
|
2352
2359
|
if (this.params.useUIController !== !1) {
|
|
2353
2360
|
let e = {
|
|
2354
2361
|
container: this.container,
|
|
2355
|
-
openParams:
|
|
2362
|
+
openParams: i,
|
|
2356
2363
|
i18n: t.i18n,
|
|
2357
|
-
pointSelectorMode:
|
|
2364
|
+
pointSelectorMode: r,
|
|
2358
2365
|
useNewUI: this.allowMeasureType.length > 1,
|
|
2359
2366
|
...me(this.params.useUIController)
|
|
2360
2367
|
};
|
|
@@ -2363,13 +2370,22 @@ var _n = {
|
|
|
2363
2370
|
if (this.params.useGuideController !== !1) {
|
|
2364
2371
|
let e = {
|
|
2365
2372
|
container: this.container,
|
|
2366
|
-
pointSelectorMode:
|
|
2373
|
+
pointSelectorMode: r,
|
|
2367
2374
|
i18n: t.i18n,
|
|
2368
2375
|
...me(this.params.useGuideController)
|
|
2369
2376
|
};
|
|
2370
2377
|
this.useGuideController = new yn(this, e);
|
|
2371
2378
|
}
|
|
2372
2379
|
}
|
|
2380
|
+
createMagnifier(e, t) {
|
|
2381
|
+
return new r(e, t);
|
|
2382
|
+
}
|
|
2383
|
+
createModeController(e, t) {
|
|
2384
|
+
return new t(e);
|
|
2385
|
+
}
|
|
2386
|
+
resetUIController() {
|
|
2387
|
+
this.useUIController?.hide(), this.useUIController?.show();
|
|
2388
|
+
}
|
|
2373
2389
|
appendTo(e) {
|
|
2374
2390
|
e.append(this.container);
|
|
2375
2391
|
}
|
|
@@ -2404,7 +2420,7 @@ var _n = {
|
|
|
2404
2420
|
};
|
|
2405
2421
|
if (!t[e]) throw Error("不存在的 Mode");
|
|
2406
2422
|
let n = this.createControllerParams();
|
|
2407
|
-
this.controller =
|
|
2423
|
+
this.controller = this.createModeController(n, t[e]), e === "View" ? (this.useUIController?.hide(), this.useGuideController?.hide()) : (this.useUIController?.show(), this.useGuideController?.show()), this.hooks.emit("modeChange", e);
|
|
2408
2424
|
};
|
|
2409
2425
|
changeMeasureType = (e) => {
|
|
2410
2426
|
this.currentMeasureType = e, this.hooks.emit("measureTypeChange", e);
|
|
@@ -2484,10 +2500,8 @@ var _n = {
|
|
|
2484
2500
|
userDistanceItemCreator: this.params.userDistanceItemCreator
|
|
2485
2501
|
};
|
|
2486
2502
|
}
|
|
2487
|
-
}, Sn = function(e, t) {
|
|
2488
|
-
return new xn(e, t);
|
|
2489
2503
|
};
|
|
2490
2504
|
//#endregion
|
|
2491
|
-
export {
|
|
2505
|
+
export { Q as a, vt as i, $ as n, X as o, wt as r, Y as s, xn as t };
|
|
2492
2506
|
|
|
2493
|
-
//# sourceMappingURL=
|
|
2507
|
+
//# sourceMappingURL=Controller-B-10xO2H.js.map
|