@realsee/dnalogel 3.40.1 → 3.40.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 +8 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.js +29 -26
- package/dist/index.umd.js +4 -4
- package/libs/GuideLinePlugin/Controller.js +41 -41
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +38 -35
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/blink.js +23 -23
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48,7 +48,7 @@ import Jg from "earcut";
|
|
|
48
48
|
import { GLTFLoader as qg } from "@realsee/five/gltf-loader";
|
|
49
49
|
function Kg() {
|
|
50
50
|
console.debug(
|
|
51
|
-
"%c %c@realsee/dnalogel %cv3.40.
|
|
51
|
+
"%c %c@realsee/dnalogel %cv3.40.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",
|
|
@@ -2279,7 +2279,7 @@ function Qp(n) {
|
|
|
2279
2279
|
});
|
|
2280
2280
|
}
|
|
2281
2281
|
function Ac(n) {
|
|
2282
|
-
|
|
2282
|
+
Lt(n).forEach((e) => {
|
|
2283
2283
|
const i = gi.get(e);
|
|
2284
2284
|
i && (e instanceof HTMLElement && (e.style.opacity = i.opacity === void 0 ? "" : i.opacity, e.style.display = i.visible.display, e.style.visibility = i.visible.visibility), e.isObject3D && (e.visible = i.visible, e.material && (e.material.opacity = i.opacity, e.material.transparent = i.transparent)), gi.delete(e));
|
|
2285
2285
|
});
|
|
@@ -7564,7 +7564,7 @@ let Oi = class {
|
|
|
7564
7564
|
/**
|
|
7565
7565
|
* @realsee/dnalogel 版本号
|
|
7566
7566
|
*/
|
|
7567
|
-
d(this, "VERSION", "3.40.
|
|
7567
|
+
d(this, "VERSION", "3.40.3");
|
|
7568
7568
|
d(this, "NAME");
|
|
7569
7569
|
d(this, "five");
|
|
7570
7570
|
d(this, "workUtil");
|
|
@@ -29875,18 +29875,18 @@ class cl {
|
|
|
29875
29875
|
this.meshWithDepthTest.material.uniforms.vOffset.value = e, this.meshWithoutDepthTest.material.uniforms.vOffset.value = e, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
29876
29876
|
});
|
|
29877
29877
|
d(this, "onFlickerAnimeUpdate", (t) => {
|
|
29878
|
-
var s, o, r, a;
|
|
29878
|
+
var s, o, r, a, l;
|
|
29879
29879
|
const { progress: e } = t, i = 1 - e;
|
|
29880
|
-
this.meshWithDepthTest.material.uniforms.flicker.value = i, this.meshWithoutDepthTest.material.uniforms.flicker.value = i, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && xa(this.startTagContainer.tag) && ((
|
|
29880
|
+
this.meshWithDepthTest.material.uniforms.flicker.value = i, this.meshWithoutDepthTest.material.uniforms.flicker.value = i, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, (s = this.startTagContainer) != null && s.tag && xa(this.startTagContainer.tag) && ((a = this.startTagContainer.app) == null || a.$set(se(x({}, this.startTagContainer.tag.data), {
|
|
29881
29881
|
opacity: i,
|
|
29882
29882
|
name: this.name,
|
|
29883
|
-
distance: Math.round((
|
|
29884
|
-
}))), this.endTagContainer.tag && xa(this.endTagContainer.tag) && ((
|
|
29883
|
+
distance: Math.round((r = (o = this.curvePath) == null ? void 0 : o.getLength()) != null ? r : 0)
|
|
29884
|
+
}))), this.endTagContainer.tag && xa(this.endTagContainer.tag) && ((l = this.endTagContainer.app) == null || l.$set(se(x({}, this.endTagContainer.tag.data), { opacity: i })));
|
|
29885
29885
|
});
|
|
29886
29886
|
d(this, "logWarning", (t) => ow("GuideLineModeItem: ", t));
|
|
29887
29887
|
d(this, "logError", (t) => Pm("GuideLineModeItem: ", t));
|
|
29888
29888
|
var o, r;
|
|
29889
|
-
this.five = t, this.mode = e.mode, this.plugin = e.plugin, this.parent = e.parent, this.group.name = "GuideLineModeItem"
|
|
29889
|
+
this.five = t, this.mode = e.mode, this.plugin = e.plugin, this.parent = e.parent, this.group.name = "GuideLineModeItem";
|
|
29890
29890
|
const i = new w.BufferGeometry(), s = new w.ShaderMaterial({
|
|
29891
29891
|
vertexShader: uM,
|
|
29892
29892
|
fragmentShader: fM,
|
|
@@ -30004,7 +30004,7 @@ class cl {
|
|
|
30004
30004
|
const e = x(x({}, this.meshStyle), t);
|
|
30005
30005
|
this.meshStyle = e;
|
|
30006
30006
|
function i(s, o) {
|
|
30007
|
-
if (!s.tag)
|
|
30007
|
+
if (!(s != null && s.tag))
|
|
30008
30008
|
return;
|
|
30009
30009
|
const r = new w.Vector3().fromArray(s.tag.position);
|
|
30010
30010
|
r.add(o);
|
|
@@ -30122,35 +30122,38 @@ class cl {
|
|
|
30122
30122
|
return r;
|
|
30123
30123
|
}
|
|
30124
30124
|
setTag(t, e) {
|
|
30125
|
-
|
|
30125
|
+
var l, c;
|
|
30126
|
+
const i = this.curvePath;
|
|
30126
30127
|
if (!(e != null && e.data))
|
|
30127
|
-
return
|
|
30128
|
-
const r = Ve({}, {
|
|
30128
|
+
return;
|
|
30129
|
+
const s = t === "start" ? (l = this.startTagContainer) != null ? l : (() => (this.startTagContainer = { tag: null, plugin: new ll(this.five, { containerZIndex: 1 }) }, this.startTagContainer))() : (c = this.endTagContainer) != null ? c : (() => (this.endTagContainer = { tag: null, plugin: new ll(this.five, { containerZIndex: 1 }) }, this.endTagContainer))(), r = Ve({}, {
|
|
30129
30130
|
contentType: "Custom",
|
|
30130
30131
|
stickType: "2DPoint",
|
|
30131
30132
|
config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
|
|
30132
30133
|
style: { point: { enabled: !1 } },
|
|
30133
30134
|
data: {}
|
|
30134
30135
|
}, e);
|
|
30135
|
-
s.tag = r, xa(r) && (s.tag.element = (
|
|
30136
|
-
var
|
|
30137
|
-
(
|
|
30138
|
-
const
|
|
30139
|
-
return s.app =
|
|
30136
|
+
s.tag = r, xa(r) && (s.tag.element = (h) => {
|
|
30137
|
+
var m, A;
|
|
30138
|
+
(m = s.app) == null || m.$destroy();
|
|
30139
|
+
const u = t === "start" ? se(x({}, r.data), { name: this.name, distance: Math.round((A = i.getLength()) != null ? A : 0), i18n: this.plugin.config.i18n }) : r.data, f = new hM({ target: h, intro: !0, props: u });
|
|
30140
|
+
return s.app = f, () => f.$destroy();
|
|
30140
30141
|
}), s.plugin.load({ tagList: [s.tag] });
|
|
30141
30142
|
const a = this.meshStyle.translate;
|
|
30142
30143
|
if (a && r.position) {
|
|
30143
|
-
const
|
|
30144
|
-
|
|
30145
|
-
const
|
|
30146
|
-
s.plugin.changeTagById(s.tag.id, { position:
|
|
30144
|
+
const h = new w.Vector3().fromArray(r.position), u = new w.Vector3().fromArray(a);
|
|
30145
|
+
h.add(u), h.y += this.heightOffset;
|
|
30146
|
+
const f = h.toArray();
|
|
30147
|
+
s.plugin.changeTagById(s.tag.id, { position: f });
|
|
30147
30148
|
}
|
|
30148
30149
|
}
|
|
30149
30150
|
doShow() {
|
|
30150
|
-
|
|
30151
|
+
var t, e;
|
|
30152
|
+
this.mode === "model" && this.flowAnime.play(), this.five.scene.add(this.group), (t = this.startTagContainer) == null || t.plugin.show(), (e = this.endTagContainer) == null || e.plugin.show(), this.five.needsRender = !0;
|
|
30151
30153
|
}
|
|
30152
30154
|
doHide() {
|
|
30153
|
-
|
|
30155
|
+
var t, e;
|
|
30156
|
+
this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.group), (t = this.startTagContainer) == null || t.plugin.hide(), (e = this.endTagContainer) == null || e.plugin.hide(), this.five.needsRender = !0;
|
|
30154
30157
|
}
|
|
30155
30158
|
/** 通过 panoIndex 数组计算路径 */
|
|
30156
30159
|
getPathFromPanoGroup(t, e, i) {
|
|
@@ -31120,7 +31123,7 @@ let wM = class extends Ai {
|
|
|
31120
31123
|
}
|
|
31121
31124
|
function o(r) {
|
|
31122
31125
|
var l;
|
|
31123
|
-
const a = (l = r.tag) == null ? void 0 : l.position;
|
|
31126
|
+
const a = (l = r == null ? void 0 : r.tag) == null ? void 0 : l.position;
|
|
31124
31127
|
return i(a) ? e.every((c) => {
|
|
31125
31128
|
var h;
|
|
31126
31129
|
return i((h = c.tag) == null ? void 0 : h.position) ? !s(a, c.tag.position) : !0;
|
|
@@ -31128,9 +31131,9 @@ let wM = class extends Ai {
|
|
|
31128
31131
|
}
|
|
31129
31132
|
this.itemMap.forEach((r) => {
|
|
31130
31133
|
const a = r.modelItem.startTagContainer, l = r.modelItem.endTagContainer, c = o(a);
|
|
31131
|
-
c && e.push(a), a.plugin.setState({ enabled: c }, {});
|
|
31134
|
+
c && e.push(a), a == null || a.plugin.setState({ enabled: c }, {});
|
|
31132
31135
|
const h = o(l);
|
|
31133
|
-
h && e.push(l), l.plugin.setState({ enabled: h }, {});
|
|
31136
|
+
h && e.push(l), l == null || l.plugin.setState({ enabled: h }, {});
|
|
31134
31137
|
});
|
|
31135
31138
|
}
|
|
31136
31139
|
/** 清空所有 GuideLineItem */
|