@realsee/dnalogel 3.47.15 → 3.48.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.
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs.js +48 -48
- package/dist/index.js +2990 -3011
- package/dist/index.umd.js +39 -39
- package/libs/PanoTagPlugin/Components/Common/Media.js +256 -272
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +1 -1
- package/libs/Sculpt/Meshes/Line.js +25 -29
- package/libs/Sculpt/Meshes/Polygon.js +6 -7
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/vendor/svelte/transition/index.js +1 -1
- package/package.json +1 -1
|
@@ -83,7 +83,7 @@ class ge extends f {
|
|
|
83
83
|
m.addEventListener("play", () => this.plugin.mediaStore.set({ currentMediaElement: s.videoInstance }));
|
|
84
84
|
};
|
|
85
85
|
const l = (m) => (this.five.on("renderFrame", m), () => this.five.off("renderFrame", m));
|
|
86
|
-
s.initialRenderHooks(l), this.mediaPlane = s, this.plugin.imagePlaneGroup.add(this.mediaPlane);
|
|
86
|
+
s.initialRenderHooks(l), this.mediaPlane = s, this.play = () => s.play(), this.pause = () => s.pause(), this.plugin.imagePlaneGroup.add(this.mediaPlane);
|
|
87
87
|
}
|
|
88
88
|
this.five.needsRender = !0;
|
|
89
89
|
}
|
|
@@ -19,8 +19,8 @@ import "hammerjs";
|
|
|
19
19
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
20
20
|
import { centerPoint as C } from "../../shared-utils/three/centerPoint.js";
|
|
21
21
|
import { LightTag as x } from "../../shared-utils/tag.js";
|
|
22
|
-
import { removeAllTag as
|
|
23
|
-
import { getLengthHTML as
|
|
22
|
+
import { removeAllTag as v } from "../utils/removeAllTag.js";
|
|
23
|
+
import { getLengthHTML as W } from "../utils/Meshes/getLengthHTML.js";
|
|
24
24
|
import { applyObjectMatrixWorld as m } from "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
25
25
|
import "../../shared-utils/three/THREESphere.js";
|
|
26
26
|
import "animejs";
|
|
@@ -51,7 +51,7 @@ class M extends I {
|
|
|
51
51
|
l(this, "name", "Line3");
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
class
|
|
54
|
+
class Q extends R {
|
|
55
55
|
constructor(e) {
|
|
56
56
|
var h, r, d, a, g;
|
|
57
57
|
super();
|
|
@@ -83,7 +83,7 @@ class X extends R {
|
|
|
83
83
|
resolution: t.resolution
|
|
84
84
|
});
|
|
85
85
|
this.line = new M(i, t), this.backLine = new M(i, n), this.line.renderOrder = 1, this.backLine.renderOrder = 0, this.line.name = "lineFrontMaterial", this.backLine.name = "lineBackMaterial", e && this.setStyle(e), e != null && e.points && this.setPoints(e.points), this.addEventListener("removed", () => {
|
|
86
|
-
|
|
86
|
+
v(this);
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
get style() {
|
|
@@ -112,7 +112,8 @@ class X extends R {
|
|
|
112
112
|
return this.line.material.depthTest === !1 ? "depthTest" : "translucence";
|
|
113
113
|
}
|
|
114
114
|
get five() {
|
|
115
|
-
|
|
115
|
+
var e, i;
|
|
116
|
+
return (i = (e = window.globalModules) == null ? void 0 : e.five) != null ? i : window.$five;
|
|
116
117
|
}
|
|
117
118
|
updateMatrixWorld(e) {
|
|
118
119
|
var i;
|
|
@@ -150,34 +151,29 @@ class X extends R {
|
|
|
150
151
|
this.highlighted && (this.highlighted = !1, this.line.material.opacity = this.opacityBeforeHighlight, this.backLine.material.opacity = 0.2, this.needsRender = !0);
|
|
151
152
|
}
|
|
152
153
|
updateLengthItems() {
|
|
153
|
-
if (!this.five) {
|
|
154
|
-
console.error("Five not found");
|
|
155
|
-
return;
|
|
156
|
-
}
|
|
157
154
|
const e = () => {
|
|
158
|
-
this.lengthDoms.forEach((
|
|
155
|
+
this.lengthDoms.forEach((t) => t.destroy()), this.lengthDoms = [];
|
|
159
156
|
};
|
|
160
|
-
if (!this.points || this.points.length < 2)
|
|
157
|
+
if (!this.points || this.points.length < 2 || !this.paramsStyle.lengthEnable)
|
|
161
158
|
return e();
|
|
162
|
-
if (this.
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
}
|
|
178
|
-
e();
|
|
159
|
+
if (!this.five)
|
|
160
|
+
return console.error("Five not found");
|
|
161
|
+
const i = m(this, this.points).map((t, n) => {
|
|
162
|
+
if (n !== 0)
|
|
163
|
+
return [m(this, this.points[n - 1]), t];
|
|
164
|
+
}).filter(c);
|
|
165
|
+
i.forEach(([t, n], h) => {
|
|
166
|
+
var a;
|
|
167
|
+
const r = C(t, n);
|
|
168
|
+
this.lengthDoms[h] = (a = this.lengthDoms[h]) != null ? a : (() => {
|
|
169
|
+
const g = new x(this.five);
|
|
170
|
+
return g.intersectCheck = !1, g;
|
|
171
|
+
})(), this.lengthDoms[h].setPosition(r, [t, n]);
|
|
172
|
+
const d = t.distanceTo(n).toFixed(2);
|
|
173
|
+
d === "0.00" ? this.lengthDoms[h].container.innerHTML = "" : this.lengthDoms[h].container.innerHTML = W(d + "m");
|
|
174
|
+
}), this.lengthDoms.length > i.length && (this.lengthDoms.slice(i.length).forEach((t) => t.destroy()), this.lengthDoms.length = i.length);
|
|
179
175
|
}
|
|
180
176
|
}
|
|
181
177
|
export {
|
|
182
|
-
|
|
178
|
+
Q as LineMesh
|
|
183
179
|
};
|
|
@@ -23,7 +23,7 @@ import { applyObjectMatrixWorld as D } from "../../shared-utils/three/applyObjec
|
|
|
23
23
|
const p = new l.BufferGeometry();
|
|
24
24
|
p.name = "blankGeometry";
|
|
25
25
|
p.isBlank = !0;
|
|
26
|
-
class
|
|
26
|
+
class R extends A {
|
|
27
27
|
constructor(e) {
|
|
28
28
|
super(e);
|
|
29
29
|
r(this, "name", "PolygonMesh");
|
|
@@ -53,7 +53,8 @@ class k extends A {
|
|
|
53
53
|
return this.geometryInfoNeedUpdate && (this._geometryInfo = _(this.geometry), this.geometryInfoNeedUpdate = !1), this._geometryInfo;
|
|
54
54
|
}
|
|
55
55
|
get five() {
|
|
56
|
-
|
|
56
|
+
var e, o;
|
|
57
|
+
return (o = (e = window.globalModules) == null ? void 0 : e.five) != null ? o : window.$five;
|
|
57
58
|
}
|
|
58
59
|
updateMatrixWorld(e) {
|
|
59
60
|
if (super.updateMatrixWorld(e), this.center) {
|
|
@@ -86,16 +87,14 @@ class k extends A {
|
|
|
86
87
|
}
|
|
87
88
|
updateAreaItems() {
|
|
88
89
|
var s;
|
|
89
|
-
if (!this.five) {
|
|
90
|
-
console.error("Five not found");
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
90
|
const e = () => {
|
|
94
91
|
var n;
|
|
95
92
|
(n = this.areaDom) == null || n.destroy(), this.areaDom = void 0;
|
|
96
93
|
};
|
|
97
94
|
if (!this._paramsStyle.lengthEnable || !this.geometryInfo)
|
|
98
95
|
return e();
|
|
96
|
+
if (!this.five)
|
|
97
|
+
return console.error("Five not found");
|
|
99
98
|
this.areaDom = (s = this.areaDom) != null ? s : (() => {
|
|
100
99
|
const n = new S(this.five);
|
|
101
100
|
return n.intersectCheck = !1, n;
|
|
@@ -105,5 +104,5 @@ class k extends A {
|
|
|
105
104
|
}
|
|
106
105
|
}
|
|
107
106
|
export {
|
|
108
|
-
|
|
107
|
+
R as PolygonMesh
|
|
109
108
|
};
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.48.0",
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { cubicOut as h, cubicInOut as k } from "../easing/index.js";
|
|
2
|
-
import {
|
|
2
|
+
import { split_css_unit as y, identity as _ } from "../internal/index.js";
|
|
3
3
|
function C(s, { delay: o = 0, duration: n = 400, easing: t = _ } = {}) {
|
|
4
4
|
const c = +getComputedStyle(s).opacity;
|
|
5
5
|
return {
|