@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.
- package/CHANGELOG.md +6 -0
- package/dist/Sculpt/Meshes/Line.d.ts +6 -1
- package/dist/Sculpt/utils/removeAllTag.d.ts +2 -0
- package/dist/index.cjs.js +53 -53
- package/dist/index.js +29600 -29557
- package/dist/index.umd.js +49 -49
- package/dist/shared-utils/tag.d.ts +6 -3
- package/libs/AreaMakerPlugin/Controller.js +151 -78
- package/libs/AreaMakerPlugin/index.js +77 -4
- package/libs/AreaMakerPlugin/utils/Item.js +191 -111
- package/libs/CSS3DRenderPlugin/Controller.js +90 -29
- package/libs/CSS3DRenderPlugin/index.js +76 -15
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +133 -58
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +182 -116
- package/libs/CruisePlugin/BaseController.js +122 -49
- package/libs/CruisePlugin/Move.js +74 -21
- package/libs/CruisePlugin/Work.js +99 -46
- package/libs/CruisePlugin/index.js +80 -27
- package/libs/CurrentPanoImagePlugin/Controller.js +177 -104
- package/libs/CurrentPanoImagePlugin/index.js +77 -4
- package/libs/GuideLinePlugin/Controller.js +79 -26
- package/libs/GuideLinePlugin/GuideLineItem.js +83 -30
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +82 -29
- package/libs/GuideLinePlugin/index.js +80 -27
- package/libs/ModelMakerPlugin/Controller.js +140 -82
- package/libs/ModelMakerPlugin/index.js +76 -18
- package/libs/ModelTVVideoPlugin/Plugin.js +118 -57
- package/libs/ModelTVVideoPlugin/index.js +69 -8
- package/libs/Object3DHelperPlugin/Controller.js +67 -43
- package/libs/Object3DHelperPlugin/index.js +36 -13
- package/libs/PanoCompassPlugin/Controller.js +98 -42
- package/libs/PanoCompassPlugin/index.js +72 -16
- package/libs/PanoDoorLabelPlugin/BaseController.js +99 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +188 -115
- package/libs/PanoDoorLabelPlugin/index.js +77 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +141 -88
- package/libs/PanoMeasurePlugin/Components/Controller1.js +179 -126
- package/libs/PanoMeasurePlugin/Controller/EditController.js +125 -72
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +168 -92
- package/libs/PanoMeasurePlugin/Controller/index.js +110 -64
- package/libs/PanoMeasurePlugin/Model/area.js +115 -38
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +79 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +98 -45
- package/libs/PanoMeasurePlugin/index.js +77 -31
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +99 -20
- package/libs/PanoSpatialTagPlugin/Plugin.js +211 -150
- package/libs/PanoSpatialTagPlugin/index.js +67 -6
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +149 -68
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +296 -216
- package/libs/PanoTagPlugin/Components/Tag/index.js +258 -187
- package/libs/PanoTagPlugin/Components/TagContainer.js +158 -87
- package/libs/PanoTagPlugin/Components/TagItem.js +145 -74
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +133 -62
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +110 -39
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +106 -35
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +114 -43
- package/libs/PanoTagPlugin/controller/TagRender.js +133 -80
- package/libs/PanoTagPlugin/controller/TagUtil.js +137 -84
- package/libs/PanoTagPlugin/controller/index.js +114 -61
- package/libs/PanoTagPlugin/index.js +90 -37
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +122 -41
- package/libs/PanoVideoPlugin/Controller.js +138 -65
- package/libs/PanoVideoPlugin/VideoMeshController.js +150 -69
- package/libs/PanoVideoPlugin/index.js +83 -10
- package/libs/PipelinePlugin/Controller.js +200 -128
- package/libs/PipelinePlugin/index.js +77 -5
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +103 -22
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +96 -15
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +137 -56
- package/libs/Sculpt/Meshes/Box.js +6 -5
- package/libs/Sculpt/Meshes/Cylinder.js +7 -6
- package/libs/Sculpt/Meshes/Line.d.ts +6 -1
- package/libs/Sculpt/Meshes/Line.js +80 -57
- package/libs/Sculpt/Meshes/Point.js +6 -5
- package/libs/Sculpt/Meshes/Polyline.js +5 -4
- package/libs/Sculpt/Meshes/Rectangle.js +3 -2
- package/libs/Sculpt/Objects/Base/index.js +20 -17
- package/libs/Sculpt/Objects/Line/Editor.js +11 -10
- package/libs/Sculpt/utils/removeAllTag.d.ts +2 -0
- package/libs/Sculpt/utils/removeAllTag.js +10 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +14 -13
- package/libs/base/BasePlugin.js +14 -13
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +129 -59
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +76 -6
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +130 -59
- package/libs/floorplan/ModelFloorplanPlugin/index.js +76 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +159 -86
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +77 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +152 -81
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +76 -5
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +193 -192
- package/libs/shared-utils/five/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +6 -3
- package/libs/shared-utils/tag.js +38 -24
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { SvelteComponent as ee, init as te, safe_not_equal as oe, append_styles as re, element as j, space as T, create_component as q, attr as w, toggle_class as D, insert as I, append as g, mount_component as O, transition_in as k, transition_out as _, check_outros as R, detach as K, destroy_component as U, onMount as
|
|
1
|
+
import { SvelteComponent as ee, init as te, safe_not_equal as oe, append_styles as re, element as j, space as T, create_component as q, attr as w, toggle_class as D, insert as I, append as g, mount_component as O, transition_in as k, transition_out as _, check_outros as R, detach as K, destroy_component as U, onMount as ie, onDestroy as le, add_render_callback as F, create_bidirectional_transition as E, text as V, set_style as W, listen as X, set_data as Y, group_outros as B } from "../../vendor/svelte/internal/index.js";
|
|
2
2
|
import ne from "./Common/Switcher1.js";
|
|
3
|
-
import
|
|
3
|
+
import me from "./Common/CircleButton.js";
|
|
4
4
|
import H from "../Controller/EditController.js";
|
|
5
|
-
import
|
|
5
|
+
import pe from "./Common/Exit.js";
|
|
6
6
|
import { fade as S } from "../../vendor/svelte/transition/index.js";
|
|
7
|
-
import { IconUndo as
|
|
7
|
+
import { IconUndo as se, IconOk as ae } from "./Common/icons/index.js";
|
|
8
8
|
import "../Modules/UIController/mobileHTML.js";
|
|
9
9
|
import "../../vendor/svelte/easing/index.js";
|
|
10
10
|
import "../Model/line.js";
|
|
@@ -35,35 +35,88 @@ import "../utils/dom/areaDom.js";
|
|
|
35
35
|
import "../../shared-utils/three/geometryUtil.js";
|
|
36
36
|
import "hammerjs";
|
|
37
37
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
38
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
39
|
+
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
40
|
+
import "../../Object3DHelperPlugin/Controller.js";
|
|
41
|
+
import "../../base/BasePlugin.js";
|
|
42
|
+
import "../../shared-utils/Subscribe.js";
|
|
38
43
|
import "../../shared-utils/three/THREESphere.js";
|
|
39
44
|
import "animejs";
|
|
40
|
-
import "../../shared-utils/
|
|
45
|
+
import "../../shared-utils/Utils/FiveUtil.js";
|
|
46
|
+
import "../../shared-utils/Utils/BaseUtil.js";
|
|
47
|
+
import "../../shared-utils/Utils/WorkUtil.js";
|
|
48
|
+
import "../../shared-utils/five/transformPosition.js";
|
|
49
|
+
import "../../shared-utils/five/getFiveModel.js";
|
|
50
|
+
import "../../shared-utils/url/absoluteUrl.js";
|
|
41
51
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
42
|
-
import "
|
|
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 "../../shared-utils/positionToVector3.js";
|
|
62
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
63
|
+
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
64
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
65
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
66
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
67
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
68
|
+
import "../../shared-utils/three/getObjectVisible.js";
|
|
69
|
+
import "../../shared-utils/isNil.js";
|
|
70
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
71
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
72
|
+
import "../../shared-utils/util.js";
|
|
73
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
74
|
+
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
75
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
76
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
77
|
+
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
78
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
79
|
+
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
80
|
+
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
81
|
+
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
82
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
83
|
+
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
84
|
+
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
85
|
+
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
86
|
+
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
87
|
+
import "../../shared-utils/Object3DHelper/index.js";
|
|
88
|
+
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
89
|
+
import "../../shared-utils/math/rad2Deg.js";
|
|
90
|
+
import "../../shared-utils/math/deg2Rad.js";
|
|
91
|
+
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
92
|
+
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
93
|
+
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
94
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
95
|
+
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
96
|
+
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
97
|
+
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
98
|
+
import "../../shared-utils/five/fiveModelLoad.js";
|
|
99
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
100
|
+
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
101
|
+
import "../../shared-utils/three/THREERaycaster.js";
|
|
43
102
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
44
103
|
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
45
104
|
import "../../shared-utils/three/Magnifier.js";
|
|
46
|
-
import "../../shared-utils/Subscribe.js";
|
|
47
105
|
import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
48
106
|
import "../../shared-utils/three/Assets/index.js";
|
|
49
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
50
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
51
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
52
|
-
import "../../shared-utils/three/getObjectVisible.js";
|
|
53
107
|
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
54
108
|
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
55
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
56
|
-
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
57
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
58
109
|
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
59
110
|
import "../../Sculpt/Meshes/Line.js";
|
|
60
111
|
import "../../Sculpt/typings/style.js";
|
|
61
|
-
import "../../shared-utils/
|
|
112
|
+
import "../../shared-utils/tag.js";
|
|
113
|
+
import "../../shared-utils/five/vector3ToScreen.js";
|
|
114
|
+
import "../../Sculpt/utils/removeAllTag.js";
|
|
62
115
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
63
116
|
import "../../shared-utils/isTouchDevice.js";
|
|
64
117
|
import "../../shared-utils/five/getPosition.js";
|
|
65
118
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
66
|
-
import "
|
|
119
|
+
import "../utils/isIntersecting.js";
|
|
67
120
|
import "../Modules/DeleteDom/index.js";
|
|
68
121
|
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
69
122
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -73,8 +126,8 @@ function fe(o) {
|
|
|
73
126
|
re(o, "svelte-ldjbp8", "*.forbid.svelte-ldjbp8.svelte-ldjbp8{pointer-events:none !important;opacity:0.5}.Measure-Controller.svelte-ldjbp8.svelte-ldjbp8{pointer-events:none;position:relative;width:100%;height:100%;z-index:2;color:white}.Measure-Controller.svelte-ldjbp8 .mode-switcher.svelte-ldjbp8{margin-top:2.25rem}.Measure-Controller.svelte-ldjbp8 .bottom.svelte-ldjbp8{position:absolute;width:100%;bottom:0}.Measure-Controller.svelte-ldjbp8 .bottom .mask.svelte-ldjbp8{position:absolute;bottom:0;width:100%;height:12.5rem;background-size:100%;z-index:-1;background-image:linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5))}.Measure-Controller.svelte-ldjbp8 .bottom .center.svelte-ldjbp8{display:flex;flex-direction:column;align-items:center;margin-bottom:2.5rem}.Measure-Controller.svelte-ldjbp8 .controller.svelte-ldjbp8{pointer-events:all;display:flex;align-items:center}.Measure-Controller.svelte-ldjbp8 .controller .button.svelte-ldjbp8{cursor:pointer;display:flex;align-items:center;height:2.5rem;padding-left:1rem;padding-right:1rem;border-radius:624.9375rem;font-size:0.875rem;color:#fff;background-color:rgba(0, 0, 0, 0.2)}.Measure-Controller.svelte-ldjbp8 .controller .button .icon.svelte-ldjbp8{width:1.5rem;height:1.5rem;background-repeat:no-repeat;background-size:100%;margin:0 0.25rem}.Measure-Controller.svelte-ldjbp8 .controller .main-button.svelte-ldjbp8{margin-left:1.75rem;margin-right:1.75rem;font-size:0.875rem;font-weight:bold}");
|
|
74
127
|
}
|
|
75
128
|
function J(o) {
|
|
76
|
-
let t,
|
|
77
|
-
return t = new
|
|
129
|
+
let t, i;
|
|
130
|
+
return t = new pe({
|
|
78
131
|
props: {
|
|
79
132
|
onClick: (
|
|
80
133
|
/*measureController*/
|
|
@@ -85,20 +138,20 @@ function J(o) {
|
|
|
85
138
|
c() {
|
|
86
139
|
q(t.$$.fragment);
|
|
87
140
|
},
|
|
88
|
-
m(e,
|
|
89
|
-
O(t, e,
|
|
141
|
+
m(e, p) {
|
|
142
|
+
O(t, e, p), i = !0;
|
|
90
143
|
},
|
|
91
|
-
p(e,
|
|
92
|
-
const
|
|
93
|
-
|
|
94
|
-
1 && (
|
|
95
|
-
e[0].disable), t.$set(
|
|
144
|
+
p(e, p) {
|
|
145
|
+
const l = {};
|
|
146
|
+
p & /*measureController*/
|
|
147
|
+
1 && (l.onClick = /*measureController*/
|
|
148
|
+
e[0].disable), t.$set(l);
|
|
96
149
|
},
|
|
97
150
|
i(e) {
|
|
98
|
-
|
|
151
|
+
i || (k(t.$$.fragment, e), i = !0);
|
|
99
152
|
},
|
|
100
153
|
o(e) {
|
|
101
|
-
_(t.$$.fragment, e),
|
|
154
|
+
_(t.$$.fragment, e), i = !1;
|
|
102
155
|
},
|
|
103
156
|
d(e) {
|
|
104
157
|
U(t, e);
|
|
@@ -106,8 +159,8 @@ function J(o) {
|
|
|
106
159
|
};
|
|
107
160
|
}
|
|
108
161
|
function L(o) {
|
|
109
|
-
let t,
|
|
110
|
-
return
|
|
162
|
+
let t, i, e, p;
|
|
163
|
+
return i = new ne({
|
|
111
164
|
props: {
|
|
112
165
|
options: [
|
|
113
166
|
{
|
|
@@ -136,16 +189,16 @@ function L(o) {
|
|
|
136
189
|
}
|
|
137
190
|
}), {
|
|
138
191
|
c() {
|
|
139
|
-
t = j("div"), q(
|
|
192
|
+
t = j("div"), q(i.$$.fragment), w(t, "class", "mode-switcher svelte-ldjbp8");
|
|
140
193
|
},
|
|
141
|
-
m(
|
|
142
|
-
I(
|
|
194
|
+
m(l, n) {
|
|
195
|
+
I(l, t, n), O(i, t, null), p = !0;
|
|
143
196
|
},
|
|
144
|
-
p(
|
|
145
|
-
o =
|
|
146
|
-
const
|
|
197
|
+
p(l, n) {
|
|
198
|
+
o = l;
|
|
199
|
+
const s = {};
|
|
147
200
|
n & /*i18n*/
|
|
148
|
-
4 && (
|
|
201
|
+
4 && (s.options = [
|
|
149
202
|
{
|
|
150
203
|
key: "line",
|
|
151
204
|
value: (
|
|
@@ -161,32 +214,32 @@ function L(o) {
|
|
|
161
214
|
)
|
|
162
215
|
}
|
|
163
216
|
]), n & /*measureController*/
|
|
164
|
-
1 && (
|
|
217
|
+
1 && (s.defaultKey = /*measureController*/
|
|
165
218
|
o[0].currentMeasureType), n & /*measureController*/
|
|
166
|
-
1 && (
|
|
167
|
-
o[0].changeMeasureType),
|
|
219
|
+
1 && (s.onChange = /*measureController*/
|
|
220
|
+
o[0].changeMeasureType), i.$set(s);
|
|
168
221
|
},
|
|
169
|
-
i(
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}),
|
|
222
|
+
i(l) {
|
|
223
|
+
p || (k(i.$$.fragment, l), l && F(() => {
|
|
224
|
+
p && (e || (e = E(t, S, { duration: P }, !0)), e.run(1));
|
|
225
|
+
}), p = !0);
|
|
173
226
|
},
|
|
174
|
-
o(
|
|
175
|
-
_(
|
|
227
|
+
o(l) {
|
|
228
|
+
_(i.$$.fragment, l), l && (e || (e = E(t, S, { duration: P }, !1)), e.run(0)), p = !1;
|
|
176
229
|
},
|
|
177
|
-
d(
|
|
178
|
-
|
|
230
|
+
d(l) {
|
|
231
|
+
l && K(t), U(i), l && e && e.end();
|
|
179
232
|
}
|
|
180
233
|
};
|
|
181
234
|
}
|
|
182
235
|
function N(o) {
|
|
183
|
-
let t,
|
|
236
|
+
let t, i, e, p = (
|
|
184
237
|
/*i18n*/
|
|
185
238
|
o[2]("撤销") + ""
|
|
186
|
-
),
|
|
239
|
+
), l, n, s, f, C;
|
|
187
240
|
return {
|
|
188
241
|
c() {
|
|
189
|
-
t = j("div"),
|
|
242
|
+
t = j("div"), i = j("div"), e = T(), l = V(p), w(i, "class", "icon svelte-ldjbp8"), W(i, "background-image", `url(${se})`), w(t, "class", "button svelte-ldjbp8"), D(
|
|
190
243
|
t,
|
|
191
244
|
"forbid",
|
|
192
245
|
/*buttonState*/
|
|
@@ -194,7 +247,7 @@ function N(o) {
|
|
|
194
247
|
);
|
|
195
248
|
},
|
|
196
249
|
m(r, c) {
|
|
197
|
-
I(r, t, c), g(t,
|
|
250
|
+
I(r, t, c), g(t, i), g(t, e), g(t, l), s = !0, f || (C = X(
|
|
198
251
|
t,
|
|
199
252
|
"click",
|
|
200
253
|
/*click_handler*/
|
|
@@ -202,9 +255,9 @@ function N(o) {
|
|
|
202
255
|
), f = !0);
|
|
203
256
|
},
|
|
204
257
|
p(r, c) {
|
|
205
|
-
o = r, (!
|
|
206
|
-
4) &&
|
|
207
|
-
o[2]("撤销") + "") && Y(
|
|
258
|
+
o = r, (!s || c & /*i18n*/
|
|
259
|
+
4) && p !== (p = /*i18n*/
|
|
260
|
+
o[2]("撤销") + "") && Y(l, p), (!s || c & /*buttonState*/
|
|
208
261
|
8) && D(
|
|
209
262
|
t,
|
|
210
263
|
"forbid",
|
|
@@ -213,12 +266,12 @@ function N(o) {
|
|
|
213
266
|
);
|
|
214
267
|
},
|
|
215
268
|
i(r) {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}),
|
|
269
|
+
s || (r && F(() => {
|
|
270
|
+
s && (n || (n = E(t, S, { duration: P }, !0)), n.run(1));
|
|
271
|
+
}), s = !0);
|
|
219
272
|
},
|
|
220
273
|
o(r) {
|
|
221
|
-
r && (n || (n = E(t, S, { duration: P }, !1)), n.run(0)),
|
|
274
|
+
r && (n || (n = E(t, S, { duration: P }, !1)), n.run(0)), s = !1;
|
|
222
275
|
},
|
|
223
276
|
d(r) {
|
|
224
277
|
r && K(t), r && n && n.end(), f = !1, C();
|
|
@@ -226,16 +279,16 @@ function N(o) {
|
|
|
226
279
|
};
|
|
227
280
|
}
|
|
228
281
|
function Q(o) {
|
|
229
|
-
let t,
|
|
282
|
+
let t, i, e, p = (
|
|
230
283
|
/*i18n*/
|
|
231
284
|
o[2]("结束") + ""
|
|
232
|
-
),
|
|
285
|
+
), l, n, s, f, C;
|
|
233
286
|
return {
|
|
234
287
|
c() {
|
|
235
|
-
t = j("div"),
|
|
288
|
+
t = j("div"), i = j("div"), e = T(), l = V(p), w(i, "class", "icon svelte-ldjbp8"), W(i, "background-image", `url(${ae})`), w(t, "class", "button svelte-ldjbp8");
|
|
236
289
|
},
|
|
237
290
|
m(r, c) {
|
|
238
|
-
I(r, t, c), g(t,
|
|
291
|
+
I(r, t, c), g(t, i), g(t, e), g(t, l), s = !0, f || (C = X(
|
|
239
292
|
t,
|
|
240
293
|
"click",
|
|
241
294
|
/*complete*/
|
|
@@ -243,17 +296,17 @@ function Q(o) {
|
|
|
243
296
|
), f = !0);
|
|
244
297
|
},
|
|
245
298
|
p(r, c) {
|
|
246
|
-
o = r, (!
|
|
247
|
-
4) &&
|
|
248
|
-
o[2]("结束") + "") && Y(
|
|
299
|
+
o = r, (!s || c & /*i18n*/
|
|
300
|
+
4) && p !== (p = /*i18n*/
|
|
301
|
+
o[2]("结束") + "") && Y(l, p);
|
|
249
302
|
},
|
|
250
303
|
i(r) {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
}),
|
|
304
|
+
s || (r && F(() => {
|
|
305
|
+
s && (n || (n = E(t, S, { duration: P }, !0)), n.run(1));
|
|
306
|
+
}), s = !0);
|
|
254
307
|
},
|
|
255
308
|
o(r) {
|
|
256
|
-
r && (n || (n = E(t, S, { duration: P }, !1)), n.run(0)),
|
|
309
|
+
r && (n || (n = E(t, S, { duration: P }, !1)), n.run(0)), s = !1;
|
|
257
310
|
},
|
|
258
311
|
d(r) {
|
|
259
312
|
r && K(t), r && n && n.end(), f = !1, C();
|
|
@@ -261,10 +314,10 @@ function Q(o) {
|
|
|
261
314
|
};
|
|
262
315
|
}
|
|
263
316
|
function ue(o) {
|
|
264
|
-
let t,
|
|
317
|
+
let t, i, e, p, l, n, s, f, C, r, c, z, M, b = (
|
|
265
318
|
/*showExit*/
|
|
266
319
|
o[1] && J(o)
|
|
267
|
-
),
|
|
320
|
+
), a = (
|
|
268
321
|
/*measureController*/
|
|
269
322
|
o[0].allowMeasureType.length >= 2 && /*buttonState*/
|
|
270
323
|
o[3] === "start" && L(o)
|
|
@@ -272,7 +325,7 @@ function ue(o) {
|
|
|
272
325
|
/*showButton*/
|
|
273
326
|
o[4] && N(o)
|
|
274
327
|
);
|
|
275
|
-
c = new
|
|
328
|
+
c = new me({
|
|
276
329
|
props: {
|
|
277
330
|
onClick: (
|
|
278
331
|
/*func*/
|
|
@@ -300,68 +353,68 @@ function ue(o) {
|
|
|
300
353
|
);
|
|
301
354
|
return {
|
|
302
355
|
c() {
|
|
303
|
-
t = j("div"), b && b.c(),
|
|
356
|
+
t = j("div"), b && b.c(), i = T(), e = j("div"), p = j("div"), l = T(), n = j("div"), a && a.c(), s = T(), f = j("div"), u && u.c(), C = T(), r = j("div"), q(c.$$.fragment), z = T(), d && d.c(), w(p, "class", "mask svelte-ldjbp8"), w(r, "class", "main-button svelte-ldjbp8"), D(r, "forbid", !/*allowAddPoint*/
|
|
304
357
|
o[5]), w(f, "class", "controller svelte-ldjbp8"), w(n, "class", "center svelte-ldjbp8"), w(e, "class", "bottom svelte-ldjbp8"), w(t, "class", "Measure-Controller svelte-ldjbp8");
|
|
305
358
|
},
|
|
306
|
-
m(
|
|
307
|
-
I(
|
|
359
|
+
m(m, v) {
|
|
360
|
+
I(m, t, v), b && b.m(t, null), g(t, i), g(t, e), g(e, p), g(e, l), g(e, n), a && a.m(n, null), g(n, s), g(n, f), u && u.m(f, null), g(f, C), g(f, r), O(c, r, null), g(f, z), d && d.m(f, null), M = !0;
|
|
308
361
|
},
|
|
309
|
-
p(
|
|
362
|
+
p(m, [v]) {
|
|
310
363
|
/*showExit*/
|
|
311
|
-
|
|
312
|
-
2 && k(b, 1)) : (b = J(
|
|
364
|
+
m[1] ? b ? (b.p(m, v), v & /*showExit*/
|
|
365
|
+
2 && k(b, 1)) : (b = J(m), b.c(), k(b, 1), b.m(t, i)) : b && (B(), _(b, 1, 1, () => {
|
|
313
366
|
b = null;
|
|
314
367
|
}), R()), /*measureController*/
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
9 && k(
|
|
318
|
-
|
|
368
|
+
m[0].allowMeasureType.length >= 2 && /*buttonState*/
|
|
369
|
+
m[3] === "start" ? a ? (a.p(m, v), v & /*measureController, buttonState*/
|
|
370
|
+
9 && k(a, 1)) : (a = L(m), a.c(), k(a, 1), a.m(n, s)) : a && (B(), _(a, 1, 1, () => {
|
|
371
|
+
a = null;
|
|
319
372
|
}), R()), /*showButton*/
|
|
320
|
-
|
|
321
|
-
16 && k(u, 1)) : (u = N(
|
|
373
|
+
m[4] ? u ? (u.p(m, v), v & /*showButton*/
|
|
374
|
+
16 && k(u, 1)) : (u = N(m), u.c(), k(u, 1), u.m(f, C)) : u && (B(), _(u, 1, 1, () => {
|
|
322
375
|
u = null;
|
|
323
376
|
}), R());
|
|
324
377
|
const y = {};
|
|
325
378
|
v & /*buttonState*/
|
|
326
379
|
8 && (y.onClick = /*func*/
|
|
327
|
-
|
|
380
|
+
m[14]), v & /*buttonState*/
|
|
328
381
|
8 && (y.text = /*buttonTextMap*/
|
|
329
|
-
|
|
382
|
+
m[6][
|
|
330
383
|
/*buttonState*/
|
|
331
|
-
|
|
384
|
+
m[3]
|
|
332
385
|
]), v & /*buttonState*/
|
|
333
386
|
8 && (y.color = /*buttonColorMap*/
|
|
334
|
-
|
|
387
|
+
m[7][
|
|
335
388
|
/*buttonState*/
|
|
336
|
-
|
|
389
|
+
m[3]
|
|
337
390
|
]), c.$set(y), (!M || v & /*allowAddPoint*/
|
|
338
391
|
32) && D(r, "forbid", !/*allowAddPoint*/
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
16 && k(d, 1)) : (d = Q(
|
|
392
|
+
m[5]), /*showButton*/
|
|
393
|
+
m[4] ? d ? (d.p(m, v), v & /*showButton*/
|
|
394
|
+
16 && k(d, 1)) : (d = Q(m), d.c(), k(d, 1), d.m(f, null)) : d && (B(), _(d, 1, 1, () => {
|
|
342
395
|
d = null;
|
|
343
396
|
}), R());
|
|
344
397
|
},
|
|
345
|
-
i(
|
|
346
|
-
M || (k(b), k(
|
|
398
|
+
i(m) {
|
|
399
|
+
M || (k(b), k(a), k(u), k(c.$$.fragment, m), k(d), M = !0);
|
|
347
400
|
},
|
|
348
|
-
o(
|
|
349
|
-
_(b), _(
|
|
401
|
+
o(m) {
|
|
402
|
+
_(b), _(a), _(u), _(c.$$.fragment, m), _(d), M = !1;
|
|
350
403
|
},
|
|
351
|
-
d(
|
|
352
|
-
|
|
404
|
+
d(m) {
|
|
405
|
+
m && K(t), b && b.d(), a && a.d(), u && u.d(), U(c), d && d.d();
|
|
353
406
|
}
|
|
354
407
|
};
|
|
355
408
|
}
|
|
356
409
|
const P = 100;
|
|
357
|
-
function de(o, t,
|
|
358
|
-
let { measureController: e } = t, { showExit:
|
|
410
|
+
function de(o, t, i) {
|
|
411
|
+
let { measureController: e } = t, { showExit: p = !1 } = t, { i18n: l = (h) => h } = t;
|
|
359
412
|
const n = {
|
|
360
|
-
start:
|
|
361
|
-
add:
|
|
362
|
-
end:
|
|
363
|
-
complete:
|
|
364
|
-
},
|
|
413
|
+
start: l("开始"),
|
|
414
|
+
add: l("添加"),
|
|
415
|
+
end: l("结束"),
|
|
416
|
+
complete: l("完成")
|
|
417
|
+
}, s = {
|
|
365
418
|
start: "white",
|
|
366
419
|
add: "white",
|
|
367
420
|
end: "blue",
|
|
@@ -369,52 +422,52 @@ function de(o, t, l) {
|
|
|
369
422
|
};
|
|
370
423
|
let f = !1, C = !0, r = "start", c = e.currentMeasureType;
|
|
371
424
|
const z = () => {
|
|
372
|
-
e.getCurrentMode() !== "Edit" ? e.changeMode("Edit") : (
|
|
425
|
+
e.getCurrentMode() !== "Edit" ? e.changeMode("Edit") : (a("add"), M());
|
|
373
426
|
}, M = () => {
|
|
374
427
|
e.controller instanceof H && e.controller.selectPoint();
|
|
375
428
|
}, b = () => {
|
|
376
429
|
e.controller instanceof H && e.controller.complete();
|
|
377
|
-
},
|
|
378
|
-
|
|
430
|
+
}, a = (h) => {
|
|
431
|
+
i(3, r = h);
|
|
379
432
|
}, u = () => {
|
|
380
433
|
M(), A("allow");
|
|
381
434
|
}, d = () => {
|
|
382
|
-
|
|
383
|
-
},
|
|
384
|
-
e.currentMeasureType === "area" && r === "complete" &&
|
|
435
|
+
a("complete");
|
|
436
|
+
}, m = () => {
|
|
437
|
+
e.currentMeasureType === "area" && r === "complete" && a("add");
|
|
385
438
|
}, v = (h) => {
|
|
386
439
|
h.length;
|
|
387
440
|
}, y = () => {
|
|
388
|
-
|
|
441
|
+
a("start"), A("allow");
|
|
389
442
|
}, A = (h) => {
|
|
390
|
-
|
|
443
|
+
i(5, C = h === "allow");
|
|
391
444
|
}, G = (h) => {
|
|
392
|
-
|
|
445
|
+
i(12, c = h);
|
|
393
446
|
}, Z = (h) => {
|
|
394
|
-
h.isEmpty &&
|
|
447
|
+
h.isEmpty && a("start");
|
|
395
448
|
};
|
|
396
|
-
|
|
397
|
-
e.hook.on("revoke", Z), e.hook.on("measureTypeChange", G), e.hook.on("modeChange", y), e.hook.on("pointsChange", v), e.hook.on("allowAddPointStateChange", A), e.hook.on("readyComplete", d), e.hook.on("notReadyComplete",
|
|
398
|
-
}),
|
|
399
|
-
e.hook.off("measureTypeChange", G), e.hook.off("modeChange", y), e.hook.off("allowAddPointStateChange", A), e.hook.off("readyComplete", d), e.hook.off("pointsChange", v), e.hook.off("notReadyComplete",
|
|
449
|
+
ie(() => {
|
|
450
|
+
e.hook.on("revoke", Z), e.hook.on("measureTypeChange", G), e.hook.on("modeChange", y), e.hook.on("pointsChange", v), e.hook.on("allowAddPointStateChange", A), e.hook.on("readyComplete", d), e.hook.on("notReadyComplete", m), e.hook.on("complete", y);
|
|
451
|
+
}), le(() => {
|
|
452
|
+
e.hook.off("measureTypeChange", G), e.hook.off("modeChange", y), e.hook.off("allowAddPointStateChange", A), e.hook.off("readyComplete", d), e.hook.off("pointsChange", v), e.hook.off("notReadyComplete", m), e.hook.off("complete", y);
|
|
400
453
|
});
|
|
401
454
|
const $ = () => e.revoke(), x = () => {
|
|
402
455
|
r === "start" ? z() : r === "add" ? M() : (r === "end" || r === "complete") && u();
|
|
403
456
|
};
|
|
404
457
|
return o.$$set = (h) => {
|
|
405
|
-
"measureController" in h &&
|
|
458
|
+
"measureController" in h && i(0, e = h.measureController), "showExit" in h && i(1, p = h.showExit), "i18n" in h && i(2, l = h.i18n);
|
|
406
459
|
}, o.$$.update = () => {
|
|
407
460
|
o.$$.dirty & /*currentMeasureType, buttonState*/
|
|
408
|
-
4104 &&
|
|
461
|
+
4104 && i(4, f = c === "area" && r !== "start");
|
|
409
462
|
}, [
|
|
410
463
|
e,
|
|
411
|
-
|
|
412
|
-
|
|
464
|
+
p,
|
|
465
|
+
l,
|
|
413
466
|
r,
|
|
414
467
|
f,
|
|
415
468
|
C,
|
|
416
469
|
n,
|
|
417
|
-
|
|
470
|
+
s,
|
|
418
471
|
z,
|
|
419
472
|
M,
|
|
420
473
|
b,
|
|
@@ -424,7 +477,7 @@ function de(o, t, l) {
|
|
|
424
477
|
x
|
|
425
478
|
];
|
|
426
479
|
}
|
|
427
|
-
class
|
|
480
|
+
class Ao extends ee {
|
|
428
481
|
constructor(t) {
|
|
429
482
|
super(), te(
|
|
430
483
|
this,
|
|
@@ -442,5 +495,5 @@ class At extends ee {
|
|
|
442
495
|
}
|
|
443
496
|
}
|
|
444
497
|
export {
|
|
445
|
-
|
|
498
|
+
Ao as default
|
|
446
499
|
};
|