@realsee/dnalogel 3.75.0 → 3.75.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.
@@ -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 R = Object.prototype.hasOwnProperty, $ = Object.prototype.propertyIsEnumerable;
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
- R.call(l, t) && L(a, t, l[t]);
7
+ F.call(l, t) && L(a, t, l[t]);
8
8
  if (O)
9
9
  for (var t of O(l))
10
- $.call(l, t) && L(a, t, l[t]);
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
- R.call(a, i) && l.indexOf(i) < 0 && (t[i] = a[i]);
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 && $.call(a, i) && (t[i] = a[i]);
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 = [], this.doorLabels = [], this.floorplanServerData = t, et(this.five).then(() => {
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, o, n, s, e;
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), (o = this.five) == null || o.off("initAnimationEnded", this.fixDoorPosition), (n = this.five) == null || n.off("cameraUpdate", this.fixDoorPosition), (s = this.five) == null || s.off("mouseWheel", this.fixDoorPosition), (e = this.five) == null || e.off("pinchGesture", this.fixDoorPosition), this.applyState({ enabled: !1 });
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 o, n;
124
- const t = this.floorplanServerData.computed_data.floor_datas || [], r = (((n = (o = this.five) == null ? void 0 : o.work) == null ? void 0 : n.observers) || []).map((s) => {
125
- const e = s.panoIndex, v = s.floorIndex, c = t == null ? void 0 : t.find((h) => h.floor_index === v);
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(e));
130
+ const h = c.rooms.find((m) => m.observer_indexs.includes(o));
128
131
  if (h)
129
- return { panoIndex: e, floorIndex: v, name: h.name };
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), o = this.five.work.observers.find((s) => s.panoIndex === t).position.clone(), n = (() => {
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((e, v) => {
150
- if (e.roomName === i.name)
152
+ return this.doorLabels.forEach((o, v) => {
153
+ if (o.roomName === i.name)
151
154
  return;
152
- const c = e.position.clone(), h = c.distanceTo(o);
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(o).normalize();
156
- m.set(o, d);
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, e) => {
163
- s.visible = n.includes(e);
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, z;
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(), o = r.clientWidth, n = r.clientHeight, s = i.getWorldDirection(new A()), e = [];
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), S = f.position.clone().add(new A(0, this.OffsetHeight, 0)), w = S.clone().sub(i.position).normalize().angleTo(s), y = S.clone().project(i), P = (y.x + 1) / 2.2 * 100, T = (-y.y + 1) / 2.2 * 100, F = P >= 0 && P <= 100 && T >= 0 && T <= 100 && g > this.MinVisibledistance && g <= this.MaxVisibledistance;
180
- f.left = P, f.top = T, f.inSight = F && w < Math.PI / 2, f.cameraToward = J(this.five), F ? e.push({ disFromCameraToLabel: g, left: P, top: T, index: u }) : f.transform = "translate(-50%, -50%)";
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 M = f, { svelteApp: D } = M, C = B(M, ["svelteApp"]);
186
+ const y = f, { svelteApp: D } = y, C = B(y, ["svelteApp"]);
184
187
  (I = f.svelteApp) == null || I.$set({ props: C });
185
- }), e.length > 1) {
188
+ }), o.length > 1) {
186
189
  let f = 0;
187
- e.sort((u, D) => D.disFromCameraToLabel - u.disFromCameraToLabel);
188
- for (let u = 1; u < e.length; u++) {
189
- const { index: D, left: C, top: M } = e[u - 1], { index: I, left: g, top: S } = e[u], V = this.container.children[D], w = this.container.children[I];
190
- if (!V || !w)
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 y = {
193
- left: o * C / 100,
194
- top: n * M / 100,
195
- width: (h = (c = (v = V.children) == null ? void 0 : v[0]) == null ? void 0 : c.clientWidth) != null ? h : 0,
196
- height: (b = (d = (m = V.children) == null ? void 0 : m[0]) == null ? void 0 : d.clientHeight) != null ? b : 0
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: o * g / 100,
199
- top: n * S / 100,
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: (z = (W = (H = w.children) == null ? void 0 : H[0]) == null ? void 0 : W.clientHeight) != null ? z : 0
204
+ height: ($ = (W = (H = w.children) == null ? void 0 : H[0]) == null ? void 0 : W.clientHeight) != null ? $ : 0
202
205
  };
203
- K(y, P) && (f++, this.labelItems[D].transform = `translate(-50%, ${(f - 1) * 100 - 50}%)`, this.labelItems[I].transform = `translate(-50%, ${f * 100 - 50}%)`);
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 o, n, s = 1 / 0;
212
- for (const e of r.observers)
213
- if (this.roomObservers.find((c) => c.panoIndex === e.panoIndex && c.name === t)) {
214
- const c = e.standingPosition, h = i.distanceTo(c);
215
- h < s && (o = e.panoIndex, n = c.clone().sub(i).normalize(), s = h);
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 && o !== void 0) {
218
- const e = {};
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"), e.longitude = d.y;
226
+ d.setFromQuaternion(m, "YXZ"), o.longitude = d.y;
224
227
  }
225
- this.five.emit("wantsToMoveToPano", o, {}, !0) || this.five.moveToPano(o, { longitude: e.longitude });
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 o;
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
- (o = this.floorplanServerData.computed_data.doors) == null || o.forEach((n) => {
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
- }), e = n.position;
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(e, b);
249
+ }, x = tt(o, b);
247
250
  x < v && (v = x, c = b);
248
- }), c && (e.y = c.y + 0.01);
249
- const h = new A(e.x, e.y, e.z);
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 o = r.enabled && r.visible, n = this.state.enabled && this.state.visible;
273
- o !== n && this.applyState();
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((o) => {
300
- o.svelteApp = new Z({
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: o,
306
+ props: e,
304
307
  onClick: () => {
305
- this.onClick(o.name, o.position);
308
+ this.onClick(e.name, e.position);
306
309
  }
307
310
  }
308
311
  });
309
- }), this.fixDoorPosition()) : this.labelItems.forEach((o) => {
310
- o.svelteApp.$destroy();
312
+ }), this.fixDoorPosition()) : this.labelItems.forEach((e) => {
313
+ e.svelteApp.$destroy();
311
314
  });
312
315
  }
313
316
  initState() {
@@ -23,7 +23,7 @@ let I = class {
23
23
  /**
24
24
  * @realsee/dnalogel 版本号
25
25
  */
26
- r(this, "VERSION", "3.75.0");
26
+ r(this, "VERSION", "3.75.1");
27
27
  r(this, "NAME");
28
28
  r(this, "five");
29
29
  r(this, "workUtil");
@@ -1,20 +1,20 @@
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";
1
+ import { SvelteComponent as Y, init as Z, safe_not_equal as J, append_styles as K, element as M, attr as N, set_style as o, insert as v, noop as T, detach as S, 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 B } from "../../vendor/svelte/internal/index.js";
2
+ import { ROOM_LABEL_PC_BG as U, ROOM_LABEL_MOBILE_BG as C } 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 m } from "../../shared-utils/px2rem.js";
5
+ import { px2rem as s } from "../../shared-utils/px2rem.js";
6
6
  function oe(i) {
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))}");
7
+ K(i, "svelte-c40h79", ".room-label-item.svelte-c40h79{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-c40h79{position:absolute;left:0;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;pointer-events:none;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-c40h79{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 C(i) {
10
- let e, n, s, r, _, u;
9
+ function F(i) {
10
+ let e, n, l, r, h, u;
11
11
  return {
12
12
  c() {
13
- var f, l, b, a;
14
- e = B("span"), n = X(
13
+ var m, f, b, a;
14
+ e = M("span"), n = X(
15
15
  /*content*/
16
16
  i[0]
17
- ), s = x(), r = B("div"), M(e, "class", "room-label-item__text svelte-c02qws"), o(
17
+ ), l = x(), r = M("div"), N(e, "class", "room-label-item__text svelte-c40h79"), o(
18
18
  e,
19
19
  "font-size",
20
20
  /*nameSize*/
@@ -33,97 +33,97 @@ function C(i) {
33
33
  e,
34
34
  "--bg-image",
35
35
  /*fontConfig*/
36
- ((f = i[6]) == null ? void 0 : f.name) >= 16 ? `url(${T})` : `url(${U})`
37
- ), o(e, "min-width", m(
36
+ ((m = i[6]) == null ? void 0 : m.name) >= 16 ? `url(${U})` : `url(${C})`
37
+ ), o(e, "min-width", s(
38
38
  /*fontConfig*/
39
- (l = i[6]) == null ? void 0 : l.minWidth
39
+ (f = i[6]) == null ? void 0 : f.minWidth
40
40
  )), o(
41
41
  e,
42
42
  "--border-radius",
43
43
  /*fontConfig*/
44
- ((b = i[6]) == null ? void 0 : b.name) >= 16 ? m(4) : m(2)
44
+ ((b = i[6]) == null ? void 0 : b.name) >= 16 ? s(4) : s(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
- ), M(r, "class", "room-label-item__bar svelte-c02qws"), o(r, "top", m(
50
+ ), N(r, "class", "room-label-item__bar svelte-c40h79"), o(r, "top", s(
51
51
  /*barTopPosition*/
52
52
  i[10]
53
53
  ));
54
54
  },
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() {
55
+ m(m, f) {
56
+ v(m, e, f), $(e, n), i[22](e), v(m, l, f), v(m, r, f), i[23](r), h || (u = ee(e, "click", function() {
57
57
  ie(
58
58
  /*onClick*/
59
59
  i[4]
60
60
  ) && i[4].apply(this, arguments);
61
- }), _ = !0);
61
+ }), h = !0);
62
62
  },
63
- p(f, l) {
64
- var b, a, g, h;
65
- i = f, l & /*content*/
63
+ p(m, f) {
64
+ var b, a, _, g;
65
+ i = m, f & /*content*/
66
66
  1 && ne(
67
67
  n,
68
68
  /*content*/
69
69
  i[0]
70
- ), l & /*nameSize*/
70
+ ), f & /*nameSize*/
71
71
  8192 && o(
72
72
  e,
73
73
  "font-size",
74
74
  /*nameSize*/
75
75
  i[13]
76
- ), l & /*paddingStyle*/
76
+ ), f & /*paddingStyle*/
77
77
  4096 && o(
78
78
  e,
79
79
  "padding",
80
80
  /*paddingStyle*/
81
81
  i[12]
82
- ), l & /*textLineHeightRem*/
82
+ ), f & /*textLineHeightRem*/
83
83
  2048 && o(
84
84
  e,
85
85
  "line-height",
86
86
  /*textLineHeightRem*/
87
87
  i[11]
88
- ), l & /*fontConfig*/
88
+ ), f & /*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(${T})` : `url(${U})`
94
- ), l & /*fontConfig*/
95
- 64 && o(e, "min-width", m(
93
+ ((b = i[6]) == null ? void 0 : b.name) >= 16 ? `url(${U})` : `url(${C})`
94
+ ), f & /*fontConfig*/
95
+ 64 && o(e, "min-width", s(
96
96
  /*fontConfig*/
97
97
  (a = i[6]) == null ? void 0 : a.minWidth
98
- )), l & /*fontConfig*/
98
+ )), f & /*fontConfig*/
99
99
  64 && o(
100
100
  e,
101
101
  "--border-radius",
102
102
  /*fontConfig*/
103
- ((g = i[6]) == null ? void 0 : g.name) >= 16 ? m(4) : m(2)
104
- ), l & /*fontConfig*/
103
+ ((_ = i[6]) == null ? void 0 : _.name) >= 16 ? s(4) : s(2)
104
+ ), f & /*fontConfig*/
105
105
  64 && o(
106
106
  e,
107
107
  "--border-radius-num",
108
108
  /*fontConfig*/
109
- ((h = i[6]) == null ? void 0 : h.name) >= 16 ? 8 : 4
110
- ), l & /*barTopPosition*/
111
- 1024 && o(r, "top", m(
109
+ ((g = i[6]) == null ? void 0 : g.name) >= 16 ? 8 : 4
110
+ ), f & /*barTopPosition*/
111
+ 1024 && o(r, "top", s(
112
112
  /*barTopPosition*/
113
113
  i[10]
114
114
  ));
115
115
  },
116
- d(f) {
117
- f && v(e), i[22](null), f && v(s), f && v(r), i[23](null), _ = !1, u();
116
+ d(m) {
117
+ m && S(e), i[22](null), m && S(l), m && S(r), i[23](null), h = !1, u();
118
118
  }
119
119
  };
120
120
  }
121
- function le(i) {
121
+ function fe(i) {
122
122
  let e, n = !/*rendererIfNeed*/
123
- i[5] && C(i);
123
+ i[5] && F(i);
124
124
  return {
125
125
  c() {
126
- e = B("div"), n && n.c(), M(e, "class", "room-label-item svelte-c02qws"), o(
126
+ e = M("div"), n && n.c(), N(e, "class", "room-label-item svelte-c40h79"), o(
127
127
  e,
128
128
  "z-index",
129
129
  /*zIndex*/
@@ -145,122 +145,122 @@ function le(i) {
145
145
  i[14]
146
146
  );
147
147
  },
148
- m(s, r) {
149
- k(s, e, r), n && n.m(e, null), i[24](e);
148
+ m(l, r) {
149
+ v(l, e, r), n && n.m(e, null), i[24](e);
150
150
  },
151
- p(s, [r]) {
151
+ p(l, [r]) {
152
152
  /*rendererIfNeed*/
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*/
153
+ l[5] ? n && (n.d(1), n = null) : n ? n.p(l, r) : (n = F(l), n.c(), n.m(e, null)), r & /*zIndex*/
154
154
  4 && o(
155
155
  e,
156
156
  "z-index",
157
157
  /*zIndex*/
158
- s[2]
158
+ l[2]
159
159
  ), r & /*transform*/
160
160
  8 && o(
161
161
  e,
162
162
  "transform",
163
163
  /*transform*/
164
- s[3]
164
+ l[3]
165
165
  ), r & /*opacity*/
166
166
  2 && o(
167
167
  e,
168
168
  "opacity",
169
169
  /*opacity*/
170
- s[1]
170
+ l[1]
171
171
  ), r & /*visibility*/
172
172
  16384 && o(
173
173
  e,
174
174
  "visibility",
175
175
  /*visibility*/
176
- s[14]
176
+ l[14]
177
177
  );
178
178
  },
179
- i: R,
180
- o: R,
181
- d(s) {
182
- s && v(e), n && n.d(), i[24](null);
179
+ i: T,
180
+ o: T,
181
+ d(l) {
182
+ l && S(e), n && n.d(), i[24](null);
183
183
  }
184
184
  };
185
185
  }
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) => {
186
+ function le(i, e, n) {
187
+ let l, r, h, u, m, f, b, a, _, { content: g } = e, { five: d = void 0 } = e, { visible: w = !0 } = e, { opacity: E = 1 } = e, { zIndex: H = 0 } = e, { transform: P = void 0 } = e, { onClick: A = () => {
188
+ } } = e, { rendererIfNeed: I = void 0 } = e, { rendererData: L = void 0 } = e, { fontSize: D } = e, y, c, z, k;
189
+ const O = (t) => {
190
190
  if (d.state.mode !== "Panorama") {
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);
191
+ const R = -(10 + 54 * (1 - te(t.latitude) / 90)), p = R + a, q = p >= 0 ? 0 : -p / -_;
192
+ n(8, c.style.transform = `scaleY(${q})`, c), n(8, c.style.top = s(p), c), n(9, z.style.top = s(R), z);
193
193
  }
194
194
  };
195
195
  Q(() => {
196
- y && typeof w == "function" && (I = w(y, q)), d && (D(d.camera.pose), d.on("cameraUpdate", D));
196
+ y && typeof I == "function" && (k = I(y, L)), d && (O(d.camera.pose), d.on("cameraUpdate", O));
197
197
  }), V(() => {
198
- I == null || I(), d == null || d.off("cameraUpdate", D);
198
+ k == null || k(), d == null || d.off("cameraUpdate", O);
199
199
  });
200
- function F(t) {
201
- p[t ? "unshift" : "push"](() => {
200
+ function G(t) {
201
+ B[t ? "unshift" : "push"](() => {
202
202
  z = t, n(9, z);
203
203
  });
204
204
  }
205
- function G(t) {
206
- p[t ? "unshift" : "push"](() => {
205
+ function W(t) {
206
+ B[t ? "unshift" : "push"](() => {
207
207
  c = t, n(8, c);
208
208
  });
209
209
  }
210
- function W(t) {
211
- p[t ? "unshift" : "push"](() => {
210
+ function j(t) {
211
+ B[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, 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);
216
+ "content" in t && n(0, g = t.content), "five" in t && n(15, d = t.five), "visible" in t && n(16, w = t.visible), "opacity" in t && n(1, E = t.opacity), "zIndex" in t && n(2, H = t.zIndex), "transform" in t && n(3, P = t.transform), "onClick" in t && n(4, A = t.onClick), "rendererIfNeed" in t && n(5, I = t.rendererIfNeed), "rendererData" in t && n(17, L = t.rendererData), "fontSize" in t && n(18, D = t.fontSize);
217
217
  }, i.$$.update = () => {
218
218
  var t;
219
219
  i.$$.dirty & /*visible*/
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*/
220
+ 65536 && n(14, l = w ? "visible" : "hidden"), i.$$.dirty & /*fontSize*/
221
+ 262144 && n(6, r = re[D]), i.$$.dirty & /*fontConfig*/
222
+ 64 && n(13, h = s(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, 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));
224
+ 1048576 && n(12, m = `${s(u[1])} ${s(u[0])}`), i.$$.dirty & /*fontConfig*/
225
+ 64 && n(21, f = r == null ? void 0 : r.lineHeight), i.$$.dirty & /*textLineHeight*/
226
+ 2097152 && n(11, b = s(f)), i.$$.dirty & /*textLineHeight, padding*/
227
+ 3145728 && n(19, a = f + u[1] * 2), i.$$.dirty & /*textHeight*/
228
+ 524288 && n(10, _ = -(64 - a));
229
229
  }, [
230
- h,
231
- N,
230
+ g,
232
231
  E,
233
232
  H,
234
233
  P,
235
- w,
234
+ A,
235
+ I,
236
236
  r,
237
237
  y,
238
238
  c,
239
239
  z,
240
- g,
241
- b,
242
- f,
243
240
  _,
244
- s,
241
+ b,
242
+ m,
243
+ h,
244
+ l,
245
245
  d,
246
- S,
247
- q,
246
+ w,
248
247
  L,
248
+ D,
249
249
  a,
250
250
  u,
251
- l,
252
- F,
251
+ f,
253
252
  G,
254
- W
253
+ W,
254
+ j
255
255
  ];
256
256
  }
257
- class _e extends Y {
257
+ class he extends Y {
258
258
  constructor(e) {
259
259
  super(), Z(
260
260
  this,
261
261
  e,
262
- se,
263
262
  le,
263
+ fe,
264
264
  J,
265
265
  {
266
266
  content: 0,
@@ -279,5 +279,5 @@ class _e extends Y {
279
279
  }
280
280
  }
281
281
  export {
282
- _e as LabelItem
282
+ he as LabelItem
283
283
  };
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.75.0",
3
+ "%c %c@realsee/dnalogel %cv3.75.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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.75.0",
3
+ "version": "3.75.1",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",