@realsee/dnalogel 3.48.3 → 3.48.5

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.
@@ -50,15 +50,14 @@ import "../../../shared-utils/url/getUrl.js";
50
50
  import "../../../shared-utils/five/getFloorIndex.js";
51
51
  import "../../../shared-utils/safeObj.js";
52
52
  import "../../utils/Cache.js";
53
- import "../../../CruisePlugin/utils/sleep.js";
54
- const P = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map();
53
+ const P = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
55
54
  class ge extends f {
56
55
  constructor(t, e) {
57
56
  super(t, e), this.state.unfolded = !0;
58
57
  }
59
58
  applyVisible() {
60
- var e, r, a, n, o, i;
61
- this.computeRenderType() === "Mesh" ? ((r = (e = this.data.mediaData) == null ? void 0 : e[0]) == null ? void 0 : r.type) === "Video" ? this.renderVideoPlane() : ((n = (a = this.data.mediaData) == null ? void 0 : a[0]) == null ? void 0 : n.type) === "Image" && this.renderImagePlane() : ((o = this.tag3DContentSvelte) == null || o.svelteApp.$set({ tag: this, state: this.plugin.state }), (i = this.tag3DContentSvelte) == null || i.css3DInstance.setVisible(this.currentVisible));
59
+ var e, r, a, o, n, i;
60
+ this.computeRenderType() === "Mesh" ? ((r = (e = this.data.mediaData) == null ? void 0 : e[0]) == null ? void 0 : r.type) === "Video" ? this.renderVideoPlane() : ((o = (a = this.data.mediaData) == null ? void 0 : a[0]) == null ? void 0 : o.type) === "Image" && this.renderImagePlane() : (this.tag3DContentSvelte || this.plugin.updateRender3DDomTag(), (n = this.tag3DContentSvelte) == null || n.svelteApp.$set({ tag: this, state: this.plugin.state }), (i = this.tag3DContentSvelte) == null || i.css3DInstance.setVisible(this.currentVisible));
62
61
  }
63
62
  renderVideoPlane() {
64
63
  var i;
@@ -68,15 +67,15 @@ class ge extends f {
68
67
  const { url: e } = t;
69
68
  if (!e)
70
69
  return;
71
- const r = this.currentVisible, a = (() => !!(this.mediaPlane && !r))(), n = (() => !!(!this.mediaPlane && r))(), o = (() => !!(this.mediaPlane && this.mediaPlane.src !== e))();
72
- if ((a || o) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), n || o) {
70
+ const r = this.currentVisible, a = (() => !!(this.mediaPlane && !r))(), o = (() => !!(!this.mediaPlane && r))(), n = (() => !!(this.mediaPlane && this.mediaPlane.src !== e))();
71
+ if ((a || n) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), o || n) {
73
72
  const p = this.position.map(d), s = new u(e, p, {
74
73
  videoCoverSrc: t.videoCoverUrl,
75
74
  playButton: this.data.playIcon,
76
75
  paused: !((i = this.data.autoplayConfig) != null && i.autoplayVideo),
77
76
  objectFit: this.data.objectFit,
78
77
  videoTextureMap: P,
79
- ImageTextureMap: v,
78
+ ImageTextureMap: g,
80
79
  domEvents: this.plugin.domEvents
81
80
  });
82
81
  s.onVideoReady = (m) => {
@@ -94,8 +93,8 @@ class ge extends f {
94
93
  const { url: e } = t;
95
94
  if (!e)
96
95
  return;
97
- const r = this.position.map(d), a = this.currentVisible, n = (() => !!(this.mediaPlane && !a))(), o = (() => !!(!this.mediaPlane && a))(), i = (() => !!(this.mediaPlane && this.mediaPlane.src !== e))();
98
- (n || i) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), (o || i) && (this.mediaPlane = new c(e, r, { objectFit: this.data.objectFit }), this.getConfig().clickable !== !1 && this.plugin.domEvents.addAutoBindEventListener(
96
+ const r = this.position.map(d), a = this.currentVisible, o = (() => !!(this.mediaPlane && !a))(), n = (() => !!(!this.mediaPlane && a))(), i = (() => !!(this.mediaPlane && this.mediaPlane.src !== e))();
97
+ (o || i) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), (n || i) && (this.mediaPlane = new c(e, r, { objectFit: this.data.objectFit }), this.getConfig().clickable !== !1 && this.plugin.domEvents.addAutoBindEventListener(
99
98
  this.mediaPlane,
100
99
  "click",
101
100
  (p) => {
@@ -43,9 +43,8 @@ import "../../../shared-utils/url/getUrl.js";
43
43
  import "../../../shared-utils/five/getFloorIndex.js";
44
44
  import "../../../shared-utils/safeObj.js";
45
45
  import "../../utils/Cache.js";
46
- import "../../../CruisePlugin/utils/sleep.js";
47
46
  const v = new c.Vector2();
48
- class dt extends g {
47
+ class lt extends g {
49
48
  constructor(t, e) {
50
49
  super(t, e);
51
50
  a(this, "__Object__");
@@ -135,5 +134,5 @@ class dt extends g {
135
134
  }
136
135
  }
137
136
  export {
138
- dt as PointTag
137
+ lt as PointTag
139
138
  };
@@ -151,7 +151,6 @@ import "../../shared-utils/url/getUrl.js";
151
151
  import "../../shared-utils/five/getFloorIndex.js";
152
152
  import "../../shared-utils/safeObj.js";
153
153
  import "../utils/Cache.js";
154
- import "../../CruisePlugin/utils/sleep.js";
155
154
  import "../tag.config.js";
156
155
  import "../utils/normalPositionToPositions.js";
157
156
  import "../../vendor/svelte/store/index.js";
@@ -175,7 +174,7 @@ import "../../shared-utils/five/FiveDomEvents.js";
175
174
  import "../../shared-utils/five/calculateThreeMouse.js";
176
175
  import "../../shared-utils/three/THREERaycaster.js";
177
176
  import "../../base/BasePlugin.js";
178
- class we extends U {
177
+ class je extends U {
179
178
  constructor(t) {
180
179
  super(t);
181
180
  d(this, "rendererMap", /* @__PURE__ */ new Map());
@@ -326,5 +325,5 @@ class we extends U {
326
325
  }
327
326
  }
328
327
  export {
329
- we as TagRender
328
+ je as TagRender
330
329
  };
@@ -162,7 +162,6 @@ import "../utils/checkRange.js";
162
162
  import "../../shared-utils/url/getUrl.js";
163
163
  import "../../shared-utils/five/getFloorIndex.js";
164
164
  import "../utils/Cache.js";
165
- import "../../CruisePlugin/utils/sleep.js";
166
165
  import "./TagUtil.js";
167
166
  import "../tag.config.js";
168
167
  import "../utils/normalPositionToPositions.js";
@@ -190,8 +189,8 @@ import "../utils/addDebugPoints.js";
190
189
  import "../utils/requestIdleCallback.js";
191
190
  import "../Components/TagItem.js";
192
191
  import "../Components/Common/TagPoint.js";
193
- const S = "Dnalogel-PanoTagPlugin", qi = (d) => `${S}--${d}`;
194
- class Hi extends O {
192
+ const S = "Dnalogel-PanoTagPlugin", ji = (d) => `${S}--${d}`;
193
+ class qi extends O {
195
194
  constructor(e, t) {
196
195
  super(e);
197
196
  /** state */
@@ -601,7 +600,7 @@ class Hi extends O {
601
600
  }
602
601
  }
603
602
  export {
604
- Hi as PanoTagPluginController,
605
- Hi as default,
606
- qi as pluginFlag
603
+ qi as PanoTagPluginController,
604
+ qi as default,
605
+ ji as pluginFlag
607
606
  };
@@ -1,7 +1,7 @@
1
1
  import r from "./controller/index.js";
2
- import { pluginFlag as lr } from "./controller/index.js";
3
- import { defaultGlobalConfig as fr } from "./typings/tag/TagConfig.js";
4
- import { ContentType as ur, DimensionType as Pr, PointType as Tr } from "./Archive/deprecated.js";
2
+ import { pluginFlag as er } from "./controller/index.js";
3
+ import { defaultGlobalConfig as ar } from "./typings/tag/TagConfig.js";
4
+ import { ContentType as gr, DimensionType as ur, PointType as Pr } from "./Archive/deprecated.js";
5
5
  import "three";
6
6
  import "../vendor/object-assign-deep/objectAssignDeep.js";
7
7
  import "../shared-utils/positionToVector3.js";
@@ -129,7 +129,6 @@ import "../shared-utils/url/getUrl.js";
129
129
  import "../shared-utils/five/getFloorIndex.js";
130
130
  import "../shared-utils/safeObj.js";
131
131
  import "./utils/Cache.js";
132
- import "../CruisePlugin/utils/sleep.js";
133
132
  import "./controller/TagUtil.js";
134
133
  import "./tag.config.js";
135
134
  import "./utils/normalPositionToPositions.js";
@@ -164,14 +163,14 @@ import "./Components/TagContainer.js";
164
163
  import "./Components/TagItem.js";
165
164
  import "./Components/Common/TagPoint.js";
166
165
  import "../shared-utils/animationFrame/BetterTween.js";
167
- const mr = (o, t) => new r(o, t);
166
+ const ir = (o, t) => new r(o, t);
168
167
  export {
169
- ur as ContentType,
170
- Pr as DimensionType,
171
- mr as PanoTagPlugin,
168
+ gr as ContentType,
169
+ ur as DimensionType,
170
+ ir as PanoTagPlugin,
172
171
  r as PanoTagPluginController,
173
- Tr as PointType,
174
- mr as default,
175
- fr as defaultGlobalConfig,
176
- lr as pluginFlag
172
+ Pr as PointType,
173
+ ir as default,
174
+ ar as defaultGlobalConfig,
175
+ er as pluginFlag
177
176
  };
@@ -17,7 +17,7 @@ let x = class {
17
17
  /**
18
18
  * @realsee/dnalogel 版本号
19
19
  */
20
- i(this, "VERSION", "3.48.3");
20
+ i(this, "VERSION", "3.48.5");
21
21
  i(this, "NAME");
22
22
  i(this, "five");
23
23
  i(this, "workUtil");
package/libs/index.js CHANGED
@@ -374,7 +374,6 @@ import "./PanoTagPlugin/utils/checkRange.js";
374
374
  import "./shared-utils/url/getUrl.js";
375
375
  import "./shared-utils/five/getFloorIndex.js";
376
376
  import "./PanoTagPlugin/utils/Cache.js";
377
- import "./CruisePlugin/utils/sleep.js";
378
377
  import "./PanoTagPlugin/controller/TagUtil.js";
379
378
  import "./PanoTagPlugin/tag.config.js";
380
379
  import "./PanoTagPlugin/utils/normalPositionToPositions.js";
@@ -395,6 +394,7 @@ import "./CruisePlugin/utils/getFiveStateOnCurve.js";
395
394
  import "./CruisePlugin/utils/coordinatesAngle.js";
396
395
  import "./CruisePlugin/utils/coordinatesToVector.js";
397
396
  import "./CruisePlugin/utils/safeCall.js";
397
+ import "./CruisePlugin/utils/sleep.js";
398
398
  import "./shared-utils/five/fiveLoaded.js";
399
399
  import "./shared-utils/Object3DHelper/Helper/MoveHelper.js";
400
400
  import "./shared-utils/Object3DHelper/Base/BaseHelper.js";
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.48.3",
3
+ "%c %c@realsee/dnalogel %cv3.48.5",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.48.3",
3
+ "version": "3.48.5",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "devDependencies": {
44
44
  "@babel/core": "^7.22.9",
45
- "@realsee/five": "6.2.0-alpha.6",
45
+ "@realsee/five": "6.1.3",
46
46
  "@sveltejs/vite-plugin-svelte": "^2.4.2",
47
47
  "@tsconfig/svelte": "^4.0.1",
48
48
  "@tweenjs/tween.js": "^23.1.1",