@realsee/dnalogel 3.47.13 → 3.47.15
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 +8 -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 +2 -1
- package/dist/index.cjs.js +53 -53
- package/dist/index.js +18650 -18640
- package/dist/index.umd.js +47 -47
- 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 +50 -41
- package/libs/Sculpt/Meshes/Point.js +9 -10
- package/libs/Sculpt/Meshes/Polygon.d.ts +2 -1
- package/libs/Sculpt/Meshes/Polygon.js +47 -37
- package/libs/Sculpt/Meshes/Polyline.js +18 -16
- package/libs/Sculpt/Meshes/Rectangle.js +3 -4
- package/libs/Sculpt/Objects/Line/Editor.js +2 -3
- package/libs/Sculpt/Objects/Rectangle/index.js +1 -1
- package/libs/Sculpt/utils/removeAllTag.js +4 -4
- 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,10 +1,10 @@
|
|
|
1
1
|
import { SvelteComponent as ee, init as te, safe_not_equal as oe, append_styles as re, element as j, space as T, create_component as q, attr as w, toggle_class as D, insert as I, append as g, mount_component as O, transition_in as k, transition_out as _, check_outros as R, detach as K, destroy_component as U, onMount as ie, onDestroy as le, add_render_callback as F, create_bidirectional_transition as E, text as V, set_style as W, listen as X, set_data as Y, group_outros as B } from "../../vendor/svelte/internal/index.js";
|
|
2
2
|
import ne from "./Common/Switcher1.js";
|
|
3
|
-
import
|
|
3
|
+
import se from "./Common/CircleButton.js";
|
|
4
4
|
import H from "../Controller/EditController.js";
|
|
5
|
-
import
|
|
5
|
+
import ae from "./Common/Exit.js";
|
|
6
6
|
import { fade as S } from "../../vendor/svelte/transition/index.js";
|
|
7
|
-
import { IconUndo as
|
|
7
|
+
import { IconUndo as me, IconOk as pe } from "./Common/icons/index.js";
|
|
8
8
|
import "../Modules/UIController/mobileHTML.js";
|
|
9
9
|
import "../../vendor/svelte/easing/index.js";
|
|
10
10
|
import "../Model/line.js";
|
|
@@ -45,81 +45,36 @@ import "../../shared-utils/Subscribe.js";
|
|
|
45
45
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
46
46
|
import "../../shared-utils/five/transformPosition.js";
|
|
47
47
|
import "../../shared-utils/three/temp.js";
|
|
48
|
-
import "../../Sculpt/utils/Modules/Global.js";
|
|
49
|
-
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
50
|
-
import "../../Object3DHelperPlugin/Controller.js";
|
|
51
|
-
import "../../base/BasePlugin.js";
|
|
52
48
|
import "../../shared-utils/three/THREESphere.js";
|
|
53
49
|
import "animejs";
|
|
54
|
-
import "../../shared-utils/url/absoluteUrl.js";
|
|
55
|
-
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
56
|
-
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
57
|
-
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
58
|
-
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
59
|
-
import "../../shared-utils/three/boundingBox.js";
|
|
60
|
-
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
61
|
-
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
62
|
-
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
63
|
-
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
64
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
65
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
66
|
-
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
67
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
68
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
69
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
70
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
71
|
-
import "../../shared-utils/three/getObjectVisible.js";
|
|
72
50
|
import "../../shared-utils/isNil.js";
|
|
73
|
-
import "../../
|
|
74
|
-
import "
|
|
75
|
-
import "../../shared-utils/util.js";
|
|
76
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
77
|
-
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
78
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
79
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
80
|
-
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
81
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
82
|
-
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
83
|
-
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
84
|
-
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
85
|
-
import "../../shared-utils/threex/domevents/index.js";
|
|
86
|
-
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
87
|
-
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
88
|
-
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
89
|
-
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
90
|
-
import "../../shared-utils/Object3DHelper/index.js";
|
|
91
|
-
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
92
|
-
import "../../shared-utils/math/rad2Deg.js";
|
|
93
|
-
import "../../shared-utils/math/deg2Rad.js";
|
|
94
|
-
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
95
|
-
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
96
|
-
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
97
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
98
|
-
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
99
|
-
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
100
|
-
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
101
|
-
import "../../shared-utils/five/fiveModelLoad.js";
|
|
102
|
-
import "../../shared-utils/five/FiveDomEvents.js";
|
|
103
|
-
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
104
|
-
import "../../shared-utils/three/THREERaycaster.js";
|
|
51
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
52
|
+
import "../utils/isIntersecting.js";
|
|
105
53
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
106
54
|
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
107
55
|
import "../../shared-utils/three/Magnifier.js";
|
|
108
56
|
import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
109
57
|
import "../../shared-utils/three/Assets/index.js";
|
|
58
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
59
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
60
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
61
|
+
import "../../shared-utils/three/getObjectVisible.js";
|
|
110
62
|
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
111
63
|
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
64
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
65
|
+
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
66
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
112
67
|
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
113
68
|
import "../../Sculpt/Meshes/Line.js";
|
|
114
69
|
import "../../Sculpt/typings/style.js";
|
|
115
70
|
import "../../Sculpt/utils/removeAllTag.js";
|
|
116
71
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
117
72
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
73
|
+
import "../../shared-utils/util.js";
|
|
118
74
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
119
75
|
import "../../shared-utils/isTouchDevice.js";
|
|
120
76
|
import "../../shared-utils/five/getPosition.js";
|
|
121
77
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
122
|
-
import "../utils/isIntersecting.js";
|
|
123
78
|
import "../Modules/DeleteDom/index.js";
|
|
124
79
|
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
125
80
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -130,7 +85,7 @@ function fe(o) {
|
|
|
130
85
|
}
|
|
131
86
|
function J(o) {
|
|
132
87
|
let t, i;
|
|
133
|
-
return t = new
|
|
88
|
+
return t = new ae({
|
|
134
89
|
props: {
|
|
135
90
|
onClick: (
|
|
136
91
|
/*measureController*/
|
|
@@ -141,12 +96,12 @@ function J(o) {
|
|
|
141
96
|
c() {
|
|
142
97
|
q(t.$$.fragment);
|
|
143
98
|
},
|
|
144
|
-
m(e,
|
|
145
|
-
O(t, e,
|
|
99
|
+
m(e, a) {
|
|
100
|
+
O(t, e, a), i = !0;
|
|
146
101
|
},
|
|
147
|
-
p(e,
|
|
102
|
+
p(e, a) {
|
|
148
103
|
const l = {};
|
|
149
|
-
|
|
104
|
+
a & /*measureController*/
|
|
150
105
|
1 && (l.onClick = /*measureController*/
|
|
151
106
|
e[0].disable), t.$set(l);
|
|
152
107
|
},
|
|
@@ -162,7 +117,7 @@ function J(o) {
|
|
|
162
117
|
};
|
|
163
118
|
}
|
|
164
119
|
function L(o) {
|
|
165
|
-
let t, i, e,
|
|
120
|
+
let t, i, e, a;
|
|
166
121
|
return i = new ne({
|
|
167
122
|
props: {
|
|
168
123
|
options: [
|
|
@@ -195,13 +150,13 @@ function L(o) {
|
|
|
195
150
|
t = j("div"), q(i.$$.fragment), w(t, "class", "mode-switcher svelte-ldjbp8");
|
|
196
151
|
},
|
|
197
152
|
m(l, n) {
|
|
198
|
-
I(l, t, n), O(i, t, null),
|
|
153
|
+
I(l, t, n), O(i, t, null), a = !0;
|
|
199
154
|
},
|
|
200
155
|
p(l, n) {
|
|
201
156
|
o = l;
|
|
202
|
-
const
|
|
157
|
+
const m = {};
|
|
203
158
|
n & /*i18n*/
|
|
204
|
-
4 && (
|
|
159
|
+
4 && (m.options = [
|
|
205
160
|
{
|
|
206
161
|
key: "line",
|
|
207
162
|
value: (
|
|
@@ -217,18 +172,18 @@ function L(o) {
|
|
|
217
172
|
)
|
|
218
173
|
}
|
|
219
174
|
]), n & /*measureController*/
|
|
220
|
-
1 && (
|
|
175
|
+
1 && (m.defaultKey = /*measureController*/
|
|
221
176
|
o[0].currentMeasureType), n & /*measureController*/
|
|
222
|
-
1 && (
|
|
223
|
-
o[0].changeMeasureType), i.$set(
|
|
177
|
+
1 && (m.onChange = /*measureController*/
|
|
178
|
+
o[0].changeMeasureType), i.$set(m);
|
|
224
179
|
},
|
|
225
180
|
i(l) {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
}),
|
|
181
|
+
a || (k(i.$$.fragment, l), l && F(() => {
|
|
182
|
+
a && (e || (e = E(t, S, { duration: P }, !0)), e.run(1));
|
|
183
|
+
}), a = !0);
|
|
229
184
|
},
|
|
230
185
|
o(l) {
|
|
231
|
-
_(i.$$.fragment, l), l && (e || (e = E(t, S, { duration: P }, !1)), e.run(0)),
|
|
186
|
+
_(i.$$.fragment, l), l && (e || (e = E(t, S, { duration: P }, !1)), e.run(0)), a = !1;
|
|
232
187
|
},
|
|
233
188
|
d(l) {
|
|
234
189
|
l && K(t), U(i), l && e && e.end();
|
|
@@ -236,13 +191,13 @@ function L(o) {
|
|
|
236
191
|
};
|
|
237
192
|
}
|
|
238
193
|
function N(o) {
|
|
239
|
-
let t, i, e,
|
|
194
|
+
let t, i, e, a = (
|
|
240
195
|
/*i18n*/
|
|
241
196
|
o[2]("撤销") + ""
|
|
242
|
-
), l, n,
|
|
197
|
+
), l, n, m, f, C;
|
|
243
198
|
return {
|
|
244
199
|
c() {
|
|
245
|
-
t = j("div"), i = j("div"), e = T(), l = V(
|
|
200
|
+
t = j("div"), i = j("div"), e = T(), l = V(a), w(i, "class", "icon svelte-ldjbp8"), W(i, "background-image", `url(${me})`), w(t, "class", "button svelte-ldjbp8"), D(
|
|
246
201
|
t,
|
|
247
202
|
"forbid",
|
|
248
203
|
/*buttonState*/
|
|
@@ -250,7 +205,7 @@ function N(o) {
|
|
|
250
205
|
);
|
|
251
206
|
},
|
|
252
207
|
m(r, c) {
|
|
253
|
-
I(r, t, c), g(t, i), g(t, e), g(t, l),
|
|
208
|
+
I(r, t, c), g(t, i), g(t, e), g(t, l), m = !0, f || (C = X(
|
|
254
209
|
t,
|
|
255
210
|
"click",
|
|
256
211
|
/*click_handler*/
|
|
@@ -258,9 +213,9 @@ function N(o) {
|
|
|
258
213
|
), f = !0);
|
|
259
214
|
},
|
|
260
215
|
p(r, c) {
|
|
261
|
-
o = r, (!
|
|
262
|
-
4) &&
|
|
263
|
-
o[2]("撤销") + "") && Y(l,
|
|
216
|
+
o = r, (!m || c & /*i18n*/
|
|
217
|
+
4) && a !== (a = /*i18n*/
|
|
218
|
+
o[2]("撤销") + "") && Y(l, a), (!m || c & /*buttonState*/
|
|
264
219
|
8) && D(
|
|
265
220
|
t,
|
|
266
221
|
"forbid",
|
|
@@ -269,12 +224,12 @@ function N(o) {
|
|
|
269
224
|
);
|
|
270
225
|
},
|
|
271
226
|
i(r) {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
}),
|
|
227
|
+
m || (r && F(() => {
|
|
228
|
+
m && (n || (n = E(t, S, { duration: P }, !0)), n.run(1));
|
|
229
|
+
}), m = !0);
|
|
275
230
|
},
|
|
276
231
|
o(r) {
|
|
277
|
-
r && (n || (n = E(t, S, { duration: P }, !1)), n.run(0)),
|
|
232
|
+
r && (n || (n = E(t, S, { duration: P }, !1)), n.run(0)), m = !1;
|
|
278
233
|
},
|
|
279
234
|
d(r) {
|
|
280
235
|
r && K(t), r && n && n.end(), f = !1, C();
|
|
@@ -282,16 +237,16 @@ function N(o) {
|
|
|
282
237
|
};
|
|
283
238
|
}
|
|
284
239
|
function Q(o) {
|
|
285
|
-
let t, i, e,
|
|
240
|
+
let t, i, e, a = (
|
|
286
241
|
/*i18n*/
|
|
287
242
|
o[2]("结束") + ""
|
|
288
|
-
), l, n,
|
|
243
|
+
), l, n, m, f, C;
|
|
289
244
|
return {
|
|
290
245
|
c() {
|
|
291
|
-
t = j("div"), i = j("div"), e = T(), l = V(
|
|
246
|
+
t = j("div"), i = j("div"), e = T(), l = V(a), w(i, "class", "icon svelte-ldjbp8"), W(i, "background-image", `url(${pe})`), w(t, "class", "button svelte-ldjbp8");
|
|
292
247
|
},
|
|
293
248
|
m(r, c) {
|
|
294
|
-
I(r, t, c), g(t, i), g(t, e), g(t, l),
|
|
249
|
+
I(r, t, c), g(t, i), g(t, e), g(t, l), m = !0, f || (C = X(
|
|
295
250
|
t,
|
|
296
251
|
"click",
|
|
297
252
|
/*complete*/
|
|
@@ -299,17 +254,17 @@ function Q(o) {
|
|
|
299
254
|
), f = !0);
|
|
300
255
|
},
|
|
301
256
|
p(r, c) {
|
|
302
|
-
o = r, (!
|
|
303
|
-
4) &&
|
|
304
|
-
o[2]("结束") + "") && Y(l,
|
|
257
|
+
o = r, (!m || c & /*i18n*/
|
|
258
|
+
4) && a !== (a = /*i18n*/
|
|
259
|
+
o[2]("结束") + "") && Y(l, a);
|
|
305
260
|
},
|
|
306
261
|
i(r) {
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
}),
|
|
262
|
+
m || (r && F(() => {
|
|
263
|
+
m && (n || (n = E(t, S, { duration: P }, !0)), n.run(1));
|
|
264
|
+
}), m = !0);
|
|
310
265
|
},
|
|
311
266
|
o(r) {
|
|
312
|
-
r && (n || (n = E(t, S, { duration: P }, !1)), n.run(0)),
|
|
267
|
+
r && (n || (n = E(t, S, { duration: P }, !1)), n.run(0)), m = !1;
|
|
313
268
|
},
|
|
314
269
|
d(r) {
|
|
315
270
|
r && K(t), r && n && n.end(), f = !1, C();
|
|
@@ -317,10 +272,10 @@ function Q(o) {
|
|
|
317
272
|
};
|
|
318
273
|
}
|
|
319
274
|
function ue(o) {
|
|
320
|
-
let t, i, e,
|
|
275
|
+
let t, i, e, a, l, n, m, f, C, r, c, z, M, b = (
|
|
321
276
|
/*showExit*/
|
|
322
277
|
o[1] && J(o)
|
|
323
|
-
),
|
|
278
|
+
), p = (
|
|
324
279
|
/*measureController*/
|
|
325
280
|
o[0].allowMeasureType.length >= 2 && /*buttonState*/
|
|
326
281
|
o[3] === "start" && L(o)
|
|
@@ -328,7 +283,7 @@ function ue(o) {
|
|
|
328
283
|
/*showButton*/
|
|
329
284
|
o[4] && N(o)
|
|
330
285
|
);
|
|
331
|
-
c = new
|
|
286
|
+
c = new se({
|
|
332
287
|
props: {
|
|
333
288
|
onClick: (
|
|
334
289
|
/*func*/
|
|
@@ -356,68 +311,68 @@ function ue(o) {
|
|
|
356
311
|
);
|
|
357
312
|
return {
|
|
358
313
|
c() {
|
|
359
|
-
t = j("div"), b && b.c(), i = T(), e = j("div"),
|
|
314
|
+
t = j("div"), b && b.c(), i = T(), e = j("div"), a = j("div"), l = T(), n = j("div"), p && p.c(), m = T(), f = j("div"), u && u.c(), C = T(), r = j("div"), q(c.$$.fragment), z = T(), d && d.c(), w(a, "class", "mask svelte-ldjbp8"), w(r, "class", "main-button svelte-ldjbp8"), D(r, "forbid", !/*allowAddPoint*/
|
|
360
315
|
o[5]), w(f, "class", "controller svelte-ldjbp8"), w(n, "class", "center svelte-ldjbp8"), w(e, "class", "bottom svelte-ldjbp8"), w(t, "class", "Measure-Controller svelte-ldjbp8");
|
|
361
316
|
},
|
|
362
|
-
m(
|
|
363
|
-
I(
|
|
317
|
+
m(s, v) {
|
|
318
|
+
I(s, t, v), b && b.m(t, null), g(t, i), g(t, e), g(e, a), g(e, l), g(e, n), p && p.m(n, null), g(n, m), g(n, f), u && u.m(f, null), g(f, C), g(f, r), O(c, r, null), g(f, z), d && d.m(f, null), M = !0;
|
|
364
319
|
},
|
|
365
|
-
p(
|
|
320
|
+
p(s, [v]) {
|
|
366
321
|
/*showExit*/
|
|
367
|
-
|
|
368
|
-
2 && k(b, 1)) : (b = J(
|
|
322
|
+
s[1] ? b ? (b.p(s, v), v & /*showExit*/
|
|
323
|
+
2 && k(b, 1)) : (b = J(s), b.c(), k(b, 1), b.m(t, i)) : b && (B(), _(b, 1, 1, () => {
|
|
369
324
|
b = null;
|
|
370
325
|
}), R()), /*measureController*/
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
9 && k(
|
|
374
|
-
|
|
326
|
+
s[0].allowMeasureType.length >= 2 && /*buttonState*/
|
|
327
|
+
s[3] === "start" ? p ? (p.p(s, v), v & /*measureController, buttonState*/
|
|
328
|
+
9 && k(p, 1)) : (p = L(s), p.c(), k(p, 1), p.m(n, m)) : p && (B(), _(p, 1, 1, () => {
|
|
329
|
+
p = null;
|
|
375
330
|
}), R()), /*showButton*/
|
|
376
|
-
|
|
377
|
-
16 && k(u, 1)) : (u = N(
|
|
331
|
+
s[4] ? u ? (u.p(s, v), v & /*showButton*/
|
|
332
|
+
16 && k(u, 1)) : (u = N(s), u.c(), k(u, 1), u.m(f, C)) : u && (B(), _(u, 1, 1, () => {
|
|
378
333
|
u = null;
|
|
379
334
|
}), R());
|
|
380
335
|
const y = {};
|
|
381
336
|
v & /*buttonState*/
|
|
382
337
|
8 && (y.onClick = /*func*/
|
|
383
|
-
|
|
338
|
+
s[14]), v & /*buttonState*/
|
|
384
339
|
8 && (y.text = /*buttonTextMap*/
|
|
385
|
-
|
|
340
|
+
s[6][
|
|
386
341
|
/*buttonState*/
|
|
387
|
-
|
|
342
|
+
s[3]
|
|
388
343
|
]), v & /*buttonState*/
|
|
389
344
|
8 && (y.color = /*buttonColorMap*/
|
|
390
|
-
|
|
345
|
+
s[7][
|
|
391
346
|
/*buttonState*/
|
|
392
|
-
|
|
347
|
+
s[3]
|
|
393
348
|
]), c.$set(y), (!M || v & /*allowAddPoint*/
|
|
394
349
|
32) && D(r, "forbid", !/*allowAddPoint*/
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
16 && k(d, 1)) : (d = Q(
|
|
350
|
+
s[5]), /*showButton*/
|
|
351
|
+
s[4] ? d ? (d.p(s, v), v & /*showButton*/
|
|
352
|
+
16 && k(d, 1)) : (d = Q(s), d.c(), k(d, 1), d.m(f, null)) : d && (B(), _(d, 1, 1, () => {
|
|
398
353
|
d = null;
|
|
399
354
|
}), R());
|
|
400
355
|
},
|
|
401
|
-
i(
|
|
402
|
-
M || (k(b), k(
|
|
356
|
+
i(s) {
|
|
357
|
+
M || (k(b), k(p), k(u), k(c.$$.fragment, s), k(d), M = !0);
|
|
403
358
|
},
|
|
404
|
-
o(
|
|
405
|
-
_(b), _(
|
|
359
|
+
o(s) {
|
|
360
|
+
_(b), _(p), _(u), _(c.$$.fragment, s), _(d), M = !1;
|
|
406
361
|
},
|
|
407
|
-
d(
|
|
408
|
-
|
|
362
|
+
d(s) {
|
|
363
|
+
s && K(t), b && b.d(), p && p.d(), u && u.d(), U(c), d && d.d();
|
|
409
364
|
}
|
|
410
365
|
};
|
|
411
366
|
}
|
|
412
367
|
const P = 100;
|
|
413
368
|
function de(o, t, i) {
|
|
414
|
-
let { measureController: e } = t, { showExit:
|
|
369
|
+
let { measureController: e } = t, { showExit: a = !1 } = t, { i18n: l = (h) => h } = t;
|
|
415
370
|
const n = {
|
|
416
371
|
start: l("开始"),
|
|
417
372
|
add: l("添加"),
|
|
418
373
|
end: l("结束"),
|
|
419
374
|
complete: l("完成")
|
|
420
|
-
},
|
|
375
|
+
}, m = {
|
|
421
376
|
start: "white",
|
|
422
377
|
add: "white",
|
|
423
378
|
end: "blue",
|
|
@@ -425,52 +380,52 @@ function de(o, t, i) {
|
|
|
425
380
|
};
|
|
426
381
|
let f = !1, C = !0, r = "start", c = e.currentMeasureType;
|
|
427
382
|
const z = () => {
|
|
428
|
-
e.getCurrentMode() !== "Edit" ? e.changeMode("Edit") : (
|
|
383
|
+
e.getCurrentMode() !== "Edit" ? e.changeMode("Edit") : (p("add"), M());
|
|
429
384
|
}, M = () => {
|
|
430
385
|
e.controller instanceof H && e.controller.selectPoint();
|
|
431
386
|
}, b = () => {
|
|
432
387
|
e.controller instanceof H && e.controller.complete();
|
|
433
|
-
},
|
|
388
|
+
}, p = (h) => {
|
|
434
389
|
i(3, r = h);
|
|
435
390
|
}, u = () => {
|
|
436
391
|
M(), A("allow");
|
|
437
392
|
}, d = () => {
|
|
438
|
-
|
|
439
|
-
},
|
|
440
|
-
e.currentMeasureType === "area" && r === "complete" &&
|
|
393
|
+
p("complete");
|
|
394
|
+
}, s = () => {
|
|
395
|
+
e.currentMeasureType === "area" && r === "complete" && p("add");
|
|
441
396
|
}, v = (h) => {
|
|
442
397
|
h.length;
|
|
443
398
|
}, y = () => {
|
|
444
|
-
|
|
399
|
+
p("start"), A("allow");
|
|
445
400
|
}, A = (h) => {
|
|
446
401
|
i(5, C = h === "allow");
|
|
447
402
|
}, G = (h) => {
|
|
448
403
|
i(12, c = h);
|
|
449
404
|
}, Z = (h) => {
|
|
450
|
-
h.isEmpty &&
|
|
405
|
+
h.isEmpty && p("start");
|
|
451
406
|
};
|
|
452
407
|
ie(() => {
|
|
453
|
-
e.hook.on("revoke", Z), e.hook.on("measureTypeChange", G), e.hook.on("modeChange", y), e.hook.on("pointsChange", v), e.hook.on("allowAddPointStateChange", A), e.hook.on("readyComplete", d), e.hook.on("notReadyComplete",
|
|
408
|
+
e.hook.on("revoke", Z), e.hook.on("measureTypeChange", G), e.hook.on("modeChange", y), e.hook.on("pointsChange", v), e.hook.on("allowAddPointStateChange", A), e.hook.on("readyComplete", d), e.hook.on("notReadyComplete", s), e.hook.on("complete", y);
|
|
454
409
|
}), le(() => {
|
|
455
|
-
e.hook.off("measureTypeChange", G), e.hook.off("modeChange", y), e.hook.off("allowAddPointStateChange", A), e.hook.off("readyComplete", d), e.hook.off("pointsChange", v), e.hook.off("notReadyComplete",
|
|
410
|
+
e.hook.off("measureTypeChange", G), e.hook.off("modeChange", y), e.hook.off("allowAddPointStateChange", A), e.hook.off("readyComplete", d), e.hook.off("pointsChange", v), e.hook.off("notReadyComplete", s), e.hook.off("complete", y);
|
|
456
411
|
});
|
|
457
412
|
const $ = () => e.revoke(), x = () => {
|
|
458
413
|
r === "start" ? z() : r === "add" ? M() : (r === "end" || r === "complete") && u();
|
|
459
414
|
};
|
|
460
415
|
return o.$$set = (h) => {
|
|
461
|
-
"measureController" in h && i(0, e = h.measureController), "showExit" in h && i(1,
|
|
416
|
+
"measureController" in h && i(0, e = h.measureController), "showExit" in h && i(1, a = h.showExit), "i18n" in h && i(2, l = h.i18n);
|
|
462
417
|
}, o.$$.update = () => {
|
|
463
418
|
o.$$.dirty & /*currentMeasureType, buttonState*/
|
|
464
419
|
4104 && i(4, f = c === "area" && r !== "start");
|
|
465
420
|
}, [
|
|
466
421
|
e,
|
|
467
|
-
|
|
422
|
+
a,
|
|
468
423
|
l,
|
|
469
424
|
r,
|
|
470
425
|
f,
|
|
471
426
|
C,
|
|
472
427
|
n,
|
|
473
|
-
|
|
428
|
+
m,
|
|
474
429
|
z,
|
|
475
430
|
M,
|
|
476
431
|
b,
|
|
@@ -480,7 +435,7 @@ function de(o, t, i) {
|
|
|
480
435
|
x
|
|
481
436
|
];
|
|
482
437
|
}
|
|
483
|
-
class
|
|
438
|
+
class Ht extends ee {
|
|
484
439
|
constructor(t) {
|
|
485
440
|
super(), te(
|
|
486
441
|
this,
|
|
@@ -498,5 +453,5 @@ class Do extends ee {
|
|
|
498
453
|
}
|
|
499
454
|
}
|
|
500
455
|
export {
|
|
501
|
-
|
|
456
|
+
Ht as default
|
|
502
457
|
};
|