@realsee/dnalogel 3.50.8 → 3.50.10
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.
- package/CHANGELOG.md +7 -0
- package/dist/index.cjs.js +44 -44
- package/dist/index.js +1582 -1577
- package/dist/index.umd.js +33 -33
- package/libs/CruisePlugin/Work.js +29 -28
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +103 -103
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/utils/PointHelper.js +35 -31
- package/package.json +1 -1
|
@@ -262,18 +262,18 @@ class Sr extends G {
|
|
|
262
262
|
this.data = g({ id: s.keyframesId }, s), this.hooks.emit("dataChange", s, i);
|
|
263
263
|
let p = [], n;
|
|
264
264
|
const a = this.data.keyframes.filter((f) => f.data.panoIndex !== void 0);
|
|
265
|
-
a.filter((f,
|
|
266
|
-
var
|
|
267
|
-
return f.data.panoIndex !== ((
|
|
265
|
+
a.filter((f, d) => {
|
|
266
|
+
var u;
|
|
267
|
+
return f.data.panoIndex !== ((u = a[d - 1]) == null ? void 0 : u.data.panoIndex);
|
|
268
268
|
}).map((f) => f.data.panoIndex).forEach((f) => {
|
|
269
|
-
var
|
|
270
|
-
const
|
|
271
|
-
if (
|
|
272
|
-
if (n ===
|
|
269
|
+
var u, v;
|
|
270
|
+
const d = (u = this.workUtil.getObserver(f)) == null ? void 0 : u.floorIndex;
|
|
271
|
+
if (d !== void 0)
|
|
272
|
+
if (n === d) {
|
|
273
273
|
const c = p.length - 1;
|
|
274
274
|
p[c] = [...(v = p[c]) != null ? v : [], f];
|
|
275
275
|
} else {
|
|
276
|
-
n =
|
|
276
|
+
n = d;
|
|
277
277
|
const c = p.length;
|
|
278
278
|
p[c] = [f];
|
|
279
279
|
}
|
|
@@ -323,11 +323,11 @@ class Sr extends G {
|
|
|
323
323
|
const m = e.panoIndexList.slice(a).find((P) => P !== n);
|
|
324
324
|
if (m === void 0)
|
|
325
325
|
return;
|
|
326
|
-
const f = this.workUtil.getObserverPosition(n),
|
|
327
|
-
if (!
|
|
326
|
+
const f = this.workUtil.getObserverPosition(n), d = this.workUtil.getObserverPosition(m);
|
|
327
|
+
if (!d || !f || ((v = this.workUtil.getObserver(n)) == null ? void 0 : v.floorIndex) !== ((c = this.workUtil.getObserver(m)) == null ? void 0 : c.floorIndex))
|
|
328
328
|
return;
|
|
329
|
-
const
|
|
330
|
-
return A(
|
|
329
|
+
const u = new U.Vector3().subVectors(d, f);
|
|
330
|
+
return A(u.normalize());
|
|
331
331
|
})();
|
|
332
332
|
e.moveType === void 0 || e.moveType === "justMove" ? r.push({
|
|
333
333
|
moveIndex: a,
|
|
@@ -352,21 +352,21 @@ class Sr extends G {
|
|
|
352
352
|
// eslint-disable-next-line complexity
|
|
353
353
|
handlePlay(t) {
|
|
354
354
|
return y(this, null, function* () {
|
|
355
|
-
var
|
|
355
|
+
var d;
|
|
356
356
|
const { data: e, state: r, privateState: i, hooks: s } = this;
|
|
357
357
|
if (i.playing || !(e != null && e.keyframes) || (e == null ? void 0 : e.keyframes.length) === 0)
|
|
358
358
|
return;
|
|
359
359
|
const p = S();
|
|
360
360
|
i.playId = p, i.playing = !0, i.broke = !1;
|
|
361
361
|
const n = e.keyframes, a = this.getPauseData();
|
|
362
|
-
(t == null ? void 0 : t.notEmitEvent) !== !0 && s.emit("play", { userAction: (
|
|
362
|
+
(t == null ? void 0 : t.notEmitEvent) !== !0 && s.emit("play", { userAction: (d = t == null ? void 0 : t.userAction) != null ? d : !0 });
|
|
363
363
|
let o = !1;
|
|
364
364
|
const f = yield (() => y(this, null, function* () {
|
|
365
|
-
var
|
|
365
|
+
var u, v;
|
|
366
366
|
if ((t == null ? void 0 : t.playFromIndex) !== void 0)
|
|
367
367
|
return t.playFromIndex;
|
|
368
368
|
if ((t == null ? void 0 : t.playFromId) !== void 0)
|
|
369
|
-
return (
|
|
369
|
+
return (u = this.data) == null ? void 0 : u.keyframes.findIndex((c) => c.id === t.playFromId);
|
|
370
370
|
if (a != null && a.id) {
|
|
371
371
|
const c = (v = this.data) == null ? void 0 : v.keyframes.find((P) => P.id === a.id);
|
|
372
372
|
if (a != null && a.fiveState && (yield this.move(a.fiveState, {
|
|
@@ -383,15 +383,15 @@ class Sr extends G {
|
|
|
383
383
|
}
|
|
384
384
|
}))();
|
|
385
385
|
this.clearPauseData();
|
|
386
|
-
for (const
|
|
386
|
+
for (const u of n) {
|
|
387
387
|
if (i.broke || !r.playing || !i.playing || p !== i.playId)
|
|
388
388
|
return;
|
|
389
|
-
if (!(f !== void 0 &&
|
|
389
|
+
if (!(f !== void 0 && u.index < f))
|
|
390
390
|
try {
|
|
391
|
-
s.emit("playIndexChange",
|
|
391
|
+
s.emit("playIndexChange", u.index, u), yield this.playKeyframe(u, {
|
|
392
392
|
moveEffect: o === !1 ? i.moveToFirstPanoEffect : void 0,
|
|
393
393
|
duration: o === !1 && typeof i.moveToFirstPanoDuration == "number" ? i.moveToFirstPanoDuration : void 0
|
|
394
|
-
}),
|
|
394
|
+
}), u.stay && (yield O(u.stay)), o === !1 && (o = !0);
|
|
395
395
|
} catch (v) {
|
|
396
396
|
return console.error(v), Promise.resolve("broke");
|
|
397
397
|
}
|
|
@@ -542,8 +542,8 @@ class Sr extends G {
|
|
|
542
542
|
updateCamera(r) {
|
|
543
543
|
return y(this, arguments, function* (t, e = {}) {
|
|
544
544
|
const { five: i, privateState: s, state: p } = this, n = (() => {
|
|
545
|
-
var
|
|
546
|
-
const m = (
|
|
545
|
+
var d, u;
|
|
546
|
+
const m = (d = p.config) == null ? void 0 : d.speedConfig, f = (u = t.rotateSpeed) != null ? u : m == null ? void 0 : m.rotateSpeed;
|
|
547
547
|
if ((m == null ? void 0 : m.rotateSpeedUnit) === void 0)
|
|
548
548
|
return f;
|
|
549
549
|
if (f !== void 0)
|
|
@@ -575,8 +575,8 @@ class Sr extends G {
|
|
|
575
575
|
const p = r.getCurrentState().mode !== "Panorama";
|
|
576
576
|
p && (this.privateState.modeChanging = !0);
|
|
577
577
|
const n = (() => {
|
|
578
|
-
var f,
|
|
579
|
-
const o = (f = s.config) == null ? void 0 : f.speedConfig, m = (
|
|
578
|
+
var f, d;
|
|
579
|
+
const o = (f = s.config) == null ? void 0 : f.speedConfig, m = (d = t.moveSpeed) != null ? d : o == null ? void 0 : o.moveSpeed;
|
|
580
580
|
if ((o == null ? void 0 : o.moveSpeedUnit) === void 0)
|
|
581
581
|
return m;
|
|
582
582
|
if (m !== void 0)
|
|
@@ -591,16 +591,17 @@ class Sr extends G {
|
|
|
591
591
|
return 800;
|
|
592
592
|
})();
|
|
593
593
|
i.currentPlayKeyframe && (i.currentPlayKeyframe.originDuration = a), yield new Promise((o) => {
|
|
594
|
-
var
|
|
595
|
-
this.fiveUtil.moveToPano(t.panoIndex, {
|
|
594
|
+
var f, d, u;
|
|
595
|
+
const m = this.fiveUtil.moveToPano(t.panoIndex, {
|
|
596
596
|
latitude: t.latitude,
|
|
597
597
|
longitude: t.longitude,
|
|
598
598
|
fov: t.fov,
|
|
599
599
|
duration: this.getSpeededDuration(a),
|
|
600
|
-
effect: (u = (
|
|
600
|
+
effect: (u = (d = e == null ? void 0 : e.moveEffect) != null ? d : (f = this.state.config) == null ? void 0 : f.moveEffect) != null ? u : t.moveEffect,
|
|
601
601
|
moveCancelCallback: () => o(),
|
|
602
602
|
moveEndCallback: () => o()
|
|
603
|
-
})
|
|
603
|
+
});
|
|
604
|
+
m instanceof Promise && m.then(() => o()), p && r.once("panoArrived", () => o());
|
|
604
605
|
}), p && (this.privateState.modeChanging = !1);
|
|
605
606
|
});
|
|
606
607
|
}
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,198 +1,198 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
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
|
-
|
|
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
|
|
5
|
+
function C(i, l, n) {
|
|
6
6
|
const s = i.slice();
|
|
7
|
-
return s[11] =
|
|
7
|
+
return s[11] = l[n], s[13] = n, s;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function H(i, l, n) {
|
|
10
10
|
const s = i.slice();
|
|
11
|
-
return s[14] =
|
|
11
|
+
return s[14] = l[n], s;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
let
|
|
13
|
+
function I(i) {
|
|
14
|
+
let l;
|
|
15
15
|
return {
|
|
16
16
|
c() {
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
),
|
|
23
|
-
|
|
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
|
-
|
|
30
|
+
T(n, l, s);
|
|
31
31
|
},
|
|
32
|
-
p:
|
|
32
|
+
p: R,
|
|
33
33
|
d(n) {
|
|
34
|
-
n &&
|
|
34
|
+
n && D(l);
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
let n, s,
|
|
38
|
+
function L(i, l) {
|
|
39
|
+
let n, s, a = (
|
|
40
40
|
/*getRuleDistanceText*/
|
|
41
|
-
|
|
41
|
+
l[1](
|
|
42
42
|
/*textItem*/
|
|
43
|
-
|
|
43
|
+
l[11].distance
|
|
44
44
|
) + ""
|
|
45
|
-
),
|
|
45
|
+
), f, _;
|
|
46
46
|
return {
|
|
47
47
|
key: i,
|
|
48
48
|
first: null,
|
|
49
49
|
c() {
|
|
50
|
-
n =
|
|
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
|
-
|
|
55
|
-
),
|
|
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
|
-
|
|
60
|
-
),
|
|
59
|
+
l[11].left * 100 + "%"
|
|
60
|
+
), z(
|
|
61
61
|
n,
|
|
62
62
|
"bottom",
|
|
63
63
|
/*textItem*/
|
|
64
|
-
|
|
64
|
+
l[11].bottom * 100 + "%"
|
|
65
65
|
), this.first = n;
|
|
66
66
|
},
|
|
67
|
-
m(r,
|
|
68
|
-
|
|
67
|
+
m(r, c) {
|
|
68
|
+
T(r, n, c), h(n, s), h(s, f), h(n, _);
|
|
69
69
|
},
|
|
70
|
-
p(r,
|
|
71
|
-
|
|
72
|
-
2 &&
|
|
73
|
-
|
|
70
|
+
p(r, c) {
|
|
71
|
+
l = r, c & /*getRuleDistanceText*/
|
|
72
|
+
2 && a !== (a = /*getRuleDistanceText*/
|
|
73
|
+
l[1](
|
|
74
74
|
/*textItem*/
|
|
75
|
-
|
|
76
|
-
) + "") && E(
|
|
75
|
+
l[11].distance
|
|
76
|
+
) + "") && E(f, a);
|
|
77
77
|
},
|
|
78
78
|
d(r) {
|
|
79
|
-
r &&
|
|
79
|
+
r && D(n);
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
function G(i) {
|
|
84
|
-
let
|
|
84
|
+
let l, n, s, a, f, _, r = [], c = /* @__PURE__ */ new Map(), m, p = (
|
|
85
85
|
/*rulerLabels*/
|
|
86
86
|
i[3]
|
|
87
|
-
),
|
|
88
|
-
for (let
|
|
89
|
-
|
|
90
|
-
let
|
|
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
|
|
94
|
+
const q = (e) => (
|
|
95
95
|
/*textItemIndex*/
|
|
96
|
-
|
|
96
|
+
e[13]
|
|
97
97
|
);
|
|
98
|
-
for (let
|
|
99
|
-
let o =
|
|
100
|
-
|
|
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
|
-
|
|
105
|
-
for (let
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
for (let
|
|
109
|
-
r[
|
|
110
|
-
|
|
111
|
-
|
|
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
|
-
),
|
|
116
|
-
i[0] + " svelte-
|
|
117
|
-
|
|
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
|
-
),
|
|
122
|
-
|
|
121
|
+
), z(
|
|
122
|
+
l,
|
|
123
123
|
"width",
|
|
124
124
|
/*isRow*/
|
|
125
125
|
i[2] ? "100%" : 1 / 16 + "rem"
|
|
126
|
-
),
|
|
126
|
+
), z(l, "height", /*isRow*/
|
|
127
127
|
i[2] ? 1 / 16 + "rem" : "100%");
|
|
128
128
|
},
|
|
129
|
-
m(
|
|
130
|
-
|
|
131
|
-
for (let t = 0; t <
|
|
132
|
-
|
|
133
|
-
|
|
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(
|
|
135
|
+
r[t] && r[t].m(_, null);
|
|
136
136
|
},
|
|
137
|
-
p(
|
|
137
|
+
p(e, [o]) {
|
|
138
138
|
if (o & /*rulerLabels*/
|
|
139
139
|
8) {
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
p = /*rulerLabels*/
|
|
141
|
+
e[3];
|
|
142
142
|
let t;
|
|
143
|
-
for (t = 0; t <
|
|
144
|
-
const
|
|
145
|
-
|
|
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 <
|
|
148
|
-
|
|
149
|
-
|
|
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 && (
|
|
153
|
-
|
|
154
|
-
1 &&
|
|
155
|
-
|
|
156
|
-
5 &&
|
|
157
|
-
|
|
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
|
-
|
|
160
|
+
e[2]
|
|
161
161
|
);
|
|
162
162
|
},
|
|
163
|
-
i:
|
|
164
|
-
o:
|
|
165
|
-
d(
|
|
166
|
-
|
|
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
|
|
173
|
-
function J(i,
|
|
174
|
-
let { type: s } =
|
|
175
|
-
const r = s === "top" || s === "bottom",
|
|
176
|
-
const o = r ? (
|
|
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
|
-
|
|
180
|
-
const
|
|
181
|
-
const
|
|
182
|
-
return { left:
|
|
183
|
-
}).filter(({ distance:
|
|
184
|
-
return i.$$set = (
|
|
185
|
-
"type" in
|
|
186
|
-
}, [s,
|
|
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
|
|
189
|
-
constructor(
|
|
190
|
-
super(),
|
|
188
|
+
class Q extends O {
|
|
189
|
+
constructor(l) {
|
|
190
|
+
super(), P(
|
|
191
191
|
this,
|
|
192
|
-
|
|
192
|
+
l,
|
|
193
193
|
J,
|
|
194
194
|
G,
|
|
195
|
-
|
|
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.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.50.10",
|
|
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",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var a = (
|
|
3
|
-
var
|
|
1
|
+
var o = Object.defineProperty;
|
|
2
|
+
var a = (r, s, e) => s in r ? o(r, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[s] = e;
|
|
3
|
+
var n = (r, s, e) => (a(r, typeof s != "symbol" ? s + "" : s, e), e);
|
|
4
4
|
import * as t from "three";
|
|
5
|
-
import { POINT_HELPER_TEXTURE_URL as
|
|
6
|
-
import { CSS3DObjectPlus as
|
|
5
|
+
import { POINT_HELPER_TEXTURE_URL as h } from "../../Assets/index.js";
|
|
6
|
+
import { CSS3DObjectPlus as l } from "../../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
7
7
|
import { rangePieceImg as c } from "./html.js";
|
|
8
8
|
import { initialCSS3DRender as d } from "../../../five/initialCSS3DRender.js";
|
|
9
9
|
const p = `
|
|
@@ -13,7 +13,7 @@ void main() {
|
|
|
13
13
|
vec4 mvPosition = modelViewMatrix * vec4(position, 1);
|
|
14
14
|
gl_Position = projectionMatrix * mvPosition;
|
|
15
15
|
}
|
|
16
|
-
`,
|
|
16
|
+
`, M = `
|
|
17
17
|
varying vec2 vUv;
|
|
18
18
|
void main() {
|
|
19
19
|
vec2 uv = vec2(vUv.x, vUv.y);
|
|
@@ -22,38 +22,38 @@ void main() {
|
|
|
22
22
|
gl_FragColor = vec4(1.0,1.0,1.0,match);
|
|
23
23
|
}
|
|
24
24
|
`;
|
|
25
|
-
function
|
|
26
|
-
const
|
|
25
|
+
function u() {
|
|
26
|
+
const r = new t.PlaneGeometry(0.4, 0.4), s = h, e = new t.TextureLoader().load(s);
|
|
27
27
|
e.encoding = t.sRGBEncoding, e.minFilter = t.LinearFilter;
|
|
28
|
-
const
|
|
28
|
+
const i = new t.MeshBasicMaterial({
|
|
29
29
|
map: e,
|
|
30
30
|
transparent: !0,
|
|
31
31
|
depthTest: !1
|
|
32
32
|
});
|
|
33
|
-
return new t.Mesh(
|
|
33
|
+
return new t.Mesh(r, i);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
const
|
|
35
|
+
function v() {
|
|
36
|
+
const r = new t.CurvePath();
|
|
37
|
+
r.add(new t.LineCurve3(new t.Vector3(0, 0, 0), new t.Vector3(0, 0, 0.1)));
|
|
38
|
+
const s = new t.TubeGeometry(r, 8, 3e-3), e = new t.ShaderMaterial({
|
|
39
39
|
vertexShader: p,
|
|
40
|
-
fragmentShader:
|
|
40
|
+
fragmentShader: M,
|
|
41
41
|
depthTest: !1,
|
|
42
42
|
transparent: !0
|
|
43
43
|
});
|
|
44
|
-
return new t.Mesh(
|
|
44
|
+
return new t.Mesh(s, e);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
const
|
|
46
|
+
function m() {
|
|
47
|
+
const r = new t.SphereGeometry(0.01, 20, 20), s = new t.MeshBasicMaterial({
|
|
48
48
|
color: 10349931,
|
|
49
49
|
depthTest: !1,
|
|
50
50
|
transparent: !0,
|
|
51
51
|
side: t.DoubleSide
|
|
52
|
-
}), e = new t.Mesh(
|
|
52
|
+
}), e = new t.Mesh(r, s);
|
|
53
53
|
return e.position.set(0, 0, 0.1), e;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
const
|
|
55
|
+
function b() {
|
|
56
|
+
const s = new l({
|
|
57
57
|
pointerEvents: "none",
|
|
58
58
|
cornerPoints: [
|
|
59
59
|
new t.Vector3(-0.2, 0.2, 0),
|
|
@@ -62,22 +62,26 @@ function w() {
|
|
|
62
62
|
new t.Vector3(0.2, 0.2, 0)
|
|
63
63
|
]
|
|
64
64
|
}), e = document.createElement("div");
|
|
65
|
-
return e.style.width = "100%", e.style.height = "100%", e.style.backgroundImage = `url(${c})`, e.style.backgroundSize = "100%", e.style.backgroundRepeat = "no-repeat",
|
|
65
|
+
return e.style.width = "100%", e.style.height = "100%", e.style.backgroundImage = `url(${c})`, e.style.backgroundSize = "100%", e.style.backgroundRepeat = "no-repeat", s.container.appendChild(e), s;
|
|
66
66
|
}
|
|
67
|
-
class
|
|
67
|
+
class T extends t.Object3D {
|
|
68
68
|
constructor(e) {
|
|
69
69
|
super();
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
this.planeMesh =
|
|
70
|
+
n(this, "planeMesh");
|
|
71
|
+
n(this, "lineMesh");
|
|
72
|
+
n(this, "ballMesh");
|
|
73
|
+
n(this, "borderMesh");
|
|
74
|
+
this.planeMesh = u(), this.lineMesh = v(), this.ballMesh = m(), this.borderMesh = b(), this.addEventListener("added", () => {
|
|
75
|
+
this.add(this.planeMesh, this.lineMesh, this.ballMesh, this.borderMesh);
|
|
76
|
+
}), this.addEventListener("removed", () => {
|
|
77
|
+
this.remove(this.planeMesh, this.lineMesh, this.ballMesh, this.borderMesh);
|
|
78
|
+
}), d(e);
|
|
75
79
|
}
|
|
76
80
|
updateWithIntersect(e) {
|
|
77
81
|
if (!e.face)
|
|
78
82
|
return;
|
|
79
|
-
const
|
|
80
|
-
this.position.copy(e.point), this.lookAt(
|
|
83
|
+
const i = new t.Vector3().addVectors(e.point, e.face.normal);
|
|
84
|
+
this.position.copy(e.point), this.lookAt(i);
|
|
81
85
|
}
|
|
82
86
|
show() {
|
|
83
87
|
this.visible = !0, this.borderMesh.parent || this.add(this.borderMesh);
|
|
@@ -91,5 +95,5 @@ class x extends t.Object3D {
|
|
|
91
95
|
}
|
|
92
96
|
}
|
|
93
97
|
export {
|
|
94
|
-
|
|
98
|
+
T as PointHelper
|
|
95
99
|
};
|