@realsee/dnalogel 3.50.12 → 3.50.13
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/PanoTagPlugin/controller/Tag/BaseTag.d.ts +3 -3
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +0 -3
- package/dist/PanoTagPlugin/controller/index.d.ts +4 -0
- package/dist/base/BasePlugin.d.ts +1 -1
- package/dist/index.cjs.js +3 -3
- package/dist/index.js +18 -20
- package/dist/index.umd.js +3 -3
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +3 -3
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +0 -3
- package/libs/PanoTagPlugin/controller/TagRender.js +80 -110
- package/libs/PanoTagPlugin/controller/index.d.ts +4 -0
- package/libs/PanoTagPlugin/controller/index.js +41 -29
- package/libs/base/BasePlugin.d.ts +1 -1
- 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 LE from "earcut";
|
|
|
48
48
|
import { GLTFLoader as kE } from "@realsee/five/gltf-loader";
|
|
49
49
|
function RE() {
|
|
50
50
|
console.debug(
|
|
51
|
-
"%c %c@realsee/dnalogel %cv3.50.
|
|
51
|
+
"%c %c@realsee/dnalogel %cv3.50.13",
|
|
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",
|
|
@@ -27815,7 +27815,7 @@ let ws = class {
|
|
|
27815
27815
|
/**
|
|
27816
27816
|
* @realsee/dnalogel 版本号
|
|
27817
27817
|
*/
|
|
27818
|
-
v(this, "VERSION", "3.50.
|
|
27818
|
+
v(this, "VERSION", "3.50.13");
|
|
27819
27819
|
v(this, "NAME");
|
|
27820
27820
|
v(this, "five");
|
|
27821
27821
|
v(this, "workUtil");
|
|
@@ -48526,13 +48526,6 @@ class T8 extends S8 {
|
|
|
48526
48526
|
bindRenderer(t, i) {
|
|
48527
48527
|
this.contentTypeMap.set(t, i);
|
|
48528
48528
|
}
|
|
48529
|
-
clearTags() {
|
|
48530
|
-
var t;
|
|
48531
|
-
this.tags.length && (this.tags.forEach((i) => {
|
|
48532
|
-
var r, s, o, a, l;
|
|
48533
|
-
(s = (r = i.mediaPlane) == null ? void 0 : r.parent) == null || s.remove(i.mediaPlane), (l = (a = (o = i.model) == null ? void 0 : o.object) == null ? void 0 : a.parent) == null || l.remove(i.model.object);
|
|
48534
|
-
}), this.tags = [], this.tagsLengthWillUpdate = !0, this.hooks.emit("tagsLengthChange"), (t = this.TagContainerSvelte) == null || t.$destroy(), this.TagContainerSvelte = void 0, this.disposeAllCSS3DContainer()), this.enabledModelTagSet.clear(), this.cache.clear();
|
|
48535
|
-
}
|
|
48536
48529
|
/**
|
|
48537
48530
|
* @description 渲染3D贴片
|
|
48538
48531
|
*/
|
|
@@ -48619,13 +48612,6 @@ class T8 extends S8 {
|
|
|
48619
48612
|
const m = s.opacityMesh;
|
|
48620
48613
|
m && f.decompose(m.position, m.quaternion, m.scale);
|
|
48621
48614
|
}
|
|
48622
|
-
/** 添加模型标签 */
|
|
48623
|
-
addMediaModelTag(t) {
|
|
48624
|
-
return ee(this, null, function* () {
|
|
48625
|
-
const i = t.filter((r) => r.stickType === "Model").map((r) => r.loadModel());
|
|
48626
|
-
yield Promise.all(i), t.forEach((r) => r.updateVisible());
|
|
48627
|
-
});
|
|
48628
|
-
}
|
|
48629
48615
|
disposeAllCSS3DContainer() {
|
|
48630
48616
|
for (const [, t] of this.store.css3DRenderDisposer)
|
|
48631
48617
|
t == null || t.forEach((i) => i == null ? void 0 : i());
|
|
@@ -49710,7 +49696,7 @@ class Um extends T8 {
|
|
|
49710
49696
|
});
|
|
49711
49697
|
this.params = Ht({}, { debug: !1, config: this.config }, R({}, i)), this.debug = this.params.debug, this.config = this.params.config, this.debug && this.debugUtil.bindLog(), DO(1, { namespace: Ug.PlayAudio });
|
|
49712
49698
|
try {
|
|
49713
|
-
Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ || Object.defineProperty(window, "__PANOTAGPLUGIN_DEBUG__", {
|
|
49699
|
+
Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), this.NAME = NM + "-" + window.__PANOTAGPLUGIN_DEBUG_LIST__.length, window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ || Object.defineProperty(window, "__PANOTAGPLUGIN_DEBUG__", {
|
|
49714
49700
|
get: function() {
|
|
49715
49701
|
return window.__PANOTAGPLUGIN_DEBUG_LIST__.sort((r, s) => s.tags.length - r.tags.length)[0];
|
|
49716
49702
|
}
|
|
@@ -49732,7 +49718,7 @@ class Um extends T8 {
|
|
|
49732
49718
|
var r, s;
|
|
49733
49719
|
this.clearTags();
|
|
49734
49720
|
try {
|
|
49735
|
-
console.debug(
|
|
49721
|
+
console.debug(this.NAME, " load:", { data: JSON.parse(JSON.stringify(t)) });
|
|
49736
49722
|
} catch (o) {
|
|
49737
49723
|
}
|
|
49738
49724
|
this.config = Ht({}, this.config, {
|
|
@@ -49759,8 +49745,10 @@ class Um extends T8 {
|
|
|
49759
49745
|
});
|
|
49760
49746
|
return r.forEach(SO), this.tags.push(...r), this.tagsLengthWillUpdate = !0, Ya(this.five).then(() => ee(this, null, function* () {
|
|
49761
49747
|
var s, o;
|
|
49762
|
-
this.store.eventListenerDisposer && ((o = (s = this.store).eventListenerDisposer) == null || o.call(s)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(),
|
|
49763
|
-
|
|
49748
|
+
this.store.eventListenerDisposer && ((o = (s = this.store).eventListenerDisposer) == null || o.call(s)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), r.forEach((a) => {
|
|
49749
|
+
this.tags.includes(a) && (a.stickType === "Model" && a.loadModel().then(() => {
|
|
49750
|
+
this.tags.includes(a) && a.updateVisible();
|
|
49751
|
+
}), a.updateVisible(), a.updateZIndex());
|
|
49764
49752
|
}), this.setUnfolded(), this.addRenderQueue({ type: "TagContainerSvelte" }), this.hooks.emit("tagsLengthChange");
|
|
49765
49753
|
}));
|
|
49766
49754
|
});
|
|
@@ -49914,6 +49902,16 @@ class Um extends T8 {
|
|
|
49914
49902
|
updateRenderAllTags() {
|
|
49915
49903
|
this.tags.forEach((t) => t.updateVisible()), this.five.needsRender = !0;
|
|
49916
49904
|
}
|
|
49905
|
+
/**
|
|
49906
|
+
* @description 清除所有标签
|
|
49907
|
+
*/
|
|
49908
|
+
clearTags() {
|
|
49909
|
+
var t;
|
|
49910
|
+
this.tags.length && (this.tags.forEach((i) => {
|
|
49911
|
+
var r, s, o, a, l;
|
|
49912
|
+
(s = (r = i.mediaPlane) == null ? void 0 : r.parent) == null || s.remove(i.mediaPlane), (l = (a = (o = i.model) == null ? void 0 : o.object) == null ? void 0 : a.parent) == null || l.remove(i.model.object);
|
|
49913
|
+
}), this.tags = [], this.tagsLengthWillUpdate = !0, this.hooks.emit("tagsLengthChange"), (t = this.TagContainerSvelte) == null || t.$destroy(), this.TagContainerSvelte = void 0, this.disposeAllCSS3DContainer()), this.enabledModelTagSet.clear(), this.cache.clear();
|
|
49914
|
+
}
|
|
49917
49915
|
/**
|
|
49918
49916
|
* @description 设置 unfolded
|
|
49919
49917
|
*/
|