@realsee/dnalogel 3.44.1 → 3.44.3
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/PanoTagPlugin/controller/TagUtil.d.ts +4 -1
- package/dist/index.cjs.js +5 -5
- package/dist/index.js +22 -16
- package/dist/index.umd.js +5 -5
- package/libs/CurrentPanoImagePlugin/Controller.js +43 -39
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +37 -37
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +4 -1
- package/libs/PanoTagPlugin/controller/TagUtil.js +13 -9
- package/libs/PanoTagPlugin/controller/index.js +6 -8
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48,7 +48,7 @@ import up from "earcut";
|
|
|
48
48
|
import { GLTFLoader as fp } from "@realsee/five/gltf-loader";
|
|
49
49
|
function mp() {
|
|
50
50
|
console.debug(
|
|
51
|
-
"%c %c@realsee/dnalogel %cv3.44.
|
|
51
|
+
"%c %c@realsee/dnalogel %cv3.44.3",
|
|
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",
|
|
@@ -2166,7 +2166,7 @@ class Sf {
|
|
|
2166
2166
|
d(this, "abortUpdateMagnifier", () => {
|
|
2167
2167
|
});
|
|
2168
2168
|
var s, o, r, a;
|
|
2169
|
-
|
|
2169
|
+
this.five = t, this.magnifier = (e == null ? void 0 : e.magnifier) !== void 0 ? e.magnifier : new El(t, (s = e == null ? void 0 : e.magnifierParams) != null ? s : { dragEnabled: !0 });
|
|
2170
2170
|
let i;
|
|
2171
2171
|
(e == null ? void 0 : e.pointHelper) === "default" || (e == null ? void 0 : e.pointHelper) === void 0 ? i = new xf(t) : (e == null ? void 0 : e.pointHelper) === "highlight" ? i = new fv(t) : i = e.pointHelper, this.pointHelper = i, this.group.name = "five-point-selector", this.five.scene.add(this.group), (a = this.magnifier) == null || a.appendTo((r = (o = e.container) != null ? o : t.getElement().parentElement) != null ? r : document.body);
|
|
2172
2172
|
}
|
|
@@ -8182,7 +8182,7 @@ let Fi = class {
|
|
|
8182
8182
|
/**
|
|
8183
8183
|
* @realsee/dnalogel 版本号
|
|
8184
8184
|
*/
|
|
8185
|
-
d(this, "VERSION", "3.44.
|
|
8185
|
+
d(this, "VERSION", "3.44.3");
|
|
8186
8186
|
d(this, "NAME");
|
|
8187
8187
|
d(this, "five");
|
|
8188
8188
|
d(this, "workUtil");
|
|
@@ -28715,8 +28715,12 @@ class yM extends Fi {
|
|
|
28715
28715
|
return (e = this._cache_css3DTag) != null ? e : [];
|
|
28716
28716
|
}
|
|
28717
28717
|
addRenderQueue(e) {
|
|
28718
|
-
|
|
28719
|
-
|
|
28718
|
+
var r, a;
|
|
28719
|
+
const { type: i, keys: s = [], tags: o = [] } = e;
|
|
28720
|
+
this.renderQueue.has(i) ? this.renderQueue.set(i, {
|
|
28721
|
+
keys: Array.from(/* @__PURE__ */ new Set([...(r = this.renderQueue.get(i).keys) != null ? r : [], ...s])),
|
|
28722
|
+
tags: Array.from(/* @__PURE__ */ new Set([...(a = this.renderQueue.get(i).tags) != null ? a : [], ...o]))
|
|
28723
|
+
}) : this.renderQueue.set(i, { keys: s, tags: o });
|
|
28720
28724
|
}
|
|
28721
28725
|
getTagById(e) {
|
|
28722
28726
|
const i = this.tags.find((s) => s.id === e);
|
|
@@ -29223,7 +29227,7 @@ function LM(n, t, e) {
|
|
|
29223
29227
|
800
|
|
29224
29228
|
);
|
|
29225
29229
|
}, f = (p) => {
|
|
29226
|
-
h || (
|
|
29230
|
+
h || (l.entryFromModel && Qt(l.five.state.mode) ? l.find({ targetMode: "Panorama" }).then(() => l.unfoldAndFoldOthers()) : a.emit("click", { event: p, target: "TagPoint", tag: l }));
|
|
29227
29231
|
}, m = (() => l.contentType === "Text" && l.data.appearance === "plane" ? 500 : 800)();
|
|
29228
29232
|
function v(p) {
|
|
29229
29233
|
as.call(this, n, p);
|
|
@@ -29885,10 +29889,8 @@ class pl extends wM {
|
|
|
29885
29889
|
});
|
|
29886
29890
|
d(this, "handleFivePanoArrived", () => _(this, null, function* () {
|
|
29887
29891
|
this.tags.forEach((e) => {
|
|
29888
|
-
e.state.visible = !1, e.applyVisible(), e.updateVisible();
|
|
29889
|
-
}), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }), yield this.setUnfolded(), this.updateRender3DDomTag(), this.tags.
|
|
29890
|
-
e.temporaryState = te(x({}, e.temporaryState), { visible: !0 });
|
|
29891
|
-
}), this.tags.filter(gC).filter((e) => {
|
|
29892
|
+
e.state.visible = !1, e.temporaryState = te(x({}, e.temporaryState), { visible: !0 }), e.applyVisible(), e.updateVisible();
|
|
29893
|
+
}), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }), yield this.setUnfolded(), this.updateRender3DDomTag(), this.tags.filter(gC).filter((e) => {
|
|
29892
29894
|
var i;
|
|
29893
29895
|
return (i = e.getConfig().modelConfig) == null ? void 0 : i.autoLookAtEnabled;
|
|
29894
29896
|
}).forEach((e) => {
|
|
@@ -29914,8 +29916,8 @@ class pl extends wM {
|
|
|
29914
29916
|
});
|
|
29915
29917
|
d(this, "render", () => {
|
|
29916
29918
|
this.renderQueue.forEach((e, i) => {
|
|
29917
|
-
const
|
|
29918
|
-
if (
|
|
29919
|
+
const { keys: s } = e;
|
|
29920
|
+
if (i === "TagContainerSvelte") {
|
|
29919
29921
|
const r = this.filterPointTag.filter((l) => l.screenPosition), a = {
|
|
29920
29922
|
hooks: this.hooks,
|
|
29921
29923
|
tags: r,
|
|
@@ -29928,10 +29930,10 @@ class pl extends wM {
|
|
|
29928
29930
|
};
|
|
29929
29931
|
if (this.TagContainerSvelte) {
|
|
29930
29932
|
let l = {};
|
|
29931
|
-
if (
|
|
29933
|
+
if (s.length === 0)
|
|
29932
29934
|
l = a;
|
|
29933
29935
|
else
|
|
29934
|
-
for (const c of
|
|
29936
|
+
for (const c of s)
|
|
29935
29937
|
l[c] = a[c];
|
|
29936
29938
|
this.TagContainerSvelte.$set(l);
|
|
29937
29939
|
} else {
|
|
@@ -35662,8 +35664,12 @@ class p3 extends Fi {
|
|
|
35662
35664
|
}
|
|
35663
35665
|
/** 根据点位更新 Mesh 坐标 */
|
|
35664
35666
|
updateMeshPosition(e) {
|
|
35665
|
-
|
|
35666
|
-
|
|
35667
|
+
const i = this.workUtil.getObserverStandingPosition(e);
|
|
35668
|
+
if (!i) {
|
|
35669
|
+
console.warn("CurrentPanoImagePlugin: 无法获取到当前点位的 standingPosition");
|
|
35670
|
+
return;
|
|
35671
|
+
}
|
|
35672
|
+
const s = i.clone().setY(i.y + this.config.yOffset);
|
|
35667
35673
|
s && this.mesh.position.copy(s);
|
|
35668
35674
|
}
|
|
35669
35675
|
/** 重新加载贴图,调用时会先清除已有的贴图 */
|