@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.
@@ -1,13 +1,13 @@
1
1
  var C = Object.defineProperty, M = Object.defineProperties;
2
2
  var I = Object.getOwnPropertyDescriptors;
3
3
  var p = Object.getOwnPropertySymbols;
4
- var A = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
4
+ var S = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
5
5
  var u = (h, r, t) => r in h ? C(h, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[r] = t, d = (h, r) => {
6
6
  for (var t in r || (r = {}))
7
- A.call(r, t) && u(h, t, r[t]);
7
+ S.call(r, t) && u(h, t, r[t]);
8
8
  if (p)
9
9
  for (var t of p(r))
10
- S.call(r, t) && u(h, t, r[t]);
10
+ A.call(r, t) && u(h, t, r[t]);
11
11
  return h;
12
12
  }, f = (h, r) => M(h, I(r));
13
13
  var o = (h, r, t) => (u(h, typeof r != "symbol" ? r + "" : r, t), t);
@@ -165,10 +165,10 @@ class at extends _ {
165
165
  load(t) {
166
166
  return m(this, null, function* () {
167
167
  const i = this.data;
168
- this.data = this.formatData(t), this.hooks.emit("dataChange", this.data, i), this.modelGroup.remove(...this.modelGroup.children), this.itemMap.clear(), this.data.list.forEach((e) => {
168
+ this.data = this.formatData(t), 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((e) => {
169
169
  const s = new y(this, e);
170
170
  s.itemRenderer = this.itemRenderer, this.modelGroup.add(s.modelGroup), this.itemMap.set(e.id, s), s.hooks.on("tagClick", this.onMakerTagClick);
171
- });
171
+ }), this.updateChildrenMountedState();
172
172
  });
173
173
  }
174
174
  /** 将插件的 DOM 容器添加到指定的 DOM 元素上 */
@@ -212,23 +212,24 @@ class Q {
212
212
  }
213
213
  /** 挂载标注 */
214
214
  mount() {
215
+ var t;
215
216
  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) {
216
- const t = this.plugin.tagDomContainer, s = {
217
+ const s = this.plugin.tagDomContainer, o = {
217
218
  data: this.data,
218
219
  content: this.name,
219
220
  visible: this.tagVisible,
220
221
  renderer: this.itemRenderer,
221
222
  transform: `translate(${this.tagTransform.left}px, ${this.tagTransform.top}px)`,
222
- onClick: (o) => this.hooks.emit("tagClick", { target: this, nativeEvent: o })
223
+ onClick: (r) => this.hooks.emit("tagClick", { target: this, nativeEvent: r })
223
224
  };
224
- this.tagApp = new T({ target: t, props: s }), this.updateTag();
225
+ this.tagApp = new T({ target: s, props: o }), this.updateTag();
225
226
  }
226
- 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);
227
+ 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), (t = this.plugin.resizeIframe.contentWindow) == null || t.addEventListener("resize", this.onContainerResize);
227
228
  }
228
229
  /** 卸载标注 */
229
230
  unmount() {
230
- var e;
231
- this.mounted = !1, this.modelGroup.remove(...this.modelGroup.children), (e = this.tagApp) == null || e.$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);
231
+ var e, t;
232
+ this.mounted = !1, this.modelGroup.remove(...this.modelGroup.children), (e = this.tagApp) == null || e.$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), (t = this.plugin.resizeIframe.contentWindow) == null || t.removeEventListener("resize", this.onContainerResize);
232
233
  }
233
234
  /** 更改标注透明度
234
235
  * @param opacity 标注透明度,范围:0-1
@@ -15,7 +15,15 @@ const e = {
15
15
  }
16
16
  },
17
17
  contentTypeConfig: {
18
- "[ModelLike]": {
18
+ "[Mapview]": {
19
+ unfoldedConfig: {
20
+ autoUnfold: {
21
+ enable: !1,
22
+ distance: { max: 9999 }
23
+ }
24
+ }
25
+ },
26
+ "[Floorplan]": {
19
27
  unfoldedConfig: {
20
28
  autoUnfold: {
21
29
  enable: !1,
@@ -14,7 +14,7 @@ let b = class {
14
14
  /**
15
15
  * @realsee/dnalogel 版本号
16
16
  */
17
- i(this, "VERSION", "3.8.6");
17
+ i(this, "VERSION", "3.8.8");
18
18
  i(this, "five");
19
19
  /**
20
20
  * 插件事件钩子
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.8.6",
3
+ "%c %c@realsee/dnalogel %cv3.8.8",
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": "3.8.6",
10
+ "version": "3.8.8",
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*",