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