@realsee/dnalogel 3.47.3 → 3.47.4
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 +3 -0
- package/dist/index.cjs.js +5 -3
- package/dist/index.js +10 -9
- package/dist/index.umd.js +5 -3
- package/dist/shared-utils/three/Magnifier.d.ts +1 -0
- package/libs/Sculpt/Meshes/Line.js +8 -6
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/Magnifier.d.ts +1 -0
- package/libs/shared-utils/three/Magnifier.js +23 -24
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -48,7 +48,7 @@ import wp from "earcut";
|
|
|
48
48
|
import { GLTFLoader as Cp } from "@realsee/five/gltf-loader";
|
|
49
49
|
function Pp() {
|
|
50
50
|
console.debug(
|
|
51
|
-
"%c %c@realsee/dnalogel %cv3.47.
|
|
51
|
+
"%c %c@realsee/dnalogel %cv3.47.4",
|
|
52
52
|
[
|
|
53
53
|
"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=')",
|
|
54
54
|
"background-repeat: no-repeat",
|
|
@@ -1485,6 +1485,7 @@ class Ml {
|
|
|
1485
1485
|
d(this, "hammer");
|
|
1486
1486
|
d(this, "offsetRange");
|
|
1487
1487
|
d(this, "isPanning", !1);
|
|
1488
|
+
d(this, "imageData", new ImageData(1, 1));
|
|
1488
1489
|
d(this, "onPanstart", () => {
|
|
1489
1490
|
this.isPanning = !0, this.canvas.style.boxShadow = "0 2px 30px 0 rgba(0,0,0,0.20)";
|
|
1490
1491
|
});
|
|
@@ -1581,14 +1582,12 @@ class Ml {
|
|
|
1581
1582
|
return;
|
|
1582
1583
|
const { scale: t, context: e, width: i, height: s } = this, o = this.five.renderer.getSize(new y.Vector2()), [r, a] = (() => {
|
|
1583
1584
|
if (this.renderCenter instanceof y.Vector3) {
|
|
1584
|
-
const
|
|
1585
|
-
return [(
|
|
1585
|
+
const p = this.renderCenter.clone().project(this.five.camera);
|
|
1586
|
+
return [(p.x + 1) / 2 * o.x, (p.y + 1) / 2 * o.y];
|
|
1586
1587
|
} else
|
|
1587
1588
|
return [this.renderCenter.x, o.y - this.renderCenter.y];
|
|
1588
1589
|
})(), l = 1, c = i / t, h = s / t, u = l * t, f = this.five.getPixels(r - c / 2, a - c / 2, c, h, u), m = Math.floor(i * l), v = Math.floor(s * l);
|
|
1589
|
-
Jp(f, m, v);
|
|
1590
|
-
const p = new ImageData(m, v);
|
|
1591
|
-
p.data.set(f), e.putImageData(p, 0, 0), this.canvas.style.visibility = "visible";
|
|
1590
|
+
Jp(f, m, v), (this.imageData.width !== m || this.imageData.height !== v) && (this.imageData = new ImageData(m, v)), this.imageData.data.set(f), e.putImageData(this.imageData, 0, 0), this.canvas.style.visibility = "visible";
|
|
1592
1591
|
}
|
|
1593
1592
|
initStyle() {
|
|
1594
1593
|
const t = this.canvas;
|
|
@@ -2102,7 +2101,7 @@ let Oi = class {
|
|
|
2102
2101
|
/**
|
|
2103
2102
|
* @realsee/dnalogel 版本号
|
|
2104
2103
|
*/
|
|
2105
|
-
d(this, "VERSION", "3.47.
|
|
2104
|
+
d(this, "VERSION", "3.47.4");
|
|
2106
2105
|
d(this, "NAME");
|
|
2107
2106
|
d(this, "five");
|
|
2108
2107
|
d(this, "workUtil");
|
|
@@ -4716,7 +4715,7 @@ class Ut extends jt {
|
|
|
4716
4715
|
}
|
|
4717
4716
|
updateLengthItems() {
|
|
4718
4717
|
var e, i;
|
|
4719
|
-
if (this.points.length < 2 && (this.lengthDoms.forEach((s) => s.destroy()), this.lengthDoms = []), this.paramsStyle.lengthEnable) {
|
|
4718
|
+
if ((!this.points || this.points.length < 2) && (this.lengthDoms.forEach((s) => s.destroy()), this.lengthDoms = []), this.paramsStyle.lengthEnable) {
|
|
4720
4719
|
const s = (i = (e = this.points) == null ? void 0 : e.map((o, r) => {
|
|
4721
4720
|
if (r !== 0)
|
|
4722
4721
|
return [this.points[r - 1], o];
|
|
@@ -4724,7 +4723,9 @@ class Ut extends jt {
|
|
|
4724
4723
|
s.forEach(([o, r], a) => {
|
|
4725
4724
|
var h;
|
|
4726
4725
|
const l = ai(o, r), c = o.distanceTo(r).toFixed(2) + "m";
|
|
4727
|
-
this.lengthDoms[a] = (h = this.lengthDoms[a]) != null ? h : new kl(Bl.five), this.lengthDoms[a].setPosition(l), this.lengthDoms[a].container.innerHTML =
|
|
4726
|
+
this.lengthDoms[a] = (h = this.lengthDoms[a]) != null ? h : new kl(Bl.five), this.lengthDoms[a].setPosition(l), this.lengthDoms[a].container.innerHTML = `
|
|
4727
|
+
<div style="pointer-events:none;color:white;">${c}</div>
|
|
4728
|
+
`;
|
|
4728
4729
|
}), this.lengthDoms.length > s.length && (this.lengthDoms.slice(s.length).forEach((o) => o.destroy()), this.lengthDoms.length = s.length);
|
|
4729
4730
|
} else
|
|
4730
4731
|
this.lengthDoms.forEach((s) => s.destroy()), this.lengthDoms = [];
|