@realsee/dnalogel 2.30.0 → 2.30.2
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/dist/CurrentPanoImagePlugin/Controller.d.ts +12 -3
- package/dist/index.cjs.js +28 -28
- package/dist/index.js +124 -103
- package/dist/index.umd.js +23 -23
- package/libs/AreaMakerPlugin/utils/Item.js +2 -2
- package/libs/CurrentPanoImagePlugin/Controller.d.ts +12 -3
- package/libs/CurrentPanoImagePlugin/Controller.js +94 -74
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -68,12 +68,12 @@ class q {
|
|
|
68
68
|
/** 模型容器 */
|
|
69
69
|
i(this, "modelGroup");
|
|
70
70
|
/** 标注是否可见 */
|
|
71
|
-
i(this, "visible", !
|
|
71
|
+
i(this, "visible", !0);
|
|
72
72
|
// ==================== 标签相关 ====================
|
|
73
73
|
/** 标注标签实例 */
|
|
74
74
|
i(this, "tagApp");
|
|
75
75
|
/** 标注标签是否可见 */
|
|
76
|
-
i(this, "tagVisible", !
|
|
76
|
+
i(this, "tagVisible", !0);
|
|
77
77
|
/** 标注标签的世界坐标 */
|
|
78
78
|
i(this, "tagPosition", new n.Vector3());
|
|
79
79
|
/** 标注标签的 NDC 坐标 */
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { BaseOptions } from '../base/BasePlugin';
|
|
2
1
|
import type { Five } from '@realsee/five';
|
|
3
2
|
import * as BasePlugin from '../base/BasePlugin';
|
|
4
3
|
import type * as PluginType from './typings';
|
|
@@ -18,7 +17,12 @@ export declare class CurrentPanoImagePluginController extends BasePlugin.Control
|
|
|
18
17
|
get disposed(): boolean;
|
|
19
18
|
/** 查询问题使用的调试对象 */
|
|
20
19
|
checkMsg: {
|
|
21
|
-
|
|
20
|
+
/** mesh 隐藏的原因 */
|
|
21
|
+
meshHidden: string;
|
|
22
|
+
/** 插件 enabled 校验信息 */
|
|
23
|
+
pluginDisabled: string;
|
|
24
|
+
/** 插件 visible 校验信息 */
|
|
25
|
+
pluginHidden: string;
|
|
22
26
|
};
|
|
23
27
|
private group;
|
|
24
28
|
private mesh;
|
|
@@ -37,7 +41,7 @@ export declare class CurrentPanoImagePluginController extends BasePlugin.Control
|
|
|
37
41
|
* 启用插件,响应用户操作并展示UI
|
|
38
42
|
* @param options
|
|
39
43
|
*/
|
|
40
|
-
enable(options?:
|
|
44
|
+
enable(options?: BasePlugin.BaseOptions): void;
|
|
41
45
|
/** 禁用插件
|
|
42
46
|
* @param `options` `<Option> | <undefined>`
|
|
43
47
|
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
@@ -69,7 +73,10 @@ export declare class CurrentPanoImagePluginController extends BasePlugin.Control
|
|
|
69
73
|
* @todo 销毁贴图时,最好还是直接销毁贴图吧,this.mesh?.material.map 这种都是很深层的引用了。THREE 的建议我看也是自己去管理和销毁公共贴图。
|
|
70
74
|
*/
|
|
71
75
|
dispose: () => void;
|
|
76
|
+
/** 问什么看不到模型 */
|
|
77
|
+
__whyCantSeeMesh(): string;
|
|
72
78
|
private updateState;
|
|
79
|
+
/** 根据各种条件更新 Mesh 的可见性 */
|
|
73
80
|
private updateMeshVisible;
|
|
74
81
|
/** 根据点位更新 Mesh 坐标 */
|
|
75
82
|
private updateMeshPosition;
|
|
@@ -84,10 +91,12 @@ export declare class CurrentPanoImagePluginController extends BasePlugin.Control
|
|
|
84
91
|
private _hide;
|
|
85
92
|
/** 贴图加载完成的回调 */
|
|
86
93
|
private onTextureLoaded;
|
|
94
|
+
/** Five load Work 后 */
|
|
87
95
|
private onFiveWillLoad;
|
|
88
96
|
/** 走点前 */
|
|
89
97
|
private onFivePanoWillArrive;
|
|
90
98
|
/** 走点后 */
|
|
91
99
|
private onFivePanoArrived;
|
|
100
|
+
private onMeshVisibleChange;
|
|
92
101
|
private onFiveModeChange;
|
|
93
102
|
}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var p = (r,
|
|
5
|
-
for (var e in
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var e of
|
|
9
|
-
b.call(
|
|
1
|
+
var m = Object.defineProperty;
|
|
2
|
+
var g = Object.getOwnPropertySymbols;
|
|
3
|
+
var v = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var p = (r, o, e) => o in r ? m(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e, d = (r, o) => {
|
|
5
|
+
for (var e in o || (o = {}))
|
|
6
|
+
v.call(o, e) && p(r, e, o[e]);
|
|
7
|
+
if (g)
|
|
8
|
+
for (var e of g(o))
|
|
9
|
+
b.call(o, e) && p(r, e, o[e]);
|
|
10
10
|
return r;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var f = (r,
|
|
14
|
-
var s = (
|
|
12
|
+
var n = (r, o, e) => (p(r, typeof o != "symbol" ? o + "" : o, e), e);
|
|
13
|
+
var f = (r, o, e) => new Promise((i, t) => {
|
|
14
|
+
var s = (l) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
t(
|
|
16
|
+
u(e.next(l));
|
|
17
|
+
} catch (c) {
|
|
18
|
+
t(c);
|
|
19
19
|
}
|
|
20
|
-
}, h = (
|
|
20
|
+
}, h = (l) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
t(
|
|
22
|
+
u(e.throw(l));
|
|
23
|
+
} catch (c) {
|
|
24
|
+
t(c);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, u = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(s, h);
|
|
27
|
+
u((e = e.apply(r, o)).next());
|
|
28
28
|
});
|
|
29
29
|
import * as a from "three";
|
|
30
|
-
import { Controller as
|
|
31
|
-
import { tweenProgress as
|
|
30
|
+
import { Controller as M } from "../base/BasePlugin.js";
|
|
31
|
+
import { tweenProgress as A } from "../shared-utils/animationFrame/BetterTween.js";
|
|
32
32
|
import "hammerjs";
|
|
33
33
|
import "@realsee/five";
|
|
34
34
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
35
35
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
36
36
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
37
|
-
import { equal as
|
|
38
|
-
import { loadTexture as
|
|
37
|
+
import { equal as w } from "../shared-utils/equal.js";
|
|
38
|
+
import { loadTexture as P } from "../shared-utils/three/loadTexture.js";
|
|
39
39
|
import "../shared-utils/Subscribe.js";
|
|
40
40
|
import "../shared-utils/absoluteUrl.js";
|
|
41
41
|
import "../shared-utils/animationFrame/index.js";
|
|
@@ -51,59 +51,71 @@ import "../shared-utils/three/centerPoint.js";
|
|
|
51
51
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
52
52
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
53
53
|
import "../shared-utils/isTruelyObject.js";
|
|
54
|
-
|
|
55
|
-
class J extends A {
|
|
54
|
+
class z extends M {
|
|
56
55
|
constructor(e, i) {
|
|
57
56
|
super(e);
|
|
58
57
|
// ==================== public properties ====================
|
|
59
58
|
/** 插件当前状态 */
|
|
60
|
-
|
|
59
|
+
n(this, "state");
|
|
61
60
|
/** 查询问题使用的调试对象 */
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
n(this, "checkMsg", {
|
|
62
|
+
/** mesh 隐藏的原因 */
|
|
63
|
+
meshHidden: "",
|
|
64
|
+
/** 插件 enabled 校验信息 */
|
|
65
|
+
pluginDisabled: "",
|
|
66
|
+
/** 插件 visible 校验信息 */
|
|
67
|
+
pluginHidden: ""
|
|
64
68
|
});
|
|
65
69
|
// ==================== private properties ====================
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
+
n(this, "group", new a.Group());
|
|
71
|
+
n(this, "mesh");
|
|
72
|
+
n(this, "textureLoadingPromise");
|
|
73
|
+
n(this, "opacityAnimeTween");
|
|
70
74
|
/** 是否正在走点动画中 */
|
|
71
|
-
|
|
75
|
+
n(this, "isInPanoMoveAnime", !1);
|
|
72
76
|
/** 上一次走点的全景图索引 */
|
|
73
|
-
|
|
77
|
+
n(this, "lastArrivedPanoIndex", -1);
|
|
74
78
|
/** config 的原始值 */
|
|
75
|
-
|
|
79
|
+
n(this, "_config");
|
|
76
80
|
/** disposed 的原始值 */
|
|
77
|
-
|
|
81
|
+
n(this, "_disposed", !1);
|
|
78
82
|
/**
|
|
79
83
|
* 销毁插件
|
|
80
84
|
* @todo 销毁贴图时,最好还是直接销毁贴图吧,this.mesh?.material.map 这种都是很深层的引用了。THREE 的建议我看也是自己去管理和销毁公共贴图。
|
|
81
85
|
*/
|
|
82
|
-
|
|
86
|
+
n(this, "dispose", () => {
|
|
83
87
|
this.five.scene.remove(this.group), this.group.remove(...this.group.children), this.five.off("dispose", this.dispose), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("panoWillArrive", this.onFivePanoWillArrive);
|
|
84
88
|
});
|
|
85
|
-
|
|
89
|
+
n(this, "checkMeshVisible", () => this.state.visible ? this.config.imageURL === "" ? { result: !1, msg: "图片不存在" } : this.mesh.material.map ? this.five.work ? this.five.getCurrentState().mode !== "Panorama" ? { result: !1, msg: "非全景模式" } : this.isInPanoMoveAnime ? { result: !1, msg: "处于走点动画中" } : { result: !0, msg: "" } : { result: !1, msg: "Five 数据未加载" } : { result: !1, msg: "指南针贴图未加载" } : { result: !1, msg: "插件隐藏" });
|
|
86
90
|
/** 贴图加载完成的回调 */
|
|
87
|
-
|
|
91
|
+
n(this, "onTextureLoaded", (e) => {
|
|
88
92
|
this.mesh.material.map = e, this.mesh.material.needsUpdate = !0, this.updateMeshVisible();
|
|
89
93
|
});
|
|
90
|
-
|
|
94
|
+
/** Five load Work 后 */
|
|
95
|
+
n(this, "onFiveWillLoad", () => {
|
|
91
96
|
this.lastArrivedPanoIndex = -1, this.updateMeshVisible();
|
|
92
97
|
});
|
|
93
98
|
/** 走点前 */
|
|
94
|
-
|
|
99
|
+
n(this, "onFivePanoWillArrive", (e) => {
|
|
95
100
|
var i;
|
|
96
101
|
e !== this.five.getCurrentState().panoIndex && (this.isInPanoMoveAnime = !0, (i = this.opacityAnimeTween) == null || i.dispose(), this.updateMeshVisible());
|
|
97
102
|
});
|
|
98
103
|
/** 走点后 */
|
|
99
|
-
|
|
104
|
+
n(this, "onFivePanoArrived", (e) => {
|
|
105
|
+
e !== this.lastArrivedPanoIndex && (this.lastArrivedPanoIndex = e, this.isInPanoMoveAnime = !1, this.updateMeshPosition(e), this.updateMeshVisible(), this.five.needsRender = !0);
|
|
106
|
+
});
|
|
107
|
+
n(this, "onMeshVisibleChange", (e) => {
|
|
100
108
|
var i;
|
|
101
|
-
|
|
109
|
+
if ((i = this.opacityAnimeTween) == null || i.dispose(), !e) {
|
|
110
|
+
this.mesh.visible = !1;
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
this.mesh.material.setValues({ opacity: 0 }), this.mesh.visible = !0, this.opacityAnimeTween = A(1e3).onUpdate(({ progress: t }) => {
|
|
102
114
|
var s;
|
|
103
115
|
(s = this.mesh) == null || s.material.setValues({ opacity: t }), this.five.needsRender = !0;
|
|
104
|
-
}).play()
|
|
116
|
+
}).play();
|
|
105
117
|
});
|
|
106
|
-
|
|
118
|
+
n(this, "onFiveModeChange", () => {
|
|
107
119
|
this.updateMeshVisible();
|
|
108
120
|
});
|
|
109
121
|
this.five = e;
|
|
@@ -112,7 +124,7 @@ class J extends A {
|
|
|
112
124
|
visible: !0
|
|
113
125
|
};
|
|
114
126
|
this.state = Object.assign(t, i == null ? void 0 : i.initialState);
|
|
115
|
-
const s =
|
|
127
|
+
const s = d({
|
|
116
128
|
width: 1.4,
|
|
117
129
|
yOffset: 0.01,
|
|
118
130
|
yRotate: 0,
|
|
@@ -121,11 +133,11 @@ class J extends A {
|
|
|
121
133
|
this._config = s, this.group.name = "current-pano-image-plugin-group", this.mesh = new a.Mesh(
|
|
122
134
|
new a.PlaneBufferGeometry(this.config.width, this.config.width),
|
|
123
135
|
new a.MeshBasicMaterial({ transparent: !0, opacity: 0, depthTest: !1 })
|
|
124
|
-
), this.group.add(this.mesh), this.updateMeshQuaternion(this.config.yRotate), this.
|
|
136
|
+
), this.mesh.visible = !1, this.group.add(this.mesh), this.updateMeshQuaternion(this.config.yRotate), this.state.visible || (this.checkMsg.pluginHidden = "初始值设置为隐藏"), this.state.enabled || (this.checkMsg.pluginDisabled = "初始值设置为禁用"), this.state.enabled && this._enable({ userAction: !1 }), this.five.once("dispose", this.dispose);
|
|
125
137
|
}
|
|
126
138
|
/** 插件配置项 */
|
|
127
139
|
get config() {
|
|
128
|
-
return
|
|
140
|
+
return d({}, this._config);
|
|
129
141
|
}
|
|
130
142
|
/** 是否已经被销毁 */
|
|
131
143
|
get disposed() {
|
|
@@ -135,12 +147,12 @@ class J extends A {
|
|
|
135
147
|
* 启用插件,响应用户操作并展示UI
|
|
136
148
|
* @param options
|
|
137
149
|
*/
|
|
138
|
-
enable(e =
|
|
150
|
+
enable(e = {}) {
|
|
139
151
|
var t;
|
|
140
152
|
if (this.state.enabled)
|
|
141
153
|
return;
|
|
142
154
|
const i = (t = e.userAction) != null ? t : !0;
|
|
143
|
-
this.updateState({ enabled: !0 }, i), this._enable({ userAction: i });
|
|
155
|
+
this.updateState({ enabled: !0 }, i), this.checkMsg.pluginDisabled = "", this._enable({ userAction: i });
|
|
144
156
|
}
|
|
145
157
|
/** 禁用插件
|
|
146
158
|
* @param `options` `<Option> | <undefined>`
|
|
@@ -151,7 +163,7 @@ class J extends A {
|
|
|
151
163
|
if (this.state.enabled === !1)
|
|
152
164
|
return;
|
|
153
165
|
const i = (t = e.userAction) != null ? t : !0;
|
|
154
|
-
this.updateState({ enabled: !1 }, i), this._disable({ userAction: i });
|
|
166
|
+
this.updateState({ enabled: !1 }, i), this.checkMsg.pluginDisabled = "调用 disable 禁用", this._disable({ userAction: i });
|
|
155
167
|
}
|
|
156
168
|
/** 插件内容整体展示
|
|
157
169
|
* @param `options` `<Partial<BaseOptions>> | <undefined>`
|
|
@@ -163,8 +175,8 @@ class J extends A {
|
|
|
163
175
|
return Promise.resolve();
|
|
164
176
|
if (this.disposed)
|
|
165
177
|
return Promise.reject(new Error("不能在已销毁的插件上调用 show"));
|
|
166
|
-
const i =
|
|
167
|
-
this.updateState({ visible: !0 }, i.userAction),
|
|
178
|
+
const i = d({ userAction: !0 }, e);
|
|
179
|
+
this.updateState({ visible: !0 }, i.userAction), this.checkMsg.pluginHidden = "", this._show(i);
|
|
168
180
|
});
|
|
169
181
|
}
|
|
170
182
|
/** 插件内容整体隐藏
|
|
@@ -175,8 +187,8 @@ class J extends A {
|
|
|
175
187
|
return f(this, null, function* () {
|
|
176
188
|
if (this.state.visible === !1)
|
|
177
189
|
return;
|
|
178
|
-
const i =
|
|
179
|
-
this.updateState({ visible: !1 }, i.userAction),
|
|
190
|
+
const i = d({ userAction: !0 }, e);
|
|
191
|
+
this.updateState({ visible: !1 }, i.userAction), this.checkMsg.pluginDisabled = "调用 hide 隐藏", this._hide(i);
|
|
180
192
|
});
|
|
181
193
|
}
|
|
182
194
|
/** 更改插件 State
|
|
@@ -186,12 +198,12 @@ class J extends A {
|
|
|
186
198
|
*/
|
|
187
199
|
setState(e, i = {}) {
|
|
188
200
|
const t = this.state;
|
|
189
|
-
if (
|
|
201
|
+
if (w(e, t, { deep: !0 }))
|
|
190
202
|
return;
|
|
191
203
|
const s = i.userAction !== void 0 ? i.userAction : !0;
|
|
192
|
-
if (this.updateState(e, s), e.enabled !== void 0 && t.enabled !== e.enabled && (e.enabled ? this._enable({ userAction: s }) : this._disable({ userAction: s })), e.visible !== void 0 && t.visible !== e.visible) {
|
|
204
|
+
if (this.updateState(e, s), e.enabled !== void 0 && t.enabled !== e.enabled && (e.enabled ? this.checkMsg.pluginDisabled = "" : this.checkMsg.pluginDisabled = "调用 setState 禁用", e.enabled ? this._enable({ userAction: s }) : this._disable({ userAction: s })), e.visible !== void 0 && t.visible !== e.visible) {
|
|
193
205
|
const h = { userAction: s, anime: { duration: 500 } };
|
|
194
|
-
e.visible ? this._show(h) : this._hide(h);
|
|
206
|
+
e.visible ? this.checkMsg.pluginHidden = "" : this.checkMsg.pluginHidden = "调用 setState 隐藏", e.visible ? this._show(h) : this._hide(h);
|
|
195
207
|
}
|
|
196
208
|
}
|
|
197
209
|
/** 更改插件 Config
|
|
@@ -200,28 +212,40 @@ class J extends A {
|
|
|
200
212
|
*/
|
|
201
213
|
updateConfig(e, i = {}) {
|
|
202
214
|
var h;
|
|
203
|
-
const t = this.config, s =
|
|
215
|
+
const t = this.config, s = d(d({}, t), e);
|
|
204
216
|
this._config = s, t.imageURL !== s.imageURL && this.reloadTexture(s.imageURL), t.yOffset !== s.yOffset && this.updateMeshPosition(this.five.getCurrentState().panoIndex), t.yRotate !== s.yRotate && this.updateMeshQuaternion(s.yRotate), t.width !== s.width && (this.mesh.geometry = new a.PlaneBufferGeometry(s.width, s.width)), this.hooks.emit("configChange", { prevConfig: t, config: s, userAction: (h = i.userAction) != null ? h : !0 });
|
|
205
217
|
}
|
|
218
|
+
/** 问什么看不到模型 */
|
|
219
|
+
__whyCantSeeMesh() {
|
|
220
|
+
if (this.disposed)
|
|
221
|
+
return "插件已销毁";
|
|
222
|
+
if (this.checkMsg.pluginDisabled)
|
|
223
|
+
return this.checkMsg.pluginDisabled;
|
|
224
|
+
if (this.checkMsg.pluginHidden)
|
|
225
|
+
return this.checkMsg.pluginHidden;
|
|
226
|
+
if (this.checkMsg.meshHidden)
|
|
227
|
+
return this.checkMsg.meshHidden;
|
|
228
|
+
}
|
|
206
229
|
updateState(e, i) {
|
|
207
230
|
const t = this.state;
|
|
208
|
-
this.state =
|
|
231
|
+
this.state = d(d({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: t, userAction: i });
|
|
209
232
|
}
|
|
233
|
+
/** 根据各种条件更新 Mesh 的可见性 */
|
|
210
234
|
updateMeshVisible() {
|
|
211
235
|
const { result: e, msg: i } = this.checkMeshVisible();
|
|
212
|
-
this.checkMsg.
|
|
236
|
+
this.checkMsg.meshHidden = i, e !== this.mesh.visible && this.onMeshVisibleChange(e);
|
|
213
237
|
}
|
|
214
238
|
/** 根据点位更新 Mesh 坐标 */
|
|
215
239
|
updateMeshPosition(e) {
|
|
216
|
-
var s, h,
|
|
217
|
-
const i = (
|
|
240
|
+
var s, h, u;
|
|
241
|
+
const i = (u = (h = (s = this.five.work) == null ? void 0 : s.observers) == null ? void 0 : h[e]) == null ? void 0 : u.standingPosition, t = i == null ? void 0 : i.clone().setY(i.y + this.config.yOffset);
|
|
218
242
|
t && this.mesh.position.copy(t);
|
|
219
243
|
}
|
|
220
244
|
/** 重新加载贴图,调用时会先清除已有的贴图 */
|
|
221
245
|
reloadTexture(e) {
|
|
222
246
|
return f(this, null, function* () {
|
|
223
247
|
if (this.mesh.material.map = null, e !== "") {
|
|
224
|
-
const i =
|
|
248
|
+
const i = P(e);
|
|
225
249
|
this.textureLoadingPromise = i;
|
|
226
250
|
const t = yield i;
|
|
227
251
|
this.textureLoadingPromise === i && (this.onTextureLoaded(t), this.textureLoadingPromise = null);
|
|
@@ -240,22 +264,18 @@ class J extends A {
|
|
|
240
264
|
), this.mesh.quaternion.copy(i);
|
|
241
265
|
}
|
|
242
266
|
_enable(e) {
|
|
243
|
-
this.hooks.emit("enable", { userAction: e.userAction }), this.config.imageURL && !this.mesh.material.map && !this.textureLoadingPromise && this.reloadTexture(this.config.imageURL), this.five.scene.add(this.group), this.five.needsRender = !0, this.five.work && this.onFiveWillLoad(), this.five.on("willLoad", this.onFiveWillLoad), this.five.on("panoArrived", this.onFivePanoArrived), this.five.on("panoWillArrive", this.onFivePanoWillArrive), this.five.on("modeChange", this.onFiveModeChange);
|
|
267
|
+
this.hooks.emit("enable", { userAction: e.userAction }), this.config.imageURL && !this.mesh.material.map && !this.textureLoadingPromise && this.reloadTexture(this.config.imageURL), this.five.scene.add(this.group), this.five.needsRender = !0, this.five.work && this.onFiveWillLoad(), this.five.getCurrentState().mode === "Panorama" && (this.onFiveModeChange(), this.onFivePanoArrived(this.five.getCurrentState().panoIndex)), this.five.on("willLoad", this.onFiveWillLoad), this.five.on("panoArrived", this.onFivePanoArrived), this.five.on("panoWillArrive", this.onFivePanoWillArrive), this.five.on("modeChange", this.onFiveModeChange);
|
|
244
268
|
}
|
|
245
269
|
_disable(e) {
|
|
246
270
|
this.hooks.emit("disable", { userAction: e.userAction }), this.five.scene.remove(this.group), this.five.needsRender = !0, this.five.off("willLoad", this.onFiveWillLoad), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.off("modeChange", this.onFiveModeChange);
|
|
247
271
|
}
|
|
248
272
|
_show(e) {
|
|
249
|
-
|
|
250
|
-
this.hooks.emit("show", e), this.updateMeshVisible(), this.five.needsRender = !0;
|
|
251
|
-
});
|
|
273
|
+
this.hooks.emit("show", e), this.updateMeshVisible(), this.five.needsRender = !0;
|
|
252
274
|
}
|
|
253
275
|
_hide(e) {
|
|
254
|
-
|
|
255
|
-
this.hooks.emit("hide", e), this.updateMeshVisible(), this.five.needsRender = !0;
|
|
256
|
-
});
|
|
276
|
+
this.hooks.emit("hide", e), this.updateMeshVisible(), this.five.needsRender = !0;
|
|
257
277
|
}
|
|
258
278
|
}
|
|
259
279
|
export {
|
|
260
|
-
|
|
280
|
+
z as CurrentPanoImagePluginController
|
|
261
281
|
};
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv2.30.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv2.30.2",
|
|
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",
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "2.30.
|
|
10
|
+
"version": "2.30.2",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|