@realsee/dnalogel 3.49.2 → 3.49.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 +3 -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 +16 -16
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var D = Object.defineProperty, P = Object.defineProperties;
|
|
2
2
|
var U = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var y = Object.getOwnPropertySymbols;
|
|
4
4
|
var F = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var u = (d, a, e) => a in d ? D(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, f = (d, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
7
|
F.call(a, e) && u(d, e, a[e]);
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
8
|
+
if (y)
|
|
9
|
+
for (var e of y(a))
|
|
10
10
|
E.call(a, e) && u(d, e, a[e]);
|
|
11
11
|
return d;
|
|
12
12
|
}, c = (d, a) => P(d, U(a));
|
|
@@ -29,10 +29,10 @@ var l = (d, a, e) => new Promise((t, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
import * as v from "three";
|
|
31
31
|
import { objectAssignDeepExports as m } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
32
|
-
import { arrayPositionToVector3 as
|
|
33
|
-
import { isModelTag as
|
|
32
|
+
import { arrayPositionToVector3 as k } from "../../shared-utils/positionToVector3.js";
|
|
33
|
+
import { isModelTag as A, isMediaModelTag as w } from "../utils/tag/tagCheck.js";
|
|
34
34
|
import { debounce as M } from "../utils/debounce.js";
|
|
35
|
-
import { throttle as
|
|
35
|
+
import { throttle as b } from "../utils/throttle.js";
|
|
36
36
|
import _, { getTagStickType as I } from "../utils/tag/format.js";
|
|
37
37
|
import { generateBlankAudio as L, AudioNamespace as B } from "../../shared-utils/audio.js";
|
|
38
38
|
import { resizeObserver as C } from "../../shared-utils/dom/resizeObserver.js";
|
|
@@ -50,8 +50,8 @@ import { waitFiveModelLoaded as N } from "../../shared-utils/five/fiveModelLoad.
|
|
|
50
50
|
import { DebugUtil as V } from "../utils/DebugUtil.js";
|
|
51
51
|
import { safeObj as T } from "../../shared-utils/safeObj.js";
|
|
52
52
|
import { PointTag as z } from "./Tag/PointTag.js";
|
|
53
|
-
import { ModelTag as
|
|
54
|
-
import { PlaneTag as
|
|
53
|
+
import { ModelTag as Q } from "./Tag/ModelTag.js";
|
|
54
|
+
import { PlaneTag as x } from "./Tag/PlaneTag.js";
|
|
55
55
|
import $ from "../Components/TagContainer.js";
|
|
56
56
|
import { tweenProgress as W } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
57
57
|
import "../Components/Tag/index.js";
|
|
@@ -241,7 +241,7 @@ class Zi extends O {
|
|
|
241
241
|
p(this, "handleFivePanoArrived", () => l(this, null, function* () {
|
|
242
242
|
this.tags.forEach((e) => {
|
|
243
243
|
e.state.visible = !1, e.temporaryState = c(f({}, e.temporaryState), { visible: !0 }), e.applyVisible(), e.updateVisible();
|
|
244
|
-
}), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }), yield this.setUnfolded(), this.updateRender3DDomTag(), this.tags.filter(
|
|
244
|
+
}), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }), yield this.setUnfolded(), this.updateRender3DDomTag(), this.tags.filter(A).filter((e) => {
|
|
245
245
|
var t;
|
|
246
246
|
return (t = e.getConfig().modelConfig) == null ? void 0 : t.autoLookAtEnabled;
|
|
247
247
|
}).forEach((e) => {
|
|
@@ -346,9 +346,9 @@ class Zi extends O {
|
|
|
346
346
|
if (s === "2DPoint" || s === "3DPoint")
|
|
347
347
|
return new z(this, o);
|
|
348
348
|
if (s === "Model")
|
|
349
|
-
return new x(this, o);
|
|
350
|
-
if (s === "Plane")
|
|
351
349
|
return new Q(this, o);
|
|
350
|
+
if (s === "Plane")
|
|
351
|
+
return new x(this, o);
|
|
352
352
|
});
|
|
353
353
|
return i.forEach(_), this.tags.push(...i), this.tagsLengthWillUpdate = !0, N(this.five).then(() => l(this, null, function* () {
|
|
354
354
|
var o, s;
|
|
@@ -463,7 +463,7 @@ class Zi extends O {
|
|
|
463
463
|
*/
|
|
464
464
|
changeTagNormalById(e, t) {
|
|
465
465
|
const i = this.getTagById(e);
|
|
466
|
-
i && i.tag3DContentSvelte && (i.tag3DContentSvelte.currentNormal =
|
|
466
|
+
i && i.tag3DContentSvelte && (i.tag3DContentSvelte.currentNormal = k(t));
|
|
467
467
|
}
|
|
468
468
|
/**
|
|
469
469
|
* @description 改变data
|
|
@@ -550,11 +550,11 @@ class Zi extends O {
|
|
|
550
550
|
if (this.store.disposed)
|
|
551
551
|
return;
|
|
552
552
|
const e = this.five.getElement(), t = () => {
|
|
553
|
-
this.state.enabled && (this.filterPointTag.forEach((h) => h.updateScreenPosition({ force: !0 })), this.
|
|
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
|
-
this.state.enabled && this.
|
|
555
|
+
this.state.enabled && (this.temporaryState.visible = !1, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }));
|
|
556
556
|
}, { observe: o, unobserve: s } = C(
|
|
557
|
-
|
|
557
|
+
b(() => {
|
|
558
558
|
this.store.resizeObserverDisposer && i();
|
|
559
559
|
}, 500),
|
|
560
560
|
e
|
|
@@ -592,7 +592,7 @@ class Zi extends O {
|
|
|
592
592
|
addEventListener() {
|
|
593
593
|
const { five: e, hooks: t } = this;
|
|
594
594
|
let i = !1;
|
|
595
|
-
const o =
|
|
595
|
+
const o = b(() => {
|
|
596
596
|
i || (i = !0, e.ready().then(() => {
|
|
597
597
|
this.onFiveEveryReady(), i = !1;
|
|
598
598
|
}));
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.49.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.49.3",
|
|
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",
|