@realsee/dnalogel 3.74.5-alpha.0 → 3.74.5

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,7 +1,7 @@
1
1
  var e = Object.defineProperty;
2
2
  var s = (o, t, i) => t in o ? e(o, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[t] = i;
3
3
  var r = (o, t, i) => (s(o, typeof t != "symbol" ? t + "" : t, i), i);
4
- import { Subscribe as l } from "../shared-utils/Subscribe.js";
4
+ import { Subscribe as m } from "../shared-utils/Subscribe.js";
5
5
  import "../shared-utils/tag.js";
6
6
  import "three";
7
7
  import "../vendor/hammerjs/hammer.js";
@@ -15,7 +15,7 @@ import "../shared-utils/three/blink.js";
15
15
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
16
16
  import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
17
17
  import "../vendor/earcut/src/earcut.js";
18
- import { FiveUtil as m } from "../shared-utils/Utils/FiveUtil.js";
18
+ import { FiveUtil as l } from "../shared-utils/Utils/FiveUtil.js";
19
19
  import { DEFAULT_STATIC_PREFIX as p } from "../shared-utils/url/defaultUrls.js";
20
20
  import "../shared-utils/five/FivePuppet.js";
21
21
  let I = class {
@@ -23,7 +23,7 @@ let I = class {
23
23
  /**
24
24
  * @realsee/dnalogel 版本号
25
25
  */
26
- r(this, "VERSION", "3.74.5-alpha.0");
26
+ r(this, "VERSION", "3.74.5");
27
27
  r(this, "NAME");
28
28
  r(this, "five");
29
29
  r(this, "workUtil");
@@ -31,9 +31,9 @@ let I = class {
31
31
  /**
32
32
  * @description: 插件事件钩子
33
33
  */
34
- r(this, "hooks", new l());
34
+ r(this, "hooks", new m());
35
35
  r(this, "staticPrefix", p);
36
- this.five = t, this.fiveUtil = new m(t), this.workUtil = this.fiveUtil.workUtil, i != null && i.staticPrefix && (this.staticPrefix = i.staticPrefix);
36
+ this.five = t, this.fiveUtil = new l(t), this.workUtil = this.fiveUtil.workUtil, i != null && i.staticPrefix && (this.staticPrefix = i.staticPrefix);
37
37
  }
38
38
  set workCode(t) {
39
39
  this.workUtil.workCode = t, this.onWorkCodeChange();
@@ -1,20 +1,20 @@
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";
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 s } from "../../shared-utils/px2rem.js";
5
+ import { px2rem as m } from "../../shared-utils/px2rem.js";
6
6
  function oe(i) {
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))}");
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 F(i) {
10
- let e, n, l, r, h, u;
9
+ function C(i) {
10
+ let e, n, s, r, _, u;
11
11
  return {
12
12
  c() {
13
- var m, f, b, a;
14
- e = M("span"), n = X(
13
+ var f, l, b, a;
14
+ e = B("span"), n = X(
15
15
  /*content*/
16
16
  i[0]
17
- ), l = x(), r = M("div"), N(e, "class", "room-label-item__text svelte-c40h79"), o(
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
- ((m = i[6]) == null ? void 0 : m.name) >= 16 ? `url(${U})` : `url(${C})`
37
- ), o(e, "min-width", s(
36
+ ((f = i[6]) == null ? void 0 : f.name) >= 16 ? `url(${T})` : `url(${U})`
37
+ ), o(e, "min-width", m(
38
38
  /*fontConfig*/
39
- (f = i[6]) == null ? void 0 : f.minWidth
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 ? s(4) : s(2)
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
- ), N(r, "class", "room-label-item__bar svelte-c40h79"), o(r, "top", s(
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(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() {
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
- }), h = !0);
61
+ }), _ = !0);
62
62
  },
63
- p(m, f) {
64
- var b, a, _, g;
65
- i = m, f & /*content*/
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
- ), f & /*nameSize*/
70
+ ), l & /*nameSize*/
71
71
  8192 && o(
72
72
  e,
73
73
  "font-size",
74
74
  /*nameSize*/
75
75
  i[13]
76
- ), f & /*paddingStyle*/
76
+ ), l & /*paddingStyle*/
77
77
  4096 && o(
78
78
  e,
79
79
  "padding",
80
80
  /*paddingStyle*/
81
81
  i[12]
82
- ), f & /*textLineHeightRem*/
82
+ ), l & /*textLineHeightRem*/
83
83
  2048 && o(
84
84
  e,
85
85
  "line-height",
86
86
  /*textLineHeightRem*/
87
87
  i[11]
88
- ), f & /*fontConfig*/
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(${U})` : `url(${C})`
94
- ), f & /*fontConfig*/
95
- 64 && o(e, "min-width", s(
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
- )), f & /*fontConfig*/
98
+ )), l & /*fontConfig*/
99
99
  64 && o(
100
100
  e,
101
101
  "--border-radius",
102
102
  /*fontConfig*/
103
- ((_ = i[6]) == null ? void 0 : _.name) >= 16 ? s(4) : s(2)
104
- ), f & /*fontConfig*/
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
- ((g = i[6]) == null ? void 0 : g.name) >= 16 ? 8 : 4
110
- ), f & /*barTopPosition*/
111
- 1024 && o(r, "top", s(
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(m) {
117
- m && S(e), i[22](null), m && S(l), m && S(r), i[23](null), h = !1, u();
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 fe(i) {
121
+ function le(i) {
122
122
  let e, n = !/*rendererIfNeed*/
123
- i[5] && F(i);
123
+ i[5] && C(i);
124
124
  return {
125
125
  c() {
126
- e = M("div"), n && n.c(), N(e, "class", "room-label-item svelte-c40h79"), o(
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(l, r) {
149
- v(l, e, r), n && n.m(e, null), i[24](e);
148
+ m(s, r) {
149
+ k(s, e, r), n && n.m(e, null), i[24](e);
150
150
  },
151
- p(l, [r]) {
151
+ p(s, [r]) {
152
152
  /*rendererIfNeed*/
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*/
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
- l[2]
158
+ s[2]
159
159
  ), r & /*transform*/
160
160
  8 && o(
161
161
  e,
162
162
  "transform",
163
163
  /*transform*/
164
- l[3]
164
+ s[3]
165
165
  ), r & /*opacity*/
166
166
  2 && o(
167
167
  e,
168
168
  "opacity",
169
169
  /*opacity*/
170
- l[1]
170
+ s[1]
171
171
  ), r & /*visibility*/
172
172
  16384 && o(
173
173
  e,
174
174
  "visibility",
175
175
  /*visibility*/
176
- l[14]
176
+ s[14]
177
177
  );
178
178
  },
179
- i: T,
180
- o: T,
181
- d(l) {
182
- l && S(e), n && n.d(), i[24](null);
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 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) => {
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 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);
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 I == "function" && (k = I(y, L)), d && (O(d.camera.pose), d.on("cameraUpdate", O));
196
+ y && typeof w == "function" && (I = w(y, q)), d && (D(d.camera.pose), d.on("cameraUpdate", D));
197
197
  }), V(() => {
198
- k == null || k(), d == null || d.off("cameraUpdate", O);
198
+ I == null || I(), d == null || d.off("cameraUpdate", D);
199
199
  });
200
- function G(t) {
201
- B[t ? "unshift" : "push"](() => {
200
+ function F(t) {
201
+ p[t ? "unshift" : "push"](() => {
202
202
  z = t, n(9, z);
203
203
  });
204
204
  }
205
- function W(t) {
206
- B[t ? "unshift" : "push"](() => {
205
+ function G(t) {
206
+ p[t ? "unshift" : "push"](() => {
207
207
  c = t, n(8, c);
208
208
  });
209
209
  }
210
- function j(t) {
211
- B[t ? "unshift" : "push"](() => {
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, 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);
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, 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*/
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, 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));
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
- g,
230
+ h,
231
+ N,
231
232
  E,
232
233
  H,
233
234
  P,
234
- A,
235
- I,
235
+ w,
236
236
  r,
237
237
  y,
238
238
  c,
239
239
  z,
240
- _,
240
+ g,
241
241
  b,
242
- m,
243
- h,
244
- l,
242
+ f,
243
+ _,
244
+ s,
245
245
  d,
246
- w,
246
+ S,
247
+ q,
247
248
  L,
248
- D,
249
249
  a,
250
250
  u,
251
- f,
251
+ l,
252
+ F,
252
253
  G,
253
- W,
254
- j
254
+ W
255
255
  ];
256
256
  }
257
- class he extends Y {
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
- he as LabelItem
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.0",
3
+ "%c %c@realsee/dnalogel %cv3.74.5",
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.74.5-alpha.0",
3
+ "version": "3.74.5",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",