@realsee/dnalogel 3.50.9 → 3.50.11

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.
@@ -34,10 +34,10 @@ import { isModelTag as A, isMediaModelTag as w } from "../utils/tag/tagCheck.js"
34
34
  import { debounce as M } from "../utils/debounce.js";
35
35
  import { throttle as b } from "../utils/throttle.js";
36
36
  import _, { getTagStickType as I } from "../utils/tag/format.js";
37
- import { generateBlankAudio as L, AudioNamespace as B } from "../../shared-utils/audio.js";
38
- import { resizeObserver as C } from "../../shared-utils/dom/resizeObserver.js";
39
- import { TagRender as O } from "./TagRender.js";
40
- import { isModelLike as R } from "../../shared-utils/five/mode.js";
37
+ import { generateBlankAudio as L, AudioNamespace as R } from "../../shared-utils/audio.js";
38
+ import { resizeObserver as T } from "../../shared-utils/dom/resizeObserver.js";
39
+ import { TagRender as B } from "./TagRender.js";
40
+ import { isModelLike as O } from "../../shared-utils/five/mode.js";
41
41
  import "hammerjs";
42
42
  import "three/examples/jsm/renderers/CSS3DRenderer";
43
43
  import "@realsee/five/line";
@@ -48,7 +48,7 @@ import "animejs";
48
48
  import { nextFrame as G } from "../../shared-utils/animationFrame/index.js";
49
49
  import { waitFiveModelLoaded as N } from "../../shared-utils/five/fiveModelLoad.js";
50
50
  import { DebugUtil as V } from "../utils/DebugUtil.js";
51
- import { safeObj as T } from "../../shared-utils/safeObj.js";
51
+ import { safeObj as C } from "../../shared-utils/safeObj.js";
52
52
  import { PointTag as z } from "./Tag/PointTag.js";
53
53
  import { ModelTag as Q } from "./Tag/ModelTag.js";
54
54
  import { PlaneTag as x } from "./Tag/PlaneTag.js";
@@ -193,7 +193,7 @@ import "../utils/addDebugPoints.js";
193
193
  import "../Components/TagItem.js";
194
194
  import "../Components/Common/TagPoint.js";
195
195
  const S = "Dnalogel-PanoTagPlugin", Ji = (d) => `${S}--${d}`;
196
- class Zi extends O {
196
+ class Zi extends B {
197
197
  constructor(e, t) {
198
198
  super(e);
199
199
  /** state */
@@ -263,7 +263,7 @@ class Zi extends O {
263
263
  this.tags.forEach((e) => e.updateVisible());
264
264
  });
265
265
  p(this, "onFiveEveryReady", () => {
266
- this.setUnfoldedByCamera(), R(this.five.getCurrentState().mode) && this.tags.forEach((e) => e.updateVisible());
266
+ this.setUnfoldedByCamera(), O(this.five.getCurrentState().mode) && this.tags.forEach((e) => e.updateVisible());
267
267
  });
268
268
  p(this, "render", () => {
269
269
  this.renderQueue.forEach((e, t) => {
@@ -301,7 +301,7 @@ class Zi extends O {
301
301
  }
302
302
  }), this.renderQueue.clear();
303
303
  });
304
- this.params = m({}, { debug: !1, config: this.config }, f({}, t)), this.debug = this.params.debug, this.config = this.params.config, this.debug && this.debugUtil.bindLog(), L(1, { namespace: B.PlayAudio });
304
+ this.params = m({}, { debug: !1, config: this.config }, f({}, t)), this.debug = this.params.debug, this.config = this.params.config, this.debug && this.debugUtil.bindLog(), L(1, { namespace: R.PlayAudio });
305
305
  try {
306
306
  Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ || Object.defineProperty(window, "__PANOTAGPLUGIN_DEBUG__", {
307
307
  get: function() {
@@ -520,10 +520,10 @@ class Zi extends O {
520
520
  });
521
521
  }
522
522
  handleShow() {
523
- this.state.visible = !0, this.group.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["state"] }), this.five.needsRender = !0;
523
+ this.state.visible = !0, this.group.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["state"] }), this.updateRender3DDomTag(), this.five.needsRender = !0;
524
524
  }
525
525
  handleHide() {
526
- this.pauseCurrentMedia(), this.state.visible = !1, this.group.visible = !1, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["state"] }), this.five.needsRender = !0;
526
+ this.pauseCurrentMedia(), this.state.visible = !1, this.group.visible = !1, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["state"] }), this.updateRender3DDomTag(), this.five.needsRender = !0;
527
527
  }
528
528
  handleEnable() {
529
529
  this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.five.scene.children.includes(this.group) || this.five.scene.add(this.group), this.group.traverse((e) => {
@@ -553,12 +553,12 @@ class Zi extends O {
553
553
  this.state.enabled && (this.filterPointTag.forEach((h) => h.updateScreenPosition({ force: !0 })), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }));
554
554
  }, i = () => {
555
555
  this.state.enabled && (this.temporaryState.visible = !1, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }));
556
- }, { observe: o, unobserve: s } = C(
556
+ }, { observe: o, unobserve: s } = T(
557
557
  b(() => {
558
558
  this.store.resizeObserverDisposer && i();
559
559
  }, 500),
560
560
  e
561
- ), { observe: n, unobserve: r } = C(
561
+ ), { observe: n, unobserve: r } = T(
562
562
  M(() => t(), 400),
563
563
  e
564
564
  );
@@ -573,13 +573,13 @@ class Zi extends O {
573
573
  if (t.state && i !== void 0) {
574
574
  if (i === !0 && t.screenPosition) {
575
575
  const o = t.getConfig().unfoldedConfig;
576
- T(o).keep !== "unfolded" && (e = !0);
576
+ C(o).keep !== "unfolded" && (e = !0);
577
577
  }
578
578
  t.state.unfolded = i;
579
579
  }
580
580
  }), e && this.filterPointTag.forEach((t) => {
581
581
  const i = t.getConfig().unfoldedConfig;
582
- typeof i == "object" && (i.autoUnfold || i.autoUnfold === !1 || T(i.autoUnfold).enable === !1 || i.keep) || t.state && (t.state.unfolded = !1);
582
+ typeof i == "object" && (i.autoUnfold || i.autoUnfold === !1 || C(i.autoUnfold).enable === !1 || i.keep) || t.state && (t.state.unfolded = !1);
583
583
  });
584
584
  }
585
585
  changeTagMode(e, t) {
@@ -18,7 +18,7 @@ let P = class {
18
18
  /**
19
19
  * @realsee/dnalogel 版本号
20
20
  */
21
- i(this, "VERSION", "3.50.9");
21
+ i(this, "VERSION", "3.50.11");
22
22
  i(this, "NAME");
23
23
  i(this, "five");
24
24
  i(this, "workUtil");
@@ -1,198 +1,198 @@
1
- import { SvelteComponent as N, init as O, safe_not_equal as P, append_styles as S, element as h, space as R, attr as d, toggle_class as x, set_style as j, insert as D, append as c, update_keyed_each as X, destroy_block as Y, noop as T, detach as z, destroy_each as A, text as B, set_data as E } from "../../../vendor/svelte/internal/index.js";
1
+ import { SvelteComponent as O, init as P, safe_not_equal as S, append_styles as X, element as v, space as x, attr as g, toggle_class as k, set_style as z, insert as T, append as h, update_keyed_each as Y, destroy_block as j, noop as R, detach as D, destroy_each as A, text as B, set_data as E } from "../../../vendor/svelte/internal/index.js";
2
2
  function F(i) {
3
- S(i, "svelte-djlmk4", ".floorplan-plugin__rule-labels.svelte-djlmk4.svelte-djlmk4{position:absolute;display:flex}.floorplan-plugin__rule-labels--top.svelte-djlmk4.svelte-djlmk4{left:0;top:-1.25rem}.floorplan-plugin__rule-labels--bottom.svelte-djlmk4.svelte-djlmk4{left:0;bottom:-1.25rem}.floorplan-plugin__rule-labels--left.svelte-djlmk4.svelte-djlmk4{top:0;left:-1.25rem}.floorplan-plugin__rule-labels--right.svelte-djlmk4.svelte-djlmk4{top:0;right:-1.25rem}.floorplan-plugin__rule-line.svelte-djlmk4.svelte-djlmk4{background:#fff;opacity:0.05;width:100%;height:100%}.floorplan-plugin__rule-scale-wrapper.svelte-djlmk4.svelte-djlmk4{position:absolute;width:0.3125rem;height:100%;left:50%;top:0;transform:translateX(-50%)}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-scale-wrapper.svelte-djlmk4{width:100%;height:0.3125rem;top:50%;left:0;transform:translateY(-50%)}.floorplan-plugin__rule-scale.svelte-djlmk4.svelte-djlmk4{position:absolute;background:#fff;opacity:0.05;width:100%;height:0.0625rem}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-scale.svelte-djlmk4{width:0.0625rem;height:100%}.floorplan-plugin__rule-text-wrapper.svelte-djlmk4.svelte-djlmk4{position:absolute}.floorplan-plugin__rule-labels--top.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:100%;height:0;top:0.625rem}.floorplan-plugin__rule-labels--bottom.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:100%;height:0;bottom:0.625rem}.floorplan-plugin__rule-labels--left.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:0;height:100%;left:0.625rem}.floorplan-plugin__rule-labels--right.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:0;height:100%;right:0.625rem}.floorplan-plugin__rule-text-item.svelte-djlmk4.svelte-djlmk4{width:0;height:0;position:absolute;transform:rotate(90deg)}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-text-item.svelte-djlmk4{transform:rotate(0)}.floorplan-plugin__rule-text.svelte-djlmk4.svelte-djlmk4{width:-moz-max-content;width:max-content;transform:translate(-50%, -50%);font-size:0.625rem;color:#fff;opacity:0.2}");
3
+ X(i, "svelte-1fuyezq", ".floorplan-plugin__rule-labels.svelte-1fuyezq.svelte-1fuyezq{position:absolute;display:flex}.floorplan-plugin__rule-labels--top.svelte-1fuyezq.svelte-1fuyezq{left:0;top:-1.25rem}.floorplan-plugin__rule-labels--bottom.svelte-1fuyezq.svelte-1fuyezq{left:0;bottom:-1.25rem}.floorplan-plugin__rule-labels--left.svelte-1fuyezq.svelte-1fuyezq{top:0;left:-1.25rem}.floorplan-plugin__rule-labels--right.svelte-1fuyezq.svelte-1fuyezq{top:0;right:-1.25rem}.floorplan-plugin__rule-line.svelte-1fuyezq.svelte-1fuyezq{background:#fff;opacity:0.2;width:100%;height:100%}.floorplan-plugin__rule-scale-wrapper.svelte-1fuyezq.svelte-1fuyezq{position:absolute;width:0.3125rem;height:100%;left:50%;top:0;transform:translateX(-50%)}.floorplan-plugin__rule-labels.is-row.svelte-1fuyezq .floorplan-plugin__rule-scale-wrapper.svelte-1fuyezq{width:100%;height:0.3125rem;top:50%;left:0;transform:translateY(-50%)}.floorplan-plugin__rule-scale.svelte-1fuyezq.svelte-1fuyezq{position:absolute;background:#fff;opacity:0.2;width:100%;height:0.0625rem}.floorplan-plugin__rule-labels.is-row.svelte-1fuyezq .floorplan-plugin__rule-scale.svelte-1fuyezq{width:0.0625rem;height:100%}.floorplan-plugin__rule-text-wrapper.svelte-1fuyezq.svelte-1fuyezq{position:absolute}.floorplan-plugin__rule-labels--top.svelte-1fuyezq .floorplan-plugin__rule-text-wrapper.svelte-1fuyezq{width:100%;height:0;top:0.625rem}.floorplan-plugin__rule-labels--bottom.svelte-1fuyezq .floorplan-plugin__rule-text-wrapper.svelte-1fuyezq{width:100%;height:0;bottom:0.625rem}.floorplan-plugin__rule-labels--left.svelte-1fuyezq .floorplan-plugin__rule-text-wrapper.svelte-1fuyezq{width:0;height:100%;left:0.625rem}.floorplan-plugin__rule-labels--right.svelte-1fuyezq .floorplan-plugin__rule-text-wrapper.svelte-1fuyezq{width:0;height:100%;right:0.625rem}.floorplan-plugin__rule-text-item.svelte-1fuyezq.svelte-1fuyezq{width:0;height:0;position:absolute;transform:rotate(90deg)}.floorplan-plugin__rule-labels.is-row.svelte-1fuyezq .floorplan-plugin__rule-text-item.svelte-1fuyezq{transform:rotate(0)}.floorplan-plugin__rule-text.svelte-1fuyezq.svelte-1fuyezq{width:-moz-max-content;width:max-content;transform:translate(-50%, -50%);font-size:0.625rem;color:#fff;opacity:0.35}");
4
4
  }
5
- function q(i, e, n) {
5
+ function C(i, l, n) {
6
6
  const s = i.slice();
7
- return s[11] = e[n], s[13] = n, s;
7
+ return s[11] = l[n], s[13] = n, s;
8
8
  }
9
- function C(i, e, n) {
9
+ function H(i, l, n) {
10
10
  const s = i.slice();
11
- return s[14] = e[n], s;
11
+ return s[14] = l[n], s;
12
12
  }
13
- function H(i) {
14
- let e;
13
+ function I(i) {
14
+ let l;
15
15
  return {
16
16
  c() {
17
- e = h("div"), d(e, "class", "floorplan-plugin__rule-scale svelte-djlmk4"), j(
18
- e,
17
+ l = v("div"), g(l, "class", "floorplan-plugin__rule-scale svelte-1fuyezq"), z(
18
+ l,
19
19
  "left",
20
20
  /*rulerLabel*/
21
21
  i[14].left * 100 + "%"
22
- ), j(
23
- e,
22
+ ), z(
23
+ l,
24
24
  "bottom",
25
25
  /*rulerLabel*/
26
26
  i[14].bottom * 100 + "%"
27
27
  );
28
28
  },
29
29
  m(n, s) {
30
- D(n, e, s);
30
+ T(n, l, s);
31
31
  },
32
- p: T,
32
+ p: R,
33
33
  d(n) {
34
- n && z(e);
34
+ n && D(l);
35
35
  }
36
36
  };
37
37
  }
38
- function I(i, e) {
39
- let n, s, p = (
38
+ function L(i, l) {
39
+ let n, s, a = (
40
40
  /*getRuleDistanceText*/
41
- e[1](
41
+ l[1](
42
42
  /*textItem*/
43
- e[11].distance
43
+ l[11].distance
44
44
  ) + ""
45
- ), u, m;
45
+ ), f, _;
46
46
  return {
47
47
  key: i,
48
48
  first: null,
49
49
  c() {
50
- n = h("div"), s = h("div"), u = B(p), m = R(), d(s, "class", "floorplan-plugin__rule-text svelte-djlmk4"), x(
50
+ n = v("div"), s = v("div"), f = B(a), _ = x(), g(s, "class", "floorplan-plugin__rule-text svelte-1fuyezq"), k(
51
51
  s,
52
52
  "is-row",
53
53
  /*isRow*/
54
- e[2]
55
- ), d(n, "class", "floorplan-plugin__rule-text-item svelte-djlmk4"), j(
54
+ l[2]
55
+ ), g(n, "class", "floorplan-plugin__rule-text-item svelte-1fuyezq"), z(
56
56
  n,
57
57
  "left",
58
58
  /*textItem*/
59
- e[11].left * 100 + "%"
60
- ), j(
59
+ l[11].left * 100 + "%"
60
+ ), z(
61
61
  n,
62
62
  "bottom",
63
63
  /*textItem*/
64
- e[11].bottom * 100 + "%"
64
+ l[11].bottom * 100 + "%"
65
65
  ), this.first = n;
66
66
  },
67
- m(r, _) {
68
- D(r, n, _), c(n, s), c(s, u), c(n, m);
67
+ m(r, c) {
68
+ T(r, n, c), h(n, s), h(s, f), h(n, _);
69
69
  },
70
- p(r, _) {
71
- e = r, _ & /*getRuleDistanceText*/
72
- 2 && p !== (p = /*getRuleDistanceText*/
73
- e[1](
70
+ p(r, c) {
71
+ l = r, c & /*getRuleDistanceText*/
72
+ 2 && a !== (a = /*getRuleDistanceText*/
73
+ l[1](
74
74
  /*textItem*/
75
- e[11].distance
76
- ) + "") && E(u, p);
75
+ l[11].distance
76
+ ) + "") && E(f, a);
77
77
  },
78
78
  d(r) {
79
- r && z(n);
79
+ r && D(n);
80
80
  }
81
81
  };
82
82
  }
83
83
  function G(i) {
84
- let e, n, s, p, u, m, r = [], _ = /* @__PURE__ */ new Map(), g, f = (
84
+ let l, n, s, a, f, _, r = [], c = /* @__PURE__ */ new Map(), m, p = (
85
85
  /*rulerLabels*/
86
86
  i[3]
87
- ), a = [];
88
- for (let l = 0; l < f.length; l += 1)
89
- a[l] = H(C(i, f, l));
90
- let v = (
87
+ ), u = [];
88
+ for (let e = 0; e < p.length; e += 1)
89
+ u[e] = I(H(i, p, e));
90
+ let y = (
91
91
  /*rulerTexts*/
92
92
  i[4]
93
93
  );
94
- const w = (l) => (
94
+ const q = (e) => (
95
95
  /*textItemIndex*/
96
- l[13]
96
+ e[13]
97
97
  );
98
- for (let l = 0; l < v.length; l += 1) {
99
- let o = q(i, v, l), t = w(o);
100
- _.set(t, r[l] = I(t, o));
98
+ for (let e = 0; e < y.length; e += 1) {
99
+ let o = C(i, y, e), t = q(o);
100
+ c.set(t, r[e] = L(t, o));
101
101
  }
102
102
  return {
103
103
  c() {
104
- e = h("div"), n = h("div"), s = R(), p = h("div");
105
- for (let l = 0; l < a.length; l += 1)
106
- a[l].c();
107
- u = R(), m = h("div");
108
- for (let l = 0; l < r.length; l += 1)
109
- r[l].c();
110
- d(n, "class", "floorplan-plugin__rule-line svelte-djlmk4"), d(p, "class", "floorplan-plugin__rule-scale-wrapper svelte-djlmk4"), x(
111
- p,
104
+ l = v("div"), n = v("div"), s = x(), a = v("div");
105
+ for (let e = 0; e < u.length; e += 1)
106
+ u[e].c();
107
+ f = x(), _ = v("div");
108
+ for (let e = 0; e < r.length; e += 1)
109
+ r[e].c();
110
+ g(n, "class", "floorplan-plugin__rule-line svelte-1fuyezq"), g(a, "class", "floorplan-plugin__rule-scale-wrapper svelte-1fuyezq"), k(
111
+ a,
112
112
  "is-row",
113
113
  /*isRow*/
114
114
  i[2]
115
- ), d(m, "class", "floorplan-plugin__rule-text-wrapper svelte-djlmk4"), d(e, "class", g = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + /*type*/
116
- i[0] + " svelte-djlmk4"), x(
117
- e,
115
+ ), g(_, "class", "floorplan-plugin__rule-text-wrapper svelte-1fuyezq"), g(l, "class", m = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + /*type*/
116
+ i[0] + " svelte-1fuyezq"), k(
117
+ l,
118
118
  "is-row",
119
119
  /*isRow*/
120
120
  i[2]
121
- ), j(
122
- e,
121
+ ), z(
122
+ l,
123
123
  "width",
124
124
  /*isRow*/
125
125
  i[2] ? "100%" : 1 / 16 + "rem"
126
- ), j(e, "height", /*isRow*/
126
+ ), z(l, "height", /*isRow*/
127
127
  i[2] ? 1 / 16 + "rem" : "100%");
128
128
  },
129
- m(l, o) {
130
- D(l, e, o), c(e, n), c(e, s), c(e, p);
131
- for (let t = 0; t < a.length; t += 1)
132
- a[t] && a[t].m(p, null);
133
- c(e, u), c(e, m);
129
+ m(e, o) {
130
+ T(e, l, o), h(l, n), h(l, s), h(l, a);
131
+ for (let t = 0; t < u.length; t += 1)
132
+ u[t] && u[t].m(a, null);
133
+ h(l, f), h(l, _);
134
134
  for (let t = 0; t < r.length; t += 1)
135
- r[t] && r[t].m(m, null);
135
+ r[t] && r[t].m(_, null);
136
136
  },
137
- p(l, [o]) {
137
+ p(e, [o]) {
138
138
  if (o & /*rulerLabels*/
139
139
  8) {
140
- f = /*rulerLabels*/
141
- l[3];
140
+ p = /*rulerLabels*/
141
+ e[3];
142
142
  let t;
143
- for (t = 0; t < f.length; t += 1) {
144
- const y = C(l, f, t);
145
- a[t] ? a[t].p(y, o) : (a[t] = H(y), a[t].c(), a[t].m(p, null));
143
+ for (t = 0; t < p.length; t += 1) {
144
+ const w = H(e, p, t);
145
+ u[t] ? u[t].p(w, o) : (u[t] = I(w), u[t].c(), u[t].m(a, null));
146
146
  }
147
- for (; t < a.length; t += 1)
148
- a[t].d(1);
149
- a.length = f.length;
147
+ for (; t < u.length; t += 1)
148
+ u[t].d(1);
149
+ u.length = p.length;
150
150
  }
151
151
  o & /*rulerTexts, isRow, getRuleDistanceText*/
152
- 22 && (v = /*rulerTexts*/
153
- l[4], r = X(r, o, w, 1, l, v, _, m, Y, I, null, q)), o & /*type*/
154
- 1 && g !== (g = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + /*type*/
155
- l[0] + " svelte-djlmk4") && d(e, "class", g), o & /*type, isRow*/
156
- 5 && x(
157
- e,
152
+ 22 && (y = /*rulerTexts*/
153
+ e[4], r = Y(r, o, q, 1, e, y, c, _, j, L, null, C)), o & /*type*/
154
+ 1 && m !== (m = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + /*type*/
155
+ e[0] + " svelte-1fuyezq") && g(l, "class", m), o & /*type, isRow*/
156
+ 5 && k(
157
+ l,
158
158
  "is-row",
159
159
  /*isRow*/
160
- l[2]
160
+ e[2]
161
161
  );
162
162
  },
163
- i: T,
164
- o: T,
165
- d(l) {
166
- l && z(e), A(a, l);
163
+ i: R,
164
+ o: R,
165
+ d(e) {
166
+ e && D(l), A(u, e);
167
167
  for (let o = 0; o < r.length; o += 1)
168
168
  r[o].d();
169
169
  }
170
170
  };
171
171
  }
172
- const k = 1e3, b = 180;
173
- function J(i, e, n) {
174
- let { type: s } = e, { data: p } = e, { bounding: u } = e, { getRuleDistanceText: m } = e;
175
- const r = s === "top" || s === "bottom", _ = u.max.x - u.min.x - (k - b) * 2, g = u.max.y - u.min.y - (k - b) * 2, f = p.map(([l, o]) => r ? [l.x, o.x] : [l.y, o.y]).flat().sort().filter((l, o, t) => o === 0 ? !0 : l !== t[o - 1]), a = f.map((l) => {
176
- const o = r ? (l - u.min.x - k + b) / _ : 0, t = r ? 0 : (l - u.min.y - k + b) / g;
172
+ const d = 1e3, b = 180;
173
+ function J(i, l, n) {
174
+ let { type: s } = l, { data: a } = l, { bounding: f } = l, { getRuleDistanceText: _ } = l;
175
+ const r = s === "top" || s === "bottom", c = f.max.x - f.min.x - (d - b) * 2, m = f.max.y - f.min.y - (d - b) * 2, p = a.map(([e, o]) => r ? [e.x, o.x] : [e.y, o.y]).flat().sort().filter((e, o, t) => o === 0 ? !0 : e !== t[o - 1]), u = p.map((e) => {
176
+ const o = r ? (e - f.min.x - d + b) / c : 0, t = r ? 0 : (e - f.min.y - d + b) / m;
177
177
  return { left: o, bottom: t };
178
178
  });
179
- a.unshift({ left: 0, bottom: 0 }), a.push(r ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
180
- const v = f[f.length - 1] - f[0], w = f.map((l, o, t) => {
181
- const y = o === 0 ? 0 : l - t[o - 1], W = o === 0 ? 0 : (l + t[o - 1]) / 2, L = r ? (W - u.min.x - k + b) / _ : 0, M = r ? 0 : (W - u.min.y - k + b) / g;
182
- return { left: L, bottom: M, distance: y };
183
- }).filter(({ distance: l }) => l / v > 0.1);
184
- return i.$$set = (l) => {
185
- "type" in l && n(0, s = l.type), "data" in l && n(5, p = l.data), "bounding" in l && n(6, u = l.bounding), "getRuleDistanceText" in l && n(1, m = l.getRuleDistanceText);
186
- }, [s, m, r, a, w, p, u];
179
+ u.unshift({ left: 0, bottom: 0 }), u.push(r ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
180
+ const y = p[p.length - 1] - p[0], q = p.map((e, o, t) => {
181
+ const w = o === 0 ? 0 : e - t[o - 1], W = o === 0 ? 0 : (e + t[o - 1]) / 2, M = r ? (W - f.min.x - d + b) / c : 0, N = r ? 0 : (W - f.min.y - d + b) / m;
182
+ return { left: M, bottom: N, distance: w };
183
+ }).filter(({ distance: e }) => e / y > 0.1);
184
+ return i.$$set = (e) => {
185
+ "type" in e && n(0, s = e.type), "data" in e && n(5, a = e.data), "bounding" in e && n(6, f = e.bounding), "getRuleDistanceText" in e && n(1, _ = e.getRuleDistanceText);
186
+ }, [s, _, r, u, q, a, f];
187
187
  }
188
- class Q extends N {
189
- constructor(e) {
190
- super(), O(
188
+ class Q extends O {
189
+ constructor(l) {
190
+ super(), P(
191
191
  this,
192
- e,
192
+ l,
193
193
  J,
194
194
  G,
195
- P,
195
+ S,
196
196
  {
197
197
  type: 0,
198
198
  data: 5,
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.50.9",
3
+ "%c %c@realsee/dnalogel %cv3.50.11",
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.50.9",
3
+ "version": "3.50.11",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",