@realsee/dnalogel 3.47.14 → 3.47.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 +7 -0
- package/dist/PanoTagPlugin/utils/requestIdleCallback.d.ts +1 -1
- package/dist/Sculpt/Meshes/Line.d.ts +1 -0
- package/dist/Sculpt/Meshes/Polygon.d.ts +1 -0
- package/dist/index.cjs.js +52 -52
- package/dist/index.js +16276 -16279
- package/dist/index.umd.js +49 -49
- package/libs/AreaMakerPlugin/Controller.js +78 -150
- package/libs/AreaMakerPlugin/index.js +3 -75
- package/libs/AreaMakerPlugin/utils/Item.js +111 -185
- package/libs/CSS3DRenderPlugin/Controller.js +29 -86
- package/libs/CSS3DRenderPlugin/index.js +12 -69
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +58 -127
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +113 -174
- package/libs/CruisePlugin/BaseController.js +50 -122
- package/libs/CruisePlugin/Move.js +21 -74
- package/libs/CruisePlugin/Work.js +46 -99
- package/libs/CruisePlugin/index.js +26 -79
- package/libs/CurrentPanoImagePlugin/Controller.js +104 -176
- package/libs/CurrentPanoImagePlugin/index.js +4 -76
- package/libs/GuideLinePlugin/Controller.js +26 -79
- package/libs/GuideLinePlugin/GuideLineItem.js +24 -77
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +2 -3
- package/libs/GuideLinePlugin/GuideLineModeItem.js +22 -75
- package/libs/GuideLinePlugin/index.js +26 -79
- package/libs/ModelMakerPlugin/Controller.js +83 -139
- package/libs/ModelMakerPlugin/index.js +16 -72
- package/libs/ModelTVVideoPlugin/Plugin.js +48 -105
- package/libs/ModelTVVideoPlugin/index.js +7 -64
- package/libs/Object3DHelperPlugin/Controller.js +32 -56
- package/libs/Object3DHelperPlugin/index.js +12 -35
- package/libs/PanoCompassPlugin/Controller.js +37 -93
- package/libs/PanoCompassPlugin/index.js +11 -67
- package/libs/PanoDoorLabelPlugin/BaseController.js +25 -97
- package/libs/PanoDoorLabelPlugin/Controller.js +115 -187
- package/libs/PanoDoorLabelPlugin/index.js +4 -76
- package/libs/PanoMeasurePlugin/Components/Controller0.js +83 -128
- package/libs/PanoMeasurePlugin/Components/Controller1.js +96 -141
- package/libs/PanoMeasurePlugin/Controller/EditController.js +66 -111
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +51 -121
- package/libs/PanoMeasurePlugin/Controller/index.js +59 -101
- package/libs/PanoMeasurePlugin/Model/area.js +21 -91
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +0 -73
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +27 -72
- package/libs/PanoMeasurePlugin/index.js +25 -67
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +17 -89
- package/libs/PanoSpatialTagPlugin/Plugin.js +106 -163
- package/libs/PanoSpatialTagPlugin/index.js +5 -62
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +67 -141
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +208 -281
- package/libs/PanoTagPlugin/Components/Tag/index.js +180 -251
- package/libs/PanoTagPlugin/Components/TagContainer.js +80 -151
- package/libs/PanoTagPlugin/Components/TagItem.js +67 -138
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +61 -132
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +28 -99
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +30 -101
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +36 -107
- package/libs/PanoTagPlugin/controller/TagRender.js +68 -121
- package/libs/PanoTagPlugin/controller/TagUtil.js +79 -132
- package/libs/PanoTagPlugin/controller/index.js +55 -108
- package/libs/PanoTagPlugin/index.js +31 -84
- package/libs/PanoTagPlugin/utils/requestIdleCallback.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/requestIdleCallback.js +5 -13
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +30 -104
- package/libs/PanoVideoPlugin/Controller.js +64 -136
- package/libs/PanoVideoPlugin/VideoMeshController.js +74 -148
- package/libs/PanoVideoPlugin/index.js +8 -80
- package/libs/PipelinePlugin/Controller.js +128 -199
- package/libs/PipelinePlugin/index.js +5 -76
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +17 -91
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +14 -88
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +56 -130
- package/libs/Sculpt/Meshes/Box.js +5 -6
- package/libs/Sculpt/Meshes/Cylinder.js +2 -3
- package/libs/Sculpt/Meshes/Line.d.ts +1 -0
- package/libs/Sculpt/Meshes/Line.js +36 -34
- package/libs/Sculpt/Meshes/Point.js +9 -10
- package/libs/Sculpt/Meshes/Polygon.d.ts +1 -0
- package/libs/Sculpt/Meshes/Polygon.js +23 -18
- package/libs/Sculpt/Meshes/Polyline.js +4 -5
- package/libs/Sculpt/Meshes/Rectangle.js +3 -4
- package/libs/Sculpt/Objects/Line/Editor.js +2 -3
- package/libs/Sculpt/utils/three/ColoredMesh.js +3 -4
- package/libs/base/BasePlugin.js +3 -4
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +59 -128
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -75
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +59 -129
- package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -75
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +62 -134
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -76
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +81 -151
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -75
- package/libs/floorplan/index.js +0 -1
- package/libs/index.js +62 -62
- package/libs/shared-utils/five/index.js +2 -3
- package/libs/shared-utils/five/lookObject.js +17 -18
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/index.js +0 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SvelteComponent as j, init as x, safe_not_equal as B, append_styles as F, binding_callbacks as G, bind as H, element as h, space as C, create_component as P, attr as g, insert as R, append as
|
|
1
|
+
import { SvelteComponent as j, init as x, safe_not_equal as B, append_styles as F, binding_callbacks as G, bind as H, element as h, space as C, create_component as P, attr as g, insert as R, append as s, mount_component as T, transition_in as w, transition_out as I, check_outros as J, add_flush_callback as K, detach as U, destroy_component as W, onMount as N, onDestroy as Q, text as y, set_style as E, toggle_class as z, listen as S, set_data as A, run_all as V, group_outros as X } from "../../vendor/svelte/internal/index.js";
|
|
2
2
|
import Y from "./Common/Switcher0.js";
|
|
3
3
|
import Z from "./Common/Exit.js";
|
|
4
4
|
import $ from "../Controller/EditController.js";
|
|
5
|
-
import { IconLine as q, IconArea as D, IconUndo as
|
|
5
|
+
import { IconLine as q, IconArea as D, IconUndo as ee, IconOk as te } from "./Common/icons/index.js";
|
|
6
6
|
import "../Model/line.js";
|
|
7
7
|
import "../../shared-utils/uuid.js";
|
|
8
8
|
import "../utils/line.js";
|
|
@@ -41,87 +41,42 @@ import "../../shared-utils/Subscribe.js";
|
|
|
41
41
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
42
42
|
import "../../shared-utils/five/transformPosition.js";
|
|
43
43
|
import "../../shared-utils/three/temp.js";
|
|
44
|
-
import "../../Sculpt/utils/Modules/Global.js";
|
|
45
|
-
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
46
|
-
import "../../Object3DHelperPlugin/Controller.js";
|
|
47
|
-
import "../../base/BasePlugin.js";
|
|
48
44
|
import "../../shared-utils/three/THREESphere.js";
|
|
49
45
|
import "animejs";
|
|
50
|
-
import "../../shared-utils/url/absoluteUrl.js";
|
|
51
|
-
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
52
|
-
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
53
|
-
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
54
|
-
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
55
|
-
import "../../shared-utils/three/boundingBox.js";
|
|
56
|
-
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
57
|
-
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
58
|
-
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
59
|
-
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
60
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
61
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
62
|
-
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
63
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
64
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
65
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
66
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
67
|
-
import "../../shared-utils/three/getObjectVisible.js";
|
|
68
46
|
import "../../shared-utils/isNil.js";
|
|
69
|
-
import "../../
|
|
70
|
-
import "
|
|
71
|
-
import "../../shared-utils/util.js";
|
|
72
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
73
|
-
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
74
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
75
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
76
|
-
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
77
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
78
|
-
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
79
|
-
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
80
|
-
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
81
|
-
import "../../shared-utils/threex/domevents/index.js";
|
|
82
|
-
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
83
|
-
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
84
|
-
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
85
|
-
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
86
|
-
import "../../shared-utils/Object3DHelper/index.js";
|
|
87
|
-
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
88
|
-
import "../../shared-utils/math/rad2Deg.js";
|
|
89
|
-
import "../../shared-utils/math/deg2Rad.js";
|
|
90
|
-
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
91
|
-
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
92
|
-
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
93
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
94
|
-
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
95
|
-
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
96
|
-
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
97
|
-
import "../../shared-utils/five/fiveModelLoad.js";
|
|
98
|
-
import "../../shared-utils/five/FiveDomEvents.js";
|
|
99
|
-
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
100
|
-
import "../../shared-utils/three/THREERaycaster.js";
|
|
47
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
48
|
+
import "../utils/isIntersecting.js";
|
|
101
49
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
102
50
|
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
103
51
|
import "../../shared-utils/three/Magnifier.js";
|
|
104
52
|
import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
105
53
|
import "../../shared-utils/three/Assets/index.js";
|
|
54
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
55
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
56
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
57
|
+
import "../../shared-utils/three/getObjectVisible.js";
|
|
106
58
|
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
107
59
|
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
60
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
61
|
+
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
62
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
108
63
|
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
109
64
|
import "../../Sculpt/Meshes/Line.js";
|
|
110
65
|
import "../../Sculpt/typings/style.js";
|
|
111
66
|
import "../../Sculpt/utils/removeAllTag.js";
|
|
112
67
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
113
68
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
69
|
+
import "../../shared-utils/util.js";
|
|
114
70
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
115
71
|
import "../../shared-utils/isTouchDevice.js";
|
|
116
72
|
import "../../shared-utils/five/getPosition.js";
|
|
117
73
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
118
|
-
import "../utils/isIntersecting.js";
|
|
119
74
|
import "../Modules/DeleteDom/index.js";
|
|
120
75
|
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
121
76
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
122
77
|
import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
123
78
|
import "../utils/math.js";
|
|
124
|
-
function
|
|
79
|
+
function oe(n) {
|
|
125
80
|
F(n, "svelte-468fdd", '*.forbid.svelte-468fdd.svelte-468fdd{pointer-events:none !important;opacity:0.5}.Measure-Controller.svelte-468fdd.svelte-468fdd{pointer-events:none;position:relative;width:100%;height:100%;z-index:2}.Measure-Controller.svelte-468fdd .mode-switcher.svelte-468fdd{margin-top:2.25rem}.Measure-Controller.svelte-468fdd .bottom.svelte-468fdd{position:absolute;width:100%;bottom:0}.Measure-Controller.svelte-468fdd .bottom .mask.svelte-468fdd{position:absolute;bottom:0;width:100%;height:11.5rem;background-size:100%;background-image:linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3))}.Measure-Controller.svelte-468fdd .bottom .center.svelte-468fdd{display:flex;flex-direction:column;align-items:center;margin-bottom:2.5rem}.Measure-Controller.svelte-468fdd .buttons.svelte-468fdd{pointer-events:all;display:flex;align-items:center;height:2.5rem;background:rgba(0, 0, 0, 0.2);color:rgba(255, 255, 255, 0.85);width:-moz-max-content;width:max-content;border-radius:624.9375rem;overflow:hidden}.Measure-Controller.svelte-468fdd .buttons .button.svelte-468fdd{cursor:pointer;display:flex;align-items:center;position:relative;font-size:0.875rem;padding:0rem 1rem}.Measure-Controller.svelte-468fdd .buttons .button .icon.svelte-468fdd{width:1.5rem;height:1.5rem;background-repeat:no-repeat;background-size:100%;margin-right:0.25rem}.Measure-Controller.svelte-468fdd .buttons .button.svelte-468fdd::after{content:"";position:absolute;display:block;right:-0.03125rem;height:1.5rem;width:0.0625rem;background-image:linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);background-size:100%;background-repeat:no-repeat;background-position:center}.Measure-Controller.svelte-468fdd .buttons .button.svelte-468fdd:last-child::after{display:none}');
|
|
126
81
|
}
|
|
127
82
|
function L(n) {
|
|
@@ -137,41 +92,41 @@ function L(n) {
|
|
|
137
92
|
c() {
|
|
138
93
|
P(o.$$.fragment);
|
|
139
94
|
},
|
|
140
|
-
m(
|
|
141
|
-
T(o,
|
|
95
|
+
m(t, p) {
|
|
96
|
+
T(o, t, p), i = !0;
|
|
142
97
|
},
|
|
143
|
-
p(
|
|
98
|
+
p(t, p) {
|
|
144
99
|
const f = {};
|
|
145
|
-
|
|
100
|
+
p & /*measureController*/
|
|
146
101
|
1 && (f.onClick = /*measureController*/
|
|
147
|
-
|
|
102
|
+
t[0].disable), o.$set(f);
|
|
148
103
|
},
|
|
149
|
-
i(
|
|
150
|
-
i || (w(o.$$.fragment,
|
|
104
|
+
i(t) {
|
|
105
|
+
i || (w(o.$$.fragment, t), i = !0);
|
|
151
106
|
},
|
|
152
|
-
o(
|
|
153
|
-
I(o.$$.fragment,
|
|
107
|
+
o(t) {
|
|
108
|
+
I(o.$$.fragment, t), i = !1;
|
|
154
109
|
},
|
|
155
|
-
d(
|
|
156
|
-
W(o,
|
|
110
|
+
d(t) {
|
|
111
|
+
W(o, t);
|
|
157
112
|
}
|
|
158
113
|
};
|
|
159
114
|
}
|
|
160
115
|
function O(n) {
|
|
161
|
-
let o, i,
|
|
116
|
+
let o, i, t, p, f = (
|
|
162
117
|
/*i18n*/
|
|
163
118
|
n[2]("撤销") + ""
|
|
164
|
-
),
|
|
119
|
+
), d, v, m, a, b, c = (
|
|
165
120
|
/*i18n*/
|
|
166
121
|
n[2]("结束") + ""
|
|
167
122
|
), r, l, _;
|
|
168
123
|
return {
|
|
169
124
|
c() {
|
|
170
|
-
o = h("div"), i = h("div"),
|
|
171
|
-
n[3]), g(
|
|
125
|
+
o = h("div"), i = h("div"), t = h("div"), p = C(), d = y(f), v = C(), m = h("div"), a = h("div"), b = C(), r = y(c), g(t, "class", "icon svelte-468fdd"), E(t, "background-image", `url(${ee})`), g(i, "class", "button svelte-468fdd"), z(i, "forbid", !/*canRevoke*/
|
|
126
|
+
n[3]), g(a, "class", "icon svelte-468fdd"), E(a, "background-image", `url(${te})`), g(m, "class", "button svelte-468fdd"), g(o, "class", "buttons svelte-468fdd");
|
|
172
127
|
},
|
|
173
|
-
m(u,
|
|
174
|
-
R(u, o,
|
|
128
|
+
m(u, e) {
|
|
129
|
+
R(u, o, e), s(o, i), s(i, t), s(i, p), s(i, d), s(o, v), s(o, m), s(m, a), s(m, b), s(m, r), l || (_ = [
|
|
175
130
|
S(
|
|
176
131
|
i,
|
|
177
132
|
"click",
|
|
@@ -179,19 +134,19 @@ function O(n) {
|
|
|
179
134
|
n[7]
|
|
180
135
|
),
|
|
181
136
|
S(
|
|
182
|
-
|
|
137
|
+
m,
|
|
183
138
|
"click",
|
|
184
139
|
/*complete*/
|
|
185
140
|
n[6]
|
|
186
141
|
)
|
|
187
142
|
], l = !0);
|
|
188
143
|
},
|
|
189
|
-
p(u,
|
|
190
|
-
|
|
144
|
+
p(u, e) {
|
|
145
|
+
e & /*i18n*/
|
|
191
146
|
4 && f !== (f = /*i18n*/
|
|
192
|
-
u[2]("撤销") + "") && A(
|
|
147
|
+
u[2]("撤销") + "") && A(d, f), e & /*canRevoke*/
|
|
193
148
|
8 && z(i, "forbid", !/*canRevoke*/
|
|
194
|
-
u[3]),
|
|
149
|
+
u[3]), e & /*i18n*/
|
|
195
150
|
4 && c !== (c = /*i18n*/
|
|
196
151
|
u[2]("结束") + "") && A(r, c);
|
|
197
152
|
},
|
|
@@ -200,16 +155,16 @@ function O(n) {
|
|
|
200
155
|
}
|
|
201
156
|
};
|
|
202
157
|
}
|
|
203
|
-
function
|
|
204
|
-
let o, i,
|
|
158
|
+
function ie(n) {
|
|
159
|
+
let o, i, t, p, f, d, v, m, a, b, c, r = (
|
|
205
160
|
/*showExit*/
|
|
206
161
|
n[1] && L(n)
|
|
207
162
|
), l = (
|
|
208
163
|
/*showController*/
|
|
209
164
|
n[5] && O(n)
|
|
210
165
|
);
|
|
211
|
-
function _(
|
|
212
|
-
n[9](
|
|
166
|
+
function _(e) {
|
|
167
|
+
n[9](e);
|
|
213
168
|
}
|
|
214
169
|
let u = {
|
|
215
170
|
options: [
|
|
@@ -238,20 +193,20 @@ function it(n) {
|
|
|
238
193
|
return (
|
|
239
194
|
/*setSwitcherActiveIndex*/
|
|
240
195
|
n[4] !== void 0 && (u.setIndex = /*setSwitcherActiveIndex*/
|
|
241
|
-
n[4]),
|
|
196
|
+
n[4]), a = new Y({ props: u }), G.push(() => H(a, "setIndex", _)), {
|
|
242
197
|
c() {
|
|
243
|
-
o = h("div"), r && r.c(), i = C(),
|
|
198
|
+
o = h("div"), r && r.c(), i = C(), t = h("div"), p = h("div"), f = C(), d = h("div"), l && l.c(), v = C(), m = h("div"), P(a.$$.fragment), g(p, "class", "mask svelte-468fdd"), g(m, "class", "mode-switcher svelte-468fdd"), g(d, "class", "center svelte-468fdd"), g(t, "class", "bottom svelte-468fdd"), g(o, "class", "Measure-Controller svelte-468fdd");
|
|
244
199
|
},
|
|
245
|
-
m(
|
|
246
|
-
R(
|
|
200
|
+
m(e, k) {
|
|
201
|
+
R(e, o, k), r && r.m(o, null), s(o, i), s(o, t), s(t, p), s(t, f), s(t, d), l && l.m(d, null), s(d, v), s(d, m), T(a, m, null), c = !0;
|
|
247
202
|
},
|
|
248
|
-
p(
|
|
203
|
+
p(e, [k]) {
|
|
249
204
|
/*showExit*/
|
|
250
|
-
|
|
251
|
-
2 && w(r, 1)) : (r = L(
|
|
205
|
+
e[1] ? r ? (r.p(e, k), k & /*showExit*/
|
|
206
|
+
2 && w(r, 1)) : (r = L(e), r.c(), w(r, 1), r.m(o, i)) : r && (X(), I(r, 1, 1, () => {
|
|
252
207
|
r = null;
|
|
253
208
|
}), J()), /*showController*/
|
|
254
|
-
|
|
209
|
+
e[5] ? l ? l.p(e, k) : (l = O(e), l.c(), l.m(d, v)) : l && (l.d(1), l = null);
|
|
255
210
|
const M = {};
|
|
256
211
|
k & /*i18n*/
|
|
257
212
|
4 && (M.options = [
|
|
@@ -259,7 +214,7 @@ function it(n) {
|
|
|
259
214
|
key: "line",
|
|
260
215
|
value: (
|
|
261
216
|
/*i18n*/
|
|
262
|
-
|
|
217
|
+
e[2]("测距离")
|
|
263
218
|
),
|
|
264
219
|
icon: q
|
|
265
220
|
},
|
|
@@ -267,86 +222,86 @@ function it(n) {
|
|
|
267
222
|
key: "area",
|
|
268
223
|
value: (
|
|
269
224
|
/*i18n*/
|
|
270
|
-
|
|
225
|
+
e[2]("测面积")
|
|
271
226
|
),
|
|
272
227
|
icon: D
|
|
273
228
|
}
|
|
274
229
|
]), k & /*measureController*/
|
|
275
230
|
1 && (M.onChange = /*func*/
|
|
276
|
-
|
|
231
|
+
e[8]), !b && k & /*setSwitcherActiveIndex*/
|
|
277
232
|
16 && (b = !0, M.setIndex = /*setSwitcherActiveIndex*/
|
|
278
|
-
|
|
233
|
+
e[4], K(() => b = !1)), a.$set(M);
|
|
279
234
|
},
|
|
280
|
-
i(
|
|
281
|
-
c || (w(r), w(
|
|
235
|
+
i(e) {
|
|
236
|
+
c || (w(r), w(a.$$.fragment, e), c = !0);
|
|
282
237
|
},
|
|
283
|
-
o(
|
|
284
|
-
I(r), I(
|
|
238
|
+
o(e) {
|
|
239
|
+
I(r), I(a.$$.fragment, e), c = !1;
|
|
285
240
|
},
|
|
286
|
-
d(
|
|
287
|
-
|
|
241
|
+
d(e) {
|
|
242
|
+
e && U(o), r && r.d(), l && l.d(), W(a);
|
|
288
243
|
}
|
|
289
244
|
}
|
|
290
245
|
);
|
|
291
246
|
}
|
|
292
|
-
function
|
|
293
|
-
let { measureController:
|
|
294
|
-
function
|
|
295
|
-
|
|
247
|
+
function re(n, o, i) {
|
|
248
|
+
let { measureController: t } = o, { showExit: p = !1 } = o, { i18n: f = (e) => e } = o, d = !1, v;
|
|
249
|
+
function m(e) {
|
|
250
|
+
e === "Edit" ? i(5, r = !0) : (v(null), i(5, r = !1));
|
|
296
251
|
}
|
|
297
|
-
function
|
|
298
|
-
|
|
252
|
+
function a() {
|
|
253
|
+
t.controller instanceof $ && t.controller.complete(), t.save({ mode: "Watch" });
|
|
299
254
|
}
|
|
300
|
-
function b(
|
|
301
|
-
i(3,
|
|
255
|
+
function b(e) {
|
|
256
|
+
i(3, d = e.length > 0);
|
|
302
257
|
}
|
|
303
258
|
function c() {
|
|
304
|
-
i(3,
|
|
259
|
+
i(3, d = !1);
|
|
305
260
|
}
|
|
306
261
|
N(() => {
|
|
307
|
-
|
|
262
|
+
t.hook.on("modeChange", m), t.hook.on("complete", c), t.hook.on("pointsChange", b);
|
|
308
263
|
}), Q(() => {
|
|
309
|
-
|
|
264
|
+
t.hook.off("modeChange", m), t.hook.off("complete", c), t.hook.off("pointsChange", b);
|
|
310
265
|
});
|
|
311
266
|
let r = !1;
|
|
312
|
-
const l = () =>
|
|
313
|
-
|
|
267
|
+
const l = () => t.revoke(), _ = (e) => {
|
|
268
|
+
t.save().changeMode("Edit"), t.changeMeasureType(e);
|
|
314
269
|
};
|
|
315
|
-
function u(
|
|
316
|
-
v =
|
|
270
|
+
function u(e) {
|
|
271
|
+
v = e, i(4, v);
|
|
317
272
|
}
|
|
318
|
-
return n.$$set = (
|
|
319
|
-
"measureController" in
|
|
273
|
+
return n.$$set = (e) => {
|
|
274
|
+
"measureController" in e && i(0, t = e.measureController), "showExit" in e && i(1, p = e.showExit), "i18n" in e && i(2, f = e.i18n);
|
|
320
275
|
}, [
|
|
321
|
-
|
|
322
|
-
|
|
276
|
+
t,
|
|
277
|
+
p,
|
|
323
278
|
f,
|
|
324
|
-
|
|
279
|
+
d,
|
|
325
280
|
v,
|
|
326
281
|
r,
|
|
327
|
-
|
|
282
|
+
a,
|
|
328
283
|
l,
|
|
329
284
|
_,
|
|
330
285
|
u
|
|
331
286
|
];
|
|
332
287
|
}
|
|
333
|
-
class
|
|
288
|
+
class At extends j {
|
|
334
289
|
constructor(o) {
|
|
335
290
|
super(), x(
|
|
336
291
|
this,
|
|
337
292
|
o,
|
|
338
|
-
|
|
339
|
-
|
|
293
|
+
re,
|
|
294
|
+
ie,
|
|
340
295
|
B,
|
|
341
296
|
{
|
|
342
297
|
measureController: 0,
|
|
343
298
|
showExit: 1,
|
|
344
299
|
i18n: 2
|
|
345
300
|
},
|
|
346
|
-
|
|
301
|
+
oe
|
|
347
302
|
);
|
|
348
303
|
}
|
|
349
304
|
}
|
|
350
305
|
export {
|
|
351
|
-
|
|
306
|
+
At as default
|
|
352
307
|
};
|