@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.
Files changed (101) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/PanoTagPlugin/utils/requestIdleCallback.d.ts +1 -1
  3. package/dist/Sculpt/Meshes/Line.d.ts +1 -0
  4. package/dist/Sculpt/Meshes/Polygon.d.ts +2 -1
  5. package/dist/index.cjs.js +53 -53
  6. package/dist/index.js +18650 -18640
  7. package/dist/index.umd.js +47 -47
  8. package/libs/AreaMakerPlugin/Controller.js +78 -150
  9. package/libs/AreaMakerPlugin/index.js +3 -75
  10. package/libs/AreaMakerPlugin/utils/Item.js +111 -185
  11. package/libs/CSS3DRenderPlugin/Controller.js +29 -86
  12. package/libs/CSS3DRenderPlugin/index.js +12 -69
  13. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +58 -127
  14. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +113 -174
  15. package/libs/CruisePlugin/BaseController.js +50 -122
  16. package/libs/CruisePlugin/Move.js +21 -74
  17. package/libs/CruisePlugin/Work.js +46 -99
  18. package/libs/CruisePlugin/index.js +26 -79
  19. package/libs/CurrentPanoImagePlugin/Controller.js +104 -176
  20. package/libs/CurrentPanoImagePlugin/index.js +4 -76
  21. package/libs/GuideLinePlugin/Controller.js +26 -79
  22. package/libs/GuideLinePlugin/GuideLineItem.js +24 -77
  23. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +2 -3
  24. package/libs/GuideLinePlugin/GuideLineModeItem.js +22 -75
  25. package/libs/GuideLinePlugin/index.js +26 -79
  26. package/libs/ModelMakerPlugin/Controller.js +83 -139
  27. package/libs/ModelMakerPlugin/index.js +16 -72
  28. package/libs/ModelTVVideoPlugin/Plugin.js +48 -105
  29. package/libs/ModelTVVideoPlugin/index.js +7 -64
  30. package/libs/Object3DHelperPlugin/Controller.js +32 -56
  31. package/libs/Object3DHelperPlugin/index.js +12 -35
  32. package/libs/PanoCompassPlugin/Controller.js +37 -93
  33. package/libs/PanoCompassPlugin/index.js +11 -67
  34. package/libs/PanoDoorLabelPlugin/BaseController.js +25 -97
  35. package/libs/PanoDoorLabelPlugin/Controller.js +115 -187
  36. package/libs/PanoDoorLabelPlugin/index.js +4 -76
  37. package/libs/PanoMeasurePlugin/Components/Controller0.js +83 -128
  38. package/libs/PanoMeasurePlugin/Components/Controller1.js +96 -141
  39. package/libs/PanoMeasurePlugin/Controller/EditController.js +66 -111
  40. package/libs/PanoMeasurePlugin/Controller/WatchController.js +51 -121
  41. package/libs/PanoMeasurePlugin/Controller/index.js +59 -101
  42. package/libs/PanoMeasurePlugin/Model/area.js +21 -91
  43. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +0 -73
  44. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +27 -72
  45. package/libs/PanoMeasurePlugin/index.js +25 -67
  46. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +17 -89
  47. package/libs/PanoSpatialTagPlugin/Plugin.js +106 -163
  48. package/libs/PanoSpatialTagPlugin/index.js +5 -62
  49. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +67 -141
  50. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +208 -281
  51. package/libs/PanoTagPlugin/Components/Tag/index.js +180 -251
  52. package/libs/PanoTagPlugin/Components/TagContainer.js +80 -151
  53. package/libs/PanoTagPlugin/Components/TagItem.js +67 -138
  54. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +61 -132
  55. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +28 -99
  56. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +30 -101
  57. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +36 -107
  58. package/libs/PanoTagPlugin/controller/TagRender.js +68 -121
  59. package/libs/PanoTagPlugin/controller/TagUtil.js +79 -132
  60. package/libs/PanoTagPlugin/controller/index.js +55 -108
  61. package/libs/PanoTagPlugin/index.js +31 -84
  62. package/libs/PanoTagPlugin/utils/requestIdleCallback.d.ts +1 -1
  63. package/libs/PanoTagPlugin/utils/requestIdleCallback.js +5 -13
  64. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +30 -104
  65. package/libs/PanoVideoPlugin/Controller.js +64 -136
  66. package/libs/PanoVideoPlugin/VideoMeshController.js +74 -148
  67. package/libs/PanoVideoPlugin/index.js +8 -80
  68. package/libs/PipelinePlugin/Controller.js +128 -199
  69. package/libs/PipelinePlugin/index.js +5 -76
  70. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +17 -91
  71. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +14 -88
  72. package/libs/PipelinePlugin/utils/Objects/Pipe.js +56 -130
  73. package/libs/Sculpt/Meshes/Box.js +5 -6
  74. package/libs/Sculpt/Meshes/Cylinder.js +2 -3
  75. package/libs/Sculpt/Meshes/Line.d.ts +1 -0
  76. package/libs/Sculpt/Meshes/Line.js +50 -41
  77. package/libs/Sculpt/Meshes/Point.js +9 -10
  78. package/libs/Sculpt/Meshes/Polygon.d.ts +2 -1
  79. package/libs/Sculpt/Meshes/Polygon.js +47 -37
  80. package/libs/Sculpt/Meshes/Polyline.js +18 -16
  81. package/libs/Sculpt/Meshes/Rectangle.js +3 -4
  82. package/libs/Sculpt/Objects/Line/Editor.js +2 -3
  83. package/libs/Sculpt/Objects/Rectangle/index.js +1 -1
  84. package/libs/Sculpt/utils/removeAllTag.js +4 -4
  85. package/libs/Sculpt/utils/three/ColoredMesh.js +3 -4
  86. package/libs/base/BasePlugin.js +3 -4
  87. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +59 -128
  88. package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -75
  89. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +59 -129
  90. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -75
  91. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +62 -134
  92. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -76
  93. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +81 -151
  94. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -75
  95. package/libs/floorplan/index.js +0 -1
  96. package/libs/index.js +62 -62
  97. package/libs/shared-utils/five/index.js +2 -3
  98. package/libs/shared-utils/five/lookObject.js +17 -18
  99. package/libs/shared-utils/logger.js +1 -1
  100. package/libs/shared-utils/three/index.js +0 -1
  101. 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 me from "./Common/CircleButton.js";
3
+ import se from "./Common/CircleButton.js";
4
4
  import H from "../Controller/EditController.js";
5
- import pe from "./Common/Exit.js";
5
+ import ae from "./Common/Exit.js";
6
6
  import { fade as S } from "../../vendor/svelte/transition/index.js";
7
- import { IconUndo as se, IconOk as ae } from "./Common/icons/index.js";
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 "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
74
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
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 pe({
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, p) {
145
- O(t, e, p), i = !0;
99
+ m(e, a) {
100
+ O(t, e, a), i = !0;
146
101
  },
147
- p(e, p) {
102
+ p(e, a) {
148
103
  const l = {};
149
- p & /*measureController*/
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, p;
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), p = !0;
153
+ I(l, t, n), O(i, t, null), a = !0;
199
154
  },
200
155
  p(l, n) {
201
156
  o = l;
202
- const s = {};
157
+ const m = {};
203
158
  n & /*i18n*/
204
- 4 && (s.options = [
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 && (s.defaultKey = /*measureController*/
175
+ 1 && (m.defaultKey = /*measureController*/
221
176
  o[0].currentMeasureType), n & /*measureController*/
222
- 1 && (s.onChange = /*measureController*/
223
- o[0].changeMeasureType), i.$set(s);
177
+ 1 && (m.onChange = /*measureController*/
178
+ o[0].changeMeasureType), i.$set(m);
224
179
  },
225
180
  i(l) {
226
- p || (k(i.$$.fragment, l), l && F(() => {
227
- p && (e || (e = E(t, S, { duration: P }, !0)), e.run(1));
228
- }), p = !0);
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)), p = !1;
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, p = (
194
+ let t, i, e, a = (
240
195
  /*i18n*/
241
196
  o[2]("撤销") + ""
242
- ), l, n, s, f, C;
197
+ ), l, n, m, f, C;
243
198
  return {
244
199
  c() {
245
- t = j("div"), i = j("div"), e = T(), l = V(p), w(i, "class", "icon svelte-ldjbp8"), W(i, "background-image", `url(${se})`), w(t, "class", "button svelte-ldjbp8"), D(
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), s = !0, f || (C = X(
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, (!s || c & /*i18n*/
262
- 4) && p !== (p = /*i18n*/
263
- o[2]("撤销") + "") && Y(l, p), (!s || c & /*buttonState*/
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
- s || (r && F(() => {
273
- s && (n || (n = E(t, S, { duration: P }, !0)), n.run(1));
274
- }), s = !0);
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)), s = !1;
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, p = (
240
+ let t, i, e, a = (
286
241
  /*i18n*/
287
242
  o[2]("结束") + ""
288
- ), l, n, s, f, C;
243
+ ), l, n, m, f, C;
289
244
  return {
290
245
  c() {
291
- t = j("div"), i = j("div"), e = T(), l = V(p), w(i, "class", "icon svelte-ldjbp8"), W(i, "background-image", `url(${ae})`), w(t, "class", "button svelte-ldjbp8");
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), s = !0, f || (C = X(
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, (!s || c & /*i18n*/
303
- 4) && p !== (p = /*i18n*/
304
- o[2]("结束") + "") && Y(l, p);
257
+ o = r, (!m || c & /*i18n*/
258
+ 4) && a !== (a = /*i18n*/
259
+ o[2]("结束") + "") && Y(l, a);
305
260
  },
306
261
  i(r) {
307
- s || (r && F(() => {
308
- s && (n || (n = E(t, S, { duration: P }, !0)), n.run(1));
309
- }), s = !0);
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)), s = !1;
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, p, l, n, s, f, C, r, c, z, M, b = (
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
- ), a = (
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 me({
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"), p = j("div"), l = T(), n = j("div"), a && a.c(), s = T(), f = j("div"), u && u.c(), C = T(), r = j("div"), q(c.$$.fragment), z = T(), d && d.c(), w(p, "class", "mask svelte-ldjbp8"), w(r, "class", "main-button svelte-ldjbp8"), D(r, "forbid", !/*allowAddPoint*/
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(m, v) {
363
- I(m, t, v), b && b.m(t, null), g(t, i), g(t, e), g(e, p), g(e, l), g(e, n), a && a.m(n, null), g(n, s), 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;
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(m, [v]) {
320
+ p(s, [v]) {
366
321
  /*showExit*/
367
- m[1] ? b ? (b.p(m, v), v & /*showExit*/
368
- 2 && k(b, 1)) : (b = J(m), b.c(), k(b, 1), b.m(t, i)) : b && (B(), _(b, 1, 1, () => {
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
- m[0].allowMeasureType.length >= 2 && /*buttonState*/
372
- m[3] === "start" ? a ? (a.p(m, v), v & /*measureController, buttonState*/
373
- 9 && k(a, 1)) : (a = L(m), a.c(), k(a, 1), a.m(n, s)) : a && (B(), _(a, 1, 1, () => {
374
- a = null;
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
- m[4] ? u ? (u.p(m, v), v & /*showButton*/
377
- 16 && k(u, 1)) : (u = N(m), u.c(), k(u, 1), u.m(f, C)) : u && (B(), _(u, 1, 1, () => {
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
- m[14]), v & /*buttonState*/
338
+ s[14]), v & /*buttonState*/
384
339
  8 && (y.text = /*buttonTextMap*/
385
- m[6][
340
+ s[6][
386
341
  /*buttonState*/
387
- m[3]
342
+ s[3]
388
343
  ]), v & /*buttonState*/
389
344
  8 && (y.color = /*buttonColorMap*/
390
- m[7][
345
+ s[7][
391
346
  /*buttonState*/
392
- m[3]
347
+ s[3]
393
348
  ]), c.$set(y), (!M || v & /*allowAddPoint*/
394
349
  32) && D(r, "forbid", !/*allowAddPoint*/
395
- m[5]), /*showButton*/
396
- m[4] ? d ? (d.p(m, v), v & /*showButton*/
397
- 16 && k(d, 1)) : (d = Q(m), d.c(), k(d, 1), d.m(f, null)) : d && (B(), _(d, 1, 1, () => {
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(m) {
402
- M || (k(b), k(a), k(u), k(c.$$.fragment, m), k(d), M = !0);
356
+ i(s) {
357
+ M || (k(b), k(p), k(u), k(c.$$.fragment, s), k(d), M = !0);
403
358
  },
404
- o(m) {
405
- _(b), _(a), _(u), _(c.$$.fragment, m), _(d), M = !1;
359
+ o(s) {
360
+ _(b), _(p), _(u), _(c.$$.fragment, s), _(d), M = !1;
406
361
  },
407
- d(m) {
408
- m && K(t), b && b.d(), a && a.d(), u && u.d(), U(c), d && d.d();
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: p = !1 } = t, { i18n: l = (h) => h } = t;
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
- }, s = {
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") : (a("add"), M());
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
- }, a = (h) => {
388
+ }, p = (h) => {
434
389
  i(3, r = h);
435
390
  }, u = () => {
436
391
  M(), A("allow");
437
392
  }, d = () => {
438
- a("complete");
439
- }, m = () => {
440
- e.currentMeasureType === "area" && r === "complete" && a("add");
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
- a("start"), A("allow");
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 && a("start");
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", m), e.hook.on("complete", y);
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", m), e.hook.off("complete", y);
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, p = h.showExit), "i18n" in h && i(2, l = h.i18n);
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
- p,
422
+ a,
468
423
  l,
469
424
  r,
470
425
  f,
471
426
  C,
472
427
  n,
473
- s,
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 Do extends ee {
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
- Do as default
456
+ Ht as default
502
457
  };