@realsee/dnalogel 3.72.4-alpha.2 → 3.72.5-alpha.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 +4 -0
- package/dist/PanoTagPlugin/controller/Tag/BaseTag.d.ts +8 -0
- package/dist/PanoTagPlugin/controller/Tag/PointTag.d.ts +13 -0
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +15 -0
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -0
- package/dist/index.cjs.js +71 -71
- package/dist/index.js +6803 -6690
- package/dist/index.umd.js +67 -67
- package/libs/ItemLabelPlugin/ItemLabelItem.js +85 -85
- package/libs/PanoMeasurePlugin/Components/Tip.js +51 -51
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +262 -262
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +8 -0
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +351 -331
- package/libs/PanoTagPlugin/controller/Tag/PointTag.d.ts +13 -0
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +143 -42
- package/libs/PanoTagPlugin/tag.config.js +4 -0
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +15 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +44 -44
- package/libs/shared-utils/logger.js +1 -1
- package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +139 -151
- package/package.json +2 -2
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
1
|
+
import { SvelteComponent as O, init as B, safe_not_equal as R, append_styles as S, element as p, space as y, attr as f, null_to_empty as A, set_style as k, insert as w, append as g, listen as C, noop as I, detach as z, binding_callbacks as x, text as L, set_data as D } from "../vendor/svelte/internal/index.js";
|
|
2
2
|
import { classnames as _ } from "../vendor/classnames/index.js";
|
|
3
|
-
function
|
|
4
|
-
|
|
3
|
+
function V(l) {
|
|
4
|
+
S(l, "svelte-139cs8e", `.item-label-item.svelte-139cs8e.svelte-139cs8e{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;animation:svelte-139cs8e-fadeIn .3s ease-in}.item-label-item.fold.svelte-139cs8e>.item-label-item__text-wrap.svelte-139cs8e{visibility:hidden}.item-label-item.fold.svelte-139cs8e>.item-label-item__bar.anchor.svelte-139cs8e{visibility:hidden}.item-label-item.fold.svelte-139cs8e>.item-label-item__bar.anchor.svelte-139cs8e:after{visibility:visible}.item-label-item__text-wrap.svelte-139cs8e.svelte-139cs8e{height:-moz-fit-content;height:fit-content;padding:0.75rem 1.25rem 0.75rem 0.75rem;position:absolute;width:-moz-max-content;width:max-content;max-width:29.5625rem;min-height:5.75rem;background-image:linear-gradient(269deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.60) 49%, rgba(31, 38, 46, 0.70) 100%);border:0.09375rem solid rgba(255, 255, 255, .65);border-radius:0.1875rem;color:white;transform:translate(-50%, 0);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;overflow:hidden;pointer-events:all}.item-label-item__custom.svelte-139cs8e.svelte-139cs8e{padding:0;max-width:unset;min-height:unset;background-image:unset;border:0;border-radius:0}.icon-wrap.svelte-139cs8e.svelte-139cs8e{width:4.25rem;height:100%;display:flex;justify-content:center;align-content:center}.icon.svelte-139cs8e.svelte-139cs8e{width:4.25rem;height:4.25rem;background-repeat:no-repeat;background-size:contain;background-position:center}.item-label-text.svelte-139cs8e.svelte-139cs8e{margin-left:0.75rem;padding-left:0.75rem;min-height:4.25rem;height:auto;display:flex;flex-flow:column;justify-content:space-around;align-content:flex-start;border-left:solid rgba(255, 255, 255, .2) 0.0625rem;border-top:solid rgba(255, 255, 255, .2) 0;border-right:solid rgba(255, 255, 255, .2) 0;border-bottom:solid rgba(255, 255, 255, .2) 0;pointer-events:auto}.item-model.svelte-139cs8e.svelte-139cs8e{white-space:nowrap;font-size:1.375rem;font-weight:bold;line-height:1.875rem}.item-name.svelte-139cs8e.svelte-139cs8e{height:auto;word-break:break-word;overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto;font-size:1.25rem;line-height:1.75rem}.item-label-item__bar.svelte-139cs8e.svelte-139cs8e{position:absolute;bottom:0;width:0.1875rem;background-image:linear-gradient(to bottom, white, rgba(255, 255, 255, 0));box-shadow:0 0.125rem 0.5rem 0 rgba(0, 0, 0, 0.20);pointer-events:none}.item-label-item__bar.anchor.svelte-139cs8e.svelte-139cs8e:after{content:'';position:absolute;bottom:0;width:1.5rem;height:1.5rem;background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAMAAAANIilAAAABcVBMVEUAAAAAAAD////////+/v45OTn////////39/fp6enPz8/7+/vw8PD+/v7x8fHc3NzHx8f////////+/v77+/vr6+v////7+/v5+fn////z8/P////////q6uqgoKD+/v79/f3m5ub+/v7////////////////39/f39/f////z8/P////t7e3s7Oz29vb////5+fn////h4eH////g4ODV1dX////////BwcH///////////+Ojo5zc3MlJSX////////////////////////7+/v////////////v7+/u7u7n5+f////39/f////09PT6+vr09PT+/v76+vr////5+fnv7+/09PTk5OT////////////////Jycn///++vr7///////+0tLT///9TU1P///8SEhL////////+/v76+vr////8/Pz39/ft7e3t7e36+vr////////X19fV1dX///+xsbF9fX1iYmL///////+K8mOEAAAAenRSTlMaAIDy8CD41cWRX9uk7Kl1VVEw6dWT/M/NvKyVkY475eWIgx0Z39rHv7axnZyZmIuKhn56emZjX1FEPTU0Kx4PCAX69fTgxcKkopWL7crJuri2sa6rnIyHhX54bVtZVU9NSUcsJSIcFROno6Hcwp+ekHVxbWhnRC8nDLc9s8oAAAOGSURBVEjHpdd3X9pAGAfwkBBDAoQmBJmWvUWWiIDIHoJb66x7a4d78Op7pBQ1J5DY33987vnyXEIu3CGy/0hvnDthM+l0hj3JScSudDKOdhNPpl1i8Ut624Gi6+trI3zW1tcdqGM7/SIC5/ZRR2SNJEm7JkHt7FAJjR18WIs40P3cAFxIOaIRna6ZOHxGunk+TDR1ukjUkSr0w86bcKShiz1OI4JMP8YAD9+4emM2Gm407IfIhzm0NxrhKNsLH4SvQ+RktyvUfZIMXYcPPsSFCcvY6EYW6ZPsxuiYZaLwAW5bDY70Da5paxjvm8d+UcjAUL/GzPtCnDF/mwFWhJ75Zs68x05gxxFRGQfa+RYXokHVCC4O4yOqYLTwBjNB+ncWEZnsbzrIvOLz4CW9g4jODn0ZPO/iZN0UmhaPp0Omq+Q/nLu6NO0hErJnurjKdTBzEdAhkqILXDAdbFkJ7EnDe4EVy198srpiwhE4X1RKDFOqviBwcNPK6gmPmeWlGDz+VdHqRPEVHo0tLTM8RpcX4G+flLe6kU/Cs1pYRnm8uriQhfoC+0ZDvbMLi6ttfO5fDCDCKFrvooAKAov+c4BZvy8EzaolCHRdIZ+fBThl9G0Ih1RCrBJWbPiMKYAZ409oMSqFWAktzJ9GBuDvRoVGOIQJMSas0CiM39u45v0M9tbaeLc6F5M+7dhcbRfgg+pcU/oNa85VDwDOzBtmpP9UKsN8BuCzeb1P+kPi08+fASyr6fVPUh/PJ72+xj/bZk5PSV0YlJ4z83iC4EipS5LkiAkeHxGcQerLwMARRzyW+QklhUgKpST8nXfYg+fHkjS89MPz0MFnhKdCSWpc8RBnPAZB3RUvLt7i3oob7f5juDzuikY81tjcHlcHg9xabdyUWDvF2ay3slecr1ptimNx9lhhs1bzXQxy5NZa6VMx9pS2Wt1H77cVjFartYvBdlDICDc0cbVa3Twd2NcOyuLwVqo+K1ebjgdcr0k+O1uXwThfl8vlhqm+99kASup5GINsYhhmG8d7UXzcBgo2e21cd9WlUll5/7G958ql8uxu7y0zS5SGSkOGBA51TRiGQAi232Y9v4kVQZGavpt6c6l3tLpNsc38gGOC01IeLg4Xi8NaLz1KkqO0VzvcTrFscYo4oLjiRAsKEXeJPRqxW0bsFWLGLVbiocyZSm5vbW0nU9BsIfyp/AGqAvfOkBaFawAAAABJRU5ErkJggg==');background-position:center;background-size:contain;transform:translate(-0.65625rem, 50%)}@keyframes svelte-139cs8e-fadeIn{from{opacity:0
|
|
5
5
|
}to{opacity:1
|
|
6
6
|
}}`);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
let e, t, n,
|
|
8
|
+
function E(l) {
|
|
9
|
+
let e, t, n, a = (
|
|
10
10
|
/*itemLabel*/
|
|
11
11
|
(l[0].code || /*itemLabel*/
|
|
12
12
|
l[0].id) + ""
|
|
13
|
-
),
|
|
13
|
+
), b, s, m, r = (
|
|
14
14
|
/*itemLabel*/
|
|
15
15
|
l[0].name + ""
|
|
16
|
-
),
|
|
16
|
+
), h, o = (
|
|
17
17
|
/*itemLabel*/
|
|
18
|
-
l[0].icon &&
|
|
18
|
+
l[0].icon && P(l)
|
|
19
19
|
);
|
|
20
20
|
return {
|
|
21
21
|
c() {
|
|
22
|
-
|
|
22
|
+
o && o.c(), e = y(), t = p("div"), n = p("span"), b = L(a), s = y(), m = p("span"), h = L(r), f(n, "class", "item-model svelte-139cs8e"), f(m, "class", "item-name svelte-139cs8e"), f(t, "class", "item-label-text svelte-139cs8e");
|
|
23
23
|
},
|
|
24
|
-
m(i,
|
|
25
|
-
|
|
24
|
+
m(i, v) {
|
|
25
|
+
o && o.m(i, v), w(i, e, v), w(i, t, v), g(t, n), g(n, b), g(t, s), g(t, m), g(m, h);
|
|
26
26
|
},
|
|
27
|
-
p(i,
|
|
27
|
+
p(i, v) {
|
|
28
28
|
/*itemLabel*/
|
|
29
|
-
i[0].icon ?
|
|
30
|
-
1 &&
|
|
29
|
+
i[0].icon ? o ? o.p(i, v) : (o = P(i), o.c(), o.m(e.parentNode, e)) : o && (o.d(1), o = null), v & /*itemLabel*/
|
|
30
|
+
1 && a !== (a = /*itemLabel*/
|
|
31
31
|
(i[0].code || /*itemLabel*/
|
|
32
|
-
i[0].id) + "") &&
|
|
32
|
+
i[0].id) + "") && D(b, a), v & /*itemLabel*/
|
|
33
33
|
1 && r !== (r = /*itemLabel*/
|
|
34
|
-
i[0].name + "") &&
|
|
34
|
+
i[0].name + "") && D(h, r);
|
|
35
35
|
},
|
|
36
36
|
d(i) {
|
|
37
|
-
|
|
37
|
+
o && o.d(i), i && z(e), i && z(t);
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function G(l) {
|
|
42
42
|
let e;
|
|
43
43
|
return {
|
|
44
44
|
c() {
|
|
45
45
|
e = p("div");
|
|
46
46
|
},
|
|
47
47
|
m(t, n) {
|
|
48
|
-
|
|
48
|
+
w(t, e, n), l[6](e);
|
|
49
49
|
},
|
|
50
50
|
p: I,
|
|
51
51
|
d(t) {
|
|
52
|
-
t &&
|
|
52
|
+
t && z(e), l[6](null);
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
let e, t, n,
|
|
56
|
+
function P(l) {
|
|
57
|
+
let e, t, n, a, b;
|
|
58
58
|
return {
|
|
59
59
|
c() {
|
|
60
|
-
e = p("div"), t = p("div"),
|
|
61
|
-
l[0].icon})`),
|
|
60
|
+
e = p("div"), t = p("div"), f(t, "class", "icon svelte-139cs8e"), f(t, "style", n = `background-image: url(${/*itemLabel*/
|
|
61
|
+
l[0].icon})`), f(e, "class", "icon-wrap svelte-139cs8e");
|
|
62
62
|
},
|
|
63
|
-
m(
|
|
64
|
-
|
|
63
|
+
m(s, m) {
|
|
64
|
+
w(s, e, m), g(e, t), a || (b = C(
|
|
65
65
|
e,
|
|
66
66
|
"click",
|
|
67
67
|
/*click_handler*/
|
|
68
68
|
l[7]
|
|
69
|
-
),
|
|
69
|
+
), a = !0);
|
|
70
70
|
},
|
|
71
|
-
p(
|
|
72
|
-
|
|
71
|
+
p(s, m) {
|
|
72
|
+
m & /*itemLabel*/
|
|
73
73
|
1 && n !== (n = `background-image: url(${/*itemLabel*/
|
|
74
|
-
|
|
74
|
+
s[0].icon})`) && f(t, "style", n);
|
|
75
75
|
},
|
|
76
|
-
d(
|
|
77
|
-
|
|
76
|
+
d(s) {
|
|
77
|
+
s && z(e), a = !1, b();
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
let e, t, n,
|
|
83
|
-
function i(
|
|
84
|
-
return
|
|
81
|
+
function U(l) {
|
|
82
|
+
let e, t, n, a, b, s, m, r, h, o;
|
|
83
|
+
function i(c, d) {
|
|
84
|
+
return d & /*itemLabel*/
|
|
85
85
|
1 && (n = null), n == null && (n = typeof /*itemLabel*/
|
|
86
|
-
|
|
86
|
+
c[0].render == "function"), n ? G : E;
|
|
87
87
|
}
|
|
88
|
-
let
|
|
88
|
+
let v = i(l, -1), u = v(l);
|
|
89
89
|
return {
|
|
90
90
|
c() {
|
|
91
|
-
e = p("div"), t = p("div"),
|
|
91
|
+
e = p("div"), t = p("div"), u.c(), b = y(), s = p("div"), f(t, "class", a = A(_("item-label-item__text-wrap", {
|
|
92
92
|
"item-label-item__custom": typeof /*itemLabel*/
|
|
93
93
|
l[0].render == "function"
|
|
94
|
-
})) + " svelte-
|
|
95
|
-
l[0].strokeLength}px`),
|
|
94
|
+
})) + " svelte-139cs8e"), k(t, "bottom", `${/*itemLabel*/
|
|
95
|
+
l[0].strokeLength}px`), f(s, "class", m = A(_("item-label-item__bar", { anchor: (
|
|
96
96
|
/*anchorEnabled*/
|
|
97
97
|
l[1]
|
|
98
|
-
) })) + " svelte-
|
|
99
|
-
l[0].strokeLength}px`),
|
|
98
|
+
) })) + " svelte-139cs8e"), k(s, "height", `${/*itemLabel*/
|
|
99
|
+
l[0].strokeLength}px`), f(e, "class", r = A(_("item-label-item", { fold: (
|
|
100
100
|
/*itemLabel*/
|
|
101
101
|
l[0].isFold
|
|
102
|
-
) })) + " svelte-
|
|
102
|
+
) })) + " svelte-139cs8e"), k(
|
|
103
103
|
e,
|
|
104
104
|
"z-index",
|
|
105
105
|
/*itemLabel*/
|
|
@@ -111,66 +111,66 @@ function G(l) {
|
|
|
111
111
|
l[0].transform
|
|
112
112
|
);
|
|
113
113
|
},
|
|
114
|
-
m(
|
|
115
|
-
|
|
114
|
+
m(c, d) {
|
|
115
|
+
w(c, e, d), g(e, t), u.m(t, null), g(e, b), g(e, s), h || (o = C(
|
|
116
116
|
t,
|
|
117
117
|
"click",
|
|
118
118
|
/*onClick*/
|
|
119
119
|
l[4]
|
|
120
|
-
),
|
|
120
|
+
), h = !0);
|
|
121
121
|
},
|
|
122
|
-
p(
|
|
123
|
-
|
|
124
|
-
1 &&
|
|
122
|
+
p(c, [d]) {
|
|
123
|
+
v === (v = i(c, d)) && u ? u.p(c, d) : (u.d(1), u = v(c), u && (u.c(), u.m(t, null))), d & /*itemLabel*/
|
|
124
|
+
1 && a !== (a = A(_("item-label-item__text-wrap", {
|
|
125
125
|
"item-label-item__custom": typeof /*itemLabel*/
|
|
126
|
-
|
|
127
|
-
})) + " svelte-
|
|
126
|
+
c[0].render == "function"
|
|
127
|
+
})) + " svelte-139cs8e") && f(t, "class", a), d & /*itemLabel*/
|
|
128
128
|
1 && k(t, "bottom", `${/*itemLabel*/
|
|
129
|
-
|
|
130
|
-
2 &&
|
|
129
|
+
c[0].strokeLength}px`), d & /*anchorEnabled*/
|
|
130
|
+
2 && m !== (m = A(_("item-label-item__bar", { anchor: (
|
|
131
131
|
/*anchorEnabled*/
|
|
132
|
-
|
|
133
|
-
) })) + " svelte-
|
|
134
|
-
1 && k(
|
|
135
|
-
|
|
132
|
+
c[1]
|
|
133
|
+
) })) + " svelte-139cs8e") && f(s, "class", m), d & /*itemLabel*/
|
|
134
|
+
1 && k(s, "height", `${/*itemLabel*/
|
|
135
|
+
c[0].strokeLength}px`), d & /*itemLabel*/
|
|
136
136
|
1 && r !== (r = A(_("item-label-item", { fold: (
|
|
137
137
|
/*itemLabel*/
|
|
138
|
-
|
|
139
|
-
) })) + " svelte-
|
|
138
|
+
c[0].isFold
|
|
139
|
+
) })) + " svelte-139cs8e") && f(e, "class", r), d & /*itemLabel*/
|
|
140
140
|
1 && k(
|
|
141
141
|
e,
|
|
142
142
|
"z-index",
|
|
143
143
|
/*itemLabel*/
|
|
144
|
-
|
|
145
|
-
),
|
|
144
|
+
c[0].zIndex
|
|
145
|
+
), d & /*itemLabel*/
|
|
146
146
|
1 && k(
|
|
147
147
|
e,
|
|
148
148
|
"transform",
|
|
149
149
|
/*itemLabel*/
|
|
150
|
-
|
|
150
|
+
c[0].transform
|
|
151
151
|
);
|
|
152
152
|
},
|
|
153
153
|
i: I,
|
|
154
154
|
o: I,
|
|
155
|
-
d(
|
|
156
|
-
|
|
155
|
+
d(c) {
|
|
156
|
+
c && z(e), u.d(), h = !1, o();
|
|
157
157
|
}
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
let { itemLabel: n } = e, { hooks:
|
|
162
|
-
function
|
|
163
|
-
|
|
160
|
+
function W(l, e, t) {
|
|
161
|
+
let { itemLabel: n } = e, { hooks: a } = e, { anchorEnabled: b } = e, { onIconClick: s } = e;
|
|
162
|
+
function m() {
|
|
163
|
+
a.emit("onLabelClick", n);
|
|
164
164
|
}
|
|
165
165
|
let r;
|
|
166
|
-
function
|
|
167
|
-
|
|
166
|
+
function h(i) {
|
|
167
|
+
x[i ? "unshift" : "push"](() => {
|
|
168
168
|
r = i, t(3, r);
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
|
-
const
|
|
171
|
+
const o = (i) => s(n);
|
|
172
172
|
return l.$$set = (i) => {
|
|
173
|
-
"itemLabel" in i && t(0, n = i.itemLabel), "hooks" in i && t(5,
|
|
173
|
+
"itemLabel" in i && t(0, n = i.itemLabel), "hooks" in i && t(5, a = i.hooks), "anchorEnabled" in i && t(1, b = i.anchorEnabled), "onIconClick" in i && t(2, s = i.onIconClick);
|
|
174
174
|
}, l.$$.update = () => {
|
|
175
175
|
if (l.$$.dirty & /*itemLabel, customElement*/
|
|
176
176
|
9 && typeof n.render == "function" && r && r.children.length === 0) {
|
|
@@ -179,33 +179,33 @@ function U(l, e, t) {
|
|
|
179
179
|
}
|
|
180
180
|
}, [
|
|
181
181
|
n,
|
|
182
|
-
|
|
183
|
-
o,
|
|
184
|
-
r,
|
|
185
|
-
f,
|
|
182
|
+
b,
|
|
186
183
|
s,
|
|
187
|
-
|
|
188
|
-
|
|
184
|
+
r,
|
|
185
|
+
m,
|
|
186
|
+
a,
|
|
187
|
+
h,
|
|
188
|
+
o
|
|
189
189
|
];
|
|
190
190
|
}
|
|
191
|
-
class
|
|
191
|
+
class Z extends O {
|
|
192
192
|
constructor(e) {
|
|
193
|
-
super(),
|
|
193
|
+
super(), B(
|
|
194
194
|
this,
|
|
195
195
|
e,
|
|
196
|
+
W,
|
|
196
197
|
U,
|
|
197
|
-
|
|
198
|
-
B,
|
|
198
|
+
R,
|
|
199
199
|
{
|
|
200
200
|
itemLabel: 0,
|
|
201
201
|
hooks: 5,
|
|
202
202
|
anchorEnabled: 1,
|
|
203
203
|
onIconClick: 2
|
|
204
204
|
},
|
|
205
|
-
|
|
205
|
+
V
|
|
206
206
|
);
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
export {
|
|
210
|
-
|
|
210
|
+
Z as default
|
|
211
211
|
};
|
|
@@ -1,117 +1,117 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
2
|
-
import { fade as
|
|
1
|
+
import { SvelteComponent as q, init as N, safe_not_equal as O, append_styles as P, empty as W, insert as w, transition_in as p, transition_out as k, check_outros as j, detach as M, onMount as A, onDestroy as B, element as y, text as F, attr as z, append as C, set_data as G, add_render_callback as H, create_bidirectional_transition as x, group_outros as I, binding_callbacks as J } from "../../vendor/svelte/internal/index.js";
|
|
2
|
+
import { fade as T } from "../../vendor/svelte/transition/index.js";
|
|
3
3
|
import "../../vendor/svelte/easing/index.js";
|
|
4
|
-
function K(
|
|
5
|
-
P(
|
|
4
|
+
function K(l) {
|
|
5
|
+
P(l, "svelte-1fzxlsz", ".Measure-Tips.svelte-1fzxlsz.svelte-1fzxlsz{box-sizing:border-box;position:absolute;pointer-events:none;top:0;width:100%;padding:0 2.5rem}.Measure-Tips.svelte-1fzxlsz .text.svelte-1fzxlsz{text-align:center;position:relative;max-width:100%;top:3.125rem;color:#fff;word-break:break-word;overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto;text-shadow:0 0.0625rem 0.375rem rgba(0, 0, 0, 0.5);font-size:1.25rem;font-weight:bold}");
|
|
6
6
|
}
|
|
7
|
-
function
|
|
8
|
-
let
|
|
7
|
+
function v(l) {
|
|
8
|
+
let o, i, e, n, r;
|
|
9
9
|
return {
|
|
10
10
|
c() {
|
|
11
|
-
|
|
11
|
+
o = y("div"), i = y("div"), e = F(
|
|
12
12
|
/*tip*/
|
|
13
|
-
|
|
14
|
-
),
|
|
13
|
+
l[2]
|
|
14
|
+
), z(i, "class", "text svelte-1fzxlsz"), z(o, "class", "Measure-Tips svelte-1fzxlsz");
|
|
15
15
|
},
|
|
16
|
-
m(
|
|
17
|
-
|
|
16
|
+
m(s, f) {
|
|
17
|
+
w(s, o, f), C(o, i), C(i, e), l[7](i), r = !0;
|
|
18
18
|
},
|
|
19
|
-
p(
|
|
19
|
+
p(s, f) {
|
|
20
20
|
(!r || f & /*tip*/
|
|
21
21
|
4) && G(
|
|
22
22
|
e,
|
|
23
23
|
/*tip*/
|
|
24
|
-
|
|
24
|
+
s[2]
|
|
25
25
|
);
|
|
26
26
|
},
|
|
27
|
-
i(
|
|
27
|
+
i(s) {
|
|
28
28
|
r || (H(() => {
|
|
29
|
-
r && (n || (n =
|
|
29
|
+
r && (n || (n = x(o, T, {}, !0)), n.run(1));
|
|
30
30
|
}), r = !0);
|
|
31
31
|
},
|
|
32
|
-
o(
|
|
33
|
-
n || (n =
|
|
32
|
+
o(s) {
|
|
33
|
+
n || (n = x(o, T, {}, !1)), n.run(0), r = !1;
|
|
34
34
|
},
|
|
35
|
-
d(
|
|
36
|
-
|
|
35
|
+
d(s) {
|
|
36
|
+
s && M(o), l[7](null), s && n && n.end();
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
function L(
|
|
41
|
-
let
|
|
40
|
+
function L(l) {
|
|
41
|
+
let o, i, e = (
|
|
42
42
|
/*visible*/
|
|
43
|
-
|
|
43
|
+
l[0] && v(l)
|
|
44
44
|
);
|
|
45
45
|
return {
|
|
46
46
|
c() {
|
|
47
|
-
e && e.c(),
|
|
47
|
+
e && e.c(), o = W();
|
|
48
48
|
},
|
|
49
49
|
m(n, r) {
|
|
50
|
-
e && e.m(n, r),
|
|
50
|
+
e && e.m(n, r), w(n, o, r), i = !0;
|
|
51
51
|
},
|
|
52
52
|
p(n, [r]) {
|
|
53
53
|
/*visible*/
|
|
54
54
|
n[0] ? e ? (e.p(n, r), r & /*visible*/
|
|
55
|
-
1 &&
|
|
55
|
+
1 && p(e, 1)) : (e = v(n), e.c(), p(e, 1), e.m(o.parentNode, o)) : e && (I(), k(e, 1, 1, () => {
|
|
56
56
|
e = null;
|
|
57
57
|
}), j());
|
|
58
58
|
},
|
|
59
59
|
i(n) {
|
|
60
|
-
|
|
60
|
+
i || (p(e), i = !0);
|
|
61
61
|
},
|
|
62
62
|
o(n) {
|
|
63
|
-
k(e),
|
|
63
|
+
k(e), i = !1;
|
|
64
64
|
},
|
|
65
65
|
d(n) {
|
|
66
|
-
e && e.d(n), n &&
|
|
66
|
+
e && e.d(n), n && M(o);
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
function Q(
|
|
71
|
-
let { measureController: e } =
|
|
70
|
+
function Q(l, o, i) {
|
|
71
|
+
let { measureController: e } = o, { i18n: n = (t) => t } = o, { tips: r } = o, { tipStyle: s = {} } = o, { visible: f = !0 } = o, a = null;
|
|
72
72
|
const S = (t) => {
|
|
73
|
-
const
|
|
73
|
+
const E = e.currentMeasureType;
|
|
74
74
|
let d = "";
|
|
75
|
-
return d = r[t], d === void 0 && (d = r[
|
|
75
|
+
return d = r[t], d === void 0 && (d = r[E][t]), d;
|
|
76
76
|
}, c = (t) => {
|
|
77
|
-
|
|
77
|
+
i(2, h = n(S(t)));
|
|
78
78
|
}, u = () => {
|
|
79
|
-
|
|
79
|
+
i(2, h = "");
|
|
80
80
|
};
|
|
81
|
-
let
|
|
81
|
+
let h = "";
|
|
82
82
|
const m = (t) => {
|
|
83
83
|
t === "Edit" && e.changeMeasureType ? c("start") : u();
|
|
84
|
-
},
|
|
84
|
+
}, b = () => {
|
|
85
85
|
e.getCurrentMode() === "Watch" && u();
|
|
86
86
|
}, _ = () => {
|
|
87
87
|
e.getCurrentMode() === "Edit" && c("start");
|
|
88
|
-
},
|
|
88
|
+
}, g = (t) => {
|
|
89
89
|
e.currentMeasureType === "area" && (t.length >= 2 ? c("close") : t.length === 0 ? c("start") : u());
|
|
90
90
|
};
|
|
91
91
|
A(() => {
|
|
92
|
-
m(e.getCurrentMode()), e.hook.on("modeChange", m), e.hook.on("complete",
|
|
92
|
+
m(e.getCurrentMode()), e.hook.on("modeChange", m), e.hook.on("complete", b), e.hook.on("pointsChange", g), e.hook.on("measureTypeChange", _);
|
|
93
93
|
}), B(() => {
|
|
94
|
-
e.hook.off("modeChange", m), e.hook.off("complete",
|
|
94
|
+
e.hook.off("modeChange", m), e.hook.off("complete", b), e.hook.off("pointsChange", g), e.hook.off("measureTypeChange", _), u();
|
|
95
95
|
});
|
|
96
|
-
function
|
|
96
|
+
function D(t) {
|
|
97
97
|
J[t ? "unshift" : "push"](() => {
|
|
98
|
-
a = t,
|
|
98
|
+
a = t, i(1, a), i(6, s);
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
|
-
return
|
|
102
|
-
"measureController" in t &&
|
|
103
|
-
},
|
|
104
|
-
if (
|
|
101
|
+
return l.$$set = (t) => {
|
|
102
|
+
"measureController" in t && i(3, e = t.measureController), "i18n" in t && i(4, n = t.i18n), "tips" in t && i(5, r = t.tips), "tipStyle" in t && i(6, s = t.tipStyle), "visible" in t && i(0, f = t.visible);
|
|
103
|
+
}, l.$$.update = () => {
|
|
104
|
+
if (l.$$.dirty & /*textDom, tipStyle*/
|
|
105
105
|
66 && a)
|
|
106
|
-
for (const t in
|
|
107
|
-
|
|
108
|
-
}, [f, a,
|
|
106
|
+
for (const t in s)
|
|
107
|
+
s.hasOwnProperty(t) && i(1, a.style[t] = s[t], a);
|
|
108
|
+
}, [f, a, h, e, n, r, s, D];
|
|
109
109
|
}
|
|
110
|
-
class X extends
|
|
111
|
-
constructor(
|
|
110
|
+
class X extends q {
|
|
111
|
+
constructor(o) {
|
|
112
112
|
super(), N(
|
|
113
113
|
this,
|
|
114
|
-
|
|
114
|
+
o,
|
|
115
115
|
Q,
|
|
116
116
|
L,
|
|
117
117
|
O,
|