@realsee/dnalogel 3.50.17-alpha.0 → 3.51.0

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 (118) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/ModelMakerPlugin/Controller.d.ts +2 -0
  3. package/dist/Sculpt/utils/export.d.ts +18 -0
  4. package/dist/index.cjs.js +207 -207
  5. package/dist/index.js +34866 -34775
  6. package/dist/index.umd.js +211 -211
  7. package/dist/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
  8. package/dist/shared-utils/index.d.ts +1 -0
  9. package/dist/shared-utils/tag.d.ts +40 -1
  10. package/dist/shared-utils/three/temp.d.ts +2 -2
  11. package/libs/AreaMakerPlugin/Controller.js +100 -46
  12. package/libs/AreaMakerPlugin/index.js +64 -10
  13. package/libs/AreaMakerPlugin/utils/Item.js +156 -100
  14. package/libs/CSS3DRenderPlugin/Controller.js +93 -44
  15. package/libs/CSS3DRenderPlugin/index.js +62 -13
  16. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +105 -49
  17. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +130 -77
  18. package/libs/CruisePlugin/BaseController.js +143 -89
  19. package/libs/CruisePlugin/Move.js +83 -39
  20. package/libs/CruisePlugin/Work.js +95 -51
  21. package/libs/CruisePlugin/index.js +66 -22
  22. package/libs/CurrentPanoImagePlugin/Controller.js +139 -85
  23. package/libs/CurrentPanoImagePlugin/index.js +63 -9
  24. package/libs/GuideLinePlugin/Controller.js +57 -13
  25. package/libs/GuideLinePlugin/GuideLineItem.js +63 -19
  26. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +6 -2
  27. package/libs/GuideLinePlugin/GuideLineModeItem.js +58 -14
  28. package/libs/GuideLinePlugin/index.js +66 -22
  29. package/libs/ModelMakerPlugin/Controller.d.ts +2 -0
  30. package/libs/ModelMakerPlugin/Controller.js +190 -129
  31. package/libs/ModelMakerPlugin/index.js +63 -21
  32. package/libs/ModelMakerPlugin/item/baseItem.js +4 -2
  33. package/libs/ModelMakerPlugin/item/boxItem.js +5 -3
  34. package/libs/ModelMakerPlugin/item/polygonItem.js +9 -7
  35. package/libs/ModelMakerPlugin/item/prismItem.js +5 -3
  36. package/libs/ModelTVVideoPlugin/Plugin.js +96 -47
  37. package/libs/ModelTVVideoPlugin/index.js +55 -6
  38. package/libs/Object3DHelperPlugin/Controller.js +42 -25
  39. package/libs/Object3DHelperPlugin/index.js +28 -12
  40. package/libs/PanoCompassPlugin/Controller.js +92 -44
  41. package/libs/PanoCompassPlugin/index.js +63 -15
  42. package/libs/PanoDoorLabelPlugin/BaseController.js +79 -25
  43. package/libs/PanoDoorLabelPlugin/Controller.js +132 -78
  44. package/libs/PanoDoorLabelPlugin/index.js +63 -9
  45. package/libs/PanoMeasurePlugin/Components/Controller0.js +126 -77
  46. package/libs/PanoMeasurePlugin/Components/Controller1.js +139 -90
  47. package/libs/PanoMeasurePlugin/Controller/EditController.js +120 -71
  48. package/libs/PanoMeasurePlugin/Controller/WatchController.js +120 -70
  49. package/libs/PanoMeasurePlugin/Controller/index.js +132 -86
  50. package/libs/PanoMeasurePlugin/Model/area.js +72 -22
  51. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +56 -0
  52. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +64 -15
  53. package/libs/PanoMeasurePlugin/index.js +62 -16
  54. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +57 -2
  55. package/libs/PanoRulerProPlugin/Controller.js +88 -33
  56. package/libs/PanoRulerProPlugin/RulerItems.js +146 -91
  57. package/libs/PanoRulerProPlugin/index.js +64 -9
  58. package/libs/PanoSpatialTagPlugin/Plugin.js +177 -128
  59. package/libs/PanoSpatialTagPlugin/index.js +53 -4
  60. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +116 -60
  61. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +192 -136
  62. package/libs/PanoTagPlugin/Components/Tag/index.js +194 -139
  63. package/libs/PanoTagPlugin/Components/TagContainer.js +112 -57
  64. package/libs/PanoTagPlugin/Components/TagItem.js +204 -149
  65. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +157 -101
  66. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +75 -20
  67. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +86 -31
  68. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +93 -37
  69. package/libs/PanoTagPlugin/controller/TagRender.js +62 -18
  70. package/libs/PanoTagPlugin/controller/TagUtil.js +123 -79
  71. package/libs/PanoTagPlugin/controller/index.js +110 -72
  72. package/libs/PanoTagPlugin/index.js +72 -28
  73. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +77 -21
  74. package/libs/PanoVideoPlugin/Controller.js +95 -41
  75. package/libs/PanoVideoPlugin/VideoMeshController.js +119 -63
  76. package/libs/PanoVideoPlugin/index.js +66 -12
  77. package/libs/PipelinePlugin/Controller.js +173 -119
  78. package/libs/PipelinePlugin/index.js +63 -9
  79. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +70 -14
  80. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +58 -2
  81. package/libs/PipelinePlugin/utils/Objects/Pipe.js +98 -42
  82. package/libs/Sculpt/Meshes/Box.js +3 -2
  83. package/libs/Sculpt/Meshes/Cylinder.js +10 -6
  84. package/libs/Sculpt/Meshes/Line.js +43 -38
  85. package/libs/Sculpt/Meshes/LineWithDots.js +14 -10
  86. package/libs/Sculpt/Meshes/Point.js +24 -20
  87. package/libs/Sculpt/Meshes/Polygon.js +5 -2
  88. package/libs/Sculpt/Meshes/Prism.js +19 -16
  89. package/libs/Sculpt/Objects/Line/Editor.js +6 -5
  90. package/libs/Sculpt/index.js +15 -14
  91. package/libs/Sculpt/utils/export.d.ts +18 -0
  92. package/libs/Sculpt/utils/export.js +21 -0
  93. package/libs/Sculpt/utils/three/ColoredMesh.js +26 -22
  94. package/libs/base/BasePlugin.js +14 -10
  95. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +146 -94
  96. package/libs/floorplan/MapviewFloorplanPlugin/index.js +62 -10
  97. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +109 -56
  98. package/libs/floorplan/ModelFloorplanPlugin/index.js +62 -9
  99. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +116 -63
  100. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +62 -9
  101. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +105 -52
  102. package/libs/floorplan/TopviewFloorplanPlugin/index.js +62 -9
  103. package/libs/floorplan/index.js +4 -0
  104. package/libs/index.js +208 -206
  105. package/libs/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
  106. package/libs/shared-utils/five/fiveEveryReadyListener.js +15 -0
  107. package/libs/shared-utils/five/index.js +6 -2
  108. package/libs/shared-utils/five/lookObject.js +31 -27
  109. package/libs/shared-utils/index.d.ts +1 -0
  110. package/libs/shared-utils/index.js +19 -17
  111. package/libs/shared-utils/logger.js +1 -1
  112. package/libs/shared-utils/tag.d.ts +40 -1
  113. package/libs/shared-utils/tag.js +139 -86
  114. package/libs/shared-utils/three/index.js +4 -0
  115. package/libs/shared-utils/three/temp.d.ts +2 -2
  116. package/libs/shared-utils/three/temp.js +4 -4
  117. package/package.json +1 -1
  118. package/README.md +0 -116
@@ -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 se from "./Common/CircleButton.js";
3
+ import me from "./Common/CircleButton.js";
4
4
  import H from "../Controller/EditController.js";
5
- import ae from "./Common/Exit.js";
5
+ import pe from "./Common/Exit.js";
6
6
  import { fade as S } from "../../vendor/svelte/transition/index.js";
7
- import { IconUndo as me, IconOk as pe } from "./Common/icons/index.js";
7
+ import { IconUndo as se, IconOk as ae } 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";
@@ -44,7 +44,9 @@ import "../../shared-utils/Subscribe.js";
44
44
  import "../../shared-utils/Utils/WorkUtil.js";
45
45
  import "../../shared-utils/five/transformPosition.js";
46
46
  import "../../shared-utils/three/temp.js";
47
+ import "../../shared-utils/three/core/Raycaster.js";
47
48
  import "../../shared-utils/dom/resizeObserver.js";
49
+ import "../../shared-utils/five/fiveEveryReadyListener.js";
48
50
  import "hammerjs";
49
51
  import "../../shared-utils/three/PointSelector/index.js";
50
52
  import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
@@ -63,19 +65,66 @@ import "../../shared-utils/three/core/Sphere.js";
63
65
  import "animejs";
64
66
  import "../../shared-utils/isNil.js";
65
67
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
66
- import "../../shared-utils/three/PointSelector/utils/html.js";
67
- import "../../shared-utils/five/initialCSS3DRender.js";
68
+ import "../../Sculpt/Meshes/Polygon.js";
69
+ import "../../Sculpt/typings/style.js";
70
+ import "../../Sculpt/utils/three/ColoredMesh.js";
71
+ import "../../Sculpt/utils/Modules/Global.js";
72
+ import "../../Sculpt/utils/Modules/Cursor.js";
73
+ import "../../Object3DHelperPlugin/Controller.js";
74
+ import "../../base/BasePlugin.js";
75
+ import "../../shared-utils/url/absoluteUrl.js";
76
+ import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
77
+ import "../../Sculpt/utils/three/rayOnLine.js";
78
+ import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
79
+ import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
80
+ import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
81
+ import "../../shared-utils/three/boundingBox.js";
82
+ import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
83
+ import "../../shared-utils/Object3DHelper/utils/direction.js";
84
+ import "../../shared-utils/Object3DHelper/Constants/color.js";
85
+ import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
86
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
68
87
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
69
88
  import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
70
89
  import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
90
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
91
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
92
+ import "../../shared-utils/util.js";
93
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
94
+ import "../../shared-utils/three/PointSelector/utils/html.js";
95
+ import "../../shared-utils/five/initialCSS3DRender.js";
71
96
  import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
72
97
  import "../../Sculpt/Meshes/Line.js";
73
- import "../../Sculpt/typings/style.js";
74
98
  import "../../Sculpt/utils/removeAllTag.js";
75
99
  import "../../Sculpt/utils/Meshes/getLengthHTML.js";
76
100
  import "../../shared-utils/three/applyObjectMatrixWorld.js";
77
- import "../../shared-utils/util.js";
78
101
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
102
+ import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
103
+ import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
104
+ import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
105
+ import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
106
+ import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
107
+ import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
108
+ import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
109
+ import "../../shared-utils/Object3DHelper/Base/BaseController.js";
110
+ import "../../shared-utils/threex/domevents/index.js";
111
+ import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
112
+ import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
113
+ import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
114
+ import "../../shared-utils/Object3DHelper/index.js";
115
+ import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
116
+ import "../../shared-utils/math/rad2Deg.js";
117
+ import "../../shared-utils/math/deg2Rad.js";
118
+ import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
119
+ import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
120
+ import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
121
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
122
+ import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
123
+ import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
124
+ import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
125
+ import "../../shared-utils/five/fiveModelLoad.js";
126
+ import "../../shared-utils/five/FiveDomEvents.js";
127
+ import "../../shared-utils/five/calculateThreeMouse.js";
79
128
  import "../../shared-utils/isTouchDevice.js";
80
129
  import "../../shared-utils/five/getPosition.js";
81
130
  import "../../shared-utils/five/getRaycasterByNdcPosition.js";
@@ -90,7 +139,7 @@ function fe(o) {
90
139
  }
91
140
  function J(o) {
92
141
  let t, i;
93
- return t = new ae({
142
+ return t = new pe({
94
143
  props: {
95
144
  onClick: (
96
145
  /*measureController*/
@@ -101,12 +150,12 @@ function J(o) {
101
150
  c() {
102
151
  q(t.$$.fragment);
103
152
  },
104
- m(e, a) {
105
- O(t, e, a), i = !0;
153
+ m(e, p) {
154
+ O(t, e, p), i = !0;
106
155
  },
107
- p(e, a) {
156
+ p(e, p) {
108
157
  const l = {};
109
- a & /*measureController*/
158
+ p & /*measureController*/
110
159
  1 && (l.onClick = /*measureController*/
111
160
  e[0].disable), t.$set(l);
112
161
  },
@@ -122,7 +171,7 @@ function J(o) {
122
171
  };
123
172
  }
124
173
  function L(o) {
125
- let t, i, e, a;
174
+ let t, i, e, p;
126
175
  return i = new ne({
127
176
  props: {
128
177
  options: [
@@ -155,13 +204,13 @@ function L(o) {
155
204
  t = j("div"), q(i.$$.fragment), w(t, "class", "mode-switcher svelte-ldjbp8");
156
205
  },
157
206
  m(l, n) {
158
- I(l, t, n), O(i, t, null), a = !0;
207
+ I(l, t, n), O(i, t, null), p = !0;
159
208
  },
160
209
  p(l, n) {
161
210
  o = l;
162
- const m = {};
211
+ const s = {};
163
212
  n & /*i18n*/
164
- 4 && (m.options = [
213
+ 4 && (s.options = [
165
214
  {
166
215
  key: "line",
167
216
  value: (
@@ -177,18 +226,18 @@ function L(o) {
177
226
  )
178
227
  }
179
228
  ]), n & /*measureController*/
180
- 1 && (m.defaultKey = /*measureController*/
229
+ 1 && (s.defaultKey = /*measureController*/
181
230
  o[0].currentMeasureType), n & /*measureController*/
182
- 1 && (m.onChange = /*measureController*/
183
- o[0].changeMeasureType), i.$set(m);
231
+ 1 && (s.onChange = /*measureController*/
232
+ o[0].changeMeasureType), i.$set(s);
184
233
  },
185
234
  i(l) {
186
- a || (k(i.$$.fragment, l), l && F(() => {
187
- a && (e || (e = E(t, S, { duration: P }, !0)), e.run(1));
188
- }), a = !0);
235
+ p || (k(i.$$.fragment, l), l && F(() => {
236
+ p && (e || (e = E(t, S, { duration: P }, !0)), e.run(1));
237
+ }), p = !0);
189
238
  },
190
239
  o(l) {
191
- _(i.$$.fragment, l), l && (e || (e = E(t, S, { duration: P }, !1)), e.run(0)), a = !1;
240
+ _(i.$$.fragment, l), l && (e || (e = E(t, S, { duration: P }, !1)), e.run(0)), p = !1;
192
241
  },
193
242
  d(l) {
194
243
  l && K(t), U(i), l && e && e.end();
@@ -196,13 +245,13 @@ function L(o) {
196
245
  };
197
246
  }
198
247
  function N(o) {
199
- let t, i, e, a = (
248
+ let t, i, e, p = (
200
249
  /*i18n*/
201
250
  o[2]("撤销") + ""
202
- ), l, n, m, f, C;
251
+ ), l, n, s, f, C;
203
252
  return {
204
253
  c() {
205
- 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(
254
+ 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(
206
255
  t,
207
256
  "forbid",
208
257
  /*buttonState*/
@@ -210,7 +259,7 @@ function N(o) {
210
259
  );
211
260
  },
212
261
  m(r, c) {
213
- I(r, t, c), g(t, i), g(t, e), g(t, l), m = !0, f || (C = X(
262
+ I(r, t, c), g(t, i), g(t, e), g(t, l), s = !0, f || (C = X(
214
263
  t,
215
264
  "click",
216
265
  /*click_handler*/
@@ -218,9 +267,9 @@ function N(o) {
218
267
  ), f = !0);
219
268
  },
220
269
  p(r, c) {
221
- o = r, (!m || c & /*i18n*/
222
- 4) && a !== (a = /*i18n*/
223
- o[2]("撤销") + "") && Y(l, a), (!m || c & /*buttonState*/
270
+ o = r, (!s || c & /*i18n*/
271
+ 4) && p !== (p = /*i18n*/
272
+ o[2]("撤销") + "") && Y(l, p), (!s || c & /*buttonState*/
224
273
  8) && D(
225
274
  t,
226
275
  "forbid",
@@ -229,12 +278,12 @@ function N(o) {
229
278
  );
230
279
  },
231
280
  i(r) {
232
- m || (r && F(() => {
233
- m && (n || (n = E(t, S, { duration: P }, !0)), n.run(1));
234
- }), m = !0);
281
+ s || (r && F(() => {
282
+ s && (n || (n = E(t, S, { duration: P }, !0)), n.run(1));
283
+ }), s = !0);
235
284
  },
236
285
  o(r) {
237
- r && (n || (n = E(t, S, { duration: P }, !1)), n.run(0)), m = !1;
286
+ r && (n || (n = E(t, S, { duration: P }, !1)), n.run(0)), s = !1;
238
287
  },
239
288
  d(r) {
240
289
  r && K(t), r && n && n.end(), f = !1, C();
@@ -242,16 +291,16 @@ function N(o) {
242
291
  };
243
292
  }
244
293
  function Q(o) {
245
- let t, i, e, a = (
294
+ let t, i, e, p = (
246
295
  /*i18n*/
247
296
  o[2]("结束") + ""
248
- ), l, n, m, f, C;
297
+ ), l, n, s, f, C;
249
298
  return {
250
299
  c() {
251
- 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");
300
+ 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");
252
301
  },
253
302
  m(r, c) {
254
- I(r, t, c), g(t, i), g(t, e), g(t, l), m = !0, f || (C = X(
303
+ I(r, t, c), g(t, i), g(t, e), g(t, l), s = !0, f || (C = X(
255
304
  t,
256
305
  "click",
257
306
  /*complete*/
@@ -259,17 +308,17 @@ function Q(o) {
259
308
  ), f = !0);
260
309
  },
261
310
  p(r, c) {
262
- o = r, (!m || c & /*i18n*/
263
- 4) && a !== (a = /*i18n*/
264
- o[2]("结束") + "") && Y(l, a);
311
+ o = r, (!s || c & /*i18n*/
312
+ 4) && p !== (p = /*i18n*/
313
+ o[2]("结束") + "") && Y(l, p);
265
314
  },
266
315
  i(r) {
267
- m || (r && F(() => {
268
- m && (n || (n = E(t, S, { duration: P }, !0)), n.run(1));
269
- }), m = !0);
316
+ s || (r && F(() => {
317
+ s && (n || (n = E(t, S, { duration: P }, !0)), n.run(1));
318
+ }), s = !0);
270
319
  },
271
320
  o(r) {
272
- r && (n || (n = E(t, S, { duration: P }, !1)), n.run(0)), m = !1;
321
+ r && (n || (n = E(t, S, { duration: P }, !1)), n.run(0)), s = !1;
273
322
  },
274
323
  d(r) {
275
324
  r && K(t), r && n && n.end(), f = !1, C();
@@ -277,10 +326,10 @@ function Q(o) {
277
326
  };
278
327
  }
279
328
  function ue(o) {
280
- let t, i, e, a, l, n, m, f, C, r, c, z, M, b = (
329
+ let t, i, e, p, l, n, s, f, C, r, c, z, M, b = (
281
330
  /*showExit*/
282
331
  o[1] && J(o)
283
- ), p = (
332
+ ), a = (
284
333
  /*measureController*/
285
334
  o[0].allowMeasureType.length >= 2 && /*buttonState*/
286
335
  o[3] === "start" && L(o)
@@ -288,7 +337,7 @@ function ue(o) {
288
337
  /*showButton*/
289
338
  o[4] && N(o)
290
339
  );
291
- c = new se({
340
+ c = new me({
292
341
  props: {
293
342
  onClick: (
294
343
  /*func*/
@@ -316,68 +365,68 @@ function ue(o) {
316
365
  );
317
366
  return {
318
367
  c() {
319
- 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*/
368
+ 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*/
320
369
  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");
321
370
  },
322
- m(s, v) {
323
- 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;
371
+ m(m, v) {
372
+ 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;
324
373
  },
325
- p(s, [v]) {
374
+ p(m, [v]) {
326
375
  /*showExit*/
327
- s[1] ? b ? (b.p(s, v), v & /*showExit*/
328
- 2 && k(b, 1)) : (b = J(s), b.c(), k(b, 1), b.m(t, i)) : b && (B(), _(b, 1, 1, () => {
376
+ m[1] ? b ? (b.p(m, v), v & /*showExit*/
377
+ 2 && k(b, 1)) : (b = J(m), b.c(), k(b, 1), b.m(t, i)) : b && (B(), _(b, 1, 1, () => {
329
378
  b = null;
330
379
  }), R()), /*measureController*/
331
- s[0].allowMeasureType.length >= 2 && /*buttonState*/
332
- s[3] === "start" ? p ? (p.p(s, v), v & /*measureController, buttonState*/
333
- 9 && k(p, 1)) : (p = L(s), p.c(), k(p, 1), p.m(n, m)) : p && (B(), _(p, 1, 1, () => {
334
- p = null;
380
+ m[0].allowMeasureType.length >= 2 && /*buttonState*/
381
+ m[3] === "start" ? a ? (a.p(m, v), v & /*measureController, buttonState*/
382
+ 9 && k(a, 1)) : (a = L(m), a.c(), k(a, 1), a.m(n, s)) : a && (B(), _(a, 1, 1, () => {
383
+ a = null;
335
384
  }), R()), /*showButton*/
336
- s[4] ? u ? (u.p(s, v), v & /*showButton*/
337
- 16 && k(u, 1)) : (u = N(s), u.c(), k(u, 1), u.m(f, C)) : u && (B(), _(u, 1, 1, () => {
385
+ m[4] ? u ? (u.p(m, v), v & /*showButton*/
386
+ 16 && k(u, 1)) : (u = N(m), u.c(), k(u, 1), u.m(f, C)) : u && (B(), _(u, 1, 1, () => {
338
387
  u = null;
339
388
  }), R());
340
389
  const y = {};
341
390
  v & /*buttonState*/
342
391
  8 && (y.onClick = /*func*/
343
- s[14]), v & /*buttonState*/
392
+ m[14]), v & /*buttonState*/
344
393
  8 && (y.text = /*buttonTextMap*/
345
- s[6][
394
+ m[6][
346
395
  /*buttonState*/
347
- s[3]
396
+ m[3]
348
397
  ]), v & /*buttonState*/
349
398
  8 && (y.color = /*buttonColorMap*/
350
- s[7][
399
+ m[7][
351
400
  /*buttonState*/
352
- s[3]
401
+ m[3]
353
402
  ]), c.$set(y), (!M || v & /*allowAddPoint*/
354
403
  32) && D(r, "forbid", !/*allowAddPoint*/
355
- s[5]), /*showButton*/
356
- s[4] ? d ? (d.p(s, v), v & /*showButton*/
357
- 16 && k(d, 1)) : (d = Q(s), d.c(), k(d, 1), d.m(f, null)) : d && (B(), _(d, 1, 1, () => {
404
+ m[5]), /*showButton*/
405
+ m[4] ? d ? (d.p(m, v), v & /*showButton*/
406
+ 16 && k(d, 1)) : (d = Q(m), d.c(), k(d, 1), d.m(f, null)) : d && (B(), _(d, 1, 1, () => {
358
407
  d = null;
359
408
  }), R());
360
409
  },
361
- i(s) {
362
- M || (k(b), k(p), k(u), k(c.$$.fragment, s), k(d), M = !0);
410
+ i(m) {
411
+ M || (k(b), k(a), k(u), k(c.$$.fragment, m), k(d), M = !0);
363
412
  },
364
- o(s) {
365
- _(b), _(p), _(u), _(c.$$.fragment, s), _(d), M = !1;
413
+ o(m) {
414
+ _(b), _(a), _(u), _(c.$$.fragment, m), _(d), M = !1;
366
415
  },
367
- d(s) {
368
- s && K(t), b && b.d(), p && p.d(), u && u.d(), U(c), d && d.d();
416
+ d(m) {
417
+ m && K(t), b && b.d(), a && a.d(), u && u.d(), U(c), d && d.d();
369
418
  }
370
419
  };
371
420
  }
372
421
  const P = 100;
373
422
  function de(o, t, i) {
374
- let { measureController: e } = t, { showExit: a = !1 } = t, { i18n: l = (h) => h } = t;
423
+ let { measureController: e } = t, { showExit: p = !1 } = t, { i18n: l = (h) => h } = t;
375
424
  const n = {
376
425
  start: l("开始"),
377
426
  add: l("添加"),
378
427
  end: l("结束"),
379
428
  complete: l("完成")
380
- }, m = {
429
+ }, s = {
381
430
  start: "white",
382
431
  add: "white",
383
432
  end: "blue",
@@ -385,52 +434,52 @@ function de(o, t, i) {
385
434
  };
386
435
  let f = !1, C = !0, r = "start", c = e.currentMeasureType;
387
436
  const z = () => {
388
- e.getCurrentMode() !== "Edit" ? e.changeMode("Edit") : (p("add"), M());
437
+ e.getCurrentMode() !== "Edit" ? e.changeMode("Edit") : (a("add"), M());
389
438
  }, M = () => {
390
439
  e.controller instanceof H && e.controller.selectPoint();
391
440
  }, b = () => {
392
441
  e.controller instanceof H && e.controller.complete();
393
- }, p = (h) => {
442
+ }, a = (h) => {
394
443
  i(3, r = h);
395
444
  }, u = () => {
396
445
  M(), A("allow");
397
446
  }, d = () => {
398
- p("complete");
399
- }, s = () => {
400
- e.currentMeasureType === "area" && r === "complete" && p("add");
447
+ a("complete");
448
+ }, m = () => {
449
+ e.currentMeasureType === "area" && r === "complete" && a("add");
401
450
  }, v = (h) => {
402
451
  h.length;
403
452
  }, y = () => {
404
- p("start"), A("allow");
453
+ a("start"), A("allow");
405
454
  }, A = (h) => {
406
455
  i(5, C = h === "allow");
407
456
  }, G = (h) => {
408
457
  i(12, c = h);
409
458
  }, Z = (h) => {
410
- h.isEmpty && p("start");
459
+ h.isEmpty && a("start");
411
460
  };
412
461
  ie(() => {
413
- 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);
462
+ 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);
414
463
  }), le(() => {
415
- 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);
464
+ 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);
416
465
  });
417
466
  const $ = () => e.revoke(), x = () => {
418
467
  r === "start" ? z() : r === "add" ? M() : (r === "end" || r === "complete") && u();
419
468
  };
420
469
  return o.$$set = (h) => {
421
- "measureController" in h && i(0, e = h.measureController), "showExit" in h && i(1, a = h.showExit), "i18n" in h && i(2, l = h.i18n);
470
+ "measureController" in h && i(0, e = h.measureController), "showExit" in h && i(1, p = h.showExit), "i18n" in h && i(2, l = h.i18n);
422
471
  }, o.$$.update = () => {
423
472
  o.$$.dirty & /*currentMeasureType, buttonState*/
424
473
  4104 && i(4, f = c === "area" && r !== "start");
425
474
  }, [
426
475
  e,
427
- a,
476
+ p,
428
477
  l,
429
478
  r,
430
479
  f,
431
480
  C,
432
481
  n,
433
- m,
482
+ s,
434
483
  z,
435
484
  M,
436
485
  b,
@@ -440,7 +489,7 @@ function de(o, t, i) {
440
489
  x
441
490
  ];
442
491
  }
443
- class Vt extends ee {
492
+ class Jo extends ee {
444
493
  constructor(t) {
445
494
  super(), te(
446
495
  this,
@@ -458,5 +507,5 @@ class Vt extends ee {
458
507
  }
459
508
  }
460
509
  export {
461
- Vt as default
510
+ Jo as default
462
511
  };