@realsee/dnalogel 3.41.2 → 3.41.4

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.
Files changed (90) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/CruisePlugin/BaseController.d.ts +0 -2
  3. package/dist/CurrentPanoImagePlugin/Controller.d.ts +1 -0
  4. package/dist/base/BasePlugin.d.ts +2 -0
  5. package/dist/index.cjs.js +53 -53
  6. package/dist/index.js +3921 -3904
  7. package/dist/index.umd.js +48 -48
  8. package/dist/shared-utils/Utils/FiveUtil.d.ts +1 -0
  9. package/dist/shared-utils/five/FiveDomEvents.d.ts +1 -0
  10. package/dist/shared-utils/five/getFiveModel.d.ts +2 -0
  11. package/libs/AreaMakerPlugin/Controller.js +6 -4
  12. package/libs/AreaMakerPlugin/index.js +5 -3
  13. package/libs/AreaMakerPlugin/utils/Item.js +2 -2
  14. package/libs/CSS3DRenderPlugin/Controller.js +3 -2
  15. package/libs/CSS3DRenderPlugin/index.js +6 -5
  16. package/libs/CruisePlugin/BaseController.d.ts +0 -2
  17. package/libs/CruisePlugin/BaseController.js +36 -36
  18. package/libs/CruisePlugin/Move.js +5 -4
  19. package/libs/CruisePlugin/Work.js +5 -4
  20. package/libs/CruisePlugin/index.js +9 -8
  21. package/libs/CurrentPanoImagePlugin/Controller.d.ts +1 -0
  22. package/libs/CurrentPanoImagePlugin/Controller.js +13 -11
  23. package/libs/CurrentPanoImagePlugin/index.js +6 -4
  24. package/libs/GuideLinePlugin/Controller.js +7 -6
  25. package/libs/GuideLinePlugin/GuideLineItem.js +5 -4
  26. package/libs/GuideLinePlugin/GuideLineModeItem.js +5 -3
  27. package/libs/GuideLinePlugin/index.js +9 -8
  28. package/libs/ModelMakerPlugin/Controller.js +5 -3
  29. package/libs/ModelMakerPlugin/index.js +5 -3
  30. package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
  31. package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
  32. package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
  33. package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
  34. package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +7 -6
  35. package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
  36. package/libs/ModelTVVideoPlugin/index.js +3 -2
  37. package/libs/Object3DHelperPlugin/Controller.js +16 -14
  38. package/libs/Object3DHelperPlugin/index.js +8 -6
  39. package/libs/PanoCompassPlugin/Controller.js +5 -3
  40. package/libs/PanoCompassPlugin/index.js +6 -4
  41. package/libs/PanoDoorLabelPlugin/BaseController.js +9 -7
  42. package/libs/PanoDoorLabelPlugin/Controller.js +5 -3
  43. package/libs/PanoDoorLabelPlugin/index.js +6 -4
  44. package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
  45. package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
  46. package/libs/PanoMeasurePlugin/Controller/EditController.js +4 -3
  47. package/libs/PanoMeasurePlugin/Controller/MixedController.js +35 -34
  48. package/libs/PanoMeasurePlugin/Controller/WatchController.js +50 -49
  49. package/libs/PanoMeasurePlugin/Controller/index.js +5 -3
  50. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -2
  51. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +4 -3
  52. package/libs/PanoMeasurePlugin/index.js +16 -14
  53. package/libs/PanoSpatialTagPlugin/Plugin.js +4 -3
  54. package/libs/PanoSpatialTagPlugin/index.js +1 -0
  55. package/libs/PanoTagPlugin/controller/TagCache.js +11 -9
  56. package/libs/PanoTagPlugin/controller/TagComputer.js +12 -10
  57. package/libs/PanoTagPlugin/controller/TagRender.js +5 -3
  58. package/libs/PanoTagPlugin/controller/TagUtil.js +5 -3
  59. package/libs/PanoTagPlugin/controller/index.js +8 -6
  60. package/libs/PanoTagPlugin/index.js +14 -12
  61. package/libs/PanoVideoPlugin/Controller.js +5 -3
  62. package/libs/PanoVideoPlugin/index.js +8 -6
  63. package/libs/PipelinePlugin/Controller.js +25 -23
  64. package/libs/PipelinePlugin/index.js +6 -4
  65. package/libs/base/BasePlugin.d.ts +2 -0
  66. package/libs/base/BasePlugin.js +14 -13
  67. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +14 -11
  68. package/libs/floorplan/MapviewFloorplanPlugin/index.js +7 -4
  69. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +5 -3
  70. package/libs/floorplan/ModelFloorplanPlugin/index.js +6 -4
  71. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +5 -3
  72. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +6 -4
  73. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +5 -3
  74. package/libs/floorplan/TopviewFloorplanPlugin/index.js +6 -4
  75. package/libs/index.js +128 -127
  76. package/libs/shared-utils/Utils/FiveUtil.d.ts +1 -0
  77. package/libs/shared-utils/Utils/FiveUtil.js +11 -7
  78. package/libs/shared-utils/five/FiveDomEvents.d.ts +1 -0
  79. package/libs/shared-utils/five/FiveDomEvents.js +46 -42
  80. package/libs/shared-utils/five/fiveModelLoad.js +26 -17
  81. package/libs/shared-utils/five/getFiveModel.d.ts +2 -0
  82. package/libs/shared-utils/five/getFiveModel.js +7 -0
  83. package/libs/shared-utils/five/getPosition.js +24 -23
  84. package/libs/shared-utils/logger.js +1 -1
  85. package/libs/shared-utils/tag.js +10 -9
  86. package/libs/shared-utils/three/PointSelector.js +11 -11
  87. package/libs/shared-utils/three/getIntersect.js +19 -18
  88. package/package.json +1 -1
  89. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +0 -2
  90. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +0 -31
@@ -5,6 +5,7 @@ export declare class FiveUtil extends BaseUtil {
5
5
  workUtil: WorkUtil;
6
6
  get version(): string;
7
7
  get majorVersion(): number;
8
+ get model(): import("@realsee/five").Model;
8
9
  constructor(five: Five);
9
10
  moveToPano(panoNumber: number, movePanoOptions: Parameters<Five['moveToPano']>[1]): Promise<void>;
10
11
  }
@@ -86,6 +86,7 @@ export declare class FiveDomEvents {
86
86
  private get haveDragEventObject();
87
87
  private boundObject;
88
88
  private config;
89
+ private get model();
89
90
  constructor(five: Five, config?: EventHandlerConfig);
90
91
  /**
91
92
  * @description: added 时自动绑定事件,removed时自动解绑事件,也就是说只有物体在场景中的时候才会触发事件
@@ -0,0 +1,2 @@
1
+ import { Five } from '@realsee/five';
2
+ export declare function getFiveModel(five: Five): import("@realsee/five").Model;
@@ -39,9 +39,11 @@ import { AreaMakerItem as D } from "./utils/Item.js";
39
39
  import "../base/BasePlugin.js";
40
40
  import "../shared-utils/Subscribe.js";
41
41
  import "../shared-utils/url/absoluteUrl.js";
42
- import "../shared-utils/Utils/WorkUtil.js";
42
+ import "../shared-utils/Utils/FiveUtil.js";
43
43
  import "../shared-utils/Utils/BaseUtil.js";
44
+ import "../shared-utils/Utils/WorkUtil.js";
44
45
  import "../shared-utils/five/transformPosition.js";
46
+ import "../shared-utils/five/getFiveModel.js";
45
47
  import "../shared-utils/positionToVector3.js";
46
48
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
47
49
  import "three/examples/jsm/renderers/CSS3DRenderer";
@@ -65,7 +67,7 @@ import "../vendor/svelte/internal/index.js";
65
67
  import "../components/AreaLabel/Assets/roomLabelBg.js";
66
68
  import "../shared-utils/math/planimetry.js";
67
69
  import "../shared-utils/dom/resizeObserver.js";
68
- class lt extends k {
70
+ class mt extends k {
69
71
  /** AreaMakerPlugin
70
72
  * @param `five` `<Five>` Five 实例
71
73
  * @param `params` `<PluginType.Params> | <undefined>` 插件初始化参数
@@ -135,7 +137,7 @@ class lt extends k {
135
137
  const e = i.reduce((n, l) => {
136
138
  const v = n.intersects[0].distance, b = l.intersects[0].distance;
137
139
  return v < b ? n : l;
138
- }), s = this.five.model.intersectRaycaster(t)[0];
140
+ }), s = this.fiveUtil.model.intersectRaycaster(t)[0];
139
141
  if (this.config.modelDepthTest && s && s.distance < e.intersects[0].distance)
140
142
  return;
141
143
  if (this.hooks.emit("wantsTap", {
@@ -340,5 +342,5 @@ class lt extends k {
340
342
  }
341
343
  }
342
344
  export {
343
- lt as Controller
345
+ mt as Controller
344
346
  };
@@ -22,9 +22,11 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
22
22
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
23
23
  import "animejs";
24
24
  import "../shared-utils/url/absoluteUrl.js";
25
- import "../shared-utils/Utils/WorkUtil.js";
25
+ import "../shared-utils/Utils/FiveUtil.js";
26
26
  import "../shared-utils/Utils/BaseUtil.js";
27
+ import "../shared-utils/Utils/WorkUtil.js";
27
28
  import "../shared-utils/five/transformPosition.js";
29
+ import "../shared-utils/five/getFiveModel.js";
28
30
  import "../shared-utils/equal.js";
29
31
  import "../shared-utils/isTruelyObject.js";
30
32
  import "./utils/Item.js";
@@ -37,7 +39,7 @@ import "../vendor/svelte/internal/index.js";
37
39
  import "../components/AreaLabel/Assets/roomLabelBg.js";
38
40
  import "../shared-utils/math/planimetry.js";
39
41
  import "../shared-utils/dom/resizeObserver.js";
40
- const Q = (r, o) => new t(r, o);
42
+ const S = (r, o) => new t(r, o);
41
43
  export {
42
- Q as AreaMakerPlugin
44
+ S as AreaMakerPlugin
43
45
  };
@@ -160,7 +160,7 @@ class it {
160
160
  i(this, "checkVisible", () => {
161
161
  if (!this.plugin.state.visible)
162
162
  return { result: !1, msg: "插件不可见" };
163
- const t = this.plugin.five.model.shownFloor;
163
+ const t = this.plugin.fiveUtil.model.shownFloor;
164
164
  return t === null || t === this.floorIndex ? { result: !0, msg: "" } : { result: !1, msg: `模型高亮楼层不符合展示条件, 当前高亮楼层为:${t}` };
165
165
  });
166
166
  /** 更新标注标签 */
@@ -192,7 +192,7 @@ class it {
192
192
  return { result: !1, msg: "处于容器 resize 动画中" };
193
193
  const t = this.plugin.five, s = new a.Raycaster(), o = t.camera.position.clone();
194
194
  s.set(o.clone(), this.tagPosition.clone().sub(o).normalize());
195
- const [r] = t.model.intersectRaycaster(s), l = this.tagPosition.distanceTo(t.camera.position);
195
+ const [r] = this.plugin.fiveUtil.model.intersectRaycaster(s), l = this.tagPosition.distanceTo(t.camera.position);
196
196
  if (r && r.distance + 0.1 < l)
197
197
  return { result: !1, msg: "标注标签被 Five 模型遮挡" };
198
198
  const h = this.tagNDCPosition;
@@ -33,8 +33,9 @@ import "../shared-utils/three/centerPoint.js";
33
33
  import "../shared-utils/three/getObjectVisible.js";
34
34
  import "./utils/three/CSS3DScene.js";
35
35
  import "./utils/three/CSS3DGroup.js";
36
+ import "../shared-utils/five/getFiveModel.js";
36
37
  const b = "v2.0.1", E = `CSS3DRenderPlugin@${b}`;
37
- class Z extends j {
38
+ class g extends j {
38
39
  constructor(e) {
39
40
  super();
40
41
  n(this, "five");
@@ -147,5 +148,5 @@ class Z extends j {
147
148
  }
148
149
  export {
149
150
  E as PLUGIN_NAME,
150
- Z as default
151
+ g as default
151
152
  };
@@ -1,5 +1,5 @@
1
1
  import o from "./Controller.js";
2
- import { CSS3DRender as q } from "./utils/three/CSS3DRender.js";
2
+ import { CSS3DRender as v } from "./utils/three/CSS3DRender.js";
3
3
  import "./utils/generateBehindFiveElement.js";
4
4
  import "hammerjs";
5
5
  import "three";
@@ -7,6 +7,7 @@ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
7
7
  import "animejs";
8
8
  import "../shared-utils/url/absoluteUrl.js";
9
9
  import "../shared-utils/five/fiveModelLoad.js";
10
+ import "../shared-utils/five/getFiveModel.js";
10
11
  import "../shared-utils/positionToVector3.js";
11
12
  import "./utils/three/CSS3DRenderer.js";
12
13
  import "three/examples/jsm/renderers/CSS3DRenderer";
@@ -21,9 +22,9 @@ import "../shared-utils/three/centerPoint.js";
21
22
  import "../shared-utils/three/getObjectVisible.js";
22
23
  import "./utils/three/CSS3DScene.js";
23
24
  import "./utils/three/CSS3DGroup.js";
24
- const h = (r) => new o(r);
25
+ const j = (r) => new o(r);
25
26
  export {
26
- q as CSS3DRender,
27
- h as CSS3DRenderPlugin,
28
- h as default
27
+ v as CSS3DRender,
28
+ j as CSS3DRenderPlugin,
29
+ j as default
29
30
  };
@@ -4,11 +4,9 @@ import type { GuideLinePluginExportType } from '../GuideLinePlugin';
4
4
  import * as BasePlugin from '../base/BasePlugin';
5
5
  import type { PluginState, EventMap, MoveEffect } from './typing';
6
6
  import type { PartialDeep } from 'type-fest';
7
- import { FiveUtil } from '../shared-utils/Utils/FiveUtil';
8
7
  export declare const pluginFlag: (name: string) => string;
9
8
  export default abstract class CruiseController<PluginData, Config = unknown> extends BasePlugin.Controller<PluginState, EventMap> {
10
9
  state: PluginState;
11
- protected fiveUtil: FiveUtil;
12
10
  protected data?: PluginData & {
13
11
  id: string | number;
14
12
  };
@@ -10,26 +10,25 @@ var p = (a, s, e) => s in a ? c(a, s, { enumerable: !0, configurable: !0, writab
10
10
  return a;
11
11
  };
12
12
  var d = (a, s, e) => (p(a, typeof s != "symbol" ? s + "" : s, e), e);
13
- var u = (a, s, e) => new Promise((i, t) => {
13
+ var u = (a, s, e) => new Promise((t, i) => {
14
14
  var r = (h) => {
15
15
  try {
16
16
  n(e.next(h));
17
17
  } catch (o) {
18
- t(o);
18
+ i(o);
19
19
  }
20
20
  }, b = (h) => {
21
21
  try {
22
22
  n(e.throw(h));
23
23
  } catch (o) {
24
- t(o);
24
+ i(o);
25
25
  }
26
- }, n = (h) => h.done ? i(h.value) : Promise.resolve(h.value).then(r, b);
26
+ }, n = (h) => h.done ? t(h.value) : Promise.resolve(h.value).then(r, b);
27
27
  n((e = e.apply(a, s)).next());
28
28
  });
29
29
  import { Controller as y } from "../base/BasePlugin.js";
30
30
  import { equal as L } from "../shared-utils/equal.js";
31
31
  import { objectAssignDeepExports as C } from "../vendor/object-assign-deep/objectAssignDeep.js";
32
- import { FiveUtil as P } from "../shared-utils/Utils/FiveUtil.js";
33
32
  import "../shared-utils/Subscribe.js";
34
33
  import "hammerjs";
35
34
  import "three";
@@ -51,14 +50,16 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
51
50
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
52
51
  import "animejs";
53
52
  import "../shared-utils/url/absoluteUrl.js";
54
- import "../shared-utils/Utils/WorkUtil.js";
53
+ import "../shared-utils/Utils/FiveUtil.js";
55
54
  import "../shared-utils/Utils/BaseUtil.js";
55
+ import "../shared-utils/Utils/WorkUtil.js";
56
56
  import "../shared-utils/five/transformPosition.js";
57
+ import "../shared-utils/five/getFiveModel.js";
57
58
  import "../shared-utils/isTruelyObject.js";
58
59
  const m = "CruisePlugin", l = `${m}`, ee = (a) => `${l}--${a}`;
59
- class ie extends y {
60
- constructor(e, i) {
61
- super(e, i);
60
+ class te extends y {
61
+ constructor(e, t) {
62
+ super(e, t);
62
63
  d(this, "state", {
63
64
  visible: !0,
64
65
  enabled: !0,
@@ -66,7 +67,6 @@ class ie extends y {
66
67
  playing: !1,
67
68
  speed: 1
68
69
  });
69
- d(this, "fiveUtil", new P(this.five));
70
70
  d(this, "data");
71
71
  d(this, "config");
72
72
  d(this, "pauseDataMap", /* @__PURE__ */ new Map());
@@ -85,7 +85,7 @@ class ie extends y {
85
85
  d(this, "disableErrorLog", () => {
86
86
  console.error(`${l} is disabled`);
87
87
  });
88
- this.config = i, Object.assign(window, { [`__${m}_DEBUG__`]: this });
88
+ this.config = t, Object.assign(window, { [`__${m}_DEBUG__`]: this });
89
89
  }
90
90
  /**
91
91
  * @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
@@ -136,50 +136,50 @@ class ie extends y {
136
136
  /**
137
137
  * @description Set state
138
138
  */
139
- setState(e, i) {
139
+ setState(e, t) {
140
140
  var r;
141
141
  if (this.state.disposed)
142
142
  return this.disposedErrorLog();
143
143
  if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
144
144
  return this.disableErrorLog();
145
- const t = g({}, this.state);
146
- this.state = C({}, this.state, e), e.disposed !== void 0 && e.disposed !== t.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== t.visible && this.handleVisible(e.visible, i == null ? void 0 : i.userAction), e.enabled !== void 0 && e.enabled !== t.enabled && this.handleEnable(e.enabled, i == null ? void 0 : i.userAction), e.playing !== void 0 && e.playing !== t.playing && this.changePlayState(e.playing, i), e.speed !== void 0 && e.speed !== t.speed && this.changeSpeed(e.speed), L(t, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: t, userAction: (r = i == null ? void 0 : i.userAction) != null ? r : !0 });
145
+ const i = g({}, this.state);
146
+ this.state = C({}, this.state, e), e.disposed !== void 0 && e.disposed !== i.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== i.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== i.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== i.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== i.speed && this.changeSpeed(e.speed), L(i, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: (r = t == null ? void 0 : t.userAction) != null ? r : !0 });
147
147
  }
148
148
  /**
149
149
  * @description Clear pause data
150
150
  */
151
151
  clearPauseData() {
152
- var e, i;
152
+ var e, t;
153
153
  if ((e = this.data) != null && e.id)
154
- return this.pauseDataMap.delete((i = this.data) == null ? void 0 : i.id);
154
+ return this.pauseDataMap.delete((t = this.data) == null ? void 0 : t.id);
155
155
  }
156
- changePlayState(e, i) {
156
+ changePlayState(e, t) {
157
157
  this.actionIfStateIsEnabled(
158
158
  () => {
159
- var t;
160
- return this.hooks.emit("playStateChange", e ? "playing" : "pause", { userAction: (t = i == null ? void 0 : i.userAction) != null ? t : !0 });
159
+ var i;
160
+ return this.hooks.emit("playStateChange", e ? "playing" : "pause", { userAction: (i = t == null ? void 0 : t.userAction) != null ? i : !0 });
161
161
  }
162
- ), e ? this.handlePlay(i) : this.handlePause(i), this.state.playing = e;
162
+ ), e ? this.handlePlay(t) : this.handlePause(t), this.state.playing = e;
163
163
  }
164
- handleEnable(e, i = !0) {
165
- var t, r;
166
- e ? ((t = this.GuideLine) == null || t.enable(), this.hooks.emit("enable", { userAction: i })) : ((r = this.GuideLine) == null || r.disable(), this.changePlayState(!1, { userAction: i }), this.hooks.emit("disable", { userAction: i })), this.state.enabled = e;
164
+ handleEnable(e, t = !0) {
165
+ var i, r;
166
+ e ? ((i = this.GuideLine) == null || i.enable(), this.hooks.emit("enable", { userAction: t })) : ((r = this.GuideLine) == null || r.disable(), this.changePlayState(!1, { userAction: t }), this.hooks.emit("disable", { userAction: t })), this.state.enabled = e;
167
167
  }
168
- handleVisible(e, i = !0) {
169
- var t, r;
170
- e ? ((t = this.GuideLine) == null || t.show(), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: i }))) : ((r = this.GuideLine) == null || r.hide(), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: i }))), this.state.visible = e;
168
+ handleVisible(e, t = !0) {
169
+ var i, r;
170
+ e ? ((i = this.GuideLine) == null || i.show(), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: t }))) : ((r = this.GuideLine) == null || r.hide(), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: t }))), this.state.visible = e;
171
171
  }
172
172
  /**
173
173
  * @description: listen interupted by five gesture
174
174
  */
175
175
  addInterruptListener(e) {
176
- const i = () => {
176
+ const t = () => {
177
177
  this.privateState.modeChanging || e();
178
- }, t = (r) => {
179
- r !== "mouseMove" && (e(), this.five.off("gesture", t));
178
+ }, i = (r) => {
179
+ r !== "mouseMove" && (e(), this.five.off("gesture", i));
180
180
  };
181
- return this.five.on("gesture", t), this.five.once("wantsChangeMode", i), () => {
182
- this.five.off("gesture", t), this.five.off("wantsChangeMode", i);
181
+ return this.five.on("gesture", i), this.five.once("wantsChangeMode", t), () => {
182
+ this.five.off("gesture", i), this.five.off("wantsChangeMode", t);
183
183
  };
184
184
  }
185
185
  /**
@@ -203,8 +203,8 @@ class ie extends y {
203
203
  * @description Set pause data
204
204
  */
205
205
  setPauseData() {
206
- var i;
207
- const e = (i = this.data) == null ? void 0 : i.id;
206
+ var t;
207
+ const e = (t = this.data) == null ? void 0 : t.id;
208
208
  if (e)
209
209
  return this.pauseDataMap.set(e, {
210
210
  fiveState: this.five.getCurrentState(),
@@ -225,13 +225,13 @@ class ie extends y {
225
225
  /**
226
226
  * @description Action function if plugin is enable
227
227
  */
228
- actionIfStateIsEnabled(e, i) {
228
+ actionIfStateIsEnabled(e, t) {
229
229
  if (this.state.enabled)
230
230
  return e();
231
- i != null && i.warnLog && this.disableWarnLog();
231
+ t != null && t.warnLog && this.disableWarnLog();
232
232
  }
233
233
  }
234
234
  export {
235
- ie as default,
235
+ te as default,
236
236
  ee as pluginFlag
237
237
  };
@@ -42,12 +42,13 @@ import M from "../GuideLinePlugin/index.js";
42
42
  import "../base/BasePlugin.js";
43
43
  import "../shared-utils/Subscribe.js";
44
44
  import "../shared-utils/url/absoluteUrl.js";
45
- import "../shared-utils/Utils/WorkUtil.js";
45
+ import "../shared-utils/Utils/FiveUtil.js";
46
46
  import "../shared-utils/Utils/BaseUtil.js";
47
+ import "../shared-utils/Utils/WorkUtil.js";
47
48
  import "../shared-utils/five/transformPosition.js";
49
+ import "../shared-utils/five/getFiveModel.js";
48
50
  import "../shared-utils/equal.js";
49
51
  import "../shared-utils/isTruelyObject.js";
50
- import "../shared-utils/Utils/FiveUtil.js";
51
52
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
52
53
  import "three/examples/jsm/renderers/CSS3DRenderer";
53
54
  import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
@@ -207,7 +208,7 @@ import "./utils/coordinatesAngle.js";
207
208
  import "./utils/coordinatesToVector.js";
208
209
  import "./utils/safeCall.js";
209
210
  import "../shared-utils/five/fiveLoaded.js";
210
- class to extends z {
211
+ class io extends z {
211
212
  constructor(t, r) {
212
213
  var h;
213
214
  super(t, r);
@@ -315,5 +316,5 @@ class to extends z {
315
316
  }
316
317
  }
317
318
  export {
318
- to as default
319
+ io as default
319
320
  };
@@ -47,9 +47,11 @@ import "../base/BasePluginWithData.js";
47
47
  import "../base/BasePlugin.js";
48
48
  import "../shared-utils/Subscribe.js";
49
49
  import "../shared-utils/url/absoluteUrl.js";
50
- import "../shared-utils/Utils/WorkUtil.js";
50
+ import "../shared-utils/Utils/FiveUtil.js";
51
51
  import "../shared-utils/Utils/BaseUtil.js";
52
+ import "../shared-utils/Utils/WorkUtil.js";
52
53
  import "../shared-utils/five/transformPosition.js";
54
+ import "../shared-utils/five/getFiveModel.js";
53
55
  import "../shared-utils/equal.js";
54
56
  import "../shared-utils/isTruelyObject.js";
55
57
  import "../GuideLinePlugin/GuideLineItem/index.js";
@@ -203,11 +205,10 @@ import "../shared-utils/five/changeMode.js";
203
205
  import "../shared-utils/nearlyEqual.js";
204
206
  import "./Move.js";
205
207
  import "./utils/getFiveStateOnCurve.js";
206
- import "../shared-utils/Utils/FiveUtil.js";
207
208
  import "../shared-utils/formatRad.js";
208
209
  import "./Work.js";
209
210
  import "./utils/coordinatesToVector.js";
210
- class rr extends G {
211
+ class or extends G {
211
212
  constructor(t, e) {
212
213
  super(t, e);
213
214
  k(this, "state", {
@@ -595,5 +596,5 @@ class rr extends G {
595
596
  }
596
597
  }
597
598
  export {
598
- rr as default
599
+ or as default
599
600
  };
@@ -1,4 +1,4 @@
1
- import { typing as ht } from "./typing/index.js";
1
+ import { typing as jt } from "./typing/index.js";
2
2
  import t from "./Work.js";
3
3
  import i from "./Move.js";
4
4
  import "../GuideLinePlugin/index.js";
@@ -26,9 +26,11 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
26
26
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
27
27
  import "animejs";
28
28
  import "../shared-utils/url/absoluteUrl.js";
29
- import "../shared-utils/Utils/WorkUtil.js";
29
+ import "../shared-utils/Utils/FiveUtil.js";
30
30
  import "../shared-utils/Utils/BaseUtil.js";
31
+ import "../shared-utils/Utils/WorkUtil.js";
31
32
  import "../shared-utils/five/transformPosition.js";
33
+ import "../shared-utils/five/getFiveModel.js";
32
34
  import "../shared-utils/equal.js";
33
35
  import "../shared-utils/isTruelyObject.js";
34
36
  import "../GuideLinePlugin/GuideLineItem/index.js";
@@ -177,15 +179,14 @@ import "../shared-utils/five/fiveLoaded.js";
177
179
  import "../shared-utils/vectorToCoordinate.js";
178
180
  import "../shared-utils/formatRad.js";
179
181
  import "./BaseController.js";
180
- import "../shared-utils/Utils/FiveUtil.js";
181
182
  import "./utils/getFiveStateOnCurve.js";
182
- const kt = (o, r) => new t(o, r), Tt = (o, r) => new i(o, r);
183
+ const Tt = (o, r) => new t(o, r), Wt = (o, r) => new i(o, r);
183
184
  export {
184
- kt as CruisePlugin,
185
+ Tt as CruisePlugin,
185
186
  t as CruisePluginController,
186
- ht as CruisePluginTypes,
187
+ jt as CruisePluginTypes,
187
188
  i as MoveController,
188
- Tt as MovePlugin,
189
+ Wt as MovePlugin,
189
190
  t as WalkController,
190
- kt as default
191
+ Tt as default
191
192
  };
@@ -10,6 +10,7 @@ export declare class CurrentPanoImagePluginController extends BasePlugin.Control
10
10
  yOffset: number;
11
11
  yRotate: number;
12
12
  imageURL: string;
13
+ /** 插件当前状态 */
13
14
  staticPrefix?: string;
14
15
  i18n?: (key: string) => string;
15
16
  };
@@ -1,27 +1,27 @@
1
1
  var g = Object.defineProperty;
2
2
  var m = Object.getOwnPropertySymbols;
3
3
  var v = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
4
- var p = (r, o, e) => o in r ? g(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e, l = (r, o) => {
4
+ var c = (r, o, e) => o in r ? g(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e, l = (r, o) => {
5
5
  for (var e in o || (o = {}))
6
- v.call(o, e) && p(r, e, o[e]);
6
+ v.call(o, e) && c(r, e, o[e]);
7
7
  if (m)
8
8
  for (var e of m(o))
9
- b.call(o, e) && p(r, e, o[e]);
9
+ b.call(o, e) && c(r, e, o[e]);
10
10
  return r;
11
11
  };
12
- var n = (r, o, e) => (p(r, typeof o != "symbol" ? o + "" : o, e), e);
12
+ var n = (r, o, e) => (c(r, typeof o != "symbol" ? o + "" : o, e), e);
13
13
  var f = (r, o, e) => new Promise((i, t) => {
14
14
  var s = (d) => {
15
15
  try {
16
16
  u(e.next(d));
17
- } catch (c) {
18
- t(c);
17
+ } catch (p) {
18
+ t(p);
19
19
  }
20
20
  }, a = (d) => {
21
21
  try {
22
22
  u(e.throw(d));
23
- } catch (c) {
24
- t(c);
23
+ } catch (p) {
24
+ t(p);
25
25
  }
26
26
  }, u = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(s, a);
27
27
  u((e = e.apply(r, o)).next());
@@ -38,9 +38,11 @@ import { equal as w } from "../shared-utils/equal.js";
38
38
  import { loadTexture as P } from "../shared-utils/three/loadTexture.js";
39
39
  import "../shared-utils/Subscribe.js";
40
40
  import "../shared-utils/url/absoluteUrl.js";
41
- import "../shared-utils/Utils/WorkUtil.js";
41
+ import "../shared-utils/Utils/FiveUtil.js";
42
42
  import "../shared-utils/Utils/BaseUtil.js";
43
+ import "../shared-utils/Utils/WorkUtil.js";
43
44
  import "../shared-utils/five/transformPosition.js";
45
+ import "../shared-utils/five/getFiveModel.js";
44
46
  import "../shared-utils/animationFrame/index.js";
45
47
  import "../shared-utils/positionToVector3.js";
46
48
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
@@ -56,7 +58,7 @@ import "../shared-utils/three/getObjectVisible.js";
56
58
  import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
57
59
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
58
60
  import "../shared-utils/isTruelyObject.js";
59
- class Z extends M {
61
+ class ie extends M {
60
62
  constructor(e, i) {
61
63
  super(e);
62
64
  // ==================== public properties ====================
@@ -283,5 +285,5 @@ class Z extends M {
283
285
  }
284
286
  }
285
287
  export {
286
- Z as CurrentPanoImagePluginController
288
+ ie as CurrentPanoImagePluginController
287
289
  };
@@ -21,16 +21,18 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
21
21
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
22
22
  import "animejs";
23
23
  import "../shared-utils/url/absoluteUrl.js";
24
- import "../shared-utils/Utils/WorkUtil.js";
24
+ import "../shared-utils/Utils/FiveUtil.js";
25
25
  import "../shared-utils/Utils/BaseUtil.js";
26
+ import "../shared-utils/Utils/WorkUtil.js";
26
27
  import "../shared-utils/five/transformPosition.js";
28
+ import "../shared-utils/five/getFiveModel.js";
27
29
  import "../shared-utils/animationFrame/BetterTween.js";
28
30
  import "../shared-utils/animationFrame/index.js";
29
31
  import "../shared-utils/equal.js";
30
32
  import "../shared-utils/isTruelyObject.js";
31
33
  import "../shared-utils/three/loadTexture.js";
32
- const G = (r, o) => new t(r, o);
34
+ const J = (r, o) => new t(r, o);
33
35
  export {
34
- G as CurrentPanoImagePlugin,
35
- G as default
36
+ J as CurrentPanoImagePlugin,
37
+ J as default
36
38
  };
@@ -42,9 +42,11 @@ import { uuid as U } from "../shared-utils/uuid.js";
42
42
  import "../base/BasePlugin.js";
43
43
  import "../shared-utils/Subscribe.js";
44
44
  import "../shared-utils/url/absoluteUrl.js";
45
- import "../shared-utils/Utils/WorkUtil.js";
45
+ import "../shared-utils/Utils/FiveUtil.js";
46
46
  import "../shared-utils/Utils/BaseUtil.js";
47
+ import "../shared-utils/Utils/WorkUtil.js";
47
48
  import "../shared-utils/five/transformPosition.js";
49
+ import "../shared-utils/five/getFiveModel.js";
48
50
  import "../shared-utils/isTruelyObject.js";
49
51
  import "./GuideLineModeItem/index.js";
50
52
  import "../shared-utils/log.js";
@@ -196,7 +198,6 @@ import "../shared-utils/five/changeMode.js";
196
198
  import "../shared-utils/nearlyEqual.js";
197
199
  import "../CruisePlugin/Move.js";
198
200
  import "../CruisePlugin/BaseController.js";
199
- import "../shared-utils/Utils/FiveUtil.js";
200
201
  import "../CruisePlugin/utils/getFiveStateOnCurve.js";
201
202
  import "../shared-utils/vectorToCoordinate.js";
202
203
  import "../shared-utils/formatRad.js";
@@ -206,8 +207,8 @@ import "../CruisePlugin/utils/coordinatesAngle.js";
206
207
  import "../CruisePlugin/utils/coordinatesToVector.js";
207
208
  import "../CruisePlugin/utils/safeCall.js";
208
209
  import "../shared-utils/five/fiveLoaded.js";
209
- const b = "GuideLinePlugin", g = `${b}`, me = (s) => `${g}--${s}`;
210
- class pe extends N {
210
+ const b = "GuideLinePlugin", g = `${b}`, pe = (s) => `${g}--${s}`;
211
+ class se extends N {
211
212
  constructor(t, i) {
212
213
  super(t, i);
213
214
  h(this, "name", b);
@@ -349,6 +350,6 @@ class pe extends N {
349
350
  }
350
351
  }
351
352
  export {
352
- pe as default,
353
- me as pluginFlag
353
+ se as default,
354
+ pe as pluginFlag
354
355
  };
@@ -5,7 +5,7 @@ import "../shared-utils/five/changeMode.js";
5
5
  import "../CruisePlugin/Move.js";
6
6
  import "../CruisePlugin/Work.js";
7
7
  import "../shared-utils/Subscribe.js";
8
- import { GuideLineItem as jo } from "./GuideLineItem/index.js";
8
+ import { GuideLineItem as ko } from "./GuideLineItem/index.js";
9
9
  import "three";
10
10
  import "./utils/createLineGeometry.js";
11
11
  import "../vendor/polyline-normals/index.js";
@@ -62,9 +62,11 @@ import "../PanoTagPlugin/utils/normalPositionToPositions.js";
62
62
  import "../PanoTagPlugin/controller/TagCache.js";
63
63
  import "../base/BasePlugin.js";
64
64
  import "../shared-utils/url/absoluteUrl.js";
65
- import "../shared-utils/Utils/WorkUtil.js";
65
+ import "../shared-utils/Utils/FiveUtil.js";
66
66
  import "../shared-utils/Utils/BaseUtil.js";
67
+ import "../shared-utils/Utils/WorkUtil.js";
67
68
  import "../shared-utils/five/transformPosition.js";
69
+ import "../shared-utils/five/getFiveModel.js";
68
70
  import "../vendor/svelte/store/index.js";
69
71
  import "../vendor/svelte/internal/index.js";
70
72
  import "../shared-utils/device.js";
@@ -167,7 +169,6 @@ import "../shared-utils/nearlyEqual.js";
167
169
  import "../CruisePlugin/BaseController.js";
168
170
  import "../shared-utils/equal.js";
169
171
  import "../shared-utils/isTruelyObject.js";
170
- import "../shared-utils/Utils/FiveUtil.js";
171
172
  import "../CruisePlugin/utils/getFiveStateOnCurve.js";
172
173
  import "../shared-utils/vectorToCoordinate.js";
173
174
  import "../shared-utils/formatRad.js";
@@ -179,5 +180,5 @@ import "../CruisePlugin/utils/coordinatesToVector.js";
179
180
  import "../CruisePlugin/utils/safeCall.js";
180
181
  import "../shared-utils/five/fiveLoaded.js";
181
182
  export {
182
- jo as GuideLineItem
183
+ ko as GuideLineItem
183
184
  };
@@ -14,7 +14,7 @@ import "../PanoTagPlugin/controller/index.js";
14
14
  import "./Components/Tag.js";
15
15
  import "./utils/index.js";
16
16
  import "../vendor/object-assign-deep/objectAssignDeep.js";
17
- import { GuideLineModeItem as om } from "./GuideLineModeItem/index.js";
17
+ import { GuideLineModeItem as mm } from "./GuideLineModeItem/index.js";
18
18
  import "../vendor/polyline-normals/index.js";
19
19
  import "../vendor/polyline-miter-util/index.js";
20
20
  import "../vendor/gl-vec2/add.js";
@@ -59,9 +59,11 @@ import "../PanoTagPlugin/utils/normalPositionToPositions.js";
59
59
  import "../PanoTagPlugin/controller/TagCache.js";
60
60
  import "../base/BasePlugin.js";
61
61
  import "../shared-utils/url/absoluteUrl.js";
62
- import "../shared-utils/Utils/WorkUtil.js";
62
+ import "../shared-utils/Utils/FiveUtil.js";
63
63
  import "../shared-utils/Utils/BaseUtil.js";
64
+ import "../shared-utils/Utils/WorkUtil.js";
64
65
  import "../shared-utils/five/transformPosition.js";
66
+ import "../shared-utils/five/getFiveModel.js";
65
67
  import "../vendor/svelte/store/index.js";
66
68
  import "../vendor/svelte/internal/index.js";
67
69
  import "../shared-utils/device.js";
@@ -159,5 +161,5 @@ import "@realsee/five/gltf-loader";
159
161
  import "../PanoTagPlugin/utils/DebugUtil.js";
160
162
  import "../CruisePlugin/utils/sleep.js";
161
163
  export {
162
- om as GuideLineModeItem
164
+ mm as GuideLineModeItem
163
165
  };