@realsee/dnalogel 3.50.14 → 3.50.15-alpha.1

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 (110) hide show
  1. package/README.md +116 -0
  2. package/dist/Sculpt/Objects/Base/index.d.ts +1 -1
  3. package/dist/Sculpt/index.d.ts +4 -4
  4. package/dist/index.cjs.js +262 -262
  5. package/dist/index.js +4235 -4231
  6. package/dist/index.umd.js +263 -263
  7. package/dist/shared-utils/five/index.d.ts +2 -0
  8. package/dist/shared-utils/tag.d.ts +1 -1
  9. package/dist/shared-utils/three/index.d.ts +1 -0
  10. package/libs/AreaMakerPlugin/Controller.js +104 -74
  11. package/libs/AreaMakerPlugin/index.js +33 -3
  12. package/libs/AreaMakerPlugin/utils/Item.js +66 -36
  13. package/libs/CSS3DRenderPlugin/Controller.js +39 -19
  14. package/libs/CSS3DRenderPlugin/index.js +34 -14
  15. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +60 -35
  16. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +98 -78
  17. package/libs/CruisePlugin/BaseController.js +59 -29
  18. package/libs/CruisePlugin/Move.js +33 -14
  19. package/libs/CruisePlugin/Work.js +66 -47
  20. package/libs/CruisePlugin/index.js +38 -19
  21. package/libs/CurrentPanoImagePlugin/Controller.js +68 -38
  22. package/libs/CurrentPanoImagePlugin/index.js +34 -4
  23. package/libs/GuideLinePlugin/Controller.js +69 -50
  24. package/libs/GuideLinePlugin/GuideLineItem.js +34 -15
  25. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  26. package/libs/GuideLinePlugin/GuideLineModeItem.js +34 -15
  27. package/libs/GuideLinePlugin/index.js +38 -19
  28. package/libs/ModelMakerPlugin/Controller.js +60 -42
  29. package/libs/ModelMakerPlugin/index.js +34 -16
  30. package/libs/ModelTVVideoPlugin/Plugin.js +48 -28
  31. package/libs/ModelTVVideoPlugin/index.js +24 -4
  32. package/libs/Object3DHelperPlugin/Controller.js +49 -30
  33. package/libs/Object3DHelperPlugin/index.js +36 -17
  34. package/libs/PanoCompassPlugin/Controller.js +33 -13
  35. package/libs/PanoCompassPlugin/index.js +34 -14
  36. package/libs/PanoDoorLabelPlugin/BaseController.js +55 -25
  37. package/libs/PanoDoorLabelPlugin/Controller.js +99 -69
  38. package/libs/PanoDoorLabelPlugin/index.js +34 -4
  39. package/libs/PanoMeasurePlugin/Components/Controller0.js +8 -8
  40. package/libs/PanoMeasurePlugin/Components/Controller1.js +8 -8
  41. package/libs/PanoMeasurePlugin/Controller/WatchController.js +75 -49
  42. package/libs/PanoMeasurePlugin/Controller/index.js +16 -16
  43. package/libs/PanoMeasurePlugin/Model/area.js +41 -15
  44. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +29 -0
  45. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +8 -8
  46. package/libs/PanoMeasurePlugin/index.js +3 -3
  47. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +43 -15
  48. package/libs/PanoRulerProPlugin/Controller.js +60 -30
  49. package/libs/PanoRulerProPlugin/RulerItems.js +85 -55
  50. package/libs/PanoRulerProPlugin/index.js +33 -3
  51. package/libs/PanoSpatialTagPlugin/Plugin.js +54 -34
  52. package/libs/PanoSpatialTagPlugin/index.js +22 -2
  53. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +79 -49
  54. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +235 -206
  55. package/libs/PanoTagPlugin/Components/Tag/index.js +152 -125
  56. package/libs/PanoTagPlugin/Components/TagContainer.js +97 -70
  57. package/libs/PanoTagPlugin/Components/TagItem.js +31 -4
  58. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +29 -2
  59. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +55 -28
  60. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +53 -26
  61. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +54 -27
  62. package/libs/PanoTagPlugin/controller/TagRender.js +48 -29
  63. package/libs/PanoTagPlugin/controller/TagUtil.js +33 -14
  64. package/libs/PanoTagPlugin/controller/index.js +49 -30
  65. package/libs/PanoTagPlugin/index.js +41 -22
  66. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +59 -29
  67. package/libs/PanoVideoPlugin/Controller.js +91 -61
  68. package/libs/PanoVideoPlugin/VideoMeshController.js +56 -26
  69. package/libs/PanoVideoPlugin/index.js +36 -6
  70. package/libs/PipelinePlugin/Controller.js +80 -51
  71. package/libs/PipelinePlugin/index.js +34 -5
  72. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +44 -14
  73. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +43 -13
  74. package/libs/PipelinePlugin/utils/Objects/Pipe.js +61 -31
  75. package/libs/Sculpt/Meshes/Box.js +3 -2
  76. package/libs/Sculpt/Meshes/Cylinder.js +3 -2
  77. package/libs/Sculpt/Meshes/Line.js +9 -8
  78. package/libs/Sculpt/Meshes/LineWithDots.js +8 -7
  79. package/libs/Sculpt/Meshes/Point.js +3 -2
  80. package/libs/Sculpt/Meshes/Polygon.js +3 -2
  81. package/libs/Sculpt/Meshes/Prism.js +9 -8
  82. package/libs/Sculpt/Meshes/Rectangle.js +3 -2
  83. package/libs/Sculpt/Objects/Base/index.d.ts +1 -1
  84. package/libs/Sculpt/Objects/Line/Editor.js +7 -6
  85. package/libs/Sculpt/index.d.ts +4 -4
  86. package/libs/Sculpt/index.js +3 -2
  87. package/libs/Sculpt/utils/three/ColoredMesh.js +6 -5
  88. package/libs/base/BasePlugin.js +4 -3
  89. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +89 -60
  90. package/libs/floorplan/MapviewFloorplanPlugin/index.js +34 -5
  91. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +79 -50
  92. package/libs/floorplan/ModelFloorplanPlugin/index.js +34 -5
  93. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +68 -38
  94. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +34 -4
  95. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +104 -75
  96. package/libs/floorplan/TopviewFloorplanPlugin/index.js +34 -5
  97. package/libs/floorplan/index.js +1 -0
  98. package/libs/index.js +28 -28
  99. package/libs/shared-utils/five/fiveModelLoad.js +1 -0
  100. package/libs/shared-utils/five/index.d.ts +2 -0
  101. package/libs/shared-utils/five/index.js +3 -2
  102. package/libs/shared-utils/five/lookObject.js +3 -2
  103. package/libs/shared-utils/index.js +42 -35
  104. package/libs/shared-utils/logger.js +1 -1
  105. package/libs/shared-utils/tag.d.ts +1 -1
  106. package/libs/shared-utils/tag.js +41 -41
  107. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -2
  108. package/libs/shared-utils/three/index.d.ts +1 -0
  109. package/libs/shared-utils/three/index.js +1 -0
  110. package/package.json +1 -1
@@ -51,23 +51,52 @@ import "../../shared-utils/five/transformPosition.js";
51
51
  import "../../shared-utils/three/temp.js";
52
52
  import "../../shared-utils/dom/resizeObserver.js";
53
53
  import "hammerjs";
54
+ import "../../shared-utils/three/PointSelector/index.js";
55
+ import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
56
+ import "../../shared-utils/three/Magnifier.js";
57
+ import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
58
+ import "../../shared-utils/three/Assets/index.js";
59
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
54
60
  import "three/examples/jsm/renderers/CSS3DRenderer";
61
+ import "../../CSS3DRenderPlugin/utils/even.js";
62
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
63
+ import "../../shared-utils/three/centerPoint.js";
64
+ import "../../shared-utils/three/getObjectVisible.js";
55
65
  import "@realsee/five/line";
56
66
  import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
57
67
  import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
58
68
  import "../../vendor/three/build/three.module.js";
59
69
  import "../../shared-utils/three/core/Sphere.js";
60
70
  import "animejs";
61
- import "../../shared-utils/url/absoluteUrl.js";
71
+ import "../../shared-utils/isNil.js";
62
72
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
73
+ import "../../shared-utils/three/PointSelector/utils/html.js";
74
+ import "../../shared-utils/five/initialCSS3DRender.js";
75
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
76
+ import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
77
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
78
+ import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
79
+ import "../../Sculpt/Meshes/Line.js";
80
+ import "../../Sculpt/typings/style.js";
81
+ import "../../shared-utils/five/FiveLine.js";
82
+ import "../../shared-utils/three/IObject3D.js";
83
+ import "../../Sculpt/utils/removeAllTag.js";
84
+ import "../../Sculpt/utils/Meshes/getLengthHTML.js";
85
+ import "../../shared-utils/three/applyObjectMatrixWorld.js";
86
+ import "../../shared-utils/util.js";
87
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
88
+ import "../../shared-utils/isTouchDevice.js";
89
+ import "../../shared-utils/five/getPosition.js";
90
+ import "../../shared-utils/five/getRaycasterByNdcPosition.js";
91
+ import "../../shared-utils/three/PointSelector/utils/contents.js";
92
+ import "../../shared-utils/url/absoluteUrl.js";
63
93
  import "../utils/correctFiveState.js";
64
94
  import "../utils/constant.js";
65
95
  import "../../shared-utils/nearlyEqual.js";
66
96
  import "../../shared-utils/five/changeMode.js";
67
97
  import "../../shared-utils/changeModelCanvasOpacity.js";
68
- import "../../shared-utils/isNil.js";
69
- const Co = (o, r) => new t(o, r);
98
+ const Vo = (o, r) => new t(o, r);
70
99
  export {
71
- Co as ModelFloorplanPlugin,
72
- Co as default
100
+ Vo as ModelFloorplanPlugin,
101
+ Vo as default
73
102
  };
@@ -1,31 +1,31 @@
1
1
  var g = Object.defineProperty, w = Object.defineProperties;
2
2
  var v = Object.getOwnPropertyDescriptors;
3
- var m = Object.getOwnPropertySymbols;
3
+ var f = Object.getOwnPropertySymbols;
4
4
  var A = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
5
- var u = (r, e, t) => e in r ? g(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, p = (r, e) => {
5
+ var m = (s, e, t) => e in s ? g(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, n = (s, e) => {
6
6
  for (var t in e || (e = {}))
7
- A.call(e, t) && u(r, t, e[t]);
8
- if (m)
9
- for (var t of m(e))
10
- S.call(e, t) && u(r, t, e[t]);
11
- return r;
12
- }, f = (r, e) => w(r, v(e));
13
- var o = (r, e, t) => (u(r, typeof e != "symbol" ? e + "" : e, t), t);
14
- var c = (r, e, t) => new Promise((i, s) => {
15
- var a = (n) => {
7
+ A.call(e, t) && m(s, t, e[t]);
8
+ if (f)
9
+ for (var t of f(e))
10
+ S.call(e, t) && m(s, t, e[t]);
11
+ return s;
12
+ }, u = (s, e) => w(s, v(e));
13
+ var o = (s, e, t) => (m(s, typeof e != "symbol" ? e + "" : e, t), t);
14
+ var c = (s, e, t) => new Promise((i, r) => {
15
+ var a = (h) => {
16
16
  try {
17
- d(t.next(n));
17
+ d(t.next(h));
18
18
  } catch (l) {
19
- s(l);
19
+ r(l);
20
20
  }
21
- }, h = (n) => {
21
+ }, p = (h) => {
22
22
  try {
23
- d(t.throw(n));
23
+ d(t.throw(h));
24
24
  } catch (l) {
25
- s(l);
25
+ r(l);
26
26
  }
27
- }, d = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(a, h);
28
- d((t = t.apply(r, e)).next());
27
+ }, d = (h) => h.done ? i(h.value) : Promise.resolve(h.value).then(a, p);
28
+ d((t = t.apply(s, e)).next());
29
29
  });
30
30
  import _ from "./Components/Main.js";
31
31
  import { equal as y } from "../../shared-utils/equal.js";
@@ -60,17 +60,47 @@ import "../../shared-utils/five/transformPosition.js";
60
60
  import "../../shared-utils/three/temp.js";
61
61
  import "../../shared-utils/dom/resizeObserver.js";
62
62
  import "hammerjs";
63
+ import "../../shared-utils/three/PointSelector/index.js";
64
+ import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
65
+ import "../../shared-utils/three/Magnifier.js";
66
+ import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
67
+ import "../../shared-utils/three/Assets/index.js";
68
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
63
69
  import "three/examples/jsm/renderers/CSS3DRenderer";
70
+ import "../../CSS3DRenderPlugin/utils/even.js";
71
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
72
+ import "../../shared-utils/three/centerPoint.js";
73
+ import "../../shared-utils/three/getObjectVisible.js";
64
74
  import "@realsee/five/line";
65
75
  import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
66
76
  import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
67
77
  import "../../vendor/three/build/three.module.js";
68
78
  import "../../shared-utils/three/core/Sphere.js";
69
79
  import "animejs";
70
- import "../../shared-utils/url/absoluteUrl.js";
80
+ import "../../shared-utils/isNil.js";
71
81
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
82
+ import "../../shared-utils/three/PointSelector/utils/html.js";
83
+ import "../../shared-utils/five/initialCSS3DRender.js";
84
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
85
+ import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
86
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
87
+ import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
88
+ import "../../Sculpt/Meshes/Line.js";
89
+ import "../../Sculpt/typings/style.js";
90
+ import "../../shared-utils/five/FiveLine.js";
91
+ import "../../shared-utils/three/IObject3D.js";
92
+ import "../../Sculpt/utils/removeAllTag.js";
93
+ import "../../Sculpt/utils/Meshes/getLengthHTML.js";
94
+ import "../../shared-utils/three/applyObjectMatrixWorld.js";
95
+ import "../../shared-utils/util.js";
96
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
97
+ import "../../shared-utils/isTouchDevice.js";
98
+ import "../../shared-utils/five/getPosition.js";
99
+ import "../../shared-utils/five/getRaycasterByNdcPosition.js";
100
+ import "../../shared-utils/three/PointSelector/utils/contents.js";
101
+ import "../../shared-utils/url/absoluteUrl.js";
72
102
  import "../Assets/floorplanExtraObject.js";
73
- class gt extends O {
103
+ class Ht extends O {
74
104
  constructor(t, i) {
75
105
  super(t);
76
106
  // =============== public properties =================
@@ -96,26 +126,26 @@ class gt extends O {
96
126
  this.highlightData = {}, this.render();
97
127
  });
98
128
  o(this, "_disable", (t) => {
99
- var s;
129
+ var r;
100
130
  const { userAction: i } = t;
101
- (s = this.app) == null || s.$destroy(), this.app = void 0, this.hooks.emit("disable", { userAction: i });
131
+ (r = this.app) == null || r.$destroy(), this.app = void 0, this.hooks.emit("disable", { userAction: i });
102
132
  });
103
133
  this.five = t;
104
- const s = {
134
+ const r = {
105
135
  hoverEnable: !0,
106
136
  highlightEnable: !0,
107
137
  cameraImageUrl: D,
108
138
  missingFloorImageUrl: this.staticPrefix + "/release/web/saas/missing-floor.d687a5ed.png"
109
- }, a = p(p({}, s), i == null ? void 0 : i.configs);
139
+ }, a = n(n({}, r), i == null ? void 0 : i.configs);
110
140
  this.state = { enabled: !0, visible: !0, config: a }, i != null && i.wrapper && console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法"), typeof (i == null ? void 0 : i.wrapper) == "string" ? this.wrapperSelector = i.wrapper : (i == null ? void 0 : i.wrapper) instanceof Element && (this.wrapper = i.wrapper), t.once("dispose", this.dispose);
111
141
  }
112
- load(t, i, s = !0) {
142
+ load(t, i, r = !0) {
113
143
  return c(this, null, function* () {
114
144
  function a(l) {
115
145
  return Object.prototype.hasOwnProperty.apply(l, ["version"]);
116
146
  }
117
- const h = JSON.parse(JSON.stringify(t)), d = a(h) ? h.data : h, n = this.data;
118
- this.data = yield b(d), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, n), i && this.updateState(i, s), this.render();
147
+ const p = JSON.parse(JSON.stringify(t)), d = a(p) ? p.data : p, h = this.data;
148
+ this.data = yield b(d), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, h), i && this.updateState(i, r), this.render();
119
149
  });
120
150
  }
121
151
  show() {
@@ -148,14 +178,14 @@ class gt extends O {
148
178
  }
149
179
  /** 更改插件 State */
150
180
  setState(t, i = {}) {
151
- const s = this.state, a = i.userAction !== void 0 ? i.userAction : !0;
152
- if (this.updateState(t, a), t.enabled !== void 0 && s.enabled !== t.enabled) {
153
- const h = { userAction: a };
154
- t.enabled ? this._enable(h) : this._disable(h);
181
+ const r = this.state, a = i.userAction !== void 0 ? i.userAction : !0;
182
+ if (this.updateState(t, a), t.enabled !== void 0 && r.enabled !== t.enabled) {
183
+ const p = { userAction: a };
184
+ t.enabled ? this._enable(p) : this._disable(p);
155
185
  }
156
- if (t.visible !== void 0 && s.visible !== t.visible) {
157
- const h = { userAction: a };
158
- t.visible ? this._show(h) : this._hide(h);
186
+ if (t.visible !== void 0 && r.visible !== t.visible) {
187
+ const p = { userAction: a };
188
+ t.visible ? this._show(p) : this._hide(p);
159
189
  }
160
190
  }
161
191
  /** 把插件的渲染DOM插入到对应的容器中去 */
@@ -190,8 +220,8 @@ class gt extends O {
190
220
  this.hooks.emit("hide", { userAction: i }), this.render();
191
221
  }
192
222
  updateState(t, i) {
193
- const s = this.state, a = t.config ? p(p({}, s.config), t.config) : s.config;
194
- this.state = f(p(p({}, this.state), t), { config: a }), !y(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
223
+ const r = this.state, a = t.config ? n(n({}, r.config), t.config) : r.config;
224
+ this.state = u(n(n({}, this.state), t), { config: a }), !y(this.state, r, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: r, userAction: i });
195
225
  }
196
226
  render() {
197
227
  if (this.disposed || !this.state.enabled)
@@ -202,7 +232,7 @@ class gt extends O {
202
232
  }
203
233
  if (!this.data || !this.wrapper)
204
234
  return;
205
- const t = f(p({}, this.state.config), {
235
+ const t = u(n({}, this.state.config), {
206
236
  five: this.five,
207
237
  floorplanData: this.data,
208
238
  visible: this.state.visible,
@@ -213,5 +243,5 @@ class gt extends O {
213
243
  }
214
244
  }
215
245
  export {
216
- gt as Controller
246
+ Ht as Controller
217
247
  };
@@ -31,19 +31,49 @@ import "../../shared-utils/five/transformPosition.js";
31
31
  import "../../shared-utils/three/temp.js";
32
32
  import "../../shared-utils/dom/resizeObserver.js";
33
33
  import "hammerjs";
34
+ import "../../shared-utils/three/PointSelector/index.js";
35
+ import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
36
+ import "../../shared-utils/three/Magnifier.js";
37
+ import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
38
+ import "../../shared-utils/three/Assets/index.js";
39
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
34
40
  import "three/examples/jsm/renderers/CSS3DRenderer";
41
+ import "../../CSS3DRenderPlugin/utils/even.js";
42
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
43
+ import "../../shared-utils/three/centerPoint.js";
44
+ import "../../shared-utils/three/getObjectVisible.js";
35
45
  import "@realsee/five/line";
36
46
  import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
37
47
  import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
38
48
  import "../../vendor/three/build/three.module.js";
39
49
  import "../../shared-utils/three/core/Sphere.js";
40
50
  import "animejs";
41
- import "../../shared-utils/url/absoluteUrl.js";
51
+ import "../../shared-utils/isNil.js";
42
52
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
53
+ import "../../shared-utils/three/PointSelector/utils/html.js";
54
+ import "../../shared-utils/five/initialCSS3DRender.js";
55
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
56
+ import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
57
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
58
+ import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
59
+ import "../../Sculpt/Meshes/Line.js";
60
+ import "../../Sculpt/typings/style.js";
61
+ import "../../shared-utils/five/FiveLine.js";
62
+ import "../../shared-utils/three/IObject3D.js";
63
+ import "../../Sculpt/utils/removeAllTag.js";
64
+ import "../../Sculpt/utils/Meshes/getLengthHTML.js";
65
+ import "../../shared-utils/three/applyObjectMatrixWorld.js";
66
+ import "../../shared-utils/util.js";
67
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
68
+ import "../../shared-utils/isTouchDevice.js";
69
+ import "../../shared-utils/five/getPosition.js";
70
+ import "../../shared-utils/five/getRaycasterByNdcPosition.js";
71
+ import "../../shared-utils/three/PointSelector/utils/contents.js";
72
+ import "../../shared-utils/url/absoluteUrl.js";
43
73
  import "../utils/formatData.js";
44
74
  import "../Assets/floorplanExtraObject.js";
45
- const V = (o, r) => new t(o, r);
75
+ const jo = (o, r) => new t(o, r);
46
76
  export {
47
- V as PanoFloorplanRadarPlugin,
48
- V as default
77
+ jo as PanoFloorplanRadarPlugin,
78
+ jo as default
49
79
  };
@@ -9,22 +9,22 @@ var u = (d, n, t) => n in d ? C(d, n, { enumerable: !0, configurable: !0, writab
9
9
  for (var t of g(n))
10
10
  x.call(n, t) && u(d, t, n[t]);
11
11
  return d;
12
- }, m = (d, n) => F(d, E(n));
12
+ }, f = (d, n) => F(d, E(n));
13
13
  var o = (d, n, t) => (u(d, typeof n != "symbol" ? n + "" : n, t), t);
14
- var f = (d, n, t) => new Promise((e, i) => {
14
+ var c = (d, n, t) => new Promise((i, e) => {
15
15
  var s = (h) => {
16
16
  try {
17
17
  a(t.next(h));
18
18
  } catch (p) {
19
- i(p);
19
+ e(p);
20
20
  }
21
21
  }, r = (h) => {
22
22
  try {
23
23
  a(t.throw(h));
24
24
  } catch (p) {
25
- i(p);
25
+ e(p);
26
26
  }
27
- }, a = (h) => h.done ? e(h.value) : Promise.resolve(h.value).then(s, r);
27
+ }, a = (h) => h.done ? i(h.value) : Promise.resolve(h.value).then(s, r);
28
28
  a((t = t.apply(d, n)).next());
29
29
  });
30
30
  import * as S from "three";
@@ -40,6 +40,7 @@ import { getPxmm as D, getAttachedY as O } from "../../shared-utils/getPxmm.js";
40
40
  import { changeModelCanvasOpacity as b } from "../../shared-utils/changeModelCanvasOpacity.js";
41
41
  import "../../shared-utils/tag.js";
42
42
  import "hammerjs";
43
+ import "../../shared-utils/three/PointSelector/index.js";
43
44
  import "three/examples/jsm/renderers/CSS3DRenderer";
44
45
  import "@realsee/five/line";
45
46
  import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
@@ -90,10 +91,38 @@ import "../../shared-utils/positionToVector3.js";
90
91
  import "../../shared-utils/five/vector3ToScreen.js";
91
92
  import "../../shared-utils/three/temp.js";
92
93
  import "../../shared-utils/dom/resizeObserver.js";
94
+ import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
95
+ import "../../shared-utils/three/Magnifier.js";
96
+ import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
97
+ import "../../shared-utils/three/Assets/index.js";
98
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
99
+ import "../../CSS3DRenderPlugin/utils/even.js";
100
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
101
+ import "../../shared-utils/three/centerPoint.js";
102
+ import "../../shared-utils/three/getObjectVisible.js";
103
+ import "../../shared-utils/three/PointSelector/utils/html.js";
104
+ import "../../shared-utils/five/initialCSS3DRender.js";
105
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
106
+ import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
107
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
108
+ import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
109
+ import "../../Sculpt/Meshes/Line.js";
110
+ import "../../Sculpt/typings/style.js";
111
+ import "../../shared-utils/five/FiveLine.js";
112
+ import "../../shared-utils/three/IObject3D.js";
113
+ import "../../Sculpt/utils/removeAllTag.js";
114
+ import "../../Sculpt/utils/Meshes/getLengthHTML.js";
115
+ import "../../shared-utils/three/applyObjectMatrixWorld.js";
116
+ import "../../shared-utils/util.js";
117
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
118
+ import "../../shared-utils/isTouchDevice.js";
119
+ import "../../shared-utils/five/getPosition.js";
120
+ import "../../shared-utils/five/getRaycasterByNdcPosition.js";
121
+ import "../../shared-utils/three/PointSelector/utils/contents.js";
93
122
  import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
94
123
  import "../../vendor/three/build/three.module.js";
95
- class Jt extends M {
96
- constructor(t, e) {
124
+ class Ei extends M {
125
+ constructor(t, i) {
97
126
  var h, p;
98
127
  super(t);
99
128
  // =============== public properties =================
@@ -124,13 +153,13 @@ class Jt extends M {
124
153
  o(this, "updateSize", () => {
125
154
  if (!this.data || !this.container || !this.wrapper || this.five.getCurrentState().mode !== "Topview")
126
155
  return !1;
127
- const { min: t, max: e } = this.data.bounding, i = e.x - t.x, s = e.y - t.y, r = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, a = D(this.five, this.wrapper, this.floorIndex, r), h = Math.ceil(i * a), p = Math.ceil(s * a);
156
+ const { min: t, max: i } = this.data.bounding, e = i.x - t.x, s = i.y - t.y, r = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, a = D(this.five, this.wrapper, this.floorIndex, r), h = Math.ceil(e * a), p = Math.ceil(s * a);
128
157
  return this.size.width === h && this.size.height === p || (this.container.style.width = h + "px", this.container.style.height = p + "px", this.size = { width: h, height: p }), !0;
129
158
  });
130
159
  /** 销毁插件 */
131
160
  o(this, "dispose", () => {
132
- var t, e;
133
- this.removeEventListener(), (t = this.app) == null || t.$destroy(), this.app = void 0, (e = this.container) == null || e.remove(), this.data = void 0, this.wrapper = void 0, this.selector = void 0, this.hooks.emit("dispose");
161
+ var t, i;
162
+ this.removeEventListener(), (t = this.app) == null || t.$destroy(), this.app = void 0, (i = this.container) == null || i.remove(), this.data = void 0, this.wrapper = void 0, this.selector = void 0, this.hooks.emit("dispose");
134
163
  });
135
164
  o(this, "highlight", (t) => {
136
165
  this.state.config.highlightEnable && (this.highlightData = t, this.render());
@@ -139,9 +168,9 @@ class Jt extends M {
139
168
  this.highlightData = {}, this.render();
140
169
  });
141
170
  o(this, "_disable", (t) => {
142
- var i, s;
143
- const { userAction: e } = t;
144
- (i = this.app) == null || i.$destroy(), this.app = void 0, (s = this.container) == null || s.remove(), this.removeEventListener(), this.hooks.emit("disable", { userAction: e });
171
+ var e, s;
172
+ const { userAction: i } = t;
173
+ (e = this.app) == null || e.$destroy(), this.app = void 0, (s = this.container) == null || s.remove(), this.removeEventListener(), this.hooks.emit("disable", { userAction: i });
145
174
  });
146
175
  /** modelLoaded 之后自动执行 append container 操作 */
147
176
  o(this, "onFiveModelLoaded", () => {
@@ -153,14 +182,14 @@ class Jt extends M {
153
182
  this.wrapper = t, t.append(this.container);
154
183
  });
155
184
  /** 非 Topview 态隐藏户型图 */
156
- o(this, "onFiveModeChange", (...[t, , , , e]) => {
157
- t !== "Topview" && this.state.visible && (this.updateState({ visible: !1 }, e), this._hide({ userAction: e }));
185
+ o(this, "onFiveModeChange", (...[t, , , , i]) => {
186
+ t !== "Topview" && this.state.visible && (this.updateState({ visible: !1 }, i), this._hide({ userAction: i }));
158
187
  });
159
188
  o(this, "onFivePanoArrived", (t) => {
160
- var e;
161
- (e = this.five) != null && e.work && (this.panoIndex = t, this.floorIndex = this.five.work.observers[t].floorIndex);
189
+ var i;
190
+ (i = this.five) != null && i.work && (this.panoIndex = t, this.floorIndex = this.five.work.observers[t].floorIndex);
162
191
  });
163
- o(this, "onFiveCameraUpdate", (t, e) => {
192
+ o(this, "onFiveCameraUpdate", (t, i) => {
164
193
  this.state.visible && (this.updatePosition(), this.updateSize());
165
194
  });
166
195
  o(this, "onFiveWantsGesture", (t) => {
@@ -173,27 +202,27 @@ class Jt extends M {
173
202
  });
174
203
  /** 动画结束后是 Topview 态就展示户型图 */
175
204
  o(this, "onFiveInitAnimationEnded", (...[, , t]) => {
176
- const { mode: e } = this.five.getCurrentState();
177
- e === "Topview" && !this.isHiddenByHideFunc && !this.state.visible && this.state.config.autoShowEnable && (this.updateState({ visible: !0 }, t), this._show({ userAction: t }));
205
+ const { mode: i } = this.five.getCurrentState();
206
+ i === "Topview" && !this.isHiddenByHideFunc && !this.state.visible && this.state.config.autoShowEnable && (this.updateState({ visible: !0 }, t), this._show({ userAction: t }));
178
207
  });
179
208
  o(this, "onModelShownFloorChange", (t) => {
180
209
  if (this.floorIndex !== t) {
181
210
  if (t === null) {
182
- const e = this.five.getCurrentState().panoIndex;
183
- this.floorIndex = this.five.work.observers[e].floorIndex;
211
+ const i = this.five.getCurrentState().panoIndex;
212
+ this.floorIndex = this.five.work.observers[i].floorIndex;
184
213
  return;
185
214
  }
186
215
  this.floorIndex = t, this.updateSize(), this.render();
187
216
  }
188
217
  });
189
- e != null && e.selector && (this.selector = e.selector, console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法")), this.defaultMissingFloorConfig = {
218
+ i != null && i.selector && (this.selector = i.selector, console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法")), this.defaultMissingFloorConfig = {
190
219
  imageURL: this.staticPrefix + "/release/web/saas/missing-floorplan.e274c596.png",
191
220
  imageWidth: 200,
192
221
  imageHeight: 120,
193
- text: (p = (h = e.i18n) == null ? void 0 : h.call(e, "暂无平面图")) != null ? p : "暂无平面图",
222
+ text: (p = (h = i.i18n) == null ? void 0 : h.call(i, "暂无平面图")) != null ? p : "暂无平面图",
194
223
  textFontSize: 14
195
224
  };
196
- const i = {
225
+ const e = {
197
226
  northDesc: "北",
198
227
  modelOpacity: 1,
199
228
  cameraEnable: !0,
@@ -210,33 +239,33 @@ class Jt extends M {
210
239
  cameraImageUrl: L,
211
240
  attachedTo: _.BOUNDING_CENTER,
212
241
  getLabelElement: void 0,
213
- missingFloorConfig: l(l({}, this.defaultMissingFloorConfig), e.missingFloorConfig),
214
- i18n: (c) => c,
242
+ missingFloorConfig: l(l({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
243
+ i18n: (m) => m,
215
244
  adaptiveRoomLabelVisibleEnable: !0,
216
- getRoomAreaText: (c) => (c / 1e6).toFixed(1) + "㎡",
217
- getRoomDimensionText: (c, w) => (c / 1e3).toFixed(1) + "m × " + (w / 1e3).toFixed(1) + "m",
218
- getRuleDistanceText: (c) => c.toString()
219
- }, s = e ? T(e, ["selector", "scale"]) : {}, r = l(l({}, i.missingFloorConfig), s.missingFloorConfig), a = m(l(l({}, i), s), { missingFloorConfig: r });
245
+ getRoomAreaText: (m) => (m / 1e6).toFixed(1) + "㎡",
246
+ getRoomDimensionText: (m, w) => (m / 1e3).toFixed(1) + "m × " + (w / 1e3).toFixed(1) + "m",
247
+ getRuleDistanceText: (m) => m.toString()
248
+ }, s = i ? T(i, ["selector", "scale"]) : {}, r = l(l({}, e.missingFloorConfig), s.missingFloorConfig), a = f(l(l({}, e), s), { missingFloorConfig: r });
220
249
  this.state = { enabled: !0, visible: !1, config: a }, this.initContainer(), t.model.loaded ? this.onFiveModelLoaded() : t.once("modelLoaded", this.onFiveModelLoaded), t.once("dispose", this.dispose), this.addEventListener();
221
250
  }
222
- load(t, e, i = !0) {
223
- return f(this, null, function* () {
224
- function s(c) {
225
- return Object.prototype.hasOwnProperty.apply(c, ["version"]);
251
+ load(t, i, e = !0) {
252
+ return c(this, null, function* () {
253
+ function s(m) {
254
+ return Object.prototype.hasOwnProperty.apply(m, ["version"]);
226
255
  }
227
256
  const r = t;
228
257
  r && k(r.version) && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
229
258
  const a = JSON.parse(JSON.stringify(t)), h = s(a) ? a.data : a, p = this.data;
230
- this.data = yield v(h), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, p), e && this.updateState(e, i), this.render();
259
+ this.data = yield v(h), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, p), i && this.updateState(i, e), this.render();
231
260
  });
232
261
  }
233
262
  /** 更新户型图位置 */
234
263
  updatePosition() {
235
264
  var a;
236
- const t = O(this.five, this.floorIndex, this.state.config.attachedTo), e = (a = this.five.model) == null ? void 0 : a.bounding.getCenter(new S.Vector3()).setY(t);
237
- if (!e)
265
+ const t = O(this.five, this.floorIndex, this.state.config.attachedTo), i = (a = this.five.model) == null ? void 0 : a.bounding.getCenter(new S.Vector3()).setY(t);
266
+ if (!i)
238
267
  return;
239
- const i = e.clone().project(this.five.camera), s = (i.x + 1) / 2, r = -(i.y - 1) / 2;
268
+ const e = i.clone().project(this.five.camera), s = (e.x + 1) / 2, r = -(e.y - 1) / 2;
240
269
  this.container.style.left = s * 100 + "%", this.container.style.top = r * 100 + "%";
241
270
  }
242
271
  /** 把插件的渲染DOM插入到对应的容器中去 */
@@ -245,82 +274,82 @@ class Jt extends M {
245
274
  return t.appendChild(this.container), this.render(), this;
246
275
  }
247
276
  show() {
248
- return f(this, arguments, function* (t = {}) {
277
+ return c(this, arguments, function* (t = {}) {
249
278
  if (this.state.visible)
250
279
  return;
251
- const e = t.userAction !== void 0 ? t.userAction : !0;
252
- this.updateState({ visible: !0 }, e), this._show({ userAction: e });
280
+ const i = t.userAction !== void 0 ? t.userAction : !0;
281
+ this.updateState({ visible: !0 }, i), this._show({ userAction: i });
253
282
  });
254
283
  }
255
284
  hide() {
256
- return f(this, arguments, function* (t = {}) {
285
+ return c(this, arguments, function* (t = {}) {
257
286
  if (this.isHiddenByHideFunc = !0, !this.state.visible)
258
287
  return;
259
- const e = t.userAction !== void 0 ? t.userAction : !0;
260
- this.updateState({ visible: !1 }, e), this._hide({ userAction: e });
288
+ const i = t.userAction !== void 0 ? t.userAction : !0;
289
+ this.updateState({ visible: !1 }, i), this._hide({ userAction: i });
261
290
  });
262
291
  }
263
292
  enable(t = {}) {
264
293
  if (this.state.enabled)
265
294
  return;
266
- const e = t.userAction !== void 0 ? t.userAction : !0;
267
- this.updateState({ enabled: !0 }, t.userAction || e), this._enable({ userAction: e });
295
+ const i = t.userAction !== void 0 ? t.userAction : !0;
296
+ this.updateState({ enabled: !0 }, t.userAction || i), this._enable({ userAction: i });
268
297
  }
269
298
  disable(t = {}) {
270
299
  if (!this.state.enabled)
271
300
  return;
272
- const e = t.userAction !== void 0 ? t.userAction : !0;
273
- this.updateState({ enabled: !1 }, t.userAction || e), this._disable({ userAction: e });
301
+ const i = t.userAction !== void 0 ? t.userAction : !0;
302
+ this.updateState({ enabled: !1 }, t.userAction || i), this._disable({ userAction: i });
274
303
  }
275
304
  /** 更改插件 State */
276
- setState(t, e = {}) {
277
- const i = this.state, s = e.userAction !== void 0 ? e.userAction : !0;
278
- if (this.updateState(t, s), t.enabled !== void 0 && i.enabled !== t.enabled) {
305
+ setState(t, i = {}) {
306
+ const e = this.state, s = i.userAction !== void 0 ? i.userAction : !0;
307
+ if (this.updateState(t, s), t.enabled !== void 0 && e.enabled !== t.enabled) {
279
308
  const r = { userAction: s };
280
309
  t.enabled ? this._enable(r) : this._disable(r);
281
310
  }
282
- if (t.visible !== void 0 && i.visible !== t.visible) {
311
+ if (t.visible !== void 0 && e.visible !== t.visible) {
283
312
  const r = { userAction: s };
284
313
  t.visible ? this._show(r) : this._hide(r);
285
314
  }
286
315
  }
287
- changeConfigs(t, e = !0) {
288
- this.updateState({ config: t }, e), this.render();
316
+ changeConfigs(t, i = !0) {
317
+ this.updateState({ config: t }, i), this.render();
289
318
  }
290
319
  formatData(t) {
291
- return f(this, null, function* () {
320
+ return c(this, null, function* () {
292
321
  return yield v(t.data);
293
322
  });
294
323
  }
295
324
  _show(t) {
296
- return f(this, null, function* () {
325
+ return c(this, null, function* () {
297
326
  if (!this.state.enabled)
298
327
  return;
299
328
  this.isHiddenByHideFunc = !1;
300
- const { userAction: e } = t;
301
- this.hooks.emit("show", { userAction: e, auto: !1 }), this.five.getCurrentState().mode !== "Topview" && (yield P(this.five, ["Topview", void 0, void 0, e])), this.five.model.show(this.floorIndex), this.updatePosition(), this.updateSize();
302
- const i = 500, s = this.state.config.modelOpacity;
303
- b(this.five, s, i), this.hooks.emit("showAnimationEnded", { userAction: e, auto: !1 }), this.render();
329
+ const { userAction: i } = t;
330
+ this.hooks.emit("show", { userAction: i, auto: !1 }), this.five.getCurrentState().mode !== "Topview" && (yield P(this.five, ["Topview", void 0, void 0, i])), this.five.model.show(this.floorIndex), this.updatePosition(), this.updateSize();
331
+ const e = 500, s = this.state.config.modelOpacity;
332
+ b(this.five, s, e), this.hooks.emit("showAnimationEnded", { userAction: i, auto: !1 }), this.render();
304
333
  });
305
334
  }
306
335
  _hide(t) {
307
- return f(this, null, function* () {
336
+ return c(this, null, function* () {
308
337
  if (!this.state.enabled)
309
338
  return;
310
- const { userAction: e } = t;
311
- this.hooks.emit("hide", { userAction: e, auto: !1 });
312
- const i = 1, s = 0;
313
- b(this.five, i, s), this.render();
339
+ const { userAction: i } = t;
340
+ this.hooks.emit("hide", { userAction: i, auto: !1 });
341
+ const e = 1, s = 0;
342
+ b(this.five, e, s), this.render();
314
343
  });
315
344
  }
316
345
  _enable(t) {
317
- const { userAction: e } = t;
318
- this.addEventListener(), this.wrapper && this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: e }), this.state.visible && this._show({ userAction: e });
346
+ const { userAction: i } = t;
347
+ this.addEventListener(), this.wrapper && this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: i }), this.state.visible && this._show({ userAction: i });
319
348
  }
320
- updateState(t, e) {
349
+ updateState(t, i) {
321
350
  var a;
322
- const i = this.state, s = (a = t.config) != null && a.missingFloorConfig ? l(l({}, i.config.missingFloorConfig), t.config.missingFloorConfig) : i.config.missingFloorConfig, r = t.config ? m(l(l({}, i.config), t.config), { missingFloorConfig: s }) : i.config;
323
- this.state = m(l(l({}, this.state), t), { config: r }), !y(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
351
+ const e = this.state, s = (a = t.config) != null && a.missingFloorConfig ? l(l({}, e.config.missingFloorConfig), t.config.missingFloorConfig) : e.config.missingFloorConfig, r = t.config ? f(l(l({}, e.config), t.config), { missingFloorConfig: s }) : e.config;
352
+ this.state = f(l(l({}, this.state), t), { config: r }), !y(this.state, e, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: e, userAction: i });
324
353
  }
325
354
  addEventListener() {
326
355
  if (!this.state.enabled || this.hasAddedEventListener)
@@ -350,7 +379,7 @@ class Jt extends M {
350
379
  render(t) {
351
380
  if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
352
381
  return;
353
- const e = m(l({}, this.state.config), {
382
+ const i = f(l({}, this.state.config), {
354
383
  visible: this.state.visible,
355
384
  duration: t != null ? t : 0,
356
385
  panoIndex: this.panoIndex,
@@ -360,10 +389,10 @@ class Jt extends M {
360
389
  highlightData: this.highlightData
361
390
  });
362
391
  if (this.app)
363
- return this.app.$set(e);
364
- this.app = new I({ target: this.container, intro: !0, props: e });
392
+ return this.app.$set(i);
393
+ this.app = new I({ target: this.container, intro: !0, props: i });
365
394
  }
366
395
  }
367
396
  export {
368
- Jt as Controller
397
+ Ei as Controller
369
398
  };