@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,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 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";
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 m, 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 ee, IconOk as te } from "./Common/icons/index.js";
5
+ import { IconLine as q, IconArea as D, IconUndo as tt, IconOk as et } from "./Common/icons/index.js";
6
6
  import "../Model/line.js";
7
7
  import "../../shared-utils/uuid.js";
8
8
  import "../utils/line.js";
@@ -40,7 +40,9 @@ import "../../shared-utils/Subscribe.js";
40
40
  import "../../shared-utils/Utils/WorkUtil.js";
41
41
  import "../../shared-utils/five/transformPosition.js";
42
42
  import "../../shared-utils/three/temp.js";
43
+ import "../../shared-utils/three/core/Raycaster.js";
43
44
  import "../../shared-utils/dom/resizeObserver.js";
45
+ import "../../shared-utils/five/fiveEveryReadyListener.js";
44
46
  import "hammerjs";
45
47
  import "../../shared-utils/three/PointSelector/index.js";
46
48
  import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
@@ -59,19 +61,66 @@ import "../../shared-utils/three/core/Sphere.js";
59
61
  import "animejs";
60
62
  import "../../shared-utils/isNil.js";
61
63
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
62
- import "../../shared-utils/three/PointSelector/utils/html.js";
63
- import "../../shared-utils/five/initialCSS3DRender.js";
64
+ import "../../Sculpt/Meshes/Polygon.js";
65
+ import "../../Sculpt/typings/style.js";
66
+ import "../../Sculpt/utils/three/ColoredMesh.js";
67
+ import "../../Sculpt/utils/Modules/Global.js";
68
+ import "../../Sculpt/utils/Modules/Cursor.js";
69
+ import "../../Object3DHelperPlugin/Controller.js";
70
+ import "../../base/BasePlugin.js";
71
+ import "../../shared-utils/url/absoluteUrl.js";
72
+ import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
73
+ import "../../Sculpt/utils/three/rayOnLine.js";
74
+ import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
75
+ import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
76
+ import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
77
+ import "../../shared-utils/three/boundingBox.js";
78
+ import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
79
+ import "../../shared-utils/Object3DHelper/utils/direction.js";
80
+ import "../../shared-utils/Object3DHelper/Constants/color.js";
81
+ import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
82
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
64
83
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
65
84
  import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
66
85
  import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
86
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
87
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
88
+ import "../../shared-utils/util.js";
89
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
90
+ import "../../shared-utils/three/PointSelector/utils/html.js";
91
+ import "../../shared-utils/five/initialCSS3DRender.js";
67
92
  import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
68
93
  import "../../Sculpt/Meshes/Line.js";
69
- import "../../Sculpt/typings/style.js";
70
94
  import "../../Sculpt/utils/removeAllTag.js";
71
95
  import "../../Sculpt/utils/Meshes/getLengthHTML.js";
72
96
  import "../../shared-utils/three/applyObjectMatrixWorld.js";
73
- import "../../shared-utils/util.js";
74
97
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
98
+ import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
99
+ import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
100
+ import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
101
+ import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
102
+ import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
103
+ import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
104
+ import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
105
+ import "../../shared-utils/Object3DHelper/Base/BaseController.js";
106
+ import "../../shared-utils/threex/domevents/index.js";
107
+ import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
108
+ import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
109
+ import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
110
+ import "../../shared-utils/Object3DHelper/index.js";
111
+ import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
112
+ import "../../shared-utils/math/rad2Deg.js";
113
+ import "../../shared-utils/math/deg2Rad.js";
114
+ import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
115
+ import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
116
+ import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
117
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
118
+ import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
119
+ import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
120
+ import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
121
+ import "../../shared-utils/five/fiveModelLoad.js";
122
+ import "../../shared-utils/five/FiveDomEvents.js";
123
+ import "../../shared-utils/five/calculateThreeMouse.js";
75
124
  import "../../shared-utils/isTouchDevice.js";
76
125
  import "../../shared-utils/five/getPosition.js";
77
126
  import "../../shared-utils/five/getRaycasterByNdcPosition.js";
@@ -81,7 +130,7 @@ import "../Modules/DeleteDom/_Assets/delete.svg.js";
81
130
  import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
82
131
  import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
83
132
  import "../utils/math.js";
84
- function oe(n) {
133
+ function ot(n) {
85
134
  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}');
86
135
  }
87
136
  function L(n) {
@@ -97,41 +146,41 @@ function L(n) {
97
146
  c() {
98
147
  P(o.$$.fragment);
99
148
  },
100
- m(t, p) {
101
- T(o, t, p), i = !0;
149
+ m(e, a) {
150
+ T(o, e, a), i = !0;
102
151
  },
103
- p(t, p) {
152
+ p(e, a) {
104
153
  const f = {};
105
- p & /*measureController*/
154
+ a & /*measureController*/
106
155
  1 && (f.onClick = /*measureController*/
107
- t[0].disable), o.$set(f);
156
+ e[0].disable), o.$set(f);
108
157
  },
109
- i(t) {
110
- i || (w(o.$$.fragment, t), i = !0);
158
+ i(e) {
159
+ i || (w(o.$$.fragment, e), i = !0);
111
160
  },
112
- o(t) {
113
- I(o.$$.fragment, t), i = !1;
161
+ o(e) {
162
+ I(o.$$.fragment, e), i = !1;
114
163
  },
115
- d(t) {
116
- W(o, t);
164
+ d(e) {
165
+ W(o, e);
117
166
  }
118
167
  };
119
168
  }
120
169
  function O(n) {
121
- let o, i, t, p, f = (
170
+ let o, i, e, a, f = (
122
171
  /*i18n*/
123
172
  n[2]("撤销") + ""
124
- ), m, v, d, a, b, c = (
173
+ ), s, v, p, d, b, c = (
125
174
  /*i18n*/
126
175
  n[2]("结束") + ""
127
176
  ), r, l, _;
128
177
  return {
129
178
  c() {
130
- o = h("div"), i = h("div"), t = h("div"), p = C(), m = y(f), v = C(), d = 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*/
131
- n[3]), g(a, "class", "icon svelte-468fdd"), E(a, "background-image", `url(${te})`), g(d, "class", "button svelte-468fdd"), g(o, "class", "buttons svelte-468fdd");
179
+ o = h("div"), i = h("div"), e = h("div"), a = C(), s = y(f), v = C(), p = h("div"), d = h("div"), b = C(), r = y(c), g(e, "class", "icon svelte-468fdd"), E(e, "background-image", `url(${tt})`), g(i, "class", "button svelte-468fdd"), z(i, "forbid", !/*canRevoke*/
180
+ n[3]), g(d, "class", "icon svelte-468fdd"), E(d, "background-image", `url(${et})`), g(p, "class", "button svelte-468fdd"), g(o, "class", "buttons svelte-468fdd");
132
181
  },
133
- m(u, e) {
134
- R(u, o, e), s(o, i), s(i, t), s(i, p), s(i, m), s(o, v), s(o, d), s(d, a), s(d, b), s(d, r), l || (_ = [
182
+ m(u, t) {
183
+ R(u, o, t), m(o, i), m(i, e), m(i, a), m(i, s), m(o, v), m(o, p), m(p, d), m(p, b), m(p, r), l || (_ = [
135
184
  S(
136
185
  i,
137
186
  "click",
@@ -139,19 +188,19 @@ function O(n) {
139
188
  n[7]
140
189
  ),
141
190
  S(
142
- d,
191
+ p,
143
192
  "click",
144
193
  /*complete*/
145
194
  n[6]
146
195
  )
147
196
  ], l = !0);
148
197
  },
149
- p(u, e) {
150
- e & /*i18n*/
198
+ p(u, t) {
199
+ t & /*i18n*/
151
200
  4 && f !== (f = /*i18n*/
152
- u[2]("撤销") + "") && A(m, f), e & /*canRevoke*/
201
+ u[2]("撤销") + "") && A(s, f), t & /*canRevoke*/
153
202
  8 && z(i, "forbid", !/*canRevoke*/
154
- u[3]), e & /*i18n*/
203
+ u[3]), t & /*i18n*/
155
204
  4 && c !== (c = /*i18n*/
156
205
  u[2]("结束") + "") && A(r, c);
157
206
  },
@@ -160,16 +209,16 @@ function O(n) {
160
209
  }
161
210
  };
162
211
  }
163
- function ie(n) {
164
- let o, i, t, p, f, m, v, d, a, b, c, r = (
212
+ function it(n) {
213
+ let o, i, e, a, f, s, v, p, d, b, c, r = (
165
214
  /*showExit*/
166
215
  n[1] && L(n)
167
216
  ), l = (
168
217
  /*showController*/
169
218
  n[5] && O(n)
170
219
  );
171
- function _(e) {
172
- n[9](e);
220
+ function _(t) {
221
+ n[9](t);
173
222
  }
174
223
  let u = {
175
224
  options: [
@@ -198,20 +247,20 @@ function ie(n) {
198
247
  return (
199
248
  /*setSwitcherActiveIndex*/
200
249
  n[4] !== void 0 && (u.setIndex = /*setSwitcherActiveIndex*/
201
- n[4]), a = new Y({ props: u }), G.push(() => H(a, "setIndex", _)), {
250
+ n[4]), d = new Y({ props: u }), G.push(() => H(d, "setIndex", _)), {
202
251
  c() {
203
- o = h("div"), r && r.c(), i = C(), t = h("div"), p = h("div"), f = C(), m = h("div"), l && l.c(), v = C(), d = h("div"), P(a.$$.fragment), g(p, "class", "mask svelte-468fdd"), g(d, "class", "mode-switcher svelte-468fdd"), g(m, "class", "center svelte-468fdd"), g(t, "class", "bottom svelte-468fdd"), g(o, "class", "Measure-Controller svelte-468fdd");
252
+ o = h("div"), r && r.c(), i = C(), e = h("div"), a = h("div"), f = C(), s = h("div"), l && l.c(), v = C(), p = h("div"), P(d.$$.fragment), g(a, "class", "mask svelte-468fdd"), g(p, "class", "mode-switcher svelte-468fdd"), g(s, "class", "center svelte-468fdd"), g(e, "class", "bottom svelte-468fdd"), g(o, "class", "Measure-Controller svelte-468fdd");
204
253
  },
205
- m(e, k) {
206
- R(e, o, k), r && r.m(o, null), s(o, i), s(o, t), s(t, p), s(t, f), s(t, m), l && l.m(m, null), s(m, v), s(m, d), T(a, d, null), c = !0;
254
+ m(t, k) {
255
+ R(t, o, k), r && r.m(o, null), m(o, i), m(o, e), m(e, a), m(e, f), m(e, s), l && l.m(s, null), m(s, v), m(s, p), T(d, p, null), c = !0;
207
256
  },
208
- p(e, [k]) {
257
+ p(t, [k]) {
209
258
  /*showExit*/
210
- e[1] ? r ? (r.p(e, k), k & /*showExit*/
211
- 2 && w(r, 1)) : (r = L(e), r.c(), w(r, 1), r.m(o, i)) : r && (X(), I(r, 1, 1, () => {
259
+ t[1] ? r ? (r.p(t, k), k & /*showExit*/
260
+ 2 && w(r, 1)) : (r = L(t), r.c(), w(r, 1), r.m(o, i)) : r && (X(), I(r, 1, 1, () => {
212
261
  r = null;
213
262
  }), J()), /*showController*/
214
- e[5] ? l ? l.p(e, k) : (l = O(e), l.c(), l.m(m, v)) : l && (l.d(1), l = null);
263
+ t[5] ? l ? l.p(t, k) : (l = O(t), l.c(), l.m(s, v)) : l && (l.d(1), l = null);
215
264
  const M = {};
216
265
  k & /*i18n*/
217
266
  4 && (M.options = [
@@ -219,7 +268,7 @@ function ie(n) {
219
268
  key: "line",
220
269
  value: (
221
270
  /*i18n*/
222
- e[2]("测距离")
271
+ t[2]("测距离")
223
272
  ),
224
273
  icon: q
225
274
  },
@@ -227,86 +276,86 @@ function ie(n) {
227
276
  key: "area",
228
277
  value: (
229
278
  /*i18n*/
230
- e[2]("测面积")
279
+ t[2]("测面积")
231
280
  ),
232
281
  icon: D
233
282
  }
234
283
  ]), k & /*measureController*/
235
284
  1 && (M.onChange = /*func*/
236
- e[8]), !b && k & /*setSwitcherActiveIndex*/
285
+ t[8]), !b && k & /*setSwitcherActiveIndex*/
237
286
  16 && (b = !0, M.setIndex = /*setSwitcherActiveIndex*/
238
- e[4], K(() => b = !1)), a.$set(M);
287
+ t[4], K(() => b = !1)), d.$set(M);
239
288
  },
240
- i(e) {
241
- c || (w(r), w(a.$$.fragment, e), c = !0);
289
+ i(t) {
290
+ c || (w(r), w(d.$$.fragment, t), c = !0);
242
291
  },
243
- o(e) {
244
- I(r), I(a.$$.fragment, e), c = !1;
292
+ o(t) {
293
+ I(r), I(d.$$.fragment, t), c = !1;
245
294
  },
246
- d(e) {
247
- e && U(o), r && r.d(), l && l.d(), W(a);
295
+ d(t) {
296
+ t && U(o), r && r.d(), l && l.d(), W(d);
248
297
  }
249
298
  }
250
299
  );
251
300
  }
252
- function re(n, o, i) {
253
- let { measureController: t } = o, { showExit: p = !1 } = o, { i18n: f = (e) => e } = o, m = !1, v;
254
- function d(e) {
255
- e === "Edit" ? i(5, r = !0) : (v(null), i(5, r = !1));
301
+ function rt(n, o, i) {
302
+ let { measureController: e } = o, { showExit: a = !1 } = o, { i18n: f = (t) => t } = o, s = !1, v;
303
+ function p(t) {
304
+ t === "Edit" ? i(5, r = !0) : (v(null), i(5, r = !1));
256
305
  }
257
- function a() {
258
- t.controller instanceof $ && t.controller.complete(), t.save({ mode: "Watch" });
306
+ function d() {
307
+ e.controller instanceof $ && e.controller.complete(), e.save({ mode: "Watch" });
259
308
  }
260
- function b(e) {
261
- i(3, m = e.length > 0);
309
+ function b(t) {
310
+ i(3, s = t.length > 0);
262
311
  }
263
312
  function c() {
264
- i(3, m = !1);
313
+ i(3, s = !1);
265
314
  }
266
315
  N(() => {
267
- t.hook.on("modeChange", d), t.hook.on("complete", c), t.hook.on("pointsChange", b);
316
+ e.hook.on("modeChange", p), e.hook.on("complete", c), e.hook.on("pointsChange", b);
268
317
  }), Q(() => {
269
- t.hook.off("modeChange", d), t.hook.off("complete", c), t.hook.off("pointsChange", b);
318
+ e.hook.off("modeChange", p), e.hook.off("complete", c), e.hook.off("pointsChange", b);
270
319
  });
271
320
  let r = !1;
272
- const l = () => t.revoke(), _ = (e) => {
273
- t.save().changeMode("Edit"), t.changeMeasureType(e);
321
+ const l = () => e.revoke(), _ = (t) => {
322
+ e.save().changeMode("Edit"), e.changeMeasureType(t);
274
323
  };
275
- function u(e) {
276
- v = e, i(4, v);
324
+ function u(t) {
325
+ v = t, i(4, v);
277
326
  }
278
- return n.$$set = (e) => {
279
- "measureController" in e && i(0, t = e.measureController), "showExit" in e && i(1, p = e.showExit), "i18n" in e && i(2, f = e.i18n);
327
+ return n.$$set = (t) => {
328
+ "measureController" in t && i(0, e = t.measureController), "showExit" in t && i(1, a = t.showExit), "i18n" in t && i(2, f = t.i18n);
280
329
  }, [
281
- t,
282
- p,
330
+ e,
331
+ a,
283
332
  f,
284
- m,
333
+ s,
285
334
  v,
286
335
  r,
287
- a,
336
+ d,
288
337
  l,
289
338
  _,
290
339
  u
291
340
  ];
292
341
  }
293
- class Pt extends j {
342
+ class qo extends j {
294
343
  constructor(o) {
295
344
  super(), x(
296
345
  this,
297
346
  o,
298
- re,
299
- ie,
347
+ rt,
348
+ it,
300
349
  B,
301
350
  {
302
351
  measureController: 0,
303
352
  showExit: 1,
304
353
  i18n: 2
305
354
  },
306
- oe
355
+ ot
307
356
  );
308
357
  }
309
358
  }
310
359
  export {
311
- Pt as default
360
+ qo as default
312
361
  };