@realsee/dnalogel 3.52.0 → 3.52.1
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/Sculpt/Meshes/Rectangle.d.ts +0 -4
- package/dist/Sculpt/Objects/Base/index.d.ts +1 -2
- package/dist/Sculpt/Objects/Rectangle/index.d.ts +1 -2
- package/dist/Sculpt/index.d.ts +0 -10
- package/dist/index.cjs.js +19 -19
- package/dist/index.js +58 -69
- package/dist/index.umd.js +21 -21
- package/libs/Sculpt/Meshes/Rectangle.d.ts +0 -4
- package/libs/Sculpt/Meshes/Rectangle.js +8 -15
- package/libs/Sculpt/Objects/Base/index.d.ts +1 -2
- package/libs/Sculpt/Objects/Base/index.js +30 -34
- package/libs/Sculpt/Objects/Box/index.js +14 -14
- package/libs/Sculpt/Objects/Circle/index.js +49 -49
- package/libs/Sculpt/Objects/Cylinder/index.js +41 -41
- package/libs/Sculpt/Objects/Prism/index.js +23 -23
- package/libs/Sculpt/Objects/Rectangle/index.d.ts +1 -2
- package/libs/Sculpt/Objects/Rectangle/index.js +61 -60
- package/libs/Sculpt/index.d.ts +0 -10
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48,7 +48,7 @@ import Bp from "earcut";
|
|
|
48
48
|
import { GLTFLoader as Vp } from "@realsee/five/gltf-loader";
|
|
49
49
|
function Rp() {
|
|
50
50
|
console.debug(
|
|
51
|
-
"%c %c@realsee/dnalogel %cv3.52.
|
|
51
|
+
"%c %c@realsee/dnalogel %cv3.52.1",
|
|
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",
|
|
@@ -1394,7 +1394,7 @@ class av extends b.Mesh {
|
|
|
1394
1394
|
return e !== null && e.remove(this), this;
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1397
|
+
function jt(...n) {
|
|
1398
1398
|
const t = new se();
|
|
1399
1399
|
return n.forEach((e) => t.add(e)), t.divideScalar(n.length), t;
|
|
1400
1400
|
}
|
|
@@ -2299,7 +2299,7 @@ class Yt extends Rt {
|
|
|
2299
2299
|
}).filter(xe).map((s) => Xs(this, s));
|
|
2300
2300
|
i.forEach(([s, o], r) => {
|
|
2301
2301
|
var c;
|
|
2302
|
-
const a =
|
|
2302
|
+
const a = jt(s, o);
|
|
2303
2303
|
this.doms[r] = (c = this.doms[r]) != null ? c : (() => {
|
|
2304
2304
|
const h = new Ti(this.five);
|
|
2305
2305
|
return h.intersectCheck = !1, h.simulate3D = !0, h;
|
|
@@ -3613,7 +3613,7 @@ class sm extends el {
|
|
|
3613
3613
|
new se(F, -F, 0),
|
|
3614
3614
|
new se(F, F, 0)
|
|
3615
3615
|
];
|
|
3616
|
-
})(), o = (S = e.ratio) != null ? S : s0, r = (T = e.dpr) != null ? T : 1, a = (W = e.pointerEvents) != null ? W : "auto", l = Math.max(n0, o), c = s[0].distanceTo(s[1]), h = s[1].distanceTo(s[2]), u = Ko(c / o * r), f = Ko(h / o * r), m =
|
|
3616
|
+
})(), o = (S = e.ratio) != null ? S : s0, r = (T = e.dpr) != null ? T : 1, a = (W = e.pointerEvents) != null ? W : "auto", l = Math.max(n0, o), c = s[0].distanceTo(s[1]), h = s[1].distanceTo(s[2]), u = Ko(c / o * r), f = Ko(h / o * r), m = jt(...s);
|
|
3617
3617
|
let v;
|
|
3618
3618
|
if (l === o)
|
|
3619
3619
|
i.style.width = `${u}px`, i.style.height = `${f}px`, v = i;
|
|
@@ -9023,7 +9023,7 @@ let Hi = class {
|
|
|
9023
9023
|
/**
|
|
9024
9024
|
* @realsee/dnalogel 版本号
|
|
9025
9025
|
*/
|
|
9026
|
-
d(this, "VERSION", "3.52.
|
|
9026
|
+
d(this, "VERSION", "3.52.1");
|
|
9027
9027
|
d(this, "NAME");
|
|
9028
9028
|
d(this, "five");
|
|
9029
9029
|
d(this, "workUtil");
|
|
@@ -12575,7 +12575,7 @@ class ey extends Rm {
|
|
|
12575
12575
|
const s = i.clientWidth, o = i.clientHeight, r = s / 2, a = o / 2;
|
|
12576
12576
|
if (this.line.points.length < 2)
|
|
12577
12577
|
return;
|
|
12578
|
-
const [l, c] = this.line.points.map((T) => T.position.clone().applyMatrix4(this.line.mesh.matrixWorld)), h = l.clone().project(e.camera), u = c.clone().project(e.camera), f =
|
|
12578
|
+
const [l, c] = this.line.points.map((T) => T.position.clone().applyMatrix4(this.line.mesh.matrixWorld)), h = l.clone().project(e.camera), u = c.clone().project(e.camera), f = jt(l, c).clone().project(e.camera), m = new Ct(h.x * r, h.y * a), v = new Ct(u.x * r, u.y * a), p = m.distanceTo(v);
|
|
12579
12579
|
if ((() => !(Math.abs(h.z) > 1 || Math.abs(u.z) > 1 || !Zo(h) && !Zo(u) || !Zo(f) || p === 0))() === !1) {
|
|
12580
12580
|
this.hide();
|
|
12581
12581
|
return;
|
|
@@ -12658,7 +12658,7 @@ let Jn = class _m {
|
|
|
12658
12658
|
const t = new _m(this.points[0].clone(), this.points[1].clone(), this.model);
|
|
12659
12659
|
return t.text = this.text, t;
|
|
12660
12660
|
}
|
|
12661
|
-
},
|
|
12661
|
+
}, Bt = class Fm {
|
|
12662
12662
|
constructor(t) {
|
|
12663
12663
|
d(this, "id");
|
|
12664
12664
|
d(this, "position");
|
|
@@ -12711,7 +12711,7 @@ let xr = class {
|
|
|
12711
12711
|
var i, s, o;
|
|
12712
12712
|
this.five = t.five, this.hook = t.hook, this.model = t.model, this.getMeasureType = t.getMeasureType, this.config = t.config, this.editParams = t.editParams, this.magnifierParams = t.magnifierParams, this.magnifier = t.magnifier, this.pointSelectorConfig = ee(x({}, t.pointSelectorConfig), {
|
|
12713
12713
|
helper: x({ magnifierParams: t.magnifierParams }, (i = t.pointSelectorConfig) == null ? void 0 : i.helper)
|
|
12714
|
-
}), this.container = t.container, this.isMobile = (o = (s = t.openParams) == null ? void 0 : s.isMobile) != null ? o : !1, this.workUtil = t.workUtil, this.userDistanceItemCreator = t.userDistanceItemCreator, this.group = t.group, this.mouseGroup = t.mouseGroup, this.dashed = new Jn(new
|
|
12714
|
+
}), this.container = t.container, this.isMobile = (o = (s = t.openParams) == null ? void 0 : s.isMobile) != null ? o : !1, this.workUtil = t.workUtil, this.userDistanceItemCreator = t.userDistanceItemCreator, this.group = t.group, this.mouseGroup = t.mouseGroup, this.dashed = new Jn(new Bt([0, 0, 0]), new Bt([0, 0, 0]), this.model), this.dashed.distanceItem.setCanSelect(!1), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine", this.perpendicularDashed = new Jn(new Bt([0, 0, 0]), new Bt([0, 0, 0]), this.model), this.perpendicularDashed.distanceItem.setCanSelect(!1), this.perpendicularDashed.mesh.setMaterial({ dashed: !0, dashScale: 40, color: new os(10218089) }), this.perpendicularDashed.mesh.name = "perpendicularDashLine";
|
|
12715
12715
|
const e = this.five.getElement();
|
|
12716
12716
|
e && (e.addEventListener("touchstart", Bo), e.addEventListener("contextmenu", Bo));
|
|
12717
12717
|
}
|
|
@@ -12836,7 +12836,7 @@ let xr = class {
|
|
|
12836
12836
|
const c = o.get(l.id);
|
|
12837
12837
|
if (c)
|
|
12838
12838
|
return c;
|
|
12839
|
-
const h = new
|
|
12839
|
+
const h = new Bt(l.position);
|
|
12840
12840
|
return h.id = l.id, o.set(l.id, h), h;
|
|
12841
12841
|
}
|
|
12842
12842
|
function a() {
|
|
@@ -12976,7 +12976,7 @@ function ac(n, t, e) {
|
|
|
12976
12976
|
}
|
|
12977
12977
|
function Qm(n, t, e, i) {
|
|
12978
12978
|
const s = i != null ? i : ac(n, t, e);
|
|
12979
|
-
return
|
|
12979
|
+
return jt(n, t, e).multiplyScalar(s);
|
|
12980
12980
|
}
|
|
12981
12981
|
function ly(n) {
|
|
12982
12982
|
var s;
|
|
@@ -13070,7 +13070,7 @@ class fl {
|
|
|
13070
13070
|
this.points = this.points.concat(t);
|
|
13071
13071
|
const e = this.points.at(-2), i = this.points.at(-1);
|
|
13072
13072
|
if (e && i) {
|
|
13073
|
-
const o = new Jn(new
|
|
13073
|
+
const o = new Jn(new Bt(e), new Bt(i), this.polyline.model);
|
|
13074
13074
|
this.polyline.addLine(o), this.meshContainer.add(o.mesh), this.five && (o.distanceItem.setCanSelect(!1), o.distanceItem.appendTo(this.domContainer), o.distanceItem.update(this.five));
|
|
13075
13075
|
}
|
|
13076
13076
|
(s = this.meshContainer) != null && s.children.includes(this.polygon) || this.meshContainer.add(this.polygon), this.polygon.updatePoints(this.points), this.areaItem.updateArea(this.five), this.points.length === 3 ? this.planeHelper = new b.Plane().setFromCoplanarPoints(this.points[0], this.points[1], this.points[2]) : this.points.length < 3 && (this.planeHelper = null);
|
|
@@ -13240,7 +13240,7 @@ class Si extends xr {
|
|
|
13240
13240
|
this.lastPoint = null, this.hasAppendDashed = !1, this.dashed.remove(), this.five.needsRender = !0, this.hook.emit("revoke", { isEmpty: !0 });
|
|
13241
13241
|
return;
|
|
13242
13242
|
} else
|
|
13243
|
-
this.lastPoint = new
|
|
13243
|
+
this.lastPoint = new Bt(this.area.points[this.area.points.length - 1]), this.updateDashed();
|
|
13244
13244
|
this.five.needsRender = !0;
|
|
13245
13245
|
}
|
|
13246
13246
|
});
|
|
@@ -13293,7 +13293,7 @@ class Si extends xr {
|
|
|
13293
13293
|
})();
|
|
13294
13294
|
if (!e)
|
|
13295
13295
|
return;
|
|
13296
|
-
const i = new
|
|
13296
|
+
const i = new Bt(e), s = this.lastPoint;
|
|
13297
13297
|
if (s != null && s.position && i.position.equals(s == null ? void 0 : s.position))
|
|
13298
13298
|
return;
|
|
13299
13299
|
this.lastPoint = i;
|
|
@@ -13889,7 +13889,7 @@ class yy {
|
|
|
13889
13889
|
const t = this.getIntersection();
|
|
13890
13890
|
if (t) {
|
|
13891
13891
|
this.pieceChange(t), this.updateMouseGroup(t);
|
|
13892
|
-
const e = new
|
|
13892
|
+
const e = new Bt(this.mouseGroup.position);
|
|
13893
13893
|
this.hook.emit("nowPointChange", e);
|
|
13894
13894
|
}
|
|
13895
13895
|
});
|
|
@@ -13897,7 +13897,7 @@ class yy {
|
|
|
13897
13897
|
var s;
|
|
13898
13898
|
this.dotAnimation();
|
|
13899
13899
|
const i = (s = this.getIntersection()) == null ? void 0 : s.point;
|
|
13900
|
-
i && (e === "editing" ? this.hook.emit("getStartPoint", new
|
|
13900
|
+
i && (e === "editing" ? this.hook.emit("getStartPoint", new Bt(i)) : this.hook.emit("getEndPoint", new Bt(i)));
|
|
13901
13901
|
});
|
|
13902
13902
|
/** 计算目标中心点经纬度 */
|
|
13903
13903
|
d(this, "computedCenterMouseXY", () => {
|
|
@@ -15710,7 +15710,7 @@ class sw {
|
|
|
15710
15710
|
return this.container.style.display = "none", this.container.style.opacity = "0", this.container.style.transform = "translate(0, 10px)", this.mode === "pc" && ((t = this.revoke) == null || t.dispose()), (e = this.mainController) == null || e.dispose(), this.disposers.forEach((i) => i()), this.disposers = [], this;
|
|
15711
15711
|
}
|
|
15712
15712
|
}
|
|
15713
|
-
var
|
|
15713
|
+
var Vt = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, Ge = {}, ow = {
|
|
15714
15714
|
get exports() {
|
|
15715
15715
|
return Ge;
|
|
15716
15716
|
},
|
|
@@ -18717,7 +18717,7 @@ function bl(n) {
|
|
|
18717
18717
|
}
|
|
18718
18718
|
function Fd(n) {
|
|
18719
18719
|
const t = bl(n);
|
|
18720
|
-
return
|
|
18720
|
+
return jt(...Array.isArray(t) ? t : [t]);
|
|
18721
18721
|
}
|
|
18722
18722
|
function Ro(n, t) {
|
|
18723
18723
|
if (n === void 0)
|
|
@@ -19088,20 +19088,20 @@ function Gd(n) {
|
|
|
19088
19088
|
return {
|
|
19089
19089
|
c() {
|
|
19090
19090
|
t = L("div"), P(t, "class", "shadow svelte-faoauy"), P(t, "style", e = `
|
|
19091
|
-
left: ${
|
|
19091
|
+
left: ${Ot(
|
|
19092
19092
|
/*left*/
|
|
19093
19093
|
n[5]
|
|
19094
19094
|
)};
|
|
19095
|
-
bottom: ${
|
|
19095
|
+
bottom: ${Ot(
|
|
19096
19096
|
/*bottom*/
|
|
19097
19097
|
n[6]
|
|
19098
19098
|
)};
|
|
19099
19099
|
border-radius: ${/*round*/
|
|
19100
19100
|
n[10] ? "9999px" : "0"};
|
|
19101
|
-
box-shadow: 0 0 ${
|
|
19101
|
+
box-shadow: 0 0 ${Ot(
|
|
19102
19102
|
/*blurRadius*/
|
|
19103
19103
|
n[11]
|
|
19104
|
-
)} ${
|
|
19104
|
+
)} ${Ot(
|
|
19105
19105
|
/*spreadRadius*/
|
|
19106
19106
|
n[12]
|
|
19107
19107
|
)} rgba(0, 0, 0, ${/*opacity*/
|
|
@@ -19112,10 +19112,10 @@ function Gd(n) {
|
|
|
19112
19112
|
n[9] ? "transform: translateX(-50%); top: 50%" : ""}
|
|
19113
19113
|
${/*center*/
|
|
19114
19114
|
n[7] ? "transform: translate(-50%, -50%); left: 50%; top: 50%;" : ""}
|
|
19115
|
-
`), z(t, "width",
|
|
19115
|
+
`), z(t, "width", Ot(
|
|
19116
19116
|
/*width*/
|
|
19117
19117
|
n[3]
|
|
19118
|
-
)), z(t, "height",
|
|
19118
|
+
)), z(t, "height", Ot(
|
|
19119
19119
|
/*height*/
|
|
19120
19120
|
n[4]
|
|
19121
19121
|
)), z(
|
|
@@ -19131,20 +19131,20 @@ function Gd(n) {
|
|
|
19131
19131
|
p(r, a) {
|
|
19132
19132
|
n = r, (!o || a & /*left, bottom, round, blurRadius, spreadRadius, opacity, horizontalCenter, verticalCenter, center*/
|
|
19133
19133
|
16352 && e !== (e = `
|
|
19134
|
-
left: ${
|
|
19134
|
+
left: ${Ot(
|
|
19135
19135
|
/*left*/
|
|
19136
19136
|
n[5]
|
|
19137
19137
|
)};
|
|
19138
|
-
bottom: ${
|
|
19138
|
+
bottom: ${Ot(
|
|
19139
19139
|
/*bottom*/
|
|
19140
19140
|
n[6]
|
|
19141
19141
|
)};
|
|
19142
19142
|
border-radius: ${/*round*/
|
|
19143
19143
|
n[10] ? "9999px" : "0"};
|
|
19144
|
-
box-shadow: 0 0 ${
|
|
19144
|
+
box-shadow: 0 0 ${Ot(
|
|
19145
19145
|
/*blurRadius*/
|
|
19146
19146
|
n[11]
|
|
19147
|
-
)} ${
|
|
19147
|
+
)} ${Ot(
|
|
19148
19148
|
/*spreadRadius*/
|
|
19149
19149
|
n[12]
|
|
19150
19150
|
)} rgba(0, 0, 0, ${/*opacity*/
|
|
@@ -19159,11 +19159,11 @@ function Gd(n) {
|
|
|
19159
19159
|
const l = a & /*left, bottom, round, blurRadius, spreadRadius, opacity, horizontalCenter, verticalCenter, center*/
|
|
19160
19160
|
16352;
|
|
19161
19161
|
(l || a & /*width, left, bottom, round, blurRadius, spreadRadius, opacity, horizontalCenter, verticalCenter, center*/
|
|
19162
|
-
16360) && z(t, "width",
|
|
19162
|
+
16360) && z(t, "width", Ot(
|
|
19163
19163
|
/*width*/
|
|
19164
19164
|
n[3]
|
|
19165
19165
|
)), (l || a & /*height, left, bottom, round, blurRadius, spreadRadius, opacity, horizontalCenter, verticalCenter, center*/
|
|
19166
|
-
16368) && z(t, "height",
|
|
19166
|
+
16368) && z(t, "height", Ot(
|
|
19167
19167
|
/*height*/
|
|
19168
19168
|
n[4]
|
|
19169
19169
|
)), (l || a & /*zIndex, left, bottom, round, blurRadius, spreadRadius, opacity, horizontalCenter, verticalCenter, center*/
|
|
@@ -19223,7 +19223,7 @@ function tP(n) {
|
|
|
19223
19223
|
}
|
|
19224
19224
|
};
|
|
19225
19225
|
}
|
|
19226
|
-
function
|
|
19226
|
+
function Ot(n) {
|
|
19227
19227
|
return typeof n == "number" ? n / 16 + "rem" : n;
|
|
19228
19228
|
}
|
|
19229
19229
|
function iP(n, t, e) {
|
|
@@ -21339,7 +21339,7 @@ const Qs = (n, t, e) => {
|
|
|
21339
21339
|
}, yl = (n) => (t) => {
|
|
21340
21340
|
n[t] && n[t]();
|
|
21341
21341
|
};
|
|
21342
|
-
var LI = "Expected a function", dg = "__lodash_hash_undefined__", ug = 1 / 0, zI = "[object Function]", jI = "[object GeneratorFunction]", OI = "[object Symbol]", BI = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, VI = /^\w*$/, RI = /^\./, _I = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, FI = /[\\^$.*+?()[\]{}|]/g, NI = /\\(\\)?/g, HI = /^\[object .+?Constructor\]$/, GI = typeof
|
|
21342
|
+
var LI = "Expected a function", dg = "__lodash_hash_undefined__", ug = 1 / 0, zI = "[object Function]", jI = "[object GeneratorFunction]", OI = "[object Symbol]", BI = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, VI = /^\w*$/, RI = /^\./, _I = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, FI = /[\\^$.*+?()[\]{}|]/g, NI = /\\(\\)?/g, HI = /^\[object .+?Constructor\]$/, GI = typeof Vt == "object" && Vt && Vt.Object === Object && Vt, QI = typeof self == "object" && self && self.Object === Object && self, vc = GI || QI || Function("return this")();
|
|
21343
21343
|
function WI(n, t) {
|
|
21344
21344
|
return n == null ? void 0 : n[t];
|
|
21345
21345
|
}
|
|
@@ -21581,7 +21581,7 @@ var Fo = k2, fr = {}, x2 = {
|
|
|
21581
21581
|
(function(n, t) {
|
|
21582
21582
|
var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, o = "[object Arguments]", r = "[object Array]", a = "[object Boolean]", l = "[object Date]", c = "[object Error]", h = "[object Function]", u = "[object GeneratorFunction]", f = "[object Map]", m = "[object Number]", v = "[object Object]", p = "[object Promise]", g = "[object RegExp]", A = "[object Set]", w = "[object String]", I = "[object Symbol]", C = "[object WeakMap]", M = "[object ArrayBuffer]", E = "[object DataView]", S = "[object Float32Array]", T = "[object Float64Array]", W = "[object Int8Array]", F = "[object Int16Array]", H = "[object Int32Array]", G = "[object Uint8Array]", N = "[object Uint8ClampedArray]", U = "[object Uint16Array]", _ = "[object Uint32Array]", Y = /[\\^$.*+?()[\]{}|]/g, Z = /\w*$/, J = /^\[object .+?Constructor\]$/, ae = /^(?:0|[1-9]\d*)$/, re = {};
|
|
21583
21583
|
re[o] = re[r] = re[M] = re[E] = re[a] = re[l] = re[S] = re[T] = re[W] = re[F] = re[H] = re[f] = re[m] = re[v] = re[g] = re[A] = re[w] = re[I] = re[G] = re[N] = re[U] = re[_] = !0, re[c] = re[h] = re[C] = !1;
|
|
21584
|
-
var Pe = typeof
|
|
21584
|
+
var Pe = typeof Vt == "object" && Vt && Vt.Object === Object && Vt, ve = typeof self == "object" && self && self.Object === Object && self, ge = Pe || ve || Function("return this")(), Re = t && !t.nodeType && t, ye = Re && !0 && n && !n.nodeType && n, Qe = ye && ye.exports === Re;
|
|
21585
21585
|
function K(y, k) {
|
|
21586
21586
|
return y.set(k[0], k[1]), y;
|
|
21587
21587
|
}
|
|
@@ -22034,7 +22034,7 @@ var mr = {}, S2 = {
|
|
|
22034
22034
|
(function(n, t) {
|
|
22035
22035
|
var e = 200, i = "__lodash_hash_undefined__", s = 1, o = 2, r = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", h = "[object Boolean]", u = "[object Date]", f = "[object Error]", m = "[object Function]", v = "[object GeneratorFunction]", p = "[object Map]", g = "[object Number]", A = "[object Null]", w = "[object Object]", I = "[object Promise]", C = "[object Proxy]", M = "[object RegExp]", E = "[object Set]", S = "[object String]", T = "[object Symbol]", W = "[object Undefined]", F = "[object WeakMap]", H = "[object ArrayBuffer]", G = "[object DataView]", N = "[object Float32Array]", U = "[object Float64Array]", _ = "[object Int8Array]", Y = "[object Int16Array]", Z = "[object Int32Array]", J = "[object Uint8Array]", ae = "[object Uint8ClampedArray]", re = "[object Uint16Array]", Pe = "[object Uint32Array]", ve = /[\\^$.*+?()[\]{}|]/g, ge = /^\[object .+?Constructor\]$/, Re = /^(?:0|[1-9]\d*)$/, ye = {};
|
|
22036
22036
|
ye[N] = ye[U] = ye[_] = ye[Y] = ye[Z] = ye[J] = ye[ae] = ye[re] = ye[Pe] = !0, ye[a] = ye[l] = ye[H] = ye[h] = ye[G] = ye[u] = ye[f] = ye[m] = ye[p] = ye[g] = ye[w] = ye[M] = ye[E] = ye[S] = ye[F] = !1;
|
|
22037
|
-
var Qe = typeof
|
|
22037
|
+
var Qe = typeof Vt == "object" && Vt && Vt.Object === Object && Vt, K = typeof self == "object" && self && self.Object === Object && self, Ae = Qe || K || Function("return this")(), Le = t && !t.nodeType && t, pe = Le && !0 && n && !n.nodeType && n, Ye = pe && pe.exports === Le, ze = Ye && Qe.process, ke = function() {
|
|
22038
22038
|
try {
|
|
22039
22039
|
return ze && ze.binding && ze.binding("util");
|
|
22040
22040
|
} catch (y) {
|
|
@@ -27250,7 +27250,7 @@ class Ra extends b.Mesh {
|
|
|
27250
27250
|
constructor(e, i, s) {
|
|
27251
27251
|
if (e.length !== 4)
|
|
27252
27252
|
throw new Error("QuadrangleMesh: Invalid number of points, it's not a quadrangle");
|
|
27253
|
-
const [o, r, a, l] = e, c =
|
|
27253
|
+
const [o, r, a, l] = e, c = jt(...e), h = [o.clone().sub(c), r.clone().sub(c), a.clone().sub(c), l.clone().sub(c)], u = new Eg(h, s);
|
|
27254
27254
|
super(u, i);
|
|
27255
27255
|
d(this, "name", "QuadrangleMesh");
|
|
27256
27256
|
this.position.copy(c);
|
|
@@ -27423,7 +27423,7 @@ class kg extends Mg {
|
|
|
27423
27423
|
(p = s == null ? void 0 : s.objectFit) != null ? p : "contain",
|
|
27424
27424
|
r,
|
|
27425
27425
|
l.image.width / l.image.height
|
|
27426
|
-
), f =
|
|
27426
|
+
), f = jt(...u), m = u.map((g) => g.clone().sub(f)), v = new Eg(m);
|
|
27427
27427
|
this.position.copy(f), this.geometry = v, this.material = h;
|
|
27428
27428
|
}).catch((l) => {
|
|
27429
27429
|
console.error(`Imageplane error ${l == null ? void 0 : l.message}`);
|
|
@@ -27458,7 +27458,7 @@ class xg extends Mg {
|
|
|
27458
27458
|
d(this, "buttonMesh");
|
|
27459
27459
|
d(this, "videoTextureMap");
|
|
27460
27460
|
d(this, "ImageTextureMap");
|
|
27461
|
-
this.cornerPoints = i, this.src = e, this.buttonSrc = (() => a === "withText" ? dc : a === "withoutText" ? vl : typeof a == "string" ? a : vl)(), this.videoCoverSrc = o, this.objectFit = r, this.videoTextureMap = c, this.ImageTextureMap = h, this.domEvents = u, this.position.copy(
|
|
27461
|
+
this.cornerPoints = i, this.src = e, this.buttonSrc = (() => a === "withText" ? dc : a === "withoutText" ? vl : typeof a == "string" ? a : vl)(), this.videoCoverSrc = o, this.objectFit = r, this.videoTextureMap = c, this.ImageTextureMap = h, this.domEvents = u, this.position.copy(jt(...i)), this.videoCoverSrc && l ? this.addCoverMesh().then(() => this.addButtonMesh()) : this.addVideoMesh().then(() => {
|
|
27462
27462
|
l ? this.addButtonMesh() : this.play(!0);
|
|
27463
27463
|
}), this.addEventListener("removed", () => {
|
|
27464
27464
|
this.remove(...this.children);
|
|
@@ -27774,7 +27774,7 @@ class Cc {
|
|
|
27774
27774
|
}
|
|
27775
27775
|
get centerPosition() {
|
|
27776
27776
|
const t = bl(this);
|
|
27777
|
-
return
|
|
27777
|
+
return jt(...Array.isArray(t) ? t : [t]);
|
|
27778
27778
|
}
|
|
27779
27779
|
get currentConfig() {
|
|
27780
27780
|
var s, o;
|
|
@@ -29302,7 +29302,7 @@ class XM extends YM {
|
|
|
29302
29302
|
if (!r || r.length !== 4 || !Array.isArray(r[0]) || !Array.isArray(r[2]))
|
|
29303
29303
|
return;
|
|
29304
29304
|
i.updateWorldMatrix(!1, !1);
|
|
29305
|
-
const a = i.matrixWorld, l = new se().fromArray(r[0]), c = new se().fromArray(r[2]), h =
|
|
29305
|
+
const a = i.matrixWorld, l = new se().fromArray(r[0]), c = new se().fromArray(r[2]), h = jt(l, c).add(new se(0, 0, 5e-4)), u = new _s().setPosition(h), f = new _s().makeScale(s, s, s), m = new _s().multiply(a).multiply(u).multiply(f);
|
|
29306
29306
|
m.decompose(o.position, o.quaternion, o.scale);
|
|
29307
29307
|
const v = o.opacityMesh;
|
|
29308
29308
|
v && m.decompose(v.position, v.quaternion, v.scale);
|
|
@@ -37007,12 +37007,8 @@ class Ci extends Rt {
|
|
|
37007
37007
|
Ke.modules.cursor.removeDeleteButton();
|
|
37008
37008
|
});
|
|
37009
37009
|
}
|
|
37010
|
-
applyObjectMatrixWorld(e) {
|
|
37011
|
-
return
|
|
37012
|
-
}
|
|
37013
|
-
applyObjectQuaternion(e) {
|
|
37014
|
-
const i = this.quaternion.clone();
|
|
37015
|
-
return Array.isArray(e) ? e.map((s) => s.clone().applyQuaternion(i)) : e.clone().applyQuaternion(i);
|
|
37010
|
+
applyObjectMatrixWorld(e, i) {
|
|
37011
|
+
return i.updateMatrixWorld(), Xs(i, e);
|
|
37016
37012
|
}
|
|
37017
37013
|
}
|
|
37018
37014
|
class jr extends Rt {
|
|
@@ -37105,7 +37101,7 @@ class rx extends Dc {
|
|
|
37105
37101
|
return this.originObject.polyLineMesh.points;
|
|
37106
37102
|
}
|
|
37107
37103
|
}
|
|
37108
|
-
function
|
|
37104
|
+
function zt(n) {
|
|
37109
37105
|
return Array.isArray(n) ? n.map((t) => [t.x, t.y, t.z]) : [n.x, n.y, n.z];
|
|
37110
37106
|
}
|
|
37111
37107
|
function Sc() {
|
|
@@ -37132,7 +37128,7 @@ class yf extends Ci {
|
|
|
37132
37128
|
}
|
|
37133
37129
|
get data() {
|
|
37134
37130
|
return ee(x({}, this.baseData), {
|
|
37135
|
-
points:
|
|
37131
|
+
points: zt(this.applyObjectMatrixWorld(this.polyLineMesh.points)),
|
|
37136
37132
|
style: {
|
|
37137
37133
|
lineColor: new b.Color(this.polyLineMesh.lineColor).getHex(),
|
|
37138
37134
|
lineWidth: this.polyLineMesh.lineWidth,
|
|
@@ -37241,7 +37237,7 @@ class wf extends Ci {
|
|
|
37241
37237
|
}
|
|
37242
37238
|
get data() {
|
|
37243
37239
|
return ee(x({}, this.baseData), {
|
|
37244
|
-
point:
|
|
37240
|
+
point: zt(this.applyObjectMatrixWorld(this.pointMesh.position)),
|
|
37245
37241
|
style: {
|
|
37246
37242
|
color: this.pointMesh.color.getHex(),
|
|
37247
37243
|
size: this.pointMesh.size
|
|
@@ -37506,7 +37502,7 @@ class Cf extends Ci {
|
|
|
37506
37502
|
}
|
|
37507
37503
|
get data() {
|
|
37508
37504
|
return this.updateMatrixWorld(), ee(x({}, this.baseData), {
|
|
37509
|
-
points:
|
|
37505
|
+
points: zt(this.applyObjectMatrixWorld(this.areaMesh.points)),
|
|
37510
37506
|
style: {
|
|
37511
37507
|
color: this.areaMesh.color.getHex(),
|
|
37512
37508
|
lineColor: this.areaMesh.lineColor.getHex(),
|
|
@@ -37794,8 +37790,8 @@ class Pf extends Ci {
|
|
|
37794
37790
|
}
|
|
37795
37791
|
get data() {
|
|
37796
37792
|
return ee(x({}, this.baseData), {
|
|
37797
|
-
points:
|
|
37798
|
-
heightPoint:
|
|
37793
|
+
points: zt(this.applyObjectMatrixWorld(this.prismMesh.bottomPositions, this.prismMesh)),
|
|
37794
|
+
heightPoint: zt(this.applyObjectMatrixWorld(this.prismMesh.topPosition, this.prismMesh)),
|
|
37799
37795
|
style: {
|
|
37800
37796
|
color: this.prismMesh.color.getHex(),
|
|
37801
37797
|
lineWidth: this.prismMesh.lineWidth,
|
|
@@ -37929,13 +37925,6 @@ class ep extends Lc {
|
|
|
37929
37925
|
get color() {
|
|
37930
37926
|
return this.meshFont.material.color;
|
|
37931
37927
|
}
|
|
37932
|
-
/**
|
|
37933
|
-
* @description: 构造矩形所需的三个点
|
|
37934
|
-
*/
|
|
37935
|
-
get builtPoints() {
|
|
37936
|
-
var e, i;
|
|
37937
|
-
return (i = (e = this.meshFont) == null ? void 0 : e.geometry) == null ? void 0 : i.points.slice(0, 3);
|
|
37938
|
-
}
|
|
37939
37928
|
setPoints(e) {
|
|
37940
37929
|
const i = e.map(Ne).filter(xe);
|
|
37941
37930
|
if (i.length < 3) {
|
|
@@ -37980,7 +37969,7 @@ class gr extends ep {
|
|
|
37980
37969
|
}
|
|
37981
37970
|
}
|
|
37982
37971
|
function tp(n, t) {
|
|
37983
|
-
const e = fn(n), i =
|
|
37972
|
+
const e = fn(n), i = jt(...n), s = t.clone().sub(i);
|
|
37984
37973
|
return e.dot(s) >= 0 ? n : n.slice().reverse();
|
|
37985
37974
|
}
|
|
37986
37975
|
class If extends Ci {
|
|
@@ -37996,7 +37985,7 @@ class If extends Ci {
|
|
|
37996
37985
|
}
|
|
37997
37986
|
get data() {
|
|
37998
37987
|
return ee(x({}, this.baseData), {
|
|
37999
|
-
points: this.rectangleMesh.
|
|
37988
|
+
points: zt(this.applyObjectMatrixWorld(this.rectangleMesh.points, this.rectangleMesh)),
|
|
38000
37989
|
style: {
|
|
38001
37990
|
color: this.rectangleMesh.color.getHex(),
|
|
38002
37991
|
opacity: this.rectangleMesh.opacity,
|
|
@@ -38191,8 +38180,8 @@ class Ef extends Ci {
|
|
|
38191
38180
|
}
|
|
38192
38181
|
get data() {
|
|
38193
38182
|
return ee(x({}, this.baseData), {
|
|
38194
|
-
center:
|
|
38195
|
-
normal:
|
|
38183
|
+
center: zt(this.applyObjectMatrixWorld(this.circleMesh.center, this.circleMesh)),
|
|
38184
|
+
normal: zt(this.circleMesh.normal.clone().applyQuaternion(this.circleMesh.quaternion)),
|
|
38196
38185
|
radius: this.circleMesh.radius,
|
|
38197
38186
|
style: {
|
|
38198
38187
|
color: this.circleMesh.color.getHex()
|
|
@@ -38362,8 +38351,8 @@ class Mf extends Ci {
|
|
|
38362
38351
|
}
|
|
38363
38352
|
get data() {
|
|
38364
38353
|
return ee(x({}, this.baseData), {
|
|
38365
|
-
bottomCenter:
|
|
38366
|
-
topCenter:
|
|
38354
|
+
bottomCenter: zt(this.applyObjectMatrixWorld(this.cylinderMesh.bottomCenter, this.cylinderMesh)),
|
|
38355
|
+
topCenter: zt(this.applyObjectMatrixWorld(this.cylinderMesh.topCenter, this.cylinderMesh)),
|
|
38367
38356
|
radius: this.cylinderMesh.radius,
|
|
38368
38357
|
style: {
|
|
38369
38358
|
color: this.cylinderMesh.color.getHex()
|
|
@@ -38517,7 +38506,7 @@ class Sl extends is {
|
|
|
38517
38506
|
this._geometryInfoCache = void 0;
|
|
38518
38507
|
return;
|
|
38519
38508
|
}
|
|
38520
|
-
const s =
|
|
38509
|
+
const s = jt(...e), o = i.clone().sub(e[0]), r = s.clone().add(o.clone().divideScalar(2));
|
|
38521
38510
|
this._geometryInfoCache = { center: r };
|
|
38522
38511
|
}
|
|
38523
38512
|
return this._geometryInfoCache;
|
|
@@ -38536,8 +38525,8 @@ class kf extends Ci {
|
|
|
38536
38525
|
}
|
|
38537
38526
|
get data() {
|
|
38538
38527
|
return ee(x({}, this.baseData), {
|
|
38539
|
-
points:
|
|
38540
|
-
heightPoint:
|
|
38528
|
+
points: zt(this.applyObjectMatrixWorld(this.boxMesh.bottomPositions, this.boxMesh)),
|
|
38529
|
+
heightPoint: zt(this.applyObjectMatrixWorld(this.boxMesh.topPosition, this.boxMesh)),
|
|
38541
38530
|
style: {
|
|
38542
38531
|
color: this.boxMesh.color.getHex(),
|
|
38543
38532
|
opacity: this.boxMesh.opacity,
|
|
@@ -38570,7 +38559,7 @@ function lp(n, t, e) {
|
|
|
38570
38559
|
}
|
|
38571
38560
|
const r = new gr(n.style);
|
|
38572
38561
|
o.add(r), yield jc(r, t, e), o.remove(r), n.setPoints({ points: r.points });
|
|
38573
|
-
const a = new Yt(), l = fn(n.bottomPositions), c =
|
|
38562
|
+
const a = new Yt(), l = fn(n.bottomPositions), c = jt(...n.bottomPositions), h = c.clone().add(l.clone().multiplyScalar(10)), u = c.clone().sub(l.clone().multiplyScalar(10));
|
|
38574
38563
|
a.setPoints([h, u]), o.add(a), t.enable();
|
|
38575
38564
|
const f = (g) => {
|
|
38576
38565
|
v(), i();
|
|
@@ -38612,7 +38601,7 @@ class xf extends Ci {
|
|
|
38612
38601
|
}
|
|
38613
38602
|
get data() {
|
|
38614
38603
|
return ee(x({}, this.baseData), {
|
|
38615
|
-
points:
|
|
38604
|
+
points: zt(this.applyObjectMatrixWorld(this.lineMesh.points)),
|
|
38616
38605
|
style: {
|
|
38617
38606
|
lineColor: new b.Color(this.lineMesh.color).getHex(),
|
|
38618
38607
|
lineWidth: this.lineMesh.lineWidth,
|
|
@@ -39307,7 +39296,7 @@ export {
|
|
|
39307
39296
|
pD as PanoMeasurePlugin,
|
|
39308
39297
|
Jn as PanoMeasurePluginLine,
|
|
39309
39298
|
Wm as PanoMeasurePluginModel,
|
|
39310
|
-
|
|
39299
|
+
Bt as PanoMeasurePluginPoint,
|
|
39311
39300
|
qn as PanoMeasurePluginPolyline,
|
|
39312
39301
|
cD as PanoRulerPlugin,
|
|
39313
39302
|
dD as PanoRulerProPlugin,
|