@realsee/dnalogel 3.52.0 → 3.52.2

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,53 +1,54 @@
1
1
  var _ = Object.defineProperty, H = Object.defineProperties;
2
2
  var I = Object.getOwnPropertyDescriptors;
3
- var F = Object.getOwnPropertySymbols;
4
- var k = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable;
5
- var A = (o, n, t) => n in o ? _(o, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[n] = t, P = (o, n) => {
3
+ var T = Object.getOwnPropertySymbols;
4
+ var j = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
5
+ var O = (o, n, t) => n in o ? _(o, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[n] = t, P = (o, n) => {
6
6
  for (var t in n || (n = {}))
7
- k.call(n, t) && A(o, t, n[t]);
8
- if (F)
9
- for (var t of F(n))
10
- q.call(n, t) && A(o, t, n[t]);
7
+ j.call(n, t) && O(o, t, n[t]);
8
+ if (T)
9
+ for (var t of T(n))
10
+ k.call(n, t) && O(o, t, n[t]);
11
11
  return o;
12
- }, u = (o, n) => H(o, I(n));
13
- var R = (o, n, t) => (A(o, typeof n != "symbol" ? n + "" : n, t), t);
14
- var O = (o, n, t) => new Promise((f, m) => {
12
+ }, p = (o, n) => H(o, I(n));
13
+ var R = (o, n, t) => (O(o, typeof n != "symbol" ? n + "" : n, t), t);
14
+ var A = (o, n, t) => new Promise((f, m) => {
15
15
  var a = (c) => {
16
16
  try {
17
- d(t.next(c));
17
+ h(t.next(c));
18
18
  } catch (w) {
19
19
  m(w);
20
20
  }
21
21
  }, i = (c) => {
22
22
  try {
23
- d(t.throw(c));
23
+ h(t.throw(c));
24
24
  } catch (w) {
25
25
  m(w);
26
26
  }
27
- }, d = (c) => c.done ? f(c.value) : Promise.resolve(c.value).then(a, i);
28
- d((t = t.apply(o, n)).next());
27
+ }, h = (c) => c.done ? f(c.value) : Promise.resolve(c.value).then(a, i);
28
+ h((t = t.apply(o, n)).next());
29
29
  });
30
- import { BaseObject as G } from "../Base/index.js";
30
+ import { BaseObject as q } from "../Base/index.js";
31
31
  import * as s from "three";
32
32
  import { PolylineWithDotsMesh as b } from "../../Meshes/Polyline.js";
33
- import { RectangleMeshEditor as J } from "../../Editors/RectangleMeshEditor.js";
34
- import { RectangleWithEdgeMesh as T } from "../../Meshes/RectangleWithEdge.js";
35
- import { sortPositionsByCameraPosition as B } from "../../utils/sortPositionsByCameraPosition.js";
36
- import { Sculpt as D } from "../../index.js";
37
- class ne extends G {
33
+ import { RectangleMeshEditor as G } from "../../Editors/RectangleMeshEditor.js";
34
+ import { RectangleWithEdgeMesh as F } from "../../Meshes/RectangleWithEdge.js";
35
+ import { sortPositionsByCameraPosition as W } from "../../utils/sortPositionsByCameraPosition.js";
36
+ import { Sculpt as B } from "../../index.js";
37
+ import { vector3ToArray as J } from "../../../shared-utils/three/vector3ToArray.js";
38
+ class se extends q {
38
39
  constructor(t, f) {
39
40
  super(t, f);
40
41
  R(this, "type", "Rectangle");
41
42
  R(this, "rectangleMesh");
42
43
  R(this, "_editor");
43
- t && (this.rectangleMesh = new T(P(P({}, t.style), t)), this.add(this.rectangleMesh));
44
+ t && (this.rectangleMesh = new F(P(P({}, t.style), t)), this.add(this.rectangleMesh));
44
45
  }
45
46
  get editor() {
46
- return this._editor || (this._editor = new J(this.rectangleMesh)), this._editor;
47
+ return this._editor || (this._editor = new G(this.rectangleMesh)), this._editor;
47
48
  }
48
49
  get data() {
49
- return u(P({}, this.baseData), {
50
- points: this.rectangleMesh.builtPoints.map((t) => t.toArray()),
50
+ return p(P({}, this.baseData), {
51
+ points: J(this.applyObjectMatrixWorld(this.rectangleMesh.points, this.rectangleMesh)),
51
52
  style: {
52
53
  color: this.rectangleMesh.color.getHex(),
53
54
  opacity: this.rectangleMesh.opacity,
@@ -65,9 +66,9 @@ class ne extends G {
65
66
  (t = this.rectangleMesh) == null || t.unhighlight();
66
67
  }
67
68
  create(t) {
68
- return O(this, null, function* () {
69
+ return A(this, null, function* () {
69
70
  this.removeChildren();
70
- const f = new T(t);
71
+ const f = new F(t);
71
72
  this.rectangleMesh = f, this.add(this.rectangleMesh), yield K(this.rectangleMesh, this.pointSelector, t), this.config.canEdit && this.editor.enable();
72
73
  });
73
74
  }
@@ -78,23 +79,23 @@ function K(o, n, t) {
78
79
  }
79
80
  function Q(o, n, t) {
80
81
  return new Promise((f, m) => {
81
- var x;
82
+ var C;
82
83
  const a = o.parent;
83
84
  if (!a)
84
85
  return m(new Error("No container"));
85
- const i = (x = t == null ? void 0 : t.limit) != null ? x : "none", d = new b(u(P({}, o.style), { dashed: !0, lengthEnable: !0 })), c = new b(u(P({}, o.style), { dashed: !0, lengthEnable: !1 })), w = new b(u(P({}, o.style), { dashed: !1, lengthEnable: !1 }));
86
- a.add(d, w, c), n.enable();
86
+ const i = (C = t == null ? void 0 : t.limit) != null ? C : "none", h = new b(p(P({}, o.style), { dashed: !0, lengthEnable: !0 })), c = new b(p(P({}, o.style), { dashed: !0, lengthEnable: !1 })), w = new b(p(P({}, o.style), { dashed: !1, lengthEnable: !1 }));
87
+ a.add(h, w, c), n.enable();
87
88
  const e = [];
88
- let l = new s.Vector3(), E = new s.Vector3();
89
- const h = new s.Plane(), v = () => {
90
- e.push(l.clone()), e.length === 1 ? (i === "xoz" && h.setFromNormalAndCoplanarPoint(new s.Vector3(0, 1, 0), e[0]), i === "none" && h.setFromNormalAndCoplanarPoint(E, e[0])) : e.length === 2 ? i === "y" || i === "xoz" ? (y(), f()) : w.setPoints([e[0], e[1]]) : e.length === 3 && (y(), f());
89
+ let l = new s.Vector3(), v = new s.Vector3();
90
+ const d = new s.Plane(), E = () => {
91
+ e.push(l.clone()), e.length === 1 ? (i === "xoz" && d.setFromNormalAndCoplanarPoint(new s.Vector3(0, 1, 0), e[0]), i === "none" && d.setFromNormalAndCoplanarPoint(v, e[0])) : e.length === 2 ? i === "y" || i === "xoz" ? (y(), f()) : w.setPoints([e[0], e[1]]) : e.length === 3 && (y(), f());
91
92
  }, L = (r) => {
92
93
  var N;
93
94
  if (!(r != null && r.raycaster))
94
95
  return;
95
96
  const M = (N = e.at(-1)) == null ? void 0 : N.clone();
96
97
  if (e.length === 0) {
97
- l = r.point.clone(), E = r.face.normal;
98
+ l = r.point.clone(), v = r.face.normal;
98
99
  return;
99
100
  }
100
101
  if (e.length === 1 && i === "y") {
@@ -103,80 +104,80 @@ function Q(o, n, t) {
103
104
  return;
104
105
  }
105
106
  if (e.length === 1 && i === "xoz") {
106
- const p = new s.Line3(new s.Vector3(1, 0, 0).add(e[0]), new s.Vector3(-1, 0, 0).add(e[0])), g = r.raycaster.ray.intersectPlane(h, new s.Vector3()), V = p.closestPointToPoint(g, !1, new s.Vector3());
107
+ const u = new s.Line3(new s.Vector3(1, 0, 0).add(e[0]), new s.Vector3(-1, 0, 0).add(e[0])), g = r.raycaster.ray.intersectPlane(d, new s.Vector3()), V = u.closestPointToPoint(g, !1, new s.Vector3());
107
108
  o.setPoints([e[0], V, g]);
108
109
  return;
109
110
  }
110
111
  if (e.length === 1 && i === "none") {
111
- h ? (l = r.raycaster.ray.intersectPlane(h, new s.Vector3()), c.setPoints([l, r.point])) : l = r.point.clone(), d.setPoints([M, l]);
112
+ d ? (l = r.raycaster.ray.intersectPlane(d, new s.Vector3()), c.setPoints([l, r.point])) : l = r.point.clone(), h.setPoints([M, l]);
112
113
  return;
113
114
  }
114
115
  if (e.length === 2 && i === "none") {
115
- a.remove(d);
116
- const p = r.raycaster.ray.intersectPlane(h, new s.Vector3()), g = e[0].distanceTo(e[1]) / 2, V = new s.Vector3().lerpVectors(e[0], e[1], 0.5), z = new s.Vector3().subVectors(p, V).normalize();
116
+ a.remove(h);
117
+ const u = r.raycaster.ray.intersectPlane(d, new s.Vector3()), g = e[0].distanceTo(e[1]) / 2, V = new s.Vector3().lerpVectors(e[0], e[1], 0.5), z = new s.Vector3().subVectors(u, V).normalize();
117
118
  l = new s.Vector3().addVectors(V, z.multiplyScalar(g));
118
- const U = [e[0], l, e[1]], W = B(U, D.modules.five.camera.position);
119
- o.setPoints(W);
119
+ const D = [e[0], l, e[1]], U = W(D, B.modules.five.camera.position);
120
+ o.setPoints(U);
120
121
  return;
121
122
  }
122
123
  }, y = () => {
123
- n.off("select", v), n.off("intersectionUpdate", L), n.off("disable", C), n.disable(), a == null || a.remove(d, w, c);
124
- }, C = () => {
124
+ n.off("select", E), n.off("intersectionUpdate", L), n.off("disable", x), n.disable(), a == null || a.remove(h, w, c);
125
+ }, x = () => {
125
126
  y(), a == null || a.remove(o), m(new Error("Cancelled"));
126
127
  };
127
- n.on("select", v), n.on("intersectionUpdate", L), n.on("disable", C);
128
+ n.on("select", E), n.on("intersectionUpdate", L), n.on("disable", x);
128
129
  });
129
130
  }
130
131
  function X(o, n, t) {
131
132
  return new Promise((f, m) => {
132
- var x;
133
+ var C;
133
134
  const a = o.parent;
134
135
  if (!a)
135
136
  return m(new Error("No container"));
136
- const i = (x = t == null ? void 0 : t.limit) != null ? x : "none", d = new b(u(P({}, o.style), { dashed: !0, lengthEnable: !0 })), c = new b(u(P({}, o.style), { dashed: !0, lengthEnable: !1 })), w = new b(u(P({}, o.style), { dashed: !1, lengthEnable: !1 }));
137
- a.add(d, w, c), n.enable();
137
+ const i = (C = t == null ? void 0 : t.limit) != null ? C : "none", h = new b(p(P({}, o.style), { dashed: !0, lengthEnable: !0 })), c = new b(p(P({}, o.style), { dashed: !0, lengthEnable: !1 })), w = new b(p(P({}, o.style), { dashed: !1, lengthEnable: !1 }));
138
+ a.add(h, w, c), n.enable();
138
139
  const e = [];
139
- let l = new s.Vector3(), E = new s.Vector3();
140
- const h = new s.Plane(), v = () => {
141
- e.push(l.clone()), e.length === 1 ? (i === "xoz" && h.setFromNormalAndCoplanarPoint(new s.Vector3(0, 1, 0), e[0]), i === "none" && h.setFromNormalAndCoplanarPoint(E, e[0])) : e.length === 2 ? (i === "y" && h.setFromCoplanarPoints(e[0], e[1], new s.Vector3(0, 1, 0).add(e[0])), w.setPoints([e[0], e[1]])) : e.length === 3 && (y(), f());
140
+ let l = new s.Vector3(), v = new s.Vector3();
141
+ const d = new s.Plane(), E = () => {
142
+ e.push(l.clone()), e.length === 1 ? (i === "xoz" && d.setFromNormalAndCoplanarPoint(new s.Vector3(0, 1, 0), e[0]), i === "none" && d.setFromNormalAndCoplanarPoint(v, e[0])) : e.length === 2 ? (i === "y" && d.setFromCoplanarPoints(e[0], e[1], new s.Vector3(0, 1, 0).add(e[0])), w.setPoints([e[0], e[1]])) : e.length === 3 && (y(), f());
142
143
  }, L = (r) => {
143
144
  var N;
144
145
  if (!(r != null && r.raycaster))
145
146
  return;
146
147
  const M = (N = e.at(-1)) == null ? void 0 : N.clone();
147
148
  if (e.length === 0) {
148
- l = r.point.clone(), E = r.face.normal;
149
+ l = r.point.clone(), v = r.face.normal;
149
150
  return;
150
151
  }
151
152
  if (e.length === 1 && i === "y") {
152
- l = r.point, c.setPoints([]), d.setPoints([M, l]);
153
+ l = r.point, c.setPoints([]), h.setPoints([M, l]);
153
154
  return;
154
155
  }
155
156
  if (e.length === 1 && i === "xoz") {
156
- l = r.raycaster.ray.intersectPlane(h, new s.Vector3()), c.setPoints([l, r.point]), d.setPoints([M, l]);
157
+ l = r.raycaster.ray.intersectPlane(d, new s.Vector3()), c.setPoints([l, r.point]), h.setPoints([M, l]);
157
158
  return;
158
159
  }
159
160
  if (e.length === 1 && i === "none") {
160
- l = r.raycaster.ray.intersectPlane(h, new s.Vector3()), c.setPoints([l, r.point]), d.setPoints([M, l]);
161
+ l = r.raycaster.ray.intersectPlane(d, new s.Vector3()), c.setPoints([l, r.point]), h.setPoints([M, l]);
161
162
  return;
162
163
  }
163
164
  if (e.length === 2) {
164
- a.remove(d);
165
- const p = new s.Vector3().crossVectors(e[0].clone().sub(e[1]), h.normal).normalize();
166
- l = new s.Line3(e[1].clone().add(p), e[1].clone().sub(p)).closestPointToPoint(r.point, !1, new s.Vector3());
167
- const V = [e[0], e[1], l], z = B(V, D.modules.five.camera.position);
165
+ a.remove(h);
166
+ const u = new s.Vector3().crossVectors(e[0].clone().sub(e[1]), d.normal).normalize();
167
+ l = new s.Line3(e[1].clone().add(u), e[1].clone().sub(u)).closestPointToPoint(r.point, !1, new s.Vector3());
168
+ const V = [e[0], e[1], l], z = W(V, B.modules.five.camera.position);
168
169
  o.setPoints(z);
169
170
  return;
170
171
  }
171
172
  }, y = () => {
172
- n.off("select", v), n.off("intersectionUpdate", L), n.off("disable", C), n.disable(), a == null || a.remove(d, w, c);
173
- }, C = () => {
173
+ n.off("select", E), n.off("intersectionUpdate", L), n.off("disable", x), n.disable(), a == null || a.remove(h, w, c);
174
+ }, x = () => {
174
175
  y(), a == null || a.remove(o), m(new Error("Cancelled"));
175
176
  };
176
- n.on("select", v), n.on("intersectionUpdate", L), n.on("disable", C);
177
+ n.on("select", E), n.on("intersectionUpdate", L), n.on("disable", x);
177
178
  });
178
179
  }
179
180
  export {
180
- ne as Rectangle,
181
+ se as Rectangle,
181
182
  K as createRectangle
182
183
  };
@@ -86,16 +86,6 @@ export declare class Sculpt extends Subscribe<Event> {
86
86
  };
87
87
  readonly id: string;
88
88
  readonly type: string;
89
- } | {
90
- points: [import("..").ArrayPosition, import("..").ArrayPosition, import("..").ArrayPosition];
91
- style: {
92
- color: number;
93
- opacity: number;
94
- lineWidth: number;
95
- lineColor: number;
96
- };
97
- id: string;
98
- type: string;
99
89
  } | {
100
90
  center: [number, number, number];
101
91
  normal: [number, number, number];
@@ -18,7 +18,7 @@ let P = class {
18
18
  /**
19
19
  * @realsee/dnalogel 版本号
20
20
  */
21
- i(this, "VERSION", "3.52.0");
21
+ i(this, "VERSION", "3.52.2");
22
22
  i(this, "NAME");
23
23
  i(this, "five");
24
24
  i(this, "workUtil");
@@ -1,153 +1,142 @@
1
- import { SvelteComponent as w, init as C, safe_not_equal as D, append_styles as N, element as v, attr as k, set_style as f, insert as b, noop as y, detach as _, onMount as L, onDestroy as B, text as M, space as O, toggle_class as z, append as q, listen as A, is_function as E, set_data as G, binding_callbacks as R } from "../../vendor/svelte/internal/index.js";
2
- import { ROOM_LABEL_BG as S } from "./Assets/roomLabelBg.js";
3
- function F(i) {
4
- N(i, "svelte-1s88cj8", ".room-label-item.svelte-1s88cj8{position:absolute;font-size:0.5rem;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-1s88cj8{position:absolute;left:0;top:-4rem;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;height:1.25rem;min-width:2rem;padding:0 0.375rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.room-label-item__bar.svelte-1s88cj8{position:absolute;top:-2.75rem;height:3rem;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}.wide.svelte-1s88cj8{font-size:0.625rem}");
1
+ import { SvelteComponent as w, init as C, safe_not_equal as D, append_styles as N, element as g, attr as k, set_style as f, insert as b, noop as h, detach as _, onMount as L, onDestroy as B, text as M, space as O, append as j, listen as q, is_function as A, set_data as E, binding_callbacks as G } from "../../vendor/svelte/internal/index.js";
2
+ import { ROOM_LABEL_BG as R } from "./Assets/roomLabelBg.js";
3
+ function S(n) {
4
+ N(n, "svelte-ntto16", ".room-label-item.svelte-ntto16{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-ntto16{position:absolute;left:0;top:-4rem;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;height:1.25rem;min-width:2rem;padding:0 0.375rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.room-label-item__bar.svelte-ntto16{position:absolute;top:-2.75rem;height:3rem;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}");
5
5
  }
6
- function j(i) {
7
- let e, n, l, o, a, m;
6
+ function z(n) {
7
+ let e, t, o, l, a, m;
8
8
  return {
9
9
  c() {
10
- e = v("span"), n = M(
10
+ e = g("span"), t = M(
11
11
  /*content*/
12
- i[0]
13
- ), l = O(), o = v("div"), k(e, "class", "room-label-item__text svelte-1s88cj8"), f(e, "background-image", "url(" + S + ")"), z(
14
- e,
15
- "wide",
16
- /*content*/
17
- i[0].length > 3
18
- ), k(o, "class", "room-label-item__bar svelte-1s88cj8");
12
+ n[0]
13
+ ), o = O(), l = g("div"), k(e, "class", "room-label-item__text svelte-ntto16"), f(e, "background-image", "url(" + R + ")"), k(l, "class", "room-label-item__bar svelte-ntto16");
19
14
  },
20
15
  m(r, s) {
21
- b(r, e, s), q(e, n), b(r, l, s), b(r, o, s), a || (m = A(e, "click", function() {
22
- E(
16
+ b(r, e, s), j(e, t), b(r, o, s), b(r, l, s), a || (m = q(e, "click", function() {
17
+ A(
23
18
  /*onClick*/
24
- i[4]
25
- ) && i[4].apply(this, arguments);
19
+ n[4]
20
+ ) && n[4].apply(this, arguments);
26
21
  }), a = !0);
27
22
  },
28
23
  p(r, s) {
29
- i = r, s & /*content*/
30
- 1 && G(
31
- n,
32
- /*content*/
33
- i[0]
34
- ), s & /*content*/
35
- 1 && z(
36
- e,
37
- "wide",
24
+ n = r, s & /*content*/
25
+ 1 && E(
26
+ t,
38
27
  /*content*/
39
- i[0].length > 3
28
+ n[0]
40
29
  );
41
30
  },
42
31
  d(r) {
43
- r && _(e), r && _(l), r && _(o), a = !1, m();
32
+ r && _(e), r && _(o), r && _(l), a = !1, m();
44
33
  }
45
34
  };
46
35
  }
47
- function H(i) {
48
- let e, n = !/*rendererIfNeed*/
49
- i[5] && j(i);
36
+ function F(n) {
37
+ let e, t = !/*rendererIfNeed*/
38
+ n[5] && z(n);
50
39
  return {
51
40
  c() {
52
- e = v("div"), n && n.c(), k(e, "class", "room-label-item svelte-1s88cj8"), f(
41
+ e = g("div"), t && t.c(), k(e, "class", "room-label-item svelte-ntto16"), f(
53
42
  e,
54
43
  "z-index",
55
44
  /*zIndex*/
56
- i[2]
45
+ n[2]
57
46
  ), f(
58
47
  e,
59
48
  "transform",
60
49
  /*transform*/
61
- i[3]
50
+ n[3]
62
51
  ), f(
63
52
  e,
64
53
  "opacity",
65
54
  /*opacity*/
66
- i[1]
55
+ n[1]
67
56
  ), f(
68
57
  e,
69
58
  "visibility",
70
59
  /*visibility*/
71
- i[7]
60
+ n[7]
72
61
  );
73
62
  },
74
- m(l, o) {
75
- b(l, e, o), n && n.m(e, null), i[10](e);
63
+ m(o, l) {
64
+ b(o, e, l), t && t.m(e, null), n[10](e);
76
65
  },
77
- p(l, [o]) {
66
+ p(o, [l]) {
78
67
  /*rendererIfNeed*/
79
- l[5] ? n && (n.d(1), n = null) : n ? n.p(l, o) : (n = j(l), n.c(), n.m(e, null)), o & /*zIndex*/
68
+ o[5] ? t && (t.d(1), t = null) : t ? t.p(o, l) : (t = z(o), t.c(), t.m(e, null)), l & /*zIndex*/
80
69
  4 && f(
81
70
  e,
82
71
  "z-index",
83
72
  /*zIndex*/
84
- l[2]
85
- ), o & /*transform*/
73
+ o[2]
74
+ ), l & /*transform*/
86
75
  8 && f(
87
76
  e,
88
77
  "transform",
89
78
  /*transform*/
90
- l[3]
91
- ), o & /*opacity*/
79
+ o[3]
80
+ ), l & /*opacity*/
92
81
  2 && f(
93
82
  e,
94
83
  "opacity",
95
84
  /*opacity*/
96
- l[1]
97
- ), o & /*visibility*/
85
+ o[1]
86
+ ), l & /*visibility*/
98
87
  128 && f(
99
88
  e,
100
89
  "visibility",
101
90
  /*visibility*/
102
- l[7]
91
+ o[7]
103
92
  );
104
93
  },
105
- i: y,
106
- o: y,
107
- d(l) {
108
- l && _(e), n && n.d(), i[10](null);
94
+ i: h,
95
+ o: h,
96
+ d(o) {
97
+ o && _(e), t && t.d(), n[10](null);
109
98
  }
110
99
  };
111
100
  }
112
- function J(i, e, n) {
113
- let l, { content: o } = e, { visible: a = !0 } = e, { opacity: m = 1 } = e, { zIndex: r = 0 } = e, { transform: s = void 0 } = e, { onClick: h = () => {
114
- } } = e, { rendererIfNeed: c = void 0 } = e, { rendererData: g = void 0 } = e, d, u;
101
+ function H(n, e, t) {
102
+ let o, { content: l } = e, { visible: a = !0 } = e, { opacity: m = 1 } = e, { zIndex: r = 0 } = e, { transform: s = void 0 } = e, { onClick: y = () => {
103
+ } } = e, { rendererIfNeed: u = void 0 } = e, { rendererData: v = void 0 } = e, d, c;
115
104
  L(() => {
116
- d && typeof c == "function" && (u = c(d, g));
105
+ d && typeof u == "function" && (c = u(d, v));
117
106
  }), B(() => {
118
- u == null || u();
107
+ c == null || c();
119
108
  });
120
- function I(t) {
121
- R[t ? "unshift" : "push"](() => {
122
- d = t, n(6, d);
109
+ function I(i) {
110
+ G[i ? "unshift" : "push"](() => {
111
+ d = i, t(6, d);
123
112
  });
124
113
  }
125
- return i.$$set = (t) => {
126
- "content" in t && n(0, o = t.content), "visible" in t && n(8, a = t.visible), "opacity" in t && n(1, m = t.opacity), "zIndex" in t && n(2, r = t.zIndex), "transform" in t && n(3, s = t.transform), "onClick" in t && n(4, h = t.onClick), "rendererIfNeed" in t && n(5, c = t.rendererIfNeed), "rendererData" in t && n(9, g = t.rendererData);
127
- }, i.$$.update = () => {
128
- i.$$.dirty & /*visible*/
129
- 256 && n(7, l = a ? "visible" : "hidden");
114
+ return n.$$set = (i) => {
115
+ "content" in i && t(0, l = i.content), "visible" in i && t(8, a = i.visible), "opacity" in i && t(1, m = i.opacity), "zIndex" in i && t(2, r = i.zIndex), "transform" in i && t(3, s = i.transform), "onClick" in i && t(4, y = i.onClick), "rendererIfNeed" in i && t(5, u = i.rendererIfNeed), "rendererData" in i && t(9, v = i.rendererData);
116
+ }, n.$$.update = () => {
117
+ n.$$.dirty & /*visible*/
118
+ 256 && t(7, o = a ? "visible" : "hidden");
130
119
  }, [
131
- o,
120
+ l,
132
121
  m,
133
122
  r,
134
123
  s,
135
- h,
136
- c,
124
+ y,
125
+ u,
137
126
  d,
138
- l,
127
+ o,
139
128
  a,
140
- g,
129
+ v,
141
130
  I
142
131
  ];
143
132
  }
144
- class Q extends w {
133
+ class P extends w {
145
134
  constructor(e) {
146
135
  super(), C(
147
136
  this,
148
137
  e,
149
- J,
150
138
  H,
139
+ F,
151
140
  D,
152
141
  {
153
142
  content: 0,
@@ -159,10 +148,10 @@ class Q extends w {
159
148
  rendererIfNeed: 5,
160
149
  rendererData: 9
161
150
  },
162
- F
151
+ S
163
152
  );
164
153
  }
165
154
  }
166
155
  export {
167
- Q as LabelItem
156
+ P as LabelItem
168
157
  };
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.52.0",
3
+ "%c %c@realsee/dnalogel %cv3.52.2",
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",
@@ -35,7 +35,7 @@ export declare class LightTag {
35
35
  extraObjectsForIntersectCheck: THREE.Object3D[];
36
36
  /**
37
37
  * @description 模拟3D
38
- * @default true
38
+ * @default false
39
39
  */
40
40
  simulate3D: boolean;
41
41
  set needsRender(val: true);
@@ -44,7 +44,7 @@ class w {
44
44
  i(this, "extraObjectsForIntersectCheck", []);
45
45
  /**
46
46
  * @description 模拟3D
47
- * @default true
47
+ * @default false
48
48
  */
49
49
  i(this, "simulate3D", !1);
50
50
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.52.0",
3
+ "version": "3.52.2",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",