@realsee/dnalogel 3.50.1 → 3.50.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,17 +1,17 @@
1
- var L = Object.defineProperty, N = Object.defineProperties;
2
- var z = Object.getOwnPropertyDescriptors;
3
- var A = Object.getOwnPropertySymbols;
4
- var _ = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable;
5
- var O = (s, t, e) => t in s ? L(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, p = (s, t) => {
1
+ var I = Object.defineProperty, L = Object.defineProperties;
2
+ var N = Object.getOwnPropertyDescriptors;
3
+ var V = Object.getOwnPropertySymbols;
4
+ var z = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable;
5
+ var O = (s, t, e) => t in s ? I(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, p = (s, t) => {
6
6
  for (var e in t || (t = {}))
7
- _.call(t, e) && O(s, e, t[e]);
8
- if (A)
9
- for (var e of A(t))
7
+ z.call(t, e) && O(s, e, t[e]);
8
+ if (V)
9
+ for (var e of V(t))
10
10
  q.call(t, e) && O(s, e, t[e]);
11
11
  return s;
12
- }, j = (s, t) => N(s, z(t));
12
+ }, j = (s, t) => L(s, N(t));
13
13
  var v = (s, t, e) => (O(s, typeof t != "symbol" ? t + "" : t, e), e);
14
- var V = (s, t, e) => new Promise((c, d) => {
14
+ var A = (s, t, e) => new Promise((c, d) => {
15
15
  var u = (n) => {
16
16
  try {
17
17
  f(e.next(n));
@@ -28,14 +28,13 @@ var V = (s, t, e) => new Promise((c, d) => {
28
28
  f((e = e.apply(s, t)).next());
29
29
  });
30
30
  import { BaseObject as G } from "../Base/index.js";
31
- import * as g from "three";
31
+ import * as P from "three";
32
32
  import { PolylineMesh as k } from "../../Meshes/Polyline.js";
33
33
  import { AreaMesh as B } from "../../Meshes/Area.js";
34
34
  import { PolygonEditor as J } from "./Editor.js";
35
35
  import { vector3ToArray as K } from "../../../shared-utils/three/vector3ToArray.js";
36
36
  import { withResolvers as Q } from "../../../shared-utils/promise/withResolvers.js";
37
- const D = new g.Vector3();
38
- class oe extends G {
37
+ class se extends G {
39
38
  constructor(e, c) {
40
39
  super(e, c);
41
40
  v(this, "type", "Polygon");
@@ -78,7 +77,7 @@ class oe extends G {
78
77
  (e = this.creatingObject) == null || e.redo();
79
78
  }
80
79
  create(e) {
81
- return V(this, null, function* () {
80
+ return A(this, null, function* () {
82
81
  this.children.forEach((d) => {
83
82
  d.parent === this && this.remove(d);
84
83
  }), this.children.length = 0;
@@ -100,9 +99,9 @@ function X(s, t, e) {
100
99
  r == null || r.add(l), t.enable();
101
100
  const o = [];
102
101
  let i, h, C = !1, E;
103
- const m = [], x = () => o.length > 0, R = () => m.length > 0, F = () => {
102
+ const m = [], x = () => o.length > 0, R = () => m.length > 0, D = () => {
104
103
  x() && (m.push(o.pop()), y(E), t.pointSelectorHelper.magnifier.render());
105
- }, I = () => {
104
+ }, F = () => {
106
105
  R() && (o.push(m.pop()), y(E), t.pointSelectorHelper.magnifier.render());
107
106
  }, U = (a) => {
108
107
  m.length = 0;
@@ -114,11 +113,11 @@ function X(s, t, e) {
114
113
  };
115
114
  if (!a || (E = a, !(o != null && o.length)))
116
115
  return w();
117
- const P = o.at(-1).clone();
118
- if (o.length < 3 && (f === "none" ? (i = a.point, n.setPoints([P, i]), l.setPoints([])) : f === "xoz" ? (h = h != null ? h : new g.Plane().setFromNormalAndCoplanarPoint(new g.Vector3(0, 1, 0), o[0]), t.plane = h, i = h.projectPoint(a.point, D), n.setPoints([P, i]), l.setPoints([i, a.point])) : f === "y" && (o.length === 1 ? (i = a.point, n.setPoints([P, i]), l.setPoints([])) : (h = h != null ? h : new g.Plane().setFromCoplanarPoints(o[0], o[1], new g.Vector3(0, 1, 0).add(o[0])), t.plane = h, i = h.projectPoint(a.point, D), n.setPoints([P, i]), l.setPoints([i, a.point])))), o.length >= 3) {
116
+ const g = o.at(-1).clone();
117
+ if (o.length < 3 && (f === "none" ? (i = a.point, n.setPoints([g, i]), l.setPoints([])) : f === "xoz" ? (h = h != null ? h : new P.Plane().setFromNormalAndCoplanarPoint(new P.Vector3(0, 1, 0), o[0]), t.plane = h, i = h.projectPoint(a.point, new P.Vector3()), n.setPoints([g, i]), l.setPoints([i, a.point])) : f === "y" && (o.length === 1 ? (i = a.point, n.setPoints([g, i]), l.setPoints([])) : (h = h != null ? h : new P.Plane().setFromCoplanarPoints(o[0], o[1], new P.Vector3(0, 1, 0).add(o[0])), t.plane = h, i = h.projectPoint(a.point, new P.Vector3()), n.setPoints([g, i]), l.setPoints([i, a.point])))), o.length >= 3) {
119
118
  i = s.projectPoint(a.point);
120
119
  const b = o[0], T = 0.2;
121
- b.distanceTo(i) < T || b.distanceTo(a.point) < T ? (i = b, a.point.copy(b), t.pointSelectorHelper.updateWithIntersect(a, { emitEvent: !1 }), C = !0) : C = !1, n.setPoints([P, i]), l.setPoints([i, a.point]);
120
+ b.distanceTo(i) < T || b.distanceTo(a.point) < T ? (i = b, a.point.copy(b), t.pointSelectorHelper.updateWithIntersect(a, { emitEvent: !1 }), C = !0) : C = !1, n.setPoints([g, i]), l.setPoints([i, a.point]);
122
121
  }
123
122
  o.length >= 2 ? (s.setPoints([...o, i], { closed: !1 }), s.line.setPoints(s.points.slice(0, -1)), s.isBlank ? (t.cursorError = !0, n.setStyle({ lineColor: 16734553 }), l.setStyle({ lineColor: 16734553 })) : (t.cursorError = !1, n.setStyle({ lineColor: s.lineColor }), l.setStyle({ lineColor: s.lineColor }))) : s.setPoints([]);
124
123
  }, W = () => {
@@ -130,11 +129,11 @@ function X(s, t, e) {
130
129
  finished: c,
131
130
  canUndo: x,
132
131
  canRedo: R,
133
- undo: F,
134
- redo: I
132
+ undo: D,
133
+ redo: F
135
134
  };
136
135
  }
137
136
  export {
138
- oe as Polygon,
137
+ se as Polygon,
139
138
  X as createPolygon
140
139
  };
@@ -1,16 +1,16 @@
1
- var F = Object.defineProperty, T = Object.defineProperties;
2
- var k = Object.getOwnPropertyDescriptors;
1
+ var D = Object.defineProperty, F = Object.defineProperties;
2
+ var T = Object.getOwnPropertyDescriptors;
3
3
  var E = Object.getOwnPropertySymbols;
4
- var z = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
5
- var j = (n, t, e) => t in n ? F(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, p = (n, t) => {
4
+ var k = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable;
5
+ var v = (n, t, e) => t in n ? D(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, p = (n, t) => {
6
6
  for (var e in t || (t = {}))
7
- z.call(t, e) && j(n, e, t[e]);
7
+ k.call(t, e) && v(n, e, t[e]);
8
8
  if (E)
9
9
  for (var e of E(t))
10
- B.call(t, e) && j(n, e, t[e]);
10
+ z.call(t, e) && v(n, e, t[e]);
11
11
  return n;
12
- }, M = (n, t) => T(n, k(t));
13
- var y = (n, t, e) => (j(n, typeof t != "symbol" ? t + "" : t, e), e);
12
+ }, M = (n, t) => F(n, T(t));
13
+ var y = (n, t, e) => (v(n, typeof t != "symbol" ? t + "" : t, e), e);
14
14
  var R = (n, t, e) => new Promise((s, P) => {
15
15
  var w = (o) => {
16
16
  try {
@@ -27,24 +27,23 @@ var R = (n, t, e) => new Promise((s, P) => {
27
27
  }, c = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(w, b);
28
28
  c((e = e.apply(n, t)).next());
29
29
  });
30
- import { PolylineMesh as U, PolylineWithDotsMesh as W } from "../../Meshes/Polyline.js";
31
- import { BaseObject as H } from "../Base/index.js";
30
+ import { PolylineMesh as U, PolylineWithDotsMesh as V } from "../../Meshes/Polyline.js";
31
+ import { BaseObject as B } from "../Base/index.js";
32
32
  import * as d from "three";
33
- import { PolylineEditor as I } from "./Editor.js";
34
- import { vector3ToArray as N } from "../../../shared-utils/three/vector3ToArray.js";
35
- import { withResolvers as _ } from "../../../shared-utils/promise/withResolvers.js";
36
- const V = new d.Vector3();
37
- class Z extends H {
33
+ import { PolylineEditor as H } from "./Editor.js";
34
+ import { vector3ToArray as I } from "../../../shared-utils/three/vector3ToArray.js";
35
+ import { withResolvers as N } from "../../../shared-utils/promise/withResolvers.js";
36
+ class Z extends B {
38
37
  constructor(e, s) {
39
38
  super(e, s);
40
39
  y(this, "type", "Polyline");
41
40
  y(this, "polyLineMesh");
42
41
  y(this, "creatingObject");
43
- e && (this.polyLineMesh = new W(p(p({}, e.style), e)), this.add(this.polyLineMesh)), this.editor = new I(this);
42
+ e && (this.polyLineMesh = new V(p(p({}, e.style), e)), this.add(this.polyLineMesh)), this.editor = new H(this);
44
43
  }
45
44
  get data() {
46
45
  return M(p({}, this.baseData), {
47
- points: N(this.applyObjectMatrixWorld(this.polyLineMesh.points)),
46
+ points: I(this.applyObjectMatrixWorld(this.polyLineMesh.points)),
48
47
  style: {
49
48
  lineColor: new d.Color(this.polyLineMesh.lineColor).getHex(),
50
49
  lineWidth: this.polyLineMesh.lineWidth,
@@ -79,7 +78,7 @@ class Z extends H {
79
78
  create(e) {
80
79
  return R(this, null, function* () {
81
80
  this.removeChildren();
82
- const s = new W(e);
81
+ const s = new V(e);
83
82
  this.polyLineMesh = s, this.add(this.polyLineMesh), this.creatingObject = q(s, this.pointSelector, e), yield this.creatingObject.finished, this.editor.enable();
84
83
  });
85
84
  }
@@ -89,16 +88,16 @@ function q(n, t, e) {
89
88
  const s = n.parent;
90
89
  if (!s)
91
90
  return;
92
- const { promise: P, resolve: w, reject: b } = _(), c = (x = e == null ? void 0 : e.limit) != null ? x : "none", o = new U(n.style);
91
+ const { promise: P, resolve: w, reject: b } = N(), c = (x = e == null ? void 0 : e.limit) != null ? x : "none", o = new U(n.style);
93
92
  s.add(o);
94
93
  const a = new U(M(p({}, n.style), { dashed: !0, lengthEnable: !1 }));
95
94
  s.add(a), t.enable();
96
95
  const i = [];
97
- let r, l, v;
98
- const f = [], O = () => i.length > 0, L = () => f.length > 0, A = () => {
99
- O() && (f.push(i.pop()), n.setPoints(i), g(v), t.pointSelectorHelper.magnifier.render());
100
- }, D = () => {
101
- L() && (i.push(f.pop()), n.setPoints(i), g(v), t.pointSelectorHelper.magnifier.render());
96
+ let r, l, j;
97
+ const f = [], O = () => i.length > 0, L = () => f.length > 0, W = () => {
98
+ O() && (f.push(i.pop()), n.setPoints(i), g(j), t.pointSelectorHelper.magnifier.render());
99
+ }, A = () => {
100
+ L() && (i.push(f.pop()), n.setPoints(i), g(j), t.pointSelectorHelper.magnifier.render());
102
101
  }, C = (h) => {
103
102
  f.length = 0;
104
103
  const m = i.length === 0 ? h.point : r.clone();
@@ -107,10 +106,10 @@ function q(n, t, e) {
107
106
  const m = () => {
108
107
  o.setPoints([]), a.setPoints([]), r = null;
109
108
  };
110
- if (!h || (v = h, !(i != null && i.length)))
109
+ if (!h || (j = h, !(i != null && i.length)))
111
110
  return m();
112
111
  const u = i.at(-1).clone();
113
- c === "none" ? (r = h.point, o.setPoints([u, r])) : c === "xoz" ? (l = l != null ? l : new d.Plane().setFromNormalAndCoplanarPoint(new d.Vector3(0, 1, 0), i[0]), t.plane = l, r = l.projectPoint(h.point, V), o.setPoints([u, r]), a.setPoints([r, h.point])) : c === "y" && (i.length === 1 ? (r = h.point, o.setPoints([u, r])) : (l = l != null ? l : new d.Plane().setFromCoplanarPoints(i[0], i[1], new d.Vector3(0, 1, 0).add(i[0])), t.plane = l, r = l.projectPoint(h.point, V), o.setPoints([u, r]), a.setPoints([r, h.point])));
112
+ c === "none" ? (r = h.point, o.setPoints([u, r])) : c === "xoz" ? (l = l != null ? l : new d.Plane().setFromNormalAndCoplanarPoint(new d.Vector3(0, 1, 0), i[0]), t.plane = l, r = l.projectPoint(h.point, new d.Vector3()), o.setPoints([u, r]), a.setPoints([r, h.point])) : c === "y" && (i.length === 1 ? (r = h.point, o.setPoints([u, r])) : (l = l != null ? l : new d.Plane().setFromCoplanarPoints(i[0], i[1], new d.Vector3(0, 1, 0).add(i[0])), t.plane = l, r = l.projectPoint(h.point, new d.Vector3()), o.setPoints([u, r]), a.setPoints([r, h.point])));
114
113
  };
115
114
  return t.on("select", C), t.on("intersectionUpdate", g), t.on("disable", () => {
116
115
  if (t.off("select", C), t.off("intersectionUpdate", g), t.plane = null, s.remove(o), s.remove(a), i.length < 2)
@@ -120,8 +119,8 @@ function q(n, t, e) {
120
119
  finished: P,
121
120
  canUndo: O,
122
121
  canRedo: L,
123
- undo: A,
124
- redo: D
122
+ undo: W,
123
+ redo: A
125
124
  };
126
125
  }
127
126
  export {
@@ -1,44 +1,43 @@
1
- var U = Object.defineProperty, B = Object.defineProperties;
2
- var I = Object.getOwnPropertyDescriptors;
3
- var A = Object.getOwnPropertySymbols;
4
- var _ = Object.prototype.hasOwnProperty, j = Object.prototype.propertyIsEnumerable;
5
- var E = (s, t, e) => t in s ? U(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, d = (s, t) => {
1
+ var F = Object.defineProperty, U = Object.defineProperties;
2
+ var B = Object.getOwnPropertyDescriptors;
3
+ var z = Object.getOwnPropertySymbols;
4
+ var I = Object.prototype.hasOwnProperty, j = Object.prototype.propertyIsEnumerable;
5
+ var b = (s, t, e) => t in s ? F(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, d = (s, t) => {
6
6
  for (var e in t || (t = {}))
7
- _.call(t, e) && E(s, e, t[e]);
8
- if (A)
9
- for (var e of A(t))
10
- j.call(t, e) && E(s, e, t[e]);
7
+ I.call(t, e) && b(s, e, t[e]);
8
+ if (z)
9
+ for (var e of z(t))
10
+ j.call(t, e) && b(s, e, t[e]);
11
11
  return s;
12
- }, u = (s, t) => B(s, I(t));
13
- var L = (s, t, e) => (E(s, typeof t != "symbol" ? t + "" : t, e), e);
14
- var D = (s, t, e) => new Promise((c, p) => {
12
+ }, u = (s, t) => U(s, B(t));
13
+ var E = (s, t, e) => (b(s, typeof t != "symbol" ? t + "" : t, e), e);
14
+ var A = (s, t, e) => new Promise((c, p) => {
15
15
  var a = (l) => {
16
16
  try {
17
- m(e.next(l));
17
+ g(e.next(l));
18
18
  } catch (h) {
19
19
  p(h);
20
20
  }
21
- }, g = (l) => {
21
+ }, w = (l) => {
22
22
  try {
23
- m(e.throw(l));
23
+ g(e.throw(l));
24
24
  } catch (h) {
25
25
  p(h);
26
26
  }
27
- }, m = (l) => l.done ? c(l.value) : Promise.resolve(l.value).then(a, g);
28
- m((e = e.apply(s, t)).next());
27
+ }, g = (l) => l.done ? c(l.value) : Promise.resolve(l.value).then(a, w);
28
+ g((e = e.apply(s, t)).next());
29
29
  });
30
30
  import { BaseObject as k } from "../Base/index.js";
31
31
  import * as o from "three";
32
- import { PolylineWithDotsMesh as M } from "../../Meshes/Polyline.js";
32
+ import { PolylineWithDotsMesh as L } from "../../Meshes/Polyline.js";
33
33
  import { RectangleEditor as q } from "./Editor.js";
34
- import { RectangleWithEdgeMesh as H } from "../../Meshes/RectangleWithEdge.js";
35
- const P = new o.Vector3();
34
+ import { RectangleWithEdgeMesh as D } from "../../Meshes/RectangleWithEdge.js";
36
35
  class Z extends k {
37
36
  constructor(e, c) {
38
37
  super(e, c);
39
- L(this, "type", "Rectangle");
40
- L(this, "rectangleMesh");
41
- this.config.canEdit && (this.editor = new q(this)), e && (this.rectangleMesh = new H(d(d({}, e.style), e)), this.add(this.rectangleMesh));
38
+ E(this, "type", "Rectangle");
39
+ E(this, "rectangleMesh");
40
+ this.config.canEdit && (this.editor = new q(this)), e && (this.rectangleMesh = new D(d(d({}, e.style), e)), this.add(this.rectangleMesh));
42
41
  }
43
42
  get data() {
44
43
  return u(d({}, this.baseData), {
@@ -59,61 +58,61 @@ class Z extends k {
59
58
  (e = this.rectangleMesh) == null || e.unhighlight();
60
59
  }
61
60
  create(e) {
62
- return D(this, null, function* () {
61
+ return A(this, null, function* () {
63
62
  this.removeChildren();
64
- const c = new H(e);
63
+ const c = new D(e);
65
64
  this.rectangleMesh = c, this.add(this.rectangleMesh), yield G(this.rectangleMesh, this.pointSelector, e);
66
65
  });
67
66
  }
68
67
  }
69
68
  function G(s, t, e) {
70
69
  return new Promise((c, p) => {
71
- var N, T;
70
+ var R, N;
72
71
  const a = s.parent;
73
72
  if (!a)
74
73
  return p(new Error("No container"));
75
- const g = (N = e == null ? void 0 : e.limit) != null ? N : "none", m = (T = e == null ? void 0 : e.drawMethod) != null ? T : "diagonal", l = new M(u(d({}, s.style), { dashed: !0, lengthEnable: !0 })), h = new M(u(d({}, s.style), { dashed: !0, lengthEnable: !1 })), y = new M(u(d({}, s.style), { dashed: !1, lengthEnable: !1 }));
76
- a.add(l, y, h), t.enable();
74
+ const w = (R = e == null ? void 0 : e.limit) != null ? R : "none", g = (N = e == null ? void 0 : e.drawMethod) != null ? N : "diagonal", l = new L(u(d({}, s.style), { dashed: !0, lengthEnable: !0 })), h = new L(u(d({}, s.style), { dashed: !0, lengthEnable: !1 })), P = new L(u(d({}, s.style), { dashed: !1, lengthEnable: !1 }));
75
+ a.add(l, P, h), t.enable();
77
76
  const n = [];
78
- let i = new o.Vector3(), v = new o.Vector3();
79
- const w = new o.Plane(), x = () => {
80
- n.push(i.clone()), n.length === 1 ? (g === "xoz" && w.setFromNormalAndCoplanarPoint(new o.Vector3(0, 1, 0), n[0]), g === "none" && w.setFromNormalAndCoplanarPoint(v, n[0])) : n.length === 2 ? g === "y" ? (V(), c()) : y.setPoints([n[0], n[1]]) : n.length === 3 && (V(), c());
81
- }, C = (r) => {
82
- var W;
77
+ let i = new o.Vector3(), M = new o.Vector3();
78
+ const m = new o.Plane(), v = () => {
79
+ n.push(i.clone()), n.length === 1 ? (w === "xoz" && m.setFromNormalAndCoplanarPoint(new o.Vector3(0, 1, 0), n[0]), w === "none" && m.setFromNormalAndCoplanarPoint(M, n[0])) : n.length === 2 ? w === "y" ? (y(), c()) : P.setPoints([n[0], n[1]]) : n.length === 3 && (y(), c());
80
+ }, x = (r) => {
81
+ var T;
83
82
  if (!(r != null && r.raycaster))
84
83
  return;
85
- const O = (W = n.at(-1)) == null ? void 0 : W.clone();
84
+ const H = (T = n.at(-1)) == null ? void 0 : T.clone();
86
85
  if (n.length === 0) {
87
- i = r.point.clone(), v = r.face.normal;
86
+ i = r.point.clone(), M = r.face.normal;
88
87
  return;
89
88
  }
90
- if (n.length === 1 && g === "y") {
89
+ if (n.length === 1 && w === "y") {
91
90
  const f = new o.Line3(new o.Vector3(0, 1, 0).add(n[0]), new o.Vector3(0, -1, 0).add(n[0])).closestPointToPoint(r.point, !1, new o.Vector3());
92
91
  s.setPoints([n[0], f, r.point]);
93
92
  return;
94
93
  }
95
94
  if (n.length === 1) {
96
- w ? (i = r.raycaster.ray.intersectPlane(w, P), h.setPoints([i, r.point])) : i = r.point.clone(), l.setPoints([O, i]);
95
+ m ? (i = r.raycaster.ray.intersectPlane(m, new o.Vector3()), h.setPoints([i, r.point])) : i = r.point.clone(), l.setPoints([H, i]);
97
96
  return;
98
97
  }
99
98
  if (n.length === 2) {
100
99
  a.remove(l);
101
- const z = r.raycaster.ray.intersectPlane(w, P);
102
- if (m === "diagonal") {
103
- const f = n[0].distanceTo(n[1]) / 2, b = new o.Vector3().lerpVectors(n[0], n[1], 0.5), F = new o.Vector3().subVectors(z, b).normalize();
104
- i = new o.Vector3().addVectors(b, F.multiplyScalar(f)), s.setPoints([n[0], i, n[1]]);
105
- } else if (m === "vertex") {
106
- const f = P.crossVectors(n[0].clone().sub(n[1]), w.normal).normalize();
107
- i = new o.Line3(n[1].clone().add(f), n[1].clone().sub(f)).closestPointToPoint(r.point, !1, P), s.setPoints([n[0], n[1], i]);
100
+ const W = r.raycaster.ray.intersectPlane(m, new o.Vector3());
101
+ if (g === "diagonal") {
102
+ const f = n[0].distanceTo(n[1]) / 2, V = new o.Vector3().lerpVectors(n[0], n[1], 0.5), O = new o.Vector3().subVectors(W, V).normalize();
103
+ i = new o.Vector3().addVectors(V, O.multiplyScalar(f)), s.setPoints([n[0], i, n[1]]);
104
+ } else if (g === "vertex") {
105
+ const f = new o.Vector3().crossVectors(n[0].clone().sub(n[1]), m.normal).normalize();
106
+ i = new o.Line3(n[1].clone().add(f), n[1].clone().sub(f)).closestPointToPoint(r.point, !1, new o.Vector3()), s.setPoints([n[0], n[1], i]);
108
107
  }
109
108
  return;
110
109
  }
111
- }, V = () => {
112
- t.off("select", x), t.off("intersectionUpdate", C), t.off("disable", R), t.disable(), a == null || a.remove(l, y, h);
113
- }, R = () => {
114
- V(), a == null || a.remove(s), p(new Error("Cancelled"));
110
+ }, y = () => {
111
+ t.off("select", v), t.off("intersectionUpdate", x), t.off("disable", C), t.disable(), a == null || a.remove(l, P, h);
112
+ }, C = () => {
113
+ y(), a == null || a.remove(s), p(new Error("Cancelled"));
115
114
  };
116
- t.on("select", x), t.on("intersectionUpdate", C), t.on("disable", R);
115
+ t.on("select", v), t.on("intersectionUpdate", x), t.on("disable", C);
117
116
  });
118
117
  }
119
118
  export {
@@ -18,7 +18,7 @@ let P = class {
18
18
  /**
19
19
  * @realsee/dnalogel 版本号
20
20
  */
21
- i(this, "VERSION", "3.50.1");
21
+ i(this, "VERSION", "3.50.2");
22
22
  i(this, "NAME");
23
23
  i(this, "five");
24
24
  i(this, "workUtil");
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.50.1",
3
+ "%c %c@realsee/dnalogel %cv3.50.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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.50.1",
3
+ "version": "3.50.2",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",