@realsee/dnalogel 3.45.0 → 3.46.1

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 (100) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/Sculpt/Meshes/Line.d.ts +6 -1
  3. package/dist/Sculpt/utils/removeAllTag.d.ts +2 -0
  4. package/dist/index.cjs.js +53 -53
  5. package/dist/index.js +29600 -29557
  6. package/dist/index.umd.js +49 -49
  7. package/dist/shared-utils/tag.d.ts +6 -3
  8. package/libs/AreaMakerPlugin/Controller.js +151 -78
  9. package/libs/AreaMakerPlugin/index.js +77 -4
  10. package/libs/AreaMakerPlugin/utils/Item.js +191 -111
  11. package/libs/CSS3DRenderPlugin/Controller.js +90 -29
  12. package/libs/CSS3DRenderPlugin/index.js +76 -15
  13. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +133 -58
  14. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +182 -116
  15. package/libs/CruisePlugin/BaseController.js +122 -49
  16. package/libs/CruisePlugin/Move.js +74 -21
  17. package/libs/CruisePlugin/Work.js +99 -46
  18. package/libs/CruisePlugin/index.js +80 -27
  19. package/libs/CurrentPanoImagePlugin/Controller.js +177 -104
  20. package/libs/CurrentPanoImagePlugin/index.js +77 -4
  21. package/libs/GuideLinePlugin/Controller.js +79 -26
  22. package/libs/GuideLinePlugin/GuideLineItem.js +83 -30
  23. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  24. package/libs/GuideLinePlugin/GuideLineModeItem.js +82 -29
  25. package/libs/GuideLinePlugin/index.js +80 -27
  26. package/libs/ModelMakerPlugin/Controller.js +140 -82
  27. package/libs/ModelMakerPlugin/index.js +76 -18
  28. package/libs/ModelTVVideoPlugin/Plugin.js +118 -57
  29. package/libs/ModelTVVideoPlugin/index.js +69 -8
  30. package/libs/Object3DHelperPlugin/Controller.js +67 -43
  31. package/libs/Object3DHelperPlugin/index.js +36 -13
  32. package/libs/PanoCompassPlugin/Controller.js +98 -42
  33. package/libs/PanoCompassPlugin/index.js +72 -16
  34. package/libs/PanoDoorLabelPlugin/BaseController.js +99 -26
  35. package/libs/PanoDoorLabelPlugin/Controller.js +188 -115
  36. package/libs/PanoDoorLabelPlugin/index.js +77 -4
  37. package/libs/PanoMeasurePlugin/Components/Controller0.js +141 -88
  38. package/libs/PanoMeasurePlugin/Components/Controller1.js +179 -126
  39. package/libs/PanoMeasurePlugin/Controller/EditController.js +125 -72
  40. package/libs/PanoMeasurePlugin/Controller/WatchController.js +168 -92
  41. package/libs/PanoMeasurePlugin/Controller/index.js +110 -64
  42. package/libs/PanoMeasurePlugin/Model/area.js +115 -38
  43. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +79 -0
  44. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +98 -45
  45. package/libs/PanoMeasurePlugin/index.js +77 -31
  46. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +99 -20
  47. package/libs/PanoSpatialTagPlugin/Plugin.js +211 -150
  48. package/libs/PanoSpatialTagPlugin/index.js +67 -6
  49. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +149 -68
  50. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +296 -216
  51. package/libs/PanoTagPlugin/Components/Tag/index.js +258 -187
  52. package/libs/PanoTagPlugin/Components/TagContainer.js +158 -87
  53. package/libs/PanoTagPlugin/Components/TagItem.js +145 -74
  54. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +133 -62
  55. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +110 -39
  56. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +106 -35
  57. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +114 -43
  58. package/libs/PanoTagPlugin/controller/TagRender.js +133 -80
  59. package/libs/PanoTagPlugin/controller/TagUtil.js +137 -84
  60. package/libs/PanoTagPlugin/controller/index.js +114 -61
  61. package/libs/PanoTagPlugin/index.js +90 -37
  62. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +122 -41
  63. package/libs/PanoVideoPlugin/Controller.js +138 -65
  64. package/libs/PanoVideoPlugin/VideoMeshController.js +150 -69
  65. package/libs/PanoVideoPlugin/index.js +83 -10
  66. package/libs/PipelinePlugin/Controller.js +200 -128
  67. package/libs/PipelinePlugin/index.js +77 -5
  68. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +103 -22
  69. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +96 -15
  70. package/libs/PipelinePlugin/utils/Objects/Pipe.js +137 -56
  71. package/libs/Sculpt/Meshes/Box.js +6 -5
  72. package/libs/Sculpt/Meshes/Cylinder.js +7 -6
  73. package/libs/Sculpt/Meshes/Line.d.ts +6 -1
  74. package/libs/Sculpt/Meshes/Line.js +80 -57
  75. package/libs/Sculpt/Meshes/Point.js +6 -5
  76. package/libs/Sculpt/Meshes/Polyline.js +5 -4
  77. package/libs/Sculpt/Meshes/Rectangle.js +3 -2
  78. package/libs/Sculpt/Objects/Base/index.js +20 -17
  79. package/libs/Sculpt/Objects/Line/Editor.js +11 -10
  80. package/libs/Sculpt/utils/removeAllTag.d.ts +2 -0
  81. package/libs/Sculpt/utils/removeAllTag.js +10 -0
  82. package/libs/Sculpt/utils/three/ColoredMesh.js +14 -13
  83. package/libs/base/BasePlugin.js +14 -13
  84. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +129 -59
  85. package/libs/floorplan/MapviewFloorplanPlugin/index.js +76 -6
  86. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +130 -59
  87. package/libs/floorplan/ModelFloorplanPlugin/index.js +76 -5
  88. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +159 -86
  89. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +77 -4
  90. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +152 -81
  91. package/libs/floorplan/TopviewFloorplanPlugin/index.js +76 -5
  92. package/libs/floorplan/index.js +1 -0
  93. package/libs/index.js +193 -192
  94. package/libs/shared-utils/five/index.js +3 -2
  95. package/libs/shared-utils/five/lookObject.js +3 -2
  96. package/libs/shared-utils/logger.js +1 -1
  97. package/libs/shared-utils/tag.d.ts +6 -3
  98. package/libs/shared-utils/tag.js +38 -24
  99. package/libs/shared-utils/three/index.js +1 -0
  100. 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 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";
@@ -31,41 +31,94 @@ import "../utils/dom/areaDom.js";
31
31
  import "../../shared-utils/three/geometryUtil.js";
32
32
  import "hammerjs";
33
33
  import "three/examples/jsm/renderers/CSS3DRenderer";
34
+ import "../../Sculpt/utils/Modules/Global.js";
35
+ import "../../Sculpt/utils/Modules/Cursor.js";
36
+ import "../../Object3DHelperPlugin/Controller.js";
37
+ import "../../base/BasePlugin.js";
38
+ import "../../shared-utils/Subscribe.js";
34
39
  import "../../shared-utils/three/THREESphere.js";
35
40
  import "animejs";
36
- import "../../shared-utils/isNil.js";
41
+ import "../../shared-utils/Utils/FiveUtil.js";
42
+ import "../../shared-utils/Utils/BaseUtil.js";
43
+ import "../../shared-utils/Utils/WorkUtil.js";
44
+ import "../../shared-utils/five/transformPosition.js";
45
+ import "../../shared-utils/five/getFiveModel.js";
46
+ import "../../shared-utils/url/absoluteUrl.js";
37
47
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
38
- import "../utils/isIntersecting.js";
48
+ import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
49
+ import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
50
+ import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
51
+ import "../../shared-utils/three/boundingBox.js";
52
+ import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
53
+ import "../../shared-utils/Object3DHelper/utils/direction.js";
54
+ import "../../shared-utils/Object3DHelper/Constants/color.js";
55
+ import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
56
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
57
+ import "../../shared-utils/positionToVector3.js";
58
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
59
+ import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
60
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
61
+ import "../../CSS3DRenderPlugin/utils/even.js";
62
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
63
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
64
+ import "../../shared-utils/three/getObjectVisible.js";
65
+ import "../../shared-utils/isNil.js";
66
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
67
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
68
+ import "../../shared-utils/util.js";
69
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
70
+ import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
71
+ import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
72
+ import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
73
+ import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
74
+ import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
75
+ import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
76
+ import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
77
+ import "../../shared-utils/Object3DHelper/Base/BaseController.js";
78
+ import "../../shared-utils/threex/domevents/index.js";
79
+ import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
80
+ import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
81
+ import "../../Sculpt/utils/three/rayOnLine.js";
82
+ import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
83
+ import "../../shared-utils/Object3DHelper/index.js";
84
+ import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
85
+ import "../../shared-utils/math/rad2Deg.js";
86
+ import "../../shared-utils/math/deg2Rad.js";
87
+ import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
88
+ import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
89
+ import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
90
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
91
+ import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
92
+ import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
93
+ import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
94
+ import "../../shared-utils/five/fiveModelLoad.js";
95
+ import "../../shared-utils/five/FiveDomEvents.js";
96
+ import "../../shared-utils/five/calculateThreeMouse.js";
97
+ import "../../shared-utils/three/THREERaycaster.js";
39
98
  import "../../shared-utils/three/PointSelector/index.js";
40
99
  import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
41
100
  import "../../shared-utils/three/Magnifier.js";
42
- import "../../shared-utils/Subscribe.js";
43
101
  import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
44
102
  import "../../shared-utils/three/Assets/index.js";
45
- import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
46
- import "../../CSS3DRenderPlugin/utils/even.js";
47
- import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
48
- import "../../shared-utils/three/getObjectVisible.js";
49
103
  import "../../shared-utils/three/PointSelector/utils/html.js";
50
104
  import "../../shared-utils/five/initialCSS3DRender.js";
51
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
52
- import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
53
- import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
54
105
  import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
55
106
  import "../../Sculpt/Meshes/Line.js";
56
107
  import "../../Sculpt/typings/style.js";
57
- import "../../shared-utils/positionToVector3.js";
108
+ import "../../shared-utils/tag.js";
109
+ import "../../shared-utils/five/vector3ToScreen.js";
110
+ import "../../Sculpt/utils/removeAllTag.js";
58
111
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
59
112
  import "../../shared-utils/isTouchDevice.js";
60
113
  import "../../shared-utils/five/getPosition.js";
61
114
  import "../../shared-utils/five/getRaycasterByNdcPosition.js";
62
- import "../../shared-utils/five/getFiveModel.js";
115
+ import "../utils/isIntersecting.js";
63
116
  import "../Modules/DeleteDom/index.js";
64
117
  import "../Modules/DeleteDom/_Assets/delete.svg.js";
65
118
  import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
66
119
  import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
67
120
  import "../utils/math.js";
68
- function oe(n) {
121
+ function ot(n) {
69
122
  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}');
70
123
  }
71
124
  function L(n) {
@@ -81,41 +134,41 @@ function L(n) {
81
134
  c() {
82
135
  P(o.$$.fragment);
83
136
  },
84
- m(t, f) {
85
- T(o, t, f), i = !0;
137
+ m(e, a) {
138
+ T(o, e, a), i = !0;
86
139
  },
87
- p(t, f) {
88
- const p = {};
89
- f & /*measureController*/
90
- 1 && (p.onClick = /*measureController*/
91
- t[0].disable), o.$set(p);
140
+ p(e, a) {
141
+ const f = {};
142
+ a & /*measureController*/
143
+ 1 && (f.onClick = /*measureController*/
144
+ e[0].disable), o.$set(f);
92
145
  },
93
- i(t) {
94
- i || (w(o.$$.fragment, t), i = !0);
146
+ i(e) {
147
+ i || (w(o.$$.fragment, e), i = !0);
95
148
  },
96
- o(t) {
97
- I(o.$$.fragment, t), i = !1;
149
+ o(e) {
150
+ I(o.$$.fragment, e), i = !1;
98
151
  },
99
- d(t) {
100
- W(o, t);
152
+ d(e) {
153
+ W(o, e);
101
154
  }
102
155
  };
103
156
  }
104
157
  function O(n) {
105
- let o, i, t, f, p = (
158
+ let o, i, e, a, f = (
106
159
  /*i18n*/
107
160
  n[2]("撤销") + ""
108
- ), d, v, a, m, b, c = (
161
+ ), s, v, p, d, b, c = (
109
162
  /*i18n*/
110
163
  n[2]("结束") + ""
111
164
  ), r, l, _;
112
165
  return {
113
166
  c() {
114
- o = h("div"), i = h("div"), t = h("div"), f = C(), d = y(p), v = C(), a = h("div"), m = 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*/
115
- n[3]), g(m, "class", "icon svelte-468fdd"), E(m, "background-image", `url(${te})`), g(a, "class", "button svelte-468fdd"), g(o, "class", "buttons svelte-468fdd");
167
+ 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*/
168
+ 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");
116
169
  },
117
- m(u, e) {
118
- R(u, o, e), s(o, i), s(i, t), s(i, f), s(i, d), s(o, v), s(o, a), s(a, m), s(a, b), s(a, r), l || (_ = [
170
+ m(u, t) {
171
+ 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 || (_ = [
119
172
  S(
120
173
  i,
121
174
  "click",
@@ -123,19 +176,19 @@ function O(n) {
123
176
  n[7]
124
177
  ),
125
178
  S(
126
- a,
179
+ p,
127
180
  "click",
128
181
  /*complete*/
129
182
  n[6]
130
183
  )
131
184
  ], l = !0);
132
185
  },
133
- p(u, e) {
134
- e & /*i18n*/
135
- 4 && p !== (p = /*i18n*/
136
- u[2]("撤销") + "") && A(d, p), e & /*canRevoke*/
186
+ p(u, t) {
187
+ t & /*i18n*/
188
+ 4 && f !== (f = /*i18n*/
189
+ u[2]("撤销") + "") && A(s, f), t & /*canRevoke*/
137
190
  8 && z(i, "forbid", !/*canRevoke*/
138
- u[3]), e & /*i18n*/
191
+ u[3]), t & /*i18n*/
139
192
  4 && c !== (c = /*i18n*/
140
193
  u[2]("结束") + "") && A(r, c);
141
194
  },
@@ -144,16 +197,16 @@ function O(n) {
144
197
  }
145
198
  };
146
199
  }
147
- function ie(n) {
148
- let o, i, t, f, p, d, v, a, m, b, c, r = (
200
+ function it(n) {
201
+ let o, i, e, a, f, s, v, p, d, b, c, r = (
149
202
  /*showExit*/
150
203
  n[1] && L(n)
151
204
  ), l = (
152
205
  /*showController*/
153
206
  n[5] && O(n)
154
207
  );
155
- function _(e) {
156
- n[9](e);
208
+ function _(t) {
209
+ n[9](t);
157
210
  }
158
211
  let u = {
159
212
  options: [
@@ -182,20 +235,20 @@ function ie(n) {
182
235
  return (
183
236
  /*setSwitcherActiveIndex*/
184
237
  n[4] !== void 0 && (u.setIndex = /*setSwitcherActiveIndex*/
185
- n[4]), m = new Y({ props: u }), G.push(() => H(m, "setIndex", _)), {
238
+ n[4]), d = new Y({ props: u }), G.push(() => H(d, "setIndex", _)), {
186
239
  c() {
187
- o = h("div"), r && r.c(), i = C(), t = h("div"), f = h("div"), p = C(), d = h("div"), l && l.c(), v = C(), a = h("div"), P(m.$$.fragment), g(f, "class", "mask svelte-468fdd"), g(a, "class", "mode-switcher svelte-468fdd"), g(d, "class", "center svelte-468fdd"), g(t, "class", "bottom svelte-468fdd"), g(o, "class", "Measure-Controller svelte-468fdd");
240
+ 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");
188
241
  },
189
- m(e, k) {
190
- R(e, o, k), r && r.m(o, null), s(o, i), s(o, t), s(t, f), s(t, p), s(t, d), l && l.m(d, null), s(d, v), s(d, a), T(m, a, null), c = !0;
242
+ m(t, k) {
243
+ 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;
191
244
  },
192
- p(e, [k]) {
245
+ p(t, [k]) {
193
246
  /*showExit*/
194
- e[1] ? r ? (r.p(e, k), k & /*showExit*/
195
- 2 && w(r, 1)) : (r = L(e), r.c(), w(r, 1), r.m(o, i)) : r && (X(), I(r, 1, 1, () => {
247
+ t[1] ? r ? (r.p(t, k), k & /*showExit*/
248
+ 2 && w(r, 1)) : (r = L(t), r.c(), w(r, 1), r.m(o, i)) : r && (X(), I(r, 1, 1, () => {
196
249
  r = null;
197
250
  }), J()), /*showController*/
198
- e[5] ? l ? l.p(e, k) : (l = O(e), l.c(), l.m(d, v)) : l && (l.d(1), l = null);
251
+ t[5] ? l ? l.p(t, k) : (l = O(t), l.c(), l.m(s, v)) : l && (l.d(1), l = null);
199
252
  const M = {};
200
253
  k & /*i18n*/
201
254
  4 && (M.options = [
@@ -203,7 +256,7 @@ function ie(n) {
203
256
  key: "line",
204
257
  value: (
205
258
  /*i18n*/
206
- e[2]("测距离")
259
+ t[2]("测距离")
207
260
  ),
208
261
  icon: q
209
262
  },
@@ -211,86 +264,86 @@ function ie(n) {
211
264
  key: "area",
212
265
  value: (
213
266
  /*i18n*/
214
- e[2]("测面积")
267
+ t[2]("测面积")
215
268
  ),
216
269
  icon: D
217
270
  }
218
271
  ]), k & /*measureController*/
219
272
  1 && (M.onChange = /*func*/
220
- e[8]), !b && k & /*setSwitcherActiveIndex*/
273
+ t[8]), !b && k & /*setSwitcherActiveIndex*/
221
274
  16 && (b = !0, M.setIndex = /*setSwitcherActiveIndex*/
222
- e[4], K(() => b = !1)), m.$set(M);
275
+ t[4], K(() => b = !1)), d.$set(M);
223
276
  },
224
- i(e) {
225
- c || (w(r), w(m.$$.fragment, e), c = !0);
277
+ i(t) {
278
+ c || (w(r), w(d.$$.fragment, t), c = !0);
226
279
  },
227
- o(e) {
228
- I(r), I(m.$$.fragment, e), c = !1;
280
+ o(t) {
281
+ I(r), I(d.$$.fragment, t), c = !1;
229
282
  },
230
- d(e) {
231
- e && U(o), r && r.d(), l && l.d(), W(m);
283
+ d(t) {
284
+ t && U(o), r && r.d(), l && l.d(), W(d);
232
285
  }
233
286
  }
234
287
  );
235
288
  }
236
- function re(n, o, i) {
237
- let { measureController: t } = o, { showExit: f = !1 } = o, { i18n: p = (e) => e } = o, d = !1, v;
238
- function a(e) {
239
- e === "Edit" ? i(5, r = !0) : (v(null), i(5, r = !1));
289
+ function rt(n, o, i) {
290
+ let { measureController: e } = o, { showExit: a = !1 } = o, { i18n: f = (t) => t } = o, s = !1, v;
291
+ function p(t) {
292
+ t === "Edit" ? i(5, r = !0) : (v(null), i(5, r = !1));
240
293
  }
241
- function m() {
242
- t.controller instanceof $ && t.controller.complete(), t.save({ mode: "Watch" });
294
+ function d() {
295
+ e.controller instanceof $ && e.controller.complete(), e.save({ mode: "Watch" });
243
296
  }
244
- function b(e) {
245
- i(3, d = e.length > 0);
297
+ function b(t) {
298
+ i(3, s = t.length > 0);
246
299
  }
247
300
  function c() {
248
- i(3, d = !1);
301
+ i(3, s = !1);
249
302
  }
250
303
  N(() => {
251
- t.hook.on("modeChange", a), t.hook.on("complete", c), t.hook.on("pointsChange", b);
304
+ e.hook.on("modeChange", p), e.hook.on("complete", c), e.hook.on("pointsChange", b);
252
305
  }), Q(() => {
253
- t.hook.off("modeChange", a), t.hook.off("complete", c), t.hook.off("pointsChange", b);
306
+ e.hook.off("modeChange", p), e.hook.off("complete", c), e.hook.off("pointsChange", b);
254
307
  });
255
308
  let r = !1;
256
- const l = () => t.revoke(), _ = (e) => {
257
- t.save().changeMode("Edit"), t.changeMeasureType(e);
309
+ const l = () => e.revoke(), _ = (t) => {
310
+ e.save().changeMode("Edit"), e.changeMeasureType(t);
258
311
  };
259
- function u(e) {
260
- v = e, i(4, v);
312
+ function u(t) {
313
+ v = t, i(4, v);
261
314
  }
262
- return n.$$set = (e) => {
263
- "measureController" in e && i(0, t = e.measureController), "showExit" in e && i(1, f = e.showExit), "i18n" in e && i(2, p = e.i18n);
315
+ return n.$$set = (t) => {
316
+ "measureController" in t && i(0, e = t.measureController), "showExit" in t && i(1, a = t.showExit), "i18n" in t && i(2, f = t.i18n);
264
317
  }, [
265
- t,
318
+ e,
319
+ a,
266
320
  f,
267
- p,
268
- d,
321
+ s,
269
322
  v,
270
323
  r,
271
- m,
324
+ d,
272
325
  l,
273
326
  _,
274
327
  u
275
328
  ];
276
329
  }
277
- class bt extends j {
330
+ class bo extends j {
278
331
  constructor(o) {
279
332
  super(), x(
280
333
  this,
281
334
  o,
282
- re,
283
- ie,
335
+ rt,
336
+ it,
284
337
  B,
285
338
  {
286
339
  measureController: 0,
287
340
  showExit: 1,
288
341
  i18n: 2
289
342
  },
290
- oe
343
+ ot
291
344
  );
292
345
  }
293
346
  }
294
347
  export {
295
- bt as default
348
+ bo as default
296
349
  };