@realsee/dnalogel 3.8.6 → 3.8.8

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/index.js CHANGED
@@ -39,7 +39,7 @@ import ul from "animejs";
39
39
  import { GLTFLoader as nm } from "@realsee/five/gltf-loader";
40
40
  function sm() {
41
41
  console.debug(
42
- "%c %c@realsee/dnalogel %cv3.8.6",
42
+ "%c %c@realsee/dnalogel %cv3.8.8",
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.8.6");
7088
+ u(this, "VERSION", "3.8.8");
7089
7089
  u(this, "five");
7090
7090
  /**
7091
7091
  * 插件事件钩子
@@ -17044,7 +17044,15 @@ const q1 = {
17044
17044
  }
17045
17045
  },
17046
17046
  contentTypeConfig: {
17047
- "[ModelLike]": {
17047
+ "[Mapview]": {
17048
+ unfoldedConfig: {
17049
+ autoUnfold: {
17050
+ enable: !1,
17051
+ distance: { max: 9999 }
17052
+ }
17053
+ }
17054
+ },
17055
+ "[Floorplan]": {
17048
17056
  unfoldedConfig: {
17049
17057
  autoUnfold: {
17050
17058
  enable: !1,
@@ -33221,23 +33229,24 @@ class QE {
33221
33229
  }
33222
33230
  /** 挂载标注 */
33223
33231
  mount() {
33232
+ var e;
33224
33233
  if (this.mounted = !0, this.updateVisible(), this.makerObject.material.depthTest = this.plugin.config.modelDepthTest, this.outline.material.depthTest = this.plugin.config.modelDepthTest, this.modelGroup.add(this.makerObject, this.outline), !!this.name) {
33225
- const e = this.plugin.tagDomContainer, i = {
33234
+ const i = this.plugin.tagDomContainer, s = {
33226
33235
  data: this.data,
33227
33236
  content: this.name,
33228
33237
  visible: this.tagVisible,
33229
33238
  renderer: this.itemRenderer,
33230
33239
  transform: `translate(${this.tagTransform.left}px, ${this.tagTransform.top}px)`,
33231
- onClick: (s) => this.hooks.emit("tagClick", { target: this, nativeEvent: s })
33240
+ onClick: (o) => this.hooks.emit("tagClick", { target: this, nativeEvent: o })
33232
33241
  };
33233
- this.tagApp = new RE({ target: e, props: i }), this.updateTag();
33242
+ this.tagApp = new RE({ target: i, props: s }), this.updateTag();
33234
33243
  }
33235
- this.plugin.five.needsRender = !0, this.plugin.hooks.on("stateChange", this.onPluginStateChange), this.plugin.hooks.on("configChange", this.onPluginConfigChange), this.plugin.five.on("modeChange", this.updateVisible), this.plugin.five.on("modelShownFloorChange", this.updateVisible), this.plugin.five.on("cameraUpdate", this.onFiveCameraUpdate), this.plugin.resizeIframe.contentWindow.addEventListener("resize", this.onContainerResize);
33244
+ this.plugin.five.needsRender = !0, this.plugin.hooks.on("stateChange", this.onPluginStateChange), this.plugin.hooks.on("configChange", this.onPluginConfigChange), this.plugin.five.on("modeChange", this.updateVisible), this.plugin.five.on("modelShownFloorChange", this.updateVisible), this.plugin.five.on("cameraUpdate", this.onFiveCameraUpdate), (e = this.plugin.resizeIframe.contentWindow) == null || e.addEventListener("resize", this.onContainerResize);
33236
33245
  }
33237
33246
  /** 卸载标注 */
33238
33247
  unmount() {
33239
- var t;
33240
- this.mounted = !1, this.modelGroup.remove(...this.modelGroup.children), (t = this.tagApp) == null || t.$destroy(), this.tagApp = null, this.plugin.hooks.off("stateChange", this.onPluginStateChange), this.plugin.hooks.off("configChange", this.onPluginConfigChange), this.plugin.five.off("modeChange", this.updateVisible), this.plugin.five.off("modelShownFloorChange", this.updateVisible), this.plugin.five.off("cameraUpdate", this.onFiveCameraUpdate), this.plugin.resizeIframe.contentWindow.removeEventListener("resize", this.onContainerResize);
33248
+ var t, e;
33249
+ this.mounted = !1, this.modelGroup.remove(...this.modelGroup.children), (t = this.tagApp) == null || t.$destroy(), this.tagApp = null, this.plugin.hooks.off("stateChange", this.onPluginStateChange), this.plugin.hooks.off("configChange", this.onPluginConfigChange), this.plugin.five.off("modeChange", this.updateVisible), this.plugin.five.off("modelShownFloorChange", this.updateVisible), this.plugin.five.off("cameraUpdate", this.onFiveCameraUpdate), (e = this.plugin.resizeIframe.contentWindow) == null || e.removeEventListener("resize", this.onContainerResize);
33241
33250
  }
33242
33251
  /** 更改标注透明度
33243
33252
  * @param opacity 标注透明度,范围:0-1
@@ -33398,10 +33407,10 @@ class NE extends Ci {
33398
33407
  load(e) {
33399
33408
  return F(this, null, function* () {
33400
33409
  const i = this.data;
33401
- this.data = this.formatData(e), this.hooks.emit("dataChange", this.data, i), this.modelGroup.remove(...this.modelGroup.children), this.itemMap.clear(), this.data.list.forEach((s) => {
33410
+ this.data = this.formatData(e), this.hooks.emit("dataChange", this.data, i), this.modelGroup.remove(...this.modelGroup.children), this.itemMap.clear(), this.childrenMountedState = !1, this.checkMsg.childrenMountedState = "", this.data.list.forEach((s) => {
33402
33411
  const o = new QE(this, s);
33403
33412
  o.itemRenderer = this.itemRenderer, this.modelGroup.add(o.modelGroup), this.itemMap.set(s.id, o), o.hooks.on("tagClick", this.onMakerTagClick);
33404
- });
33413
+ }), this.updateChildrenMountedState();
33405
33414
  });
33406
33415
  }
33407
33416
  /** 将插件的 DOM 容器添加到指定的 DOM 元素上 */