@realsee/dnalogel 2.28.1-0 → 2.28.1-1
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/AreaMakerPlugin/index.d.ts +1 -1
- package/dist/AreaMakerPlugin/utils/Item.d.ts +1 -0
- package/dist/index.cjs.js +3 -3
- package/dist/index.js +7 -6
- package/dist/index.umd.js +3 -3
- package/libs/AreaMakerPlugin/Controller.js +2 -2
- package/libs/AreaMakerPlugin/index.d.ts +1 -1
- package/libs/AreaMakerPlugin/index.js +3 -3
- package/libs/AreaMakerPlugin/utils/Item.d.ts +1 -0
- package/libs/AreaMakerPlugin/utils/Item.js +6 -5
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -315,10 +315,10 @@ class ot extends k {
|
|
|
315
315
|
this.state = d(d({}, this.state), t), this.hooks.emit("stateChange", { state: this.state, prevState: e, userAction: i });
|
|
316
316
|
}
|
|
317
317
|
_enable(t) {
|
|
318
|
-
this.hooks.emit("enable", { userAction: t.userAction }), this.five.scene.add(this.modelGroup), this.five.needsRender = !0, this.five.on("wantsTapGesture", this.onWantsFiveTapGesture), this.five.on("initAnimationWillStart", this.onFiveInitAnimationWillStart), this.five.on("initAnimationEnded", this.onFiveInitAnimationEnded), this.five.on("modeChange", this.onFiveModeChange), this.five.on("cameraUpdate", this.onFiveCameraUpdate);
|
|
318
|
+
this.hooks.emit("enable", { userAction: t.userAction }), this.five.scene.add(this.modelGroup), this.updateChildrenMountedState(), this.five.needsRender = !0, this.five.on("wantsTapGesture", this.onWantsFiveTapGesture), this.five.on("initAnimationWillStart", this.onFiveInitAnimationWillStart), this.five.on("initAnimationEnded", this.onFiveInitAnimationEnded), this.five.on("modeChange", this.onFiveModeChange), this.five.on("cameraUpdate", this.onFiveCameraUpdate);
|
|
319
319
|
}
|
|
320
320
|
_disable(t) {
|
|
321
|
-
this.hooks.emit("disable", { userAction: t.userAction }), this.five.scene.remove(this.modelGroup), this.five.needsRender = !0, this.five.off("wantsTapGesture", this.onWantsFiveTapGesture), this.five.off("initAnimationWillStart", this.onFiveInitAnimationWillStart), this.five.off("initAnimationEnded", this.onFiveInitAnimationEnded), this.five.off("modeChange", this.onFiveModeChange), this.five.off("cameraUpdate", this.onFiveCameraUpdate);
|
|
321
|
+
this.hooks.emit("disable", { userAction: t.userAction }), this.five.scene.remove(this.modelGroup), this.updateChildrenMountedState(), this.five.needsRender = !0, this.five.off("wantsTapGesture", this.onWantsFiveTapGesture), this.five.off("initAnimationWillStart", this.onFiveInitAnimationWillStart), this.five.off("initAnimationEnded", this.onFiveInitAnimationEnded), this.five.off("modeChange", this.onFiveModeChange), this.five.off("cameraUpdate", this.onFiveCameraUpdate);
|
|
322
322
|
}
|
|
323
323
|
_show(t) {
|
|
324
324
|
return u(this, null, function* () {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Five } from '@realsee/five';
|
|
2
2
|
import type * as AreaMakerPluginType from './typing';
|
|
3
|
-
export declare const AreaMakerPlugin: (five: Five) => AreaMakerPluginType.AreaMakerController;
|
|
3
|
+
export declare const AreaMakerPlugin: (five: Five, params?: AreaMakerPluginType.Params) => AreaMakerPluginType.AreaMakerController;
|
|
4
4
|
export type { AreaMakerPluginType };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Controller as
|
|
1
|
+
import { Controller as t } from "./Controller.js";
|
|
2
2
|
import "three";
|
|
3
3
|
import "../base/BasePluginWithData.js";
|
|
4
4
|
import "../base/BasePlugin.js";
|
|
@@ -31,7 +31,7 @@ import "../components/AreaLabel/LabelItem.js";
|
|
|
31
31
|
import "../vendor/svelte/internal/index.js";
|
|
32
32
|
import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
33
33
|
import "../shared-utils/math/planimetry.js";
|
|
34
|
-
const
|
|
34
|
+
const I = (r, o) => new t(r, o);
|
|
35
35
|
export {
|
|
36
|
-
|
|
36
|
+
I as AreaMakerPlugin
|
|
37
37
|
};
|
|
@@ -27,7 +27,7 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
|
27
27
|
import "../../shared-utils/animationFrame/index.js";
|
|
28
28
|
import "../../vendor/svelte/internal/index.js";
|
|
29
29
|
import "../../components/AreaLabel/Assets/roomLabelBg.js";
|
|
30
|
-
class
|
|
30
|
+
class M extends b {
|
|
31
31
|
constructor(e) {
|
|
32
32
|
super();
|
|
33
33
|
i(this, "areaMakerItem");
|
|
@@ -129,7 +129,8 @@ class q {
|
|
|
129
129
|
i(this, "onPluginConfigChange", (t) => {
|
|
130
130
|
this.makerObject.material.depthTest = t.config.modelDepthTest, this.outline.material.depthTest = t.config.modelDepthTest, this.plugin.five.needsRender = !0;
|
|
131
131
|
});
|
|
132
|
-
|
|
132
|
+
/** 插件整体可见性变化时,需要更新自身可见性 */
|
|
133
|
+
i(this, "onPluginStateChange", () => {
|
|
133
134
|
this.updateVisible(), this.updateTagVisible();
|
|
134
135
|
});
|
|
135
136
|
/** 更新标注可见性 */
|
|
@@ -183,10 +184,10 @@ class q {
|
|
|
183
184
|
});
|
|
184
185
|
var p, c, m;
|
|
185
186
|
const s = e.object_data, o = s.bottom_y, r = s.height, l = new a.Color((p = s.color) != null ? p : "#FFFFFF"), h = (c = s.opacity) != null ? c : 0.4;
|
|
186
|
-
this.id = e.id, this.name = (m = e.name) != null ? m : "", this.plugin = t, this.height = r, this.bottomY = o, this.opacity = h, this.shape = new a.Shape().fromJSON(s.shape), this.floorIndex = e.floor_index, this.makerObject = new a.Mesh(u(this.shape, r),
|
|
187
|
+
this.id = e.id, this.name = (m = e.name) != null ? m : "", this.plugin = t, this.height = r, this.bottomY = o, this.opacity = h, this.shape = new a.Shape().fromJSON(s.shape), this.floorIndex = e.floor_index, this.makerObject = new a.Mesh(u(this.shape, r), v(l, h)), g(this.makerObject, o), this.makerObject.material.depthTest = this.plugin.config.modelDepthTest, this.outline = new k(
|
|
187
188
|
new a.EdgesGeometry(this.makerObject.geometry),
|
|
188
189
|
new a.LineBasicMaterial({ color: l, transparent: !0 })
|
|
189
|
-
), g(this.outline, o), this.outline.material.depthTest = this.plugin.config.modelDepthTest, this.setHeight(r), this.modelGroup = new
|
|
190
|
+
), g(this.outline, o), this.outline.material.depthTest = this.plugin.config.modelDepthTest, this.setHeight(r), this.modelGroup = new M(this);
|
|
190
191
|
}
|
|
191
192
|
/** 挂载标注 */
|
|
192
193
|
mount() {
|
|
@@ -250,7 +251,7 @@ function u(n, t) {
|
|
|
250
251
|
bevelEnabled: !1
|
|
251
252
|
});
|
|
252
253
|
}
|
|
253
|
-
function
|
|
254
|
+
function v(n, t) {
|
|
254
255
|
return new a.MeshBasicMaterial({
|
|
255
256
|
color: n,
|
|
256
257
|
opacity: t,
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv2.28.1-
|
|
3
|
+
"%c %c@realsee/dnalogel %cv2.28.1-1",
|
|
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.28.1-
|
|
10
|
+
"version": "2.28.1-1",
|
|
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*",
|