@realsee/dnalogel 3.42.0 → 3.43.0

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,8 @@
1
- import { SvelteComponent as F, init as M, safe_not_equal as U, append_styles as W, element as h, space as _, create_component as I, attr as z, set_style as y, toggle_class as b, insert as X, append as m, mount_component as R, listen as B, transition_in as j, transition_out as q, detach as E, destroy_component as A, getContext as G, bubble as H } from "../../../vendor/svelte/internal/index.js";
2
- import J from "./Shadow.js";
3
- import K from "./Icon/Icon.js";
4
- import { Image_Default_Point as N } from "../../Assets/Icon.js";
1
+ import { SvelteComponent as j, init as q, safe_not_equal as O, append_styles as U, element as h, space as _, create_component as S, attr as z, set_style as y, toggle_class as b, insert as W, append as m, mount_component as A, listen as X, transition_in as D, transition_out as I, detach as B, destroy_component as R, getContext as E, bubble as G } from "../../../vendor/svelte/internal/index.js";
2
+ import H from "./Shadow.js";
3
+ import J from "./Icon/Icon.js";
4
+ import { Image_Default_Point as K } from "../../Assets/Icon.js";
5
+ import { isModelLike as N } from "../../../shared-utils/five/mode.js";
5
6
  import "three";
6
7
  import "hammerjs";
7
8
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -28,152 +29,152 @@ import "../../../shared-utils/three/centerPoint.js";
28
29
  import "../../../shared-utils/three/getObjectVisible.js";
29
30
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
30
31
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
31
- function O(t) {
32
- W(t, "svelte-7aiuwz", '@charset "UTF-8";.tag-point-click-helper.svelte-7aiuwz.svelte-7aiuwz{position:absolute;pointer-events:auto;cursor:pointer;width:calc(100% + 0.75rem);height:calc(100% + 0.75rem);left:50%;top:50%;transform:translate(-50%, -50%)}.tag-point-wrapper.svelte-7aiuwz.svelte-7aiuwz{pointer-events:none;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.tag-folded-point.svelte-7aiuwz.svelte-7aiuwz,.tag-unfolded-point.svelte-7aiuwz.svelte-7aiuwz{transition:all 0.5s}.tag-point-wrapper.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;border-radius:50%}.tag-point-wrapper.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.3125rem;height:0.3125rem;border-radius:50%;background-color:white}.tag-point-wrapper.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz:before{content:"";position:absolute;width:0.875rem;height:0.875rem;border-radius:50%;background-color:rgba(0, 0, 0, 0.2)}.tag-point-wrapper.folded.svelte-7aiuwz .tag-folded-point.svelte-7aiuwz{opacity:1;scale:1}.tag-point-wrapper.folded.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz{opacity:0;scale:1}.tag-point-wrapper.unfolded.svelte-7aiuwz .tag-folded-point.svelte-7aiuwz{opacity:0;scale:0.2}.tag-point-wrapper.unfolded.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz{opacity:1;scale:1}');
32
+ function Q(e) {
33
+ U(e, "svelte-7aiuwz", '@charset "UTF-8";.tag-point-click-helper.svelte-7aiuwz.svelte-7aiuwz{position:absolute;pointer-events:auto;cursor:pointer;width:calc(100% + 0.75rem);height:calc(100% + 0.75rem);left:50%;top:50%;transform:translate(-50%, -50%)}.tag-point-wrapper.svelte-7aiuwz.svelte-7aiuwz{pointer-events:none;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.tag-folded-point.svelte-7aiuwz.svelte-7aiuwz,.tag-unfolded-point.svelte-7aiuwz.svelte-7aiuwz{transition:all 0.5s}.tag-point-wrapper.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;border-radius:50%}.tag-point-wrapper.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.3125rem;height:0.3125rem;border-radius:50%;background-color:white}.tag-point-wrapper.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz:before{content:"";position:absolute;width:0.875rem;height:0.875rem;border-radius:50%;background-color:rgba(0, 0, 0, 0.2)}.tag-point-wrapper.folded.svelte-7aiuwz .tag-folded-point.svelte-7aiuwz{opacity:1;scale:1}.tag-point-wrapper.folded.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz{opacity:0;scale:1}.tag-point-wrapper.unfolded.svelte-7aiuwz .tag-folded-point.svelte-7aiuwz{opacity:0;scale:0.2}.tag-point-wrapper.unfolded.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz{opacity:1;scale:1}');
33
34
  }
34
- function Q(t) {
35
- let i, r, d, p, c, u, w, o, a, l, g, v;
36
- return p = new J({
35
+ function V(e) {
36
+ let o, a, u, p, c, d, w, t, r, l, g, v;
37
+ return p = new H({
37
38
  props: {
38
39
  center: !0,
39
40
  blurRadius: 15,
40
41
  spreadRadius: 5,
41
42
  opacity: 0.3
42
43
  }
43
- }), a = new K({
44
+ }), r = new J({
44
45
  props: {
45
46
  icon: (
46
47
  /*url*/
47
- t[2]
48
+ e[2]
48
49
  ),
49
50
  width: (
50
51
  /*width*/
51
- t[1]
52
+ e[1]
52
53
  )
53
54
  }
54
- }), a.$on(
55
+ }), r.$on(
55
56
  "iconLoaded",
56
57
  /*iconLoaded_handler*/
57
- t[7]
58
+ e[7]
58
59
  ), {
59
60
  c() {
60
- i = h("div"), r = h("div"), d = _(), I(p.$$.fragment), c = _(), u = h("div"), w = _(), o = h("div"), I(a.$$.fragment), z(r, "class", "tag-point-click-helper svelte-7aiuwz"), z(u, "class", "tag-unfolded-point svelte-7aiuwz"), y(
61
- u,
61
+ o = h("div"), a = h("div"), u = _(), S(p.$$.fragment), c = _(), d = h("div"), w = _(), t = h("div"), S(r.$$.fragment), z(a, "class", "tag-point-click-helper svelte-7aiuwz"), z(d, "class", "tag-unfolded-point svelte-7aiuwz"), y(
62
+ d,
62
63
  "transition-delay",
63
64
  /*folded*/
64
- (t[3] ? (
65
+ (e[3] ? (
65
66
  /*foldDelay*/
66
- t[5]
67
+ e[5]
67
68
  ) : 0) + "ms"
68
- ), z(o, "class", "tag-folded-point svelte-7aiuwz"), y(
69
- o,
69
+ ), z(t, "class", "tag-folded-point svelte-7aiuwz"), y(
70
+ t,
70
71
  "transition-delay",
71
72
  /*folded*/
72
- (t[3] ? (
73
+ (e[3] ? (
73
74
  /*foldDelay*/
74
- t[5]
75
+ e[5]
75
76
  ) : 0) + "ms"
76
- ), z(i, "class", "tag-point-wrapper svelte-7aiuwz"), b(
77
- i,
77
+ ), z(o, "class", "tag-point-wrapper svelte-7aiuwz"), b(
78
+ o,
78
79
  "unfolded",
79
80
  /*unfolded*/
80
- t[0]
81
+ e[0]
81
82
  ), b(
82
- i,
83
+ o,
83
84
  "folded",
84
85
  /*folded*/
85
- t[3]
86
+ e[3]
86
87
  );
87
88
  },
88
- m(e, s) {
89
- X(e, i, s), m(i, r), m(i, d), R(p, i, null), m(i, c), m(i, u), m(i, w), m(i, o), R(a, o, null), l = !0, g || (v = B(
90
- r,
89
+ m(i, s) {
90
+ W(i, o, s), m(o, a), m(o, u), A(p, o, null), m(o, c), m(o, d), m(o, w), m(o, t), A(r, t, null), l = !0, g || (v = X(
91
+ a,
91
92
  "click",
92
93
  /*handlePointClick*/
93
- t[4]
94
+ e[4]
94
95
  ), g = !0);
95
96
  },
96
- p(e, [s]) {
97
+ p(i, [s]) {
97
98
  s & /*folded*/
98
99
  8 && y(
99
- u,
100
+ d,
100
101
  "transition-delay",
101
102
  /*folded*/
102
- (e[3] ? (
103
+ (i[3] ? (
103
104
  /*foldDelay*/
104
- e[5]
105
+ i[5]
105
106
  ) : 0) + "ms"
106
107
  );
107
108
  const n = {};
108
109
  s & /*url*/
109
110
  4 && (n.icon = /*url*/
110
- e[2]), s & /*width*/
111
+ i[2]), s & /*width*/
111
112
  2 && (n.width = /*width*/
112
- e[1]), a.$set(n), s & /*folded*/
113
+ i[1]), r.$set(n), s & /*folded*/
113
114
  8 && y(
114
- o,
115
+ t,
115
116
  "transition-delay",
116
117
  /*folded*/
117
- (e[3] ? (
118
+ (i[3] ? (
118
119
  /*foldDelay*/
119
- e[5]
120
+ i[5]
120
121
  ) : 0) + "ms"
121
122
  ), (!l || s & /*unfolded*/
122
123
  1) && b(
123
- i,
124
+ o,
124
125
  "unfolded",
125
126
  /*unfolded*/
126
- e[0]
127
+ i[0]
127
128
  ), (!l || s & /*folded*/
128
129
  8) && b(
129
- i,
130
+ o,
130
131
  "folded",
131
132
  /*folded*/
132
- e[3]
133
+ i[3]
133
134
  );
134
135
  },
135
- i(e) {
136
- l || (j(p.$$.fragment, e), j(a.$$.fragment, e), l = !0);
136
+ i(i) {
137
+ l || (D(p.$$.fragment, i), D(r.$$.fragment, i), l = !0);
137
138
  },
138
- o(e) {
139
- q(p.$$.fragment, e), q(a.$$.fragment, e), l = !1;
139
+ o(i) {
140
+ I(p.$$.fragment, i), I(r.$$.fragment, i), l = !1;
140
141
  },
141
- d(e) {
142
- e && E(i), A(p), A(a), g = !1, v();
142
+ d(i) {
143
+ i && B(o), R(p), R(r), g = !1, v();
143
144
  }
144
145
  };
145
146
  }
146
- function V(t, i, r) {
147
- let d, p, c, u;
148
- const w = G("hooks");
149
- let { tag: o } = i, a, l = !1;
147
+ function Y(e, o, a) {
148
+ let u, p, c, d;
149
+ const w = E("hooks");
150
+ let { tag: t } = o, r, l = !1;
150
151
  const g = () => {
151
- a !== void 0 && clearTimeout(a), l = !0, a = setTimeout(
152
+ r !== void 0 && clearTimeout(r), l = !0, r = setTimeout(
152
153
  () => {
153
154
  l = !1;
154
155
  },
155
156
  800
156
157
  );
157
158
  }, v = (n) => {
158
- l || w.emit("click", { event: n, target: "TagPoint", tag: o });
159
- }, e = (() => o.contentType === "Text" && o.data.appearance === "plane" ? 500 : 800)();
159
+ l || (console.log("handleClick", t.entryFromModel), t.entryFromModel && N(t.five.state.mode) ? t.find({ targetMode: "Panorama" }).then(() => t.unfoldAndFoldOthers()) : w.emit("click", { event: n, target: "TagPoint", tag: t }));
160
+ }, i = (() => t.contentType === "Text" && t.data.appearance === "plane" ? 500 : 800)();
160
161
  function s(n) {
161
- H.call(this, t, n);
162
+ G.call(this, e, n);
162
163
  }
163
- return t.$$set = (n) => {
164
- "tag" in n && r(6, o = n.tag);
165
- }, t.$$.update = () => {
164
+ return e.$$set = (n) => {
165
+ "tag" in n && a(6, t = n.tag);
166
+ }, e.$$.update = () => {
166
167
  var n, k, T, L;
167
- t.$$.dirty & /*tag*/
168
- 64 && r(0, d = (n = o.state) == null ? void 0 : n.unfolded), t.$$.dirty & /*unfolded*/
169
- 1 && r(3, p = !d), t.$$.dirty & /*tag*/
170
- 64 && r(2, c = (T = (k = o.style) == null ? void 0 : k.point) != null && T.url ? (L = o.style) == null ? void 0 : L.point : { url: N }), t.$$.dirty & /*tag*/
171
- 64 && r(1, u = (() => {
172
- var $, C, S, D;
173
- const P = (C = ($ = o.style) == null ? void 0 : $.point) == null ? void 0 : C.width;
174
- if (typeof P == "number")
175
- return P;
176
- const f = (D = (S = o.style) == null ? void 0 : S.point) == null ? void 0 : D.size;
168
+ e.$$.dirty & /*tag*/
169
+ 64 && a(0, u = (n = t.state) == null ? void 0 : n.unfolded), e.$$.dirty & /*unfolded*/
170
+ 1 && a(3, p = !u), e.$$.dirty & /*tag*/
171
+ 64 && a(2, c = (T = (k = t.style) == null ? void 0 : k.point) != null && T.url ? (L = t.style) == null ? void 0 : L.point : { url: K }), e.$$.dirty & /*tag*/
172
+ 64 && a(1, d = (() => {
173
+ var P, C, F, $;
174
+ const M = (C = (P = t.style) == null ? void 0 : P.point) == null ? void 0 : C.width;
175
+ if (typeof M == "number")
176
+ return M;
177
+ const f = ($ = (F = t.style) == null ? void 0 : F.point) == null ? void 0 : $.size;
177
178
  if (typeof f == "number")
178
179
  return f;
179
180
  if (f === "S")
@@ -186,21 +187,21 @@ function V(t, i, r) {
186
187
  return 28;
187
188
  })());
188
189
  }, g(), [
189
- d,
190
190
  u,
191
+ d,
191
192
  c,
192
193
  p,
193
194
  v,
194
- e,
195
- o,
195
+ i,
196
+ t,
196
197
  s
197
198
  ];
198
199
  }
199
- class $t extends F {
200
- constructor(i) {
201
- super(), M(this, i, V, Q, U, { tag: 6 }, O);
200
+ class Ft extends j {
201
+ constructor(o) {
202
+ super(), q(this, o, Y, V, O, { tag: 6 }, Q);
202
203
  }
203
204
  }
204
205
  export {
205
- $t as default
206
+ Ft as default
206
207
  };