@realsee/dnalogel 3.74.5-alpha.0 → 3.74.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/dist/index.cjs.js +4 -4
- package/dist/index.js +10 -7
- package/dist/index.umd.js +17 -17
- package/libs/PanoDoorLabelPlugin/Controller.js +66 -63
- package/libs/base/BasePlugin.js +1 -1
- package/libs/components/AreaLabel/LabelItem.js +88 -88
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
var N = Object.defineProperty, Q = Object.defineProperties;
|
|
2
2
|
var j = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var O = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
4
|
+
var F = Object.prototype.hasOwnProperty, R = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var L = (a, l, t) => l in a ? N(a, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[l] = t, E = (a, l) => {
|
|
6
6
|
for (var t in l || (l = {}))
|
|
7
|
-
|
|
7
|
+
F.call(l, t) && L(a, t, l[t]);
|
|
8
8
|
if (O)
|
|
9
9
|
for (var t of O(l))
|
|
10
|
-
|
|
10
|
+
R.call(l, t) && L(a, t, l[t]);
|
|
11
11
|
return a;
|
|
12
12
|
}, U = (a, l) => Q(a, j(l));
|
|
13
13
|
var B = (a, l) => {
|
|
14
14
|
var t = {};
|
|
15
15
|
for (var i in a)
|
|
16
|
-
|
|
16
|
+
F.call(a, i) && l.indexOf(i) < 0 && (t[i] = a[i]);
|
|
17
17
|
if (a != null && O)
|
|
18
18
|
for (var i of O(a))
|
|
19
|
-
l.indexOf(i) < 0 &&
|
|
19
|
+
l.indexOf(i) < 0 && R.call(a, i) && (t[i] = a[i]);
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
22
22
|
var p = (a, l, t) => (L(a, typeof l != "symbol" ? l + "" : l, t), t);
|
|
@@ -111,22 +111,25 @@ class wi extends Y {
|
|
|
111
111
|
p(this, "doorLabels");
|
|
112
112
|
p(this, "roomObservers");
|
|
113
113
|
p(this, "loadData", (t, i) => {
|
|
114
|
-
i && (this.MaxVisibledistance = i.MaxVisibledistance, this.MinVisibledistance = i.MinVisibledistance, this.OffsetHeight = i.OffsetHeight), this.labelItems
|
|
114
|
+
i && (this.MaxVisibledistance = i.MaxVisibledistance, this.MinVisibledistance = i.MinVisibledistance, this.OffsetHeight = i.OffsetHeight), this.labelItems.forEach((r) => {
|
|
115
|
+
var e;
|
|
116
|
+
return (e = r.svelteApp) == null ? void 0 : e.$destroy();
|
|
117
|
+
}), this.labelItems = [], this.doorLabels = [], this.floorplanServerData = t, et(this.five).then(() => {
|
|
115
118
|
this.initData(), this.fixDoorVisibleAndPosition(), this.applyState();
|
|
116
119
|
});
|
|
117
120
|
});
|
|
118
121
|
p(this, "dispose", () => {
|
|
119
|
-
var t, i, r,
|
|
120
|
-
(t = this.five) == null || t.off("wantsToMoveToPano", this.hideAllLabels), (i = this.five) == null || i.off("modelLoaded", this.fixDoorVisibleAndPosition), (r = this.five) == null || r.off("panoArrived", this.fixDoorVisibleAndPosition), (
|
|
122
|
+
var t, i, r, e, n, s, o;
|
|
123
|
+
(t = this.five) == null || t.off("wantsToMoveToPano", this.hideAllLabels), (i = this.five) == null || i.off("modelLoaded", this.fixDoorVisibleAndPosition), (r = this.five) == null || r.off("panoArrived", this.fixDoorVisibleAndPosition), (e = this.five) == null || e.off("initAnimationEnded", this.fixDoorPosition), (n = this.five) == null || n.off("cameraUpdate", this.fixDoorPosition), (s = this.five) == null || s.off("mouseWheel", this.fixDoorPosition), (o = this.five) == null || o.off("pinchGesture", this.fixDoorPosition), this.applyState({ enabled: !1 });
|
|
121
124
|
});
|
|
122
125
|
p(this, "initRoomObservers", () => {
|
|
123
|
-
var
|
|
124
|
-
const t = this.floorplanServerData.computed_data.floor_datas || [], r = (((n = (
|
|
125
|
-
const
|
|
126
|
+
var e, n;
|
|
127
|
+
const t = this.floorplanServerData.computed_data.floor_datas || [], r = (((n = (e = this.five) == null ? void 0 : e.work) == null ? void 0 : n.observers) || []).map((s) => {
|
|
128
|
+
const o = s.panoIndex, v = s.floorIndex, c = t == null ? void 0 : t.find((h) => h.floor_index === v);
|
|
126
129
|
if (c) {
|
|
127
|
-
const h = c.rooms.find((m) => m.observer_indexs.includes(
|
|
130
|
+
const h = c.rooms.find((m) => m.observer_indexs.includes(o));
|
|
128
131
|
if (h)
|
|
129
|
-
return { panoIndex:
|
|
132
|
+
return { panoIndex: o, floorIndex: v, name: h.name };
|
|
130
133
|
}
|
|
131
134
|
}).filter(Boolean);
|
|
132
135
|
this.roomObservers = r;
|
|
@@ -141,30 +144,30 @@ class wi extends Y {
|
|
|
141
144
|
const { panoIndex: t } = this.five;
|
|
142
145
|
if (!this.state.visible || this.five.model.empty || t === null || !this.roomObservers.find((s) => s.panoIndex === t))
|
|
143
146
|
return;
|
|
144
|
-
const i = this.roomObservers.find((s) => s.panoIndex === t),
|
|
147
|
+
const i = this.roomObservers.find((s) => s.panoIndex === t), e = this.five.work.observers.find((s) => s.panoIndex === t).position.clone(), n = (() => {
|
|
145
148
|
if (this.visibleLabelMap.has(t))
|
|
146
149
|
return this.visibleLabelMap.get(t);
|
|
147
150
|
{
|
|
148
151
|
const s = [];
|
|
149
|
-
return this.doorLabels.forEach((
|
|
150
|
-
if (
|
|
152
|
+
return this.doorLabels.forEach((o, v) => {
|
|
153
|
+
if (o.roomName === i.name)
|
|
151
154
|
return;
|
|
152
|
-
const c =
|
|
155
|
+
const c = o.position.clone(), h = c.distanceTo(e);
|
|
153
156
|
if (h < this.MinVisibledistance || h > this.MaxVisibledistance)
|
|
154
157
|
return;
|
|
155
|
-
const m = new q(), d = c.clone().sub(
|
|
156
|
-
m.set(
|
|
158
|
+
const m = new q(), d = c.clone().sub(e).normalize();
|
|
159
|
+
m.set(e, d);
|
|
157
160
|
const [b] = this.five.model.intersectRaycaster(m);
|
|
158
161
|
b && b.distance + 0.1 < h || s.push(v);
|
|
159
162
|
}), this.visibleLabelMap.set(t, s), s;
|
|
160
163
|
}
|
|
161
164
|
})();
|
|
162
|
-
this.labelItems.forEach((s,
|
|
163
|
-
s.visible = n.includes(
|
|
165
|
+
this.labelItems.forEach((s, o) => {
|
|
166
|
+
s.visible = n.includes(o);
|
|
164
167
|
}), this.fixDoorPosition();
|
|
165
168
|
});
|
|
166
169
|
p(this, "fixDoorPosition", () => {
|
|
167
|
-
var v, c, h, m, d, b, x, _, k, H, W,
|
|
170
|
+
var v, c, h, m, d, b, x, _, k, H, W, $;
|
|
168
171
|
if (!this.state.enabled || !this.state.visible)
|
|
169
172
|
return;
|
|
170
173
|
const { panoIndex: t, camera: i } = this.five;
|
|
@@ -172,35 +175,35 @@ class wi extends Y {
|
|
|
172
175
|
return;
|
|
173
176
|
if (this.five.currentMode !== "Panorama")
|
|
174
177
|
return this.hideAllLabels();
|
|
175
|
-
const r = this.five.getElement(),
|
|
178
|
+
const r = this.five.getElement(), e = r.clientWidth, n = r.clientHeight, s = i.getWorldDirection(new A()), o = [];
|
|
176
179
|
if (this.labelItems.forEach((f, u) => {
|
|
177
180
|
var I;
|
|
178
181
|
if (f.visible) {
|
|
179
|
-
const g = i.position.distanceTo(f.position),
|
|
180
|
-
f.left = P, f.top = T, f.inSight =
|
|
182
|
+
const g = i.position.distanceTo(f.position), M = f.position.clone().add(new A(0, this.OffsetHeight, 0)), w = M.clone().sub(i.position).normalize().angleTo(s), V = M.clone().project(i), P = (V.x + 1) / 2.2 * 100, T = (-V.y + 1) / 2.2 * 100, z = P >= 0 && P <= 100 && T >= 0 && T <= 100 && g > this.MinVisibledistance && g <= this.MaxVisibledistance;
|
|
183
|
+
f.left = P, f.top = T, f.inSight = z && w < Math.PI / 2, f.cameraToward = J(this.five), z ? o.push({ disFromCameraToLabel: g, left: P, top: T, index: u }) : f.transform = "translate(-50%, -50%)";
|
|
181
184
|
} else
|
|
182
185
|
f.inSight = !1;
|
|
183
|
-
const
|
|
186
|
+
const y = f, { svelteApp: D } = y, C = B(y, ["svelteApp"]);
|
|
184
187
|
(I = f.svelteApp) == null || I.$set({ props: C });
|
|
185
|
-
}),
|
|
188
|
+
}), o.length > 1) {
|
|
186
189
|
let f = 0;
|
|
187
|
-
|
|
188
|
-
for (let u = 1; u <
|
|
189
|
-
const { index: D, left: C, top:
|
|
190
|
-
if (!
|
|
190
|
+
o.sort((u, D) => D.disFromCameraToLabel - u.disFromCameraToLabel);
|
|
191
|
+
for (let u = 1; u < o.length; u++) {
|
|
192
|
+
const { index: D, left: C, top: y } = o[u - 1], { index: I, left: g, top: M } = o[u], S = this.container.children[D], w = this.container.children[I];
|
|
193
|
+
if (!S || !w)
|
|
191
194
|
return;
|
|
192
|
-
const
|
|
193
|
-
left:
|
|
194
|
-
top: n *
|
|
195
|
-
width: (h = (c = (v =
|
|
196
|
-
height: (b = (d = (m =
|
|
195
|
+
const V = {
|
|
196
|
+
left: e * C / 100,
|
|
197
|
+
top: n * y / 100,
|
|
198
|
+
width: (h = (c = (v = S.children) == null ? void 0 : v[0]) == null ? void 0 : c.clientWidth) != null ? h : 0,
|
|
199
|
+
height: (b = (d = (m = S.children) == null ? void 0 : m[0]) == null ? void 0 : d.clientHeight) != null ? b : 0
|
|
197
200
|
}, P = {
|
|
198
|
-
left:
|
|
199
|
-
top: n *
|
|
201
|
+
left: e * g / 100,
|
|
202
|
+
top: n * M / 100,
|
|
200
203
|
width: (k = (_ = (x = w.children) == null ? void 0 : x[0]) == null ? void 0 : _.clientWidth) != null ? k : 0,
|
|
201
|
-
height: (
|
|
204
|
+
height: ($ = (W = (H = w.children) == null ? void 0 : H[0]) == null ? void 0 : W.clientHeight) != null ? $ : 0
|
|
202
205
|
};
|
|
203
|
-
K(
|
|
206
|
+
K(V, P) && (f++, this.labelItems[D].transform = `translate(-50%, ${(f - 1) * 100 - 50}%)`, this.labelItems[I].transform = `translate(-50%, ${f * 100 - 50}%)`);
|
|
204
207
|
}
|
|
205
208
|
}
|
|
206
209
|
});
|
|
@@ -208,45 +211,45 @@ class wi extends Y {
|
|
|
208
211
|
if (!this.roomObservers)
|
|
209
212
|
return;
|
|
210
213
|
const { work: r } = this.five;
|
|
211
|
-
let
|
|
212
|
-
for (const
|
|
213
|
-
if (this.roomObservers.find((c) => c.panoIndex ===
|
|
214
|
-
const c =
|
|
215
|
-
h < s && (
|
|
214
|
+
let e, n, s = 1 / 0;
|
|
215
|
+
for (const o of r.observers)
|
|
216
|
+
if (this.roomObservers.find((c) => c.panoIndex === o.panoIndex && c.name === t)) {
|
|
217
|
+
const c = o.standingPosition, h = i.distanceTo(c);
|
|
218
|
+
h < s && (e = o.panoIndex, n = c.clone().sub(i).normalize(), s = h);
|
|
216
219
|
}
|
|
217
|
-
if (n !== void 0 &&
|
|
218
|
-
const
|
|
220
|
+
if (n !== void 0 && e !== void 0) {
|
|
221
|
+
const o = {};
|
|
219
222
|
if (s > 0) {
|
|
220
223
|
const c = new A(0, 0, -1), h = n.clone(), m = new X();
|
|
221
224
|
m.setFromUnitVectors(c, h);
|
|
222
225
|
const d = new G();
|
|
223
|
-
d.setFromQuaternion(m, "YXZ"),
|
|
226
|
+
d.setFromQuaternion(m, "YXZ"), o.longitude = d.y;
|
|
224
227
|
}
|
|
225
|
-
this.five.emit("wantsToMoveToPano",
|
|
228
|
+
this.five.emit("wantsToMoveToPano", e, {}, !0) || this.five.moveToPano(e, { longitude: o.longitude });
|
|
226
229
|
}
|
|
227
230
|
});
|
|
228
231
|
p(this, "initData", () => {
|
|
229
|
-
var
|
|
232
|
+
var e;
|
|
230
233
|
this.doorLabels = [], this.labelItems.forEach((n) => {
|
|
231
234
|
var s;
|
|
232
235
|
return (s = n.svelteApp) == null ? void 0 : s.$destroy();
|
|
233
236
|
}), this.labelItems = [];
|
|
234
237
|
const t = this.five.panoIndex, i = this.floorplanServerData.computed_data.observers[t].floor_index, r = this.floorplanServerData.computed_data.floor_datas[i];
|
|
235
|
-
(
|
|
238
|
+
(e = this.floorplanServerData.computed_data.doors) == null || e.forEach((n) => {
|
|
236
239
|
const s = this.five.work.observers.filter((m, d) => {
|
|
237
240
|
var b;
|
|
238
241
|
return !!((b = r == null ? void 0 : r.rooms) != null && b.find((x) => x.observer_indexs.includes(d)));
|
|
239
|
-
}),
|
|
242
|
+
}), o = n.position;
|
|
240
243
|
let v = 1 / 0, c;
|
|
241
244
|
s.forEach((m) => {
|
|
242
245
|
const d = m.standingPosition, b = {
|
|
243
246
|
x: d.x,
|
|
244
247
|
y: d.y,
|
|
245
248
|
z: d.z
|
|
246
|
-
}, x = tt(
|
|
249
|
+
}, x = tt(o, b);
|
|
247
250
|
x < v && (v = x, c = b);
|
|
248
|
-
}), c && (
|
|
249
|
-
const h = new A(
|
|
251
|
+
}), c && (o.y = c.y + 0.01);
|
|
252
|
+
const h = new A(o.x, o.y, o.z);
|
|
250
253
|
h.add(new A(-0.2, 1.8, 0).applyEuler(new G(0, n.rad, 0))), this.doorLabels.push({
|
|
251
254
|
roomName: n.name,
|
|
252
255
|
name: n.name,
|
|
@@ -269,8 +272,8 @@ class wi extends Y {
|
|
|
269
272
|
setState(t, i) {
|
|
270
273
|
const r = this.state;
|
|
271
274
|
this.state = E(E({}, r), t);
|
|
272
|
-
const
|
|
273
|
-
|
|
275
|
+
const e = r.enabled && r.visible, n = this.state.enabled && this.state.visible;
|
|
276
|
+
e !== n && this.applyState();
|
|
274
277
|
}
|
|
275
278
|
show() {
|
|
276
279
|
this.setState({ visible: !0 });
|
|
@@ -296,18 +299,18 @@ class wi extends Y {
|
|
|
296
299
|
}
|
|
297
300
|
applyState(t) {
|
|
298
301
|
const i = t != null ? t : this.state;
|
|
299
|
-
i.enabled !== !1 && i.visible !== !1 ? (this.labelItems.forEach((
|
|
300
|
-
|
|
302
|
+
i.enabled !== !1 && i.visible !== !1 ? (this.labelItems.forEach((e) => {
|
|
303
|
+
e.svelteApp = new Z({
|
|
301
304
|
target: this.container,
|
|
302
305
|
props: {
|
|
303
|
-
props:
|
|
306
|
+
props: e,
|
|
304
307
|
onClick: () => {
|
|
305
|
-
this.onClick(
|
|
308
|
+
this.onClick(e.name, e.position);
|
|
306
309
|
}
|
|
307
310
|
}
|
|
308
311
|
});
|
|
309
|
-
}), this.fixDoorPosition()) : this.labelItems.forEach((
|
|
310
|
-
|
|
312
|
+
}), this.fixDoorPosition()) : this.labelItems.forEach((e) => {
|
|
313
|
+
e.svelteApp.$destroy();
|
|
311
314
|
});
|
|
312
315
|
}
|
|
313
316
|
initState() {
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { SvelteComponent as Y, init as Z, safe_not_equal as J, append_styles as K, element as
|
|
2
|
-
import { ROOM_LABEL_PC_BG as
|
|
1
|
+
import { SvelteComponent as Y, init as Z, safe_not_equal as J, append_styles as K, element as B, attr as M, set_style as o, insert as k, noop as R, detach as v, onMount as Q, onDestroy as V, text as X, space as x, append as $, listen as ee, is_function as ie, set_data as ne, binding_callbacks as p } from "../../vendor/svelte/internal/index.js";
|
|
2
|
+
import { ROOM_LABEL_PC_BG as T, ROOM_LABEL_MOBILE_BG as U } from "./Assets/roomLabelBg.js";
|
|
3
3
|
import { rad2Deg as te } from "../../shared-utils/math/rad2Deg.js";
|
|
4
4
|
import { FONT_SIZE_MAP as re } from "./Assets/fontSize.js";
|
|
5
|
-
import { px2rem as
|
|
5
|
+
import { px2rem as m } from "../../shared-utils/px2rem.js";
|
|
6
6
|
function oe(i) {
|
|
7
|
-
K(i, "svelte-
|
|
7
|
+
K(i, "svelte-c02qws", ".room-label-item.svelte-c02qws{position:absolute;font-size:0.625rem;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:#fff}.room-label-item__text.svelte-c02qws{position:absolute;left:0;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;pointer-events:all;white-space:nowrap;position:relative;box-shadow:0 0.1875rem 0.8125rem 0 #00000033;font-weight:500;border-radius:var(--border-radius);-o-border-image:var(--bg-image) var(--border-radius-num) / var(--border-radius) / 0rem stretch;border-image:var(--bg-image) var(--border-radius-num) fill / var(--border-radius) / 0rem stretch;box-sizing:border-box}.room-label-item__bar.svelte-c02qws{position:absolute;transform-origin:top;height:3rem;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}");
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
let e, n,
|
|
9
|
+
function C(i) {
|
|
10
|
+
let e, n, s, r, _, u;
|
|
11
11
|
return {
|
|
12
12
|
c() {
|
|
13
|
-
var
|
|
14
|
-
e =
|
|
13
|
+
var f, l, b, a;
|
|
14
|
+
e = B("span"), n = X(
|
|
15
15
|
/*content*/
|
|
16
16
|
i[0]
|
|
17
|
-
),
|
|
17
|
+
), s = x(), r = B("div"), M(e, "class", "room-label-item__text svelte-c02qws"), o(
|
|
18
18
|
e,
|
|
19
19
|
"font-size",
|
|
20
20
|
/*nameSize*/
|
|
@@ -33,97 +33,97 @@ function F(i) {
|
|
|
33
33
|
e,
|
|
34
34
|
"--bg-image",
|
|
35
35
|
/*fontConfig*/
|
|
36
|
-
((
|
|
37
|
-
), o(e, "min-width",
|
|
36
|
+
((f = i[6]) == null ? void 0 : f.name) >= 16 ? `url(${T})` : `url(${U})`
|
|
37
|
+
), o(e, "min-width", m(
|
|
38
38
|
/*fontConfig*/
|
|
39
|
-
(
|
|
39
|
+
(l = i[6]) == null ? void 0 : l.minWidth
|
|
40
40
|
)), o(
|
|
41
41
|
e,
|
|
42
42
|
"--border-radius",
|
|
43
43
|
/*fontConfig*/
|
|
44
|
-
((b = i[6]) == null ? void 0 : b.name) >= 16 ?
|
|
44
|
+
((b = i[6]) == null ? void 0 : b.name) >= 16 ? m(4) : m(2)
|
|
45
45
|
), o(
|
|
46
46
|
e,
|
|
47
47
|
"--border-radius-num",
|
|
48
48
|
/*fontConfig*/
|
|
49
49
|
((a = i[6]) == null ? void 0 : a.name) >= 16 ? 8 : 4
|
|
50
|
-
),
|
|
50
|
+
), M(r, "class", "room-label-item__bar svelte-c02qws"), o(r, "top", m(
|
|
51
51
|
/*barTopPosition*/
|
|
52
52
|
i[10]
|
|
53
53
|
));
|
|
54
54
|
},
|
|
55
|
-
m(
|
|
56
|
-
|
|
55
|
+
m(f, l) {
|
|
56
|
+
k(f, e, l), $(e, n), i[22](e), k(f, s, l), k(f, r, l), i[23](r), _ || (u = ee(e, "click", function() {
|
|
57
57
|
ie(
|
|
58
58
|
/*onClick*/
|
|
59
59
|
i[4]
|
|
60
60
|
) && i[4].apply(this, arguments);
|
|
61
|
-
}),
|
|
61
|
+
}), _ = !0);
|
|
62
62
|
},
|
|
63
|
-
p(
|
|
64
|
-
var b, a,
|
|
65
|
-
i =
|
|
63
|
+
p(f, l) {
|
|
64
|
+
var b, a, g, h;
|
|
65
|
+
i = f, l & /*content*/
|
|
66
66
|
1 && ne(
|
|
67
67
|
n,
|
|
68
68
|
/*content*/
|
|
69
69
|
i[0]
|
|
70
|
-
),
|
|
70
|
+
), l & /*nameSize*/
|
|
71
71
|
8192 && o(
|
|
72
72
|
e,
|
|
73
73
|
"font-size",
|
|
74
74
|
/*nameSize*/
|
|
75
75
|
i[13]
|
|
76
|
-
),
|
|
76
|
+
), l & /*paddingStyle*/
|
|
77
77
|
4096 && o(
|
|
78
78
|
e,
|
|
79
79
|
"padding",
|
|
80
80
|
/*paddingStyle*/
|
|
81
81
|
i[12]
|
|
82
|
-
),
|
|
82
|
+
), l & /*textLineHeightRem*/
|
|
83
83
|
2048 && o(
|
|
84
84
|
e,
|
|
85
85
|
"line-height",
|
|
86
86
|
/*textLineHeightRem*/
|
|
87
87
|
i[11]
|
|
88
|
-
),
|
|
88
|
+
), l & /*fontConfig*/
|
|
89
89
|
64 && o(
|
|
90
90
|
e,
|
|
91
91
|
"--bg-image",
|
|
92
92
|
/*fontConfig*/
|
|
93
|
-
((b = i[6]) == null ? void 0 : b.name) >= 16 ? `url(${
|
|
94
|
-
),
|
|
95
|
-
64 && o(e, "min-width",
|
|
93
|
+
((b = i[6]) == null ? void 0 : b.name) >= 16 ? `url(${T})` : `url(${U})`
|
|
94
|
+
), l & /*fontConfig*/
|
|
95
|
+
64 && o(e, "min-width", m(
|
|
96
96
|
/*fontConfig*/
|
|
97
97
|
(a = i[6]) == null ? void 0 : a.minWidth
|
|
98
|
-
)),
|
|
98
|
+
)), l & /*fontConfig*/
|
|
99
99
|
64 && o(
|
|
100
100
|
e,
|
|
101
101
|
"--border-radius",
|
|
102
102
|
/*fontConfig*/
|
|
103
|
-
((
|
|
104
|
-
),
|
|
103
|
+
((g = i[6]) == null ? void 0 : g.name) >= 16 ? m(4) : m(2)
|
|
104
|
+
), l & /*fontConfig*/
|
|
105
105
|
64 && o(
|
|
106
106
|
e,
|
|
107
107
|
"--border-radius-num",
|
|
108
108
|
/*fontConfig*/
|
|
109
|
-
((
|
|
110
|
-
),
|
|
111
|
-
1024 && o(r, "top",
|
|
109
|
+
((h = i[6]) == null ? void 0 : h.name) >= 16 ? 8 : 4
|
|
110
|
+
), l & /*barTopPosition*/
|
|
111
|
+
1024 && o(r, "top", m(
|
|
112
112
|
/*barTopPosition*/
|
|
113
113
|
i[10]
|
|
114
114
|
));
|
|
115
115
|
},
|
|
116
|
-
d(
|
|
117
|
-
|
|
116
|
+
d(f) {
|
|
117
|
+
f && v(e), i[22](null), f && v(s), f && v(r), i[23](null), _ = !1, u();
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function le(i) {
|
|
122
122
|
let e, n = !/*rendererIfNeed*/
|
|
123
|
-
i[5] &&
|
|
123
|
+
i[5] && C(i);
|
|
124
124
|
return {
|
|
125
125
|
c() {
|
|
126
|
-
e =
|
|
126
|
+
e = B("div"), n && n.c(), M(e, "class", "room-label-item svelte-c02qws"), o(
|
|
127
127
|
e,
|
|
128
128
|
"z-index",
|
|
129
129
|
/*zIndex*/
|
|
@@ -145,122 +145,122 @@ function fe(i) {
|
|
|
145
145
|
i[14]
|
|
146
146
|
);
|
|
147
147
|
},
|
|
148
|
-
m(
|
|
149
|
-
|
|
148
|
+
m(s, r) {
|
|
149
|
+
k(s, e, r), n && n.m(e, null), i[24](e);
|
|
150
150
|
},
|
|
151
|
-
p(
|
|
151
|
+
p(s, [r]) {
|
|
152
152
|
/*rendererIfNeed*/
|
|
153
|
-
|
|
153
|
+
s[5] ? n && (n.d(1), n = null) : n ? n.p(s, r) : (n = C(s), n.c(), n.m(e, null)), r & /*zIndex*/
|
|
154
154
|
4 && o(
|
|
155
155
|
e,
|
|
156
156
|
"z-index",
|
|
157
157
|
/*zIndex*/
|
|
158
|
-
|
|
158
|
+
s[2]
|
|
159
159
|
), r & /*transform*/
|
|
160
160
|
8 && o(
|
|
161
161
|
e,
|
|
162
162
|
"transform",
|
|
163
163
|
/*transform*/
|
|
164
|
-
|
|
164
|
+
s[3]
|
|
165
165
|
), r & /*opacity*/
|
|
166
166
|
2 && o(
|
|
167
167
|
e,
|
|
168
168
|
"opacity",
|
|
169
169
|
/*opacity*/
|
|
170
|
-
|
|
170
|
+
s[1]
|
|
171
171
|
), r & /*visibility*/
|
|
172
172
|
16384 && o(
|
|
173
173
|
e,
|
|
174
174
|
"visibility",
|
|
175
175
|
/*visibility*/
|
|
176
|
-
|
|
176
|
+
s[14]
|
|
177
177
|
);
|
|
178
178
|
},
|
|
179
|
-
i:
|
|
180
|
-
o:
|
|
181
|
-
d(
|
|
182
|
-
|
|
179
|
+
i: R,
|
|
180
|
+
o: R,
|
|
181
|
+
d(s) {
|
|
182
|
+
s && v(e), n && n.d(), i[24](null);
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
let
|
|
188
|
-
} } = e, { rendererIfNeed:
|
|
189
|
-
const
|
|
186
|
+
function se(i, e, n) {
|
|
187
|
+
let s, r, _, u, f, l, b, a, g, { content: h } = e, { five: d = void 0 } = e, { visible: S = !0 } = e, { opacity: N = 1 } = e, { zIndex: E = 0 } = e, { transform: H = void 0 } = e, { onClick: P = () => {
|
|
188
|
+
} } = e, { rendererIfNeed: w = void 0 } = e, { rendererData: q = void 0 } = e, { fontSize: L } = e, y, c, z, I;
|
|
189
|
+
const D = (t) => {
|
|
190
190
|
if (d.state.mode !== "Panorama") {
|
|
191
|
-
const
|
|
192
|
-
n(8, c.style.transform = `scaleY(${
|
|
191
|
+
const A = -(10 + 54 * (1 - te(t.latitude) / 90)), O = A + a, j = O >= 0 ? 0 : -O / -g;
|
|
192
|
+
n(8, c.style.transform = `scaleY(${j})`, c), n(8, c.style.top = m(O), c), n(9, z.style.top = m(A), z);
|
|
193
193
|
}
|
|
194
194
|
};
|
|
195
195
|
Q(() => {
|
|
196
|
-
y && typeof
|
|
196
|
+
y && typeof w == "function" && (I = w(y, q)), d && (D(d.camera.pose), d.on("cameraUpdate", D));
|
|
197
197
|
}), V(() => {
|
|
198
|
-
|
|
198
|
+
I == null || I(), d == null || d.off("cameraUpdate", D);
|
|
199
199
|
});
|
|
200
|
-
function
|
|
201
|
-
|
|
200
|
+
function F(t) {
|
|
201
|
+
p[t ? "unshift" : "push"](() => {
|
|
202
202
|
z = t, n(9, z);
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
|
|
205
|
+
function G(t) {
|
|
206
|
+
p[t ? "unshift" : "push"](() => {
|
|
207
207
|
c = t, n(8, c);
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
|
|
210
|
+
function W(t) {
|
|
211
|
+
p[t ? "unshift" : "push"](() => {
|
|
212
212
|
y = t, n(7, y);
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
215
|
return i.$$set = (t) => {
|
|
216
|
-
"content" in t && n(0,
|
|
216
|
+
"content" in t && n(0, h = t.content), "five" in t && n(15, d = t.five), "visible" in t && n(16, S = t.visible), "opacity" in t && n(1, N = t.opacity), "zIndex" in t && n(2, E = t.zIndex), "transform" in t && n(3, H = t.transform), "onClick" in t && n(4, P = t.onClick), "rendererIfNeed" in t && n(5, w = t.rendererIfNeed), "rendererData" in t && n(17, q = t.rendererData), "fontSize" in t && n(18, L = t.fontSize);
|
|
217
217
|
}, i.$$.update = () => {
|
|
218
218
|
var t;
|
|
219
219
|
i.$$.dirty & /*visible*/
|
|
220
|
-
65536 && n(14,
|
|
221
|
-
262144 && n(6, r = re[
|
|
222
|
-
64 && n(13,
|
|
220
|
+
65536 && n(14, s = S ? "visible" : "hidden"), i.$$.dirty & /*fontSize*/
|
|
221
|
+
262144 && n(6, r = re[L]), i.$$.dirty & /*fontConfig*/
|
|
222
|
+
64 && n(13, _ = m(r == null ? void 0 : r.name)), i.$$.dirty & /*fontConfig*/
|
|
223
223
|
64 && n(20, u = (t = r == null ? void 0 : r.padding) == null ? void 0 : t.room), i.$$.dirty & /*padding*/
|
|
224
|
-
1048576 && n(12,
|
|
225
|
-
64 && n(21,
|
|
226
|
-
2097152 && n(11, b =
|
|
227
|
-
3145728 && n(19, a =
|
|
228
|
-
524288 && n(10,
|
|
224
|
+
1048576 && n(12, f = `${m(u[1])} ${m(u[0])}`), i.$$.dirty & /*fontConfig*/
|
|
225
|
+
64 && n(21, l = r == null ? void 0 : r.lineHeight), i.$$.dirty & /*textLineHeight*/
|
|
226
|
+
2097152 && n(11, b = m(l)), i.$$.dirty & /*textLineHeight, padding*/
|
|
227
|
+
3145728 && n(19, a = l + u[1] * 2), i.$$.dirty & /*textHeight*/
|
|
228
|
+
524288 && n(10, g = -(64 - a));
|
|
229
229
|
}, [
|
|
230
|
-
|
|
230
|
+
h,
|
|
231
|
+
N,
|
|
231
232
|
E,
|
|
232
233
|
H,
|
|
233
234
|
P,
|
|
234
|
-
|
|
235
|
-
I,
|
|
235
|
+
w,
|
|
236
236
|
r,
|
|
237
237
|
y,
|
|
238
238
|
c,
|
|
239
239
|
z,
|
|
240
|
-
|
|
240
|
+
g,
|
|
241
241
|
b,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
242
|
+
f,
|
|
243
|
+
_,
|
|
244
|
+
s,
|
|
245
245
|
d,
|
|
246
|
-
|
|
246
|
+
S,
|
|
247
|
+
q,
|
|
247
248
|
L,
|
|
248
|
-
D,
|
|
249
249
|
a,
|
|
250
250
|
u,
|
|
251
|
-
|
|
251
|
+
l,
|
|
252
|
+
F,
|
|
252
253
|
G,
|
|
253
|
-
W
|
|
254
|
-
j
|
|
254
|
+
W
|
|
255
255
|
];
|
|
256
256
|
}
|
|
257
|
-
class
|
|
257
|
+
class _e extends Y {
|
|
258
258
|
constructor(e) {
|
|
259
259
|
super(), Z(
|
|
260
260
|
this,
|
|
261
261
|
e,
|
|
262
|
+
se,
|
|
262
263
|
le,
|
|
263
|
-
fe,
|
|
264
264
|
J,
|
|
265
265
|
{
|
|
266
266
|
content: 0,
|
|
@@ -279,5 +279,5 @@ class he extends Y {
|
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
export {
|
|
282
|
-
|
|
282
|
+
_e as LabelItem
|
|
283
283
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.74.5-alpha.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.74.5-alpha.1",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|