@realsee/dnalogel 3.50.10 → 3.50.11
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/README.md +116 -0
- package/dist/index.cjs.js +3 -3
- package/dist/index.js +4 -4
- package/dist/index.umd.js +3 -3
- package/libs/PanoTagPlugin/controller/index.js +14 -14
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -34,10 +34,10 @@ import { isModelTag as A, isMediaModelTag as w } from "../utils/tag/tagCheck.js"
|
|
|
34
34
|
import { debounce as M } from "../utils/debounce.js";
|
|
35
35
|
import { throttle as b } from "../utils/throttle.js";
|
|
36
36
|
import _, { getTagStickType as I } from "../utils/tag/format.js";
|
|
37
|
-
import { generateBlankAudio as L, AudioNamespace as
|
|
38
|
-
import { resizeObserver as
|
|
39
|
-
import { TagRender as
|
|
40
|
-
import { isModelLike as
|
|
37
|
+
import { generateBlankAudio as L, AudioNamespace as R } from "../../shared-utils/audio.js";
|
|
38
|
+
import { resizeObserver as T } from "../../shared-utils/dom/resizeObserver.js";
|
|
39
|
+
import { TagRender as B } from "./TagRender.js";
|
|
40
|
+
import { isModelLike as O } from "../../shared-utils/five/mode.js";
|
|
41
41
|
import "hammerjs";
|
|
42
42
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
43
43
|
import "@realsee/five/line";
|
|
@@ -48,7 +48,7 @@ import "animejs";
|
|
|
48
48
|
import { nextFrame as G } from "../../shared-utils/animationFrame/index.js";
|
|
49
49
|
import { waitFiveModelLoaded as N } from "../../shared-utils/five/fiveModelLoad.js";
|
|
50
50
|
import { DebugUtil as V } from "../utils/DebugUtil.js";
|
|
51
|
-
import { safeObj as
|
|
51
|
+
import { safeObj as C } from "../../shared-utils/safeObj.js";
|
|
52
52
|
import { PointTag as z } from "./Tag/PointTag.js";
|
|
53
53
|
import { ModelTag as Q } from "./Tag/ModelTag.js";
|
|
54
54
|
import { PlaneTag as x } from "./Tag/PlaneTag.js";
|
|
@@ -193,7 +193,7 @@ import "../utils/addDebugPoints.js";
|
|
|
193
193
|
import "../Components/TagItem.js";
|
|
194
194
|
import "../Components/Common/TagPoint.js";
|
|
195
195
|
const S = "Dnalogel-PanoTagPlugin", Ji = (d) => `${S}--${d}`;
|
|
196
|
-
class Zi extends
|
|
196
|
+
class Zi extends B {
|
|
197
197
|
constructor(e, t) {
|
|
198
198
|
super(e);
|
|
199
199
|
/** state */
|
|
@@ -263,7 +263,7 @@ class Zi extends O {
|
|
|
263
263
|
this.tags.forEach((e) => e.updateVisible());
|
|
264
264
|
});
|
|
265
265
|
p(this, "onFiveEveryReady", () => {
|
|
266
|
-
this.setUnfoldedByCamera(),
|
|
266
|
+
this.setUnfoldedByCamera(), O(this.five.getCurrentState().mode) && this.tags.forEach((e) => e.updateVisible());
|
|
267
267
|
});
|
|
268
268
|
p(this, "render", () => {
|
|
269
269
|
this.renderQueue.forEach((e, t) => {
|
|
@@ -301,7 +301,7 @@ class Zi extends O {
|
|
|
301
301
|
}
|
|
302
302
|
}), this.renderQueue.clear();
|
|
303
303
|
});
|
|
304
|
-
this.params = m({}, { debug: !1, config: this.config }, f({}, t)), this.debug = this.params.debug, this.config = this.params.config, this.debug && this.debugUtil.bindLog(), L(1, { namespace:
|
|
304
|
+
this.params = m({}, { debug: !1, config: this.config }, f({}, t)), this.debug = this.params.debug, this.config = this.params.config, this.debug && this.debugUtil.bindLog(), L(1, { namespace: R.PlayAudio });
|
|
305
305
|
try {
|
|
306
306
|
Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ || Object.defineProperty(window, "__PANOTAGPLUGIN_DEBUG__", {
|
|
307
307
|
get: function() {
|
|
@@ -520,10 +520,10 @@ class Zi extends O {
|
|
|
520
520
|
});
|
|
521
521
|
}
|
|
522
522
|
handleShow() {
|
|
523
|
-
this.state.visible = !0, this.group.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["state"] }), this.five.needsRender = !0;
|
|
523
|
+
this.state.visible = !0, this.group.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["state"] }), this.updateRender3DDomTag(), this.five.needsRender = !0;
|
|
524
524
|
}
|
|
525
525
|
handleHide() {
|
|
526
|
-
this.pauseCurrentMedia(), this.state.visible = !1, this.group.visible = !1, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["state"] }), this.five.needsRender = !0;
|
|
526
|
+
this.pauseCurrentMedia(), this.state.visible = !1, this.group.visible = !1, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["state"] }), this.updateRender3DDomTag(), this.five.needsRender = !0;
|
|
527
527
|
}
|
|
528
528
|
handleEnable() {
|
|
529
529
|
this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.five.scene.children.includes(this.group) || this.five.scene.add(this.group), this.group.traverse((e) => {
|
|
@@ -553,12 +553,12 @@ class Zi extends O {
|
|
|
553
553
|
this.state.enabled && (this.filterPointTag.forEach((h) => h.updateScreenPosition({ force: !0 })), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }));
|
|
554
554
|
}, i = () => {
|
|
555
555
|
this.state.enabled && (this.temporaryState.visible = !1, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }));
|
|
556
|
-
}, { observe: o, unobserve: s } =
|
|
556
|
+
}, { observe: o, unobserve: s } = T(
|
|
557
557
|
b(() => {
|
|
558
558
|
this.store.resizeObserverDisposer && i();
|
|
559
559
|
}, 500),
|
|
560
560
|
e
|
|
561
|
-
), { observe: n, unobserve: r } =
|
|
561
|
+
), { observe: n, unobserve: r } = T(
|
|
562
562
|
M(() => t(), 400),
|
|
563
563
|
e
|
|
564
564
|
);
|
|
@@ -573,13 +573,13 @@ class Zi extends O {
|
|
|
573
573
|
if (t.state && i !== void 0) {
|
|
574
574
|
if (i === !0 && t.screenPosition) {
|
|
575
575
|
const o = t.getConfig().unfoldedConfig;
|
|
576
|
-
|
|
576
|
+
C(o).keep !== "unfolded" && (e = !0);
|
|
577
577
|
}
|
|
578
578
|
t.state.unfolded = i;
|
|
579
579
|
}
|
|
580
580
|
}), e && this.filterPointTag.forEach((t) => {
|
|
581
581
|
const i = t.getConfig().unfoldedConfig;
|
|
582
|
-
typeof i == "object" && (i.autoUnfold || i.autoUnfold === !1 ||
|
|
582
|
+
typeof i == "object" && (i.autoUnfold || i.autoUnfold === !1 || C(i.autoUnfold).enable === !1 || i.keep) || t.state && (t.state.unfolded = !1);
|
|
583
583
|
});
|
|
584
584
|
}
|
|
585
585
|
changeTagMode(e, t) {
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.50.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.50.11",
|
|
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",
|