@realsee/dnalogel 3.9.0 → 3.10.0
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/typing.d.ts +10 -0
- package/dist/index.cjs.js +3 -3
- package/dist/index.js +10 -5
- package/dist/index.umd.js +3 -3
- package/libs/AreaMakerPlugin/typing.d.ts +10 -0
- package/libs/AreaMakerPlugin/utils/Item.js +28 -23
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39,7 +39,7 @@ import ia from "animejs";
|
|
|
39
39
|
import { GLTFLoader as sm } from "@realsee/five/gltf-loader";
|
|
40
40
|
function om() {
|
|
41
41
|
console.debug(
|
|
42
|
-
"%c %c@realsee/dnalogel %cv3.
|
|
42
|
+
"%c %c@realsee/dnalogel %cv3.10.0",
|
|
43
43
|
[
|
|
44
44
|
"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=')",
|
|
45
45
|
"background-repeat: no-repeat",
|
|
@@ -7085,7 +7085,7 @@ let Fi = class {
|
|
|
7085
7085
|
/**
|
|
7086
7086
|
* @realsee/dnalogel 版本号
|
|
7087
7087
|
*/
|
|
7088
|
-
u(this, "VERSION", "3.
|
|
7088
|
+
u(this, "VERSION", "3.10.0");
|
|
7089
7089
|
u(this, "five");
|
|
7090
7090
|
/**
|
|
7091
7091
|
* 插件事件钩子
|
|
@@ -33181,8 +33181,13 @@ class QE {
|
|
|
33181
33181
|
});
|
|
33182
33182
|
/** 更新标注可见性 */
|
|
33183
33183
|
u(this, "updateVisible", () => {
|
|
33184
|
+
var s;
|
|
33184
33185
|
const { result: t, msg: e } = this.checkVisible();
|
|
33185
|
-
this.checkMsg.checkVisibleMsg = e, this.visible
|
|
33186
|
+
if (this.checkMsg.checkVisibleMsg = e, this.visible === t)
|
|
33187
|
+
return;
|
|
33188
|
+
this.visible = t;
|
|
33189
|
+
const i = (s = this.data.object_data.visible) != null ? s : !0;
|
|
33190
|
+
this.modelGroup.visible = t && i, this.plugin.five.needsRender = !0;
|
|
33186
33191
|
});
|
|
33187
33192
|
/** 检测标注是否可见 */
|
|
33188
33193
|
u(this, "checkVisible", () => {
|
|
@@ -33238,12 +33243,12 @@ class QE {
|
|
|
33238
33243
|
};
|
|
33239
33244
|
this.containerResizeTimeoutID && clearTimeout(this.containerResizeTimeoutID), this.containerResizeTimeoutID = setTimeout(e, 100);
|
|
33240
33245
|
});
|
|
33241
|
-
var l, c, d;
|
|
33246
|
+
var l, c, d, h;
|
|
33242
33247
|
const i = e.object_data, s = i.bottom_y, o = i.height, r = new P.Color((l = i.color) != null ? l : "#FFFFFF"), a = (c = i.opacity) != null ? c : 0.4;
|
|
33243
33248
|
this.data = e, this.id = e.id, this.name = (d = e.name) != null ? d : "", this.plugin = t, this.height = o, this.bottomY = s, this.opacity = a, this.shape = new P.Shape().fromJSON(i.shape), this.floorIndex = e.floor_index, this.makerObject = new P.Mesh(Th(this.shape, o), GE(r, a)), $r(this.makerObject, s), this.makerObject.material.depthTest = this.plugin.config.modelDepthTest, this.outline = new $h(
|
|
33244
33249
|
new P.EdgesGeometry(this.makerObject.geometry),
|
|
33245
33250
|
new P.LineBasicMaterial({ color: r, transparent: !0 })
|
|
33246
|
-
), $r(this.outline, s), this.outline.material.depthTest = this.plugin.config.modelDepthTest, this.setHeight(o), this.modelGroup = new VE(this);
|
|
33251
|
+
), $r(this.outline, s), this.outline.material.depthTest = this.plugin.config.modelDepthTest, this.setHeight(o), this.modelGroup = new VE(this), this.modelGroup.visible = (h = i.visible) != null ? h : !0;
|
|
33247
33252
|
}
|
|
33248
33253
|
/** 挂载标注 */
|
|
33249
33254
|
mount() {
|