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