@realsee/dnalogel 3.43.0 → 3.44.0

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 (158) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +4 -2
  3. package/dist/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +2 -1
  4. package/dist/CSS3DRenderPlugin/utils/three/CSS3DSprite.d.ts +4 -0
  5. package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +6 -1
  6. package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
  7. package/dist/PanoMeasurePlugin/Controller/index.d.ts +2 -0
  8. package/dist/Sculpt/Meshes/Line.d.ts +19 -1
  9. package/dist/Sculpt/utils/color.d.ts +1 -1
  10. package/dist/index.cjs.js +102 -68
  11. package/dist/index.js +7374 -7116
  12. package/dist/index.umd.js +106 -72
  13. package/dist/shared-utils/five/getPosition.d.ts +12 -4
  14. package/dist/shared-utils/five/initialCSS3DRender.d.ts +2 -0
  15. package/dist/shared-utils/math/deg2Rad.d.ts +1 -1
  16. package/dist/shared-utils/math/rad2Deg.d.ts +1 -1
  17. package/dist/shared-utils/positionToVector3.d.ts +6 -6
  18. package/{libs/shared-utils/three/PointSelector.d.ts → dist/shared-utils/three/PointSelector/index.d.ts} +23 -7
  19. package/dist/shared-utils/three/{PointHelper.d.ts → PointSelector/utils/PointHelper.d.ts} +11 -3
  20. package/dist/shared-utils/three/PointSelector/utils/PointHelper2.d.ts +30 -0
  21. package/dist/shared-utils/three/{PointSelectorHelper.d.ts → PointSelector/utils/PointSelectorHelper.d.ts} +9 -10
  22. package/dist/shared-utils/three/PointSelector/utils/typing.d.ts +8 -0
  23. package/dist/shared-utils/three/index.d.ts +2 -3
  24. package/libs/AreaMakerPlugin/Controller.js +5 -18
  25. package/libs/AreaMakerPlugin/index.js +4 -17
  26. package/libs/AreaMakerPlugin/utils/Item.js +13 -26
  27. package/libs/CSS3DRenderPlugin/Controller.js +9 -6
  28. package/libs/CSS3DRenderPlugin/index.js +12 -9
  29. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +6 -6
  30. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +4 -2
  31. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +73 -56
  32. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +11 -4
  33. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +2 -1
  34. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +14 -14
  35. package/libs/CSS3DRenderPlugin/utils/three/CSS3DSprite.d.ts +4 -0
  36. package/libs/CSS3DRenderPlugin/utils/three/CSS3DSprite.js +13 -0
  37. package/libs/CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js +85 -0
  38. package/libs/CruisePlugin/BaseController.js +20 -33
  39. package/libs/CruisePlugin/Move.js +25 -23
  40. package/libs/CruisePlugin/Work.js +10 -8
  41. package/libs/CruisePlugin/index.js +23 -21
  42. package/libs/CurrentPanoImagePlugin/Controller.js +30 -43
  43. package/libs/CurrentPanoImagePlugin/index.js +5 -18
  44. package/libs/GuideLinePlugin/Controller.js +15 -13
  45. package/libs/GuideLinePlugin/GuideLineItem.js +19 -17
  46. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +4 -5
  47. package/libs/GuideLinePlugin/GuideLineModeItem.js +21 -19
  48. package/libs/GuideLinePlugin/index.js +23 -21
  49. package/libs/ModelMakerPlugin/Controller.js +19 -30
  50. package/libs/ModelMakerPlugin/index.js +11 -22
  51. package/libs/ModelTVVideoPlugin/Plugin.js +13 -10
  52. package/libs/ModelTVVideoPlugin/index.js +12 -9
  53. package/libs/Object3DHelperPlugin/Controller.js +7 -5
  54. package/libs/Object3DHelperPlugin/index.js +23 -21
  55. package/libs/PanoCompassPlugin/Controller.js +18 -15
  56. package/libs/PanoCompassPlugin/index.js +21 -18
  57. package/libs/PanoDoorLabelPlugin/BaseController.js +24 -37
  58. package/libs/PanoDoorLabelPlugin/Controller.js +56 -69
  59. package/libs/PanoDoorLabelPlugin/index.js +5 -18
  60. package/libs/PanoMeasurePlugin/Components/Controller0.js +40 -47
  61. package/libs/PanoMeasurePlugin/Components/Controller1.js +72 -79
  62. package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +6 -1
  63. package/libs/PanoMeasurePlugin/Controller/BaseController.js +53 -39
  64. package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
  65. package/libs/PanoMeasurePlugin/Controller/EditController.js +177 -153
  66. package/libs/PanoMeasurePlugin/Controller/MixedController.js +1 -1
  67. package/libs/PanoMeasurePlugin/Controller/WatchController.js +60 -74
  68. package/libs/PanoMeasurePlugin/Controller/index.d.ts +2 -0
  69. package/libs/PanoMeasurePlugin/Controller/index.js +59 -60
  70. package/libs/PanoMeasurePlugin/Model/area.js +30 -44
  71. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +3 -16
  72. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +42 -49
  73. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +1 -1
  74. package/libs/PanoMeasurePlugin/index.js +35 -40
  75. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +23 -36
  76. package/libs/PanoSpatialTagPlugin/Plugin.js +41 -38
  77. package/libs/PanoSpatialTagPlugin/index.js +10 -7
  78. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +29 -43
  79. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +55 -69
  80. package/libs/PanoTagPlugin/Components/Tag/index.js +9 -19
  81. package/libs/PanoTagPlugin/Components/TagContainer.js +42 -52
  82. package/libs/PanoTagPlugin/Components/TagItem.js +9 -19
  83. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +23 -33
  84. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +29 -39
  85. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +11 -21
  86. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +18 -28
  87. package/libs/PanoTagPlugin/controller/TagRender.js +18 -16
  88. package/libs/PanoTagPlugin/controller/TagUtil.js +12 -9
  89. package/libs/PanoTagPlugin/controller/index.js +27 -25
  90. package/libs/PanoTagPlugin/index.js +28 -26
  91. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +43 -57
  92. package/libs/PanoVideoPlugin/Controller.js +52 -65
  93. package/libs/PanoVideoPlugin/VideoMeshController.js +11 -25
  94. package/libs/PanoVideoPlugin/index.js +8 -21
  95. package/libs/PipelinePlugin/Controller.js +44 -57
  96. package/libs/PipelinePlugin/index.js +5 -18
  97. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +20 -34
  98. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +16 -30
  99. package/libs/PipelinePlugin/utils/Objects/Pipe.js +39 -53
  100. package/libs/Sculpt/Meshes/Box.js +3 -3
  101. package/libs/Sculpt/Meshes/Cylinder.js +14 -14
  102. package/libs/Sculpt/Meshes/Line.d.ts +19 -1
  103. package/libs/Sculpt/Meshes/Line.js +40 -41
  104. package/libs/Sculpt/Meshes/LineWithDots.js +5 -6
  105. package/libs/Sculpt/Meshes/Point.js +3 -3
  106. package/libs/Sculpt/Meshes/Polyline.js +3 -3
  107. package/libs/Sculpt/Meshes/Prism.js +11 -12
  108. package/libs/Sculpt/Meshes/Rectangle.js +3 -3
  109. package/libs/Sculpt/Objects/Point/Editor.js +10 -10
  110. package/libs/Sculpt/Objects/Polygon/Editor.js +6 -6
  111. package/libs/Sculpt/Objects/Polyline/Editor.js +4 -4
  112. package/libs/Sculpt/index.js +3 -3
  113. package/libs/Sculpt/utils/Modules/Global.js +1 -1
  114. package/libs/Sculpt/utils/color.d.ts +1 -1
  115. package/libs/Sculpt/utils/three/ColoredMesh.js +3 -3
  116. package/libs/base/BasePlugin.js +4 -4
  117. package/libs/floorplan/Components/Compass.js +29 -31
  118. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +9 -22
  119. package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -19
  120. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +5 -18
  121. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -18
  122. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +48 -61
  123. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -18
  124. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +28 -41
  125. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -18
  126. package/libs/floorplan/index.js +3 -3
  127. package/libs/index.js +140 -137
  128. package/libs/shared-utils/five/getPosition.d.ts +12 -4
  129. package/libs/shared-utils/five/getPosition.js +23 -23
  130. package/libs/shared-utils/five/index.js +2 -2
  131. package/libs/shared-utils/five/initialCSS3DRender.d.ts +2 -0
  132. package/libs/shared-utils/five/initialCSS3DRender.js +17 -0
  133. package/libs/shared-utils/five/lookObject.js +3 -3
  134. package/libs/shared-utils/index.js +38 -40
  135. package/libs/shared-utils/logger.js +1 -1
  136. package/libs/shared-utils/math/deg2Rad.d.ts +1 -1
  137. package/libs/shared-utils/math/rad2Deg.d.ts +1 -1
  138. package/libs/shared-utils/positionToVector3.d.ts +6 -6
  139. package/{dist/shared-utils/three/PointSelector.d.ts → libs/shared-utils/three/PointSelector/index.d.ts} +23 -7
  140. package/libs/shared-utils/three/{PointSelector.js → PointSelector/index.js} +54 -45
  141. package/libs/shared-utils/three/{PointHelper.d.ts → PointSelector/utils/PointHelper.d.ts} +11 -3
  142. package/libs/shared-utils/three/PointSelector/utils/PointHelper.js +95 -0
  143. package/libs/shared-utils/three/PointSelector/utils/PointHelper2.d.ts +30 -0
  144. package/libs/shared-utils/three/PointSelector/utils/PointHelper2.js +153 -0
  145. package/libs/shared-utils/three/{PointSelectorHelper.d.ts → PointSelector/utils/PointSelectorHelper.d.ts} +9 -10
  146. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +60 -0
  147. package/libs/{PanoMeasurePlugin/Modules/rangePiece → shared-utils/three/PointSelector/utils}/html.js +3 -4
  148. package/libs/shared-utils/three/PointSelector/utils/typing.d.ts +8 -0
  149. package/libs/shared-utils/three/index.d.ts +2 -3
  150. package/libs/shared-utils/three/index.js +3 -3
  151. package/package.json +3 -3
  152. package/dist/shared-utils/three/PointDomHelper.d.ts +0 -18
  153. package/libs/shared-utils/three/PointDomHelper.d.ts +0 -18
  154. package/libs/shared-utils/three/PointDomHelper.js +0 -62
  155. package/libs/shared-utils/three/PointHelper.js +0 -73
  156. package/libs/shared-utils/three/PointSelectorHelper.js +0 -52
  157. /package/dist/{PanoMeasurePlugin/Modules/rangePiece → shared-utils/three/PointSelector/utils}/html.d.ts +0 -0
  158. /package/libs/{PanoMeasurePlugin/Modules/rangePiece → shared-utils/three/PointSelector/utils}/html.d.ts +0 -0
@@ -1,17 +1,17 @@
1
- var g = Object.defineProperty, w = Object.defineProperties;
1
+ var m = Object.defineProperty, w = Object.defineProperties;
2
2
  var v = Object.getOwnPropertyDescriptors;
3
- var m = Object.getOwnPropertySymbols;
3
+ var b = 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) => {
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]);
5
+ var u = (r, i, t) => i in r ? m(r, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[i] = t, p = (r, i) => {
6
+ for (var t in i || (i = {}))
7
+ A.call(i, t) && u(r, t, i[t]);
8
+ if (b)
9
+ for (var t of b(i))
10
+ S.call(i, t) && u(r, t, i[t]);
11
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) => {
12
+ }, f = (r, i) => w(r, v(i));
13
+ var o = (r, i, t) => (u(r, typeof i != "symbol" ? i + "" : i, t), t);
14
+ var c = (r, i, t) => new Promise((e, s) => {
15
15
  var a = (n) => {
16
16
  try {
17
17
  d(t.next(n));
@@ -24,14 +24,14 @@ var c = (r, e, t) => new Promise((i, s) => {
24
24
  } catch (l) {
25
25
  s(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 = (n) => n.done ? e(n.value) : Promise.resolve(n.value).then(a, h);
28
+ d((t = t.apply(r, i)).next());
29
29
  });
30
30
  import _ from "./Components/Main.js";
31
31
  import { equal as y } from "../../shared-utils/equal.js";
32
32
  import { CAMERA_IMAGE as D } from "../Assets/camera.js";
33
33
  import { Controller as O } from "../../base/BasePluginWithData.js";
34
- import { formatData as b, formatExtraObjects as x } from "../utils/formatData.js";
34
+ import { formatData as g, formatExtraObjects as x } from "../utils/formatData.js";
35
35
  import "../../vendor/svelte/internal/index.js";
36
36
  import "./Components/Camera.js";
37
37
  import "../../shared-utils/throttle.js";
@@ -50,22 +50,8 @@ import "../../base/BasePlugin.js";
50
50
  import "../../shared-utils/Subscribe.js";
51
51
  import "three";
52
52
  import "hammerjs";
53
- import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
54
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
55
- import "../../shared-utils/positionToVector3.js";
56
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
57
53
  import "three/examples/jsm/renderers/CSS3DRenderer";
58
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
59
- import "../../shared-utils/util.js";
60
- import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
61
- import "../../CSS3DRenderPlugin/utils/even.js";
62
- import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
63
- import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
64
- import "../../shared-utils/three/centerPoint.js";
65
- import "../../shared-utils/three/getObjectVisible.js";
66
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
67
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
68
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
54
+ import "@realsee/five/line";
69
55
  import "../../shared-utils/three/THREESphere.js";
70
56
  import "animejs";
71
57
  import "../../shared-utils/Utils/FiveUtil.js";
@@ -74,9 +60,10 @@ import "../../shared-utils/Utils/WorkUtil.js";
74
60
  import "../../shared-utils/five/transformPosition.js";
75
61
  import "../../shared-utils/five/getFiveModel.js";
76
62
  import "../../shared-utils/url/absoluteUrl.js";
63
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
77
64
  import "../Assets/floorplanExtraObject.js";
78
- class _t extends O {
79
- constructor(t, i) {
65
+ class pt extends O {
66
+ constructor(t, e) {
80
67
  super(t);
81
68
  // =============== public properties =================
82
69
  o(this, "name", "panoFloorplanRadarPlugin");
@@ -102,8 +89,8 @@ class _t extends O {
102
89
  });
103
90
  o(this, "_disable", (t) => {
104
91
  var s;
105
- const { userAction: i } = t;
106
- (s = this.app) == null || s.$destroy(), this.app = void 0, this.hooks.emit("disable", { userAction: i });
92
+ const { userAction: e } = t;
93
+ (s = this.app) == null || s.$destroy(), this.app = void 0, this.hooks.emit("disable", { userAction: e });
107
94
  });
108
95
  this.five = t;
109
96
  const s = {
@@ -111,49 +98,49 @@ class _t extends O {
111
98
  highlightEnable: !0,
112
99
  cameraImageUrl: D,
113
100
  missingFloorImageUrl: this.staticPrefix + "/release/web/saas/missing-floor.d687a5ed.png"
114
- }, a = p(p({}, s), i == null ? void 0 : i.configs);
115
- 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);
101
+ }, a = p(p({}, s), e == null ? void 0 : e.configs);
102
+ this.state = { enabled: !0, visible: !0, config: a }, e != null && e.wrapper && console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法"), typeof (e == null ? void 0 : e.wrapper) == "string" ? this.wrapperSelector = e.wrapper : (e == null ? void 0 : e.wrapper) instanceof Element && (this.wrapper = e.wrapper), t.once("dispose", this.dispose);
116
103
  }
117
- load(t, i, s = !0) {
104
+ load(t, e, s = !0) {
118
105
  return c(this, null, function* () {
119
106
  function a(l) {
120
107
  return Object.prototype.hasOwnProperty.apply(l, ["version"]);
121
108
  }
122
109
  const h = JSON.parse(JSON.stringify(t)), d = a(h) ? h.data : h, n = this.data;
123
- 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();
110
+ this.data = yield g(d), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, n), e && this.updateState(e, s), this.render();
124
111
  });
125
112
  }
126
113
  show() {
127
114
  return c(this, arguments, function* (t = {}) {
128
115
  if (this.state.visible)
129
116
  return;
130
- const i = t.userAction !== void 0 ? t.userAction : !0;
131
- this.updateState({ visible: !0 }, i), this._show({ userAction: i });
117
+ const e = t.userAction !== void 0 ? t.userAction : !0;
118
+ this.updateState({ visible: !0 }, e), this._show({ userAction: e });
132
119
  });
133
120
  }
134
121
  hide() {
135
122
  return c(this, arguments, function* (t = {}) {
136
123
  if (!this.state.visible)
137
124
  return;
138
- const i = t.userAction !== void 0 ? t.userAction : !0;
139
- this.updateState({ visible: !1 }, i), this._hide({ userAction: i });
125
+ const e = t.userAction !== void 0 ? t.userAction : !0;
126
+ this.updateState({ visible: !1 }, e), this._hide({ userAction: e });
140
127
  });
141
128
  }
142
129
  enable(t = {}) {
143
130
  if (this.state.enabled)
144
131
  return;
145
- const i = t.userAction !== void 0 ? t.userAction : !0;
146
- this.updateState({ enabled: !0 }, t.userAction || i), this._enable({ userAction: i });
132
+ const e = t.userAction !== void 0 ? t.userAction : !0;
133
+ this.updateState({ enabled: !0 }, t.userAction || e), this._enable({ userAction: e });
147
134
  }
148
135
  disable(t = {}) {
149
136
  if (!this.state.enabled)
150
137
  return;
151
- const i = t.userAction !== void 0 ? t.userAction : !0;
152
- this.updateState({ enabled: !1 }, t.userAction || i), this._disable({ userAction: i });
138
+ const e = t.userAction !== void 0 ? t.userAction : !0;
139
+ this.updateState({ enabled: !1 }, t.userAction || e), this._disable({ userAction: e });
153
140
  }
154
141
  /** 更改插件 State */
155
- setState(t, i = {}) {
156
- const s = this.state, a = i.userAction !== void 0 ? i.userAction : !0;
142
+ setState(t, e = {}) {
143
+ const s = this.state, a = e.userAction !== void 0 ? e.userAction : !0;
157
144
  if (this.updateState(t, a), t.enabled !== void 0 && s.enabled !== t.enabled) {
158
145
  const h = { userAction: a };
159
146
  t.enabled ? this._enable(h) : this._disable(h);
@@ -167,43 +154,43 @@ class _t extends O {
167
154
  appendTo(t) {
168
155
  this.wrapper !== t && this.app && (this.app.$destroy(), this.app = void 0), this.wrapper = t, this.render();
169
156
  }
170
- changeConfigs(t, i = !0) {
171
- this.setState({ config: t }, { userAction: i }), this.render();
157
+ changeConfigs(t, e = !0) {
158
+ this.setState({ config: t }, { userAction: e }), this.render();
172
159
  }
173
160
  setExtraObjectsWith3DPositions(t) {
174
161
  this.data && (this.extraObjects = x(t, this.five, this.data), this.render());
175
162
  }
176
163
  formatData(t) {
177
164
  return c(this, null, function* () {
178
- return yield b(t.data);
165
+ return yield g(t.data);
179
166
  });
180
167
  }
181
168
  _enable(t) {
182
- const { userAction: i } = t;
183
- this.hooks.emit("enable", { userAction: i }), this.state.visible && this._show({ userAction: i });
169
+ const { userAction: e } = t;
170
+ this.hooks.emit("enable", { userAction: e }), this.state.visible && this._show({ userAction: e });
184
171
  }
185
172
  _show(t) {
186
173
  if (this.disposed || !this.state.enabled)
187
174
  return;
188
- const { userAction: i } = t;
189
- this.hooks.emit("show", { userAction: i }), this.render();
175
+ const { userAction: e } = t;
176
+ this.hooks.emit("show", { userAction: e }), this.render();
190
177
  }
191
178
  _hide(t) {
192
179
  if (this.disposed || !this.state.enabled)
193
180
  return;
194
- const { userAction: i } = t;
195
- this.hooks.emit("hide", { userAction: i }), this.render();
181
+ const { userAction: e } = t;
182
+ this.hooks.emit("hide", { userAction: e }), this.render();
196
183
  }
197
- updateState(t, i) {
184
+ updateState(t, e) {
198
185
  const s = this.state, a = t.config ? p(p({}, s.config), t.config) : s.config;
199
- 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 });
186
+ 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: e });
200
187
  }
201
188
  render() {
202
189
  if (this.disposed || !this.state.enabled)
203
190
  return;
204
191
  if (!this.wrapper && this.wrapperSelector) {
205
- const i = document.querySelector(this.wrapperSelector);
206
- this.wrapper = i;
192
+ const e = document.querySelector(this.wrapperSelector);
193
+ this.wrapper = e;
207
194
  }
208
195
  if (!this.data || !this.wrapper)
209
196
  return;
@@ -218,5 +205,5 @@ class _t extends O {
218
205
  }
219
206
  }
220
207
  export {
221
- _t as Controller
208
+ pt as Controller
222
209
  };
@@ -21,22 +21,8 @@ import "../../base/BasePlugin.js";
21
21
  import "../../shared-utils/Subscribe.js";
22
22
  import "three";
23
23
  import "hammerjs";
24
- import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
25
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
26
- import "../../shared-utils/positionToVector3.js";
27
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
28
24
  import "three/examples/jsm/renderers/CSS3DRenderer";
29
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
30
- import "../../shared-utils/util.js";
31
- import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
32
- import "../../CSS3DRenderPlugin/utils/even.js";
33
- import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
34
- import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
35
- import "../../shared-utils/three/centerPoint.js";
36
- import "../../shared-utils/three/getObjectVisible.js";
37
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
38
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
39
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
25
+ import "@realsee/five/line";
40
26
  import "../../shared-utils/three/THREESphere.js";
41
27
  import "animejs";
42
28
  import "../../shared-utils/Utils/FiveUtil.js";
@@ -45,10 +31,11 @@ import "../../shared-utils/Utils/WorkUtil.js";
45
31
  import "../../shared-utils/five/transformPosition.js";
46
32
  import "../../shared-utils/five/getFiveModel.js";
47
33
  import "../../shared-utils/url/absoluteUrl.js";
34
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
48
35
  import "../utils/formatData.js";
49
36
  import "../Assets/floorplanExtraObject.js";
50
- const _ = (o, r) => new t(o, r);
37
+ const L = (o, r) => new t(o, r);
51
38
  export {
52
- _ as PanoFloorplanRadarPlugin,
53
- _ as default
39
+ L as PanoFloorplanRadarPlugin,
40
+ L as default
54
41
  };
@@ -11,18 +11,18 @@ var u = (d, n, t) => n in d ? C(d, n, { enumerable: !0, configurable: !0, writab
11
11
  return d;
12
12
  }, m = (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 p = (d, n, t) => new Promise((e, i) => {
15
15
  var s = (h) => {
16
16
  try {
17
17
  a(t.next(h));
18
- } catch (p) {
19
- i(p);
18
+ } catch (c) {
19
+ i(c);
20
20
  }
21
21
  }, r = (h) => {
22
22
  try {
23
23
  a(t.throw(h));
24
- } catch (p) {
25
- i(p);
24
+ } catch (c) {
25
+ i(c);
26
26
  }
27
27
  }, a = (h) => h.done ? e(h.value) : Promise.resolve(h.value).then(s, r);
28
28
  a((t = t.apply(d, n)).next());
@@ -39,12 +39,12 @@ import { changeMode as P } from "../../shared-utils/five/changeMode.js";
39
39
  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 "hammerjs";
42
- import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
43
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
44
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
42
+ import "three/examples/jsm/renderers/CSS3DRenderer";
43
+ import "@realsee/five/line";
45
44
  import "../../shared-utils/three/THREESphere.js";
46
45
  import "animejs";
47
46
  import { isNil as k } from "../../shared-utils/isNil.js";
47
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
48
48
  import "../../shared-utils/isTruelyObject.js";
49
49
  import "../../vendor/svelte/internal/index.js";
50
50
  import "../../vendor/svelte/transition/index.js";
@@ -84,22 +84,9 @@ import "../../shared-utils/five/getFiveModel.js";
84
84
  import "../../shared-utils/url/absoluteUrl.js";
85
85
  import "../../shared-utils/nearlyEqual.js";
86
86
  import "../../shared-utils/to.js";
87
- import "../../shared-utils/positionToVector3.js";
88
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
89
- import "three/examples/jsm/renderers/CSS3DRenderer";
90
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
91
- import "../../shared-utils/util.js";
92
- import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
93
- import "../../CSS3DRenderPlugin/utils/even.js";
94
- import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
95
- import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
96
- import "../../shared-utils/three/centerPoint.js";
97
- import "../../shared-utils/three/getObjectVisible.js";
98
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
99
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
100
- class Xt extends M {
87
+ class Nt extends M {
101
88
  constructor(t, e) {
102
- var h, p;
89
+ var h, c;
103
90
  super(t);
104
91
  // =============== public properties =================
105
92
  o(this, "name", "topviewFloorplanPlugin");
@@ -129,8 +116,8 @@ class Xt extends M {
129
116
  o(this, "updateSize", () => {
130
117
  if (!this.data || !this.container || !this.wrapper || this.five.getCurrentState().mode !== "Topview")
131
118
  return !1;
132
- 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);
133
- 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;
119
+ 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), c = Math.ceil(s * a);
120
+ return this.size.width === h && this.size.height === c || (this.container.style.width = h + "px", this.container.style.height = c + "px", this.size = { width: h, height: c }), !0;
134
121
  });
135
122
  /** 销毁插件 */
136
123
  o(this, "dispose", () => {
@@ -195,7 +182,7 @@ class Xt extends M {
195
182
  imageURL: this.staticPrefix + "/release/web/saas/missing-floorplan.e274c596.png",
196
183
  imageWidth: 200,
197
184
  imageHeight: 120,
198
- text: (p = (h = e.i18n) == null ? void 0 : h.call(e, "暂无平面图")) != null ? p : "暂无平面图",
185
+ text: (c = (h = e.i18n) == null ? void 0 : h.call(e, "暂无平面图")) != null ? c : "暂无平面图",
199
186
  textFontSize: 14
200
187
  };
201
188
  const i = {
@@ -216,23 +203,23 @@ class Xt extends M {
216
203
  attachedTo: _.BOUNDING_CENTER,
217
204
  getLabelElement: void 0,
218
205
  missingFloorConfig: l(l({}, this.defaultMissingFloorConfig), e.missingFloorConfig),
219
- i18n: (c) => c,
206
+ i18n: (f) => f,
220
207
  adaptiveRoomLabelVisibleEnable: !0,
221
- getRoomAreaText: (c) => (c / 1e6).toFixed(1) + "㎡",
222
- getRoomDimensionText: (c, w) => (c / 1e3).toFixed(1) + "m × " + (w / 1e3).toFixed(1) + "m",
223
- getRuleDistanceText: (c) => c.toString()
208
+ getRoomAreaText: (f) => (f / 1e6).toFixed(1) + "㎡",
209
+ getRoomDimensionText: (f, w) => (f / 1e3).toFixed(1) + "m × " + (w / 1e3).toFixed(1) + "m",
210
+ getRuleDistanceText: (f) => f.toString()
224
211
  }, s = e ? T(e, ["selector", "scale"]) : {}, r = l(l({}, i.missingFloorConfig), s.missingFloorConfig), a = m(l(l({}, i), s), { missingFloorConfig: r });
225
212
  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();
226
213
  }
227
214
  load(t, e, i = !0) {
228
- return f(this, null, function* () {
229
- function s(c) {
230
- return Object.prototype.hasOwnProperty.apply(c, ["version"]);
215
+ return p(this, null, function* () {
216
+ function s(f) {
217
+ return Object.prototype.hasOwnProperty.apply(f, ["version"]);
231
218
  }
232
219
  const r = t;
233
220
  r && k(r.version) && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
234
- const a = JSON.parse(JSON.stringify(t)), h = s(a) ? a.data : a, p = this.data;
235
- 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();
221
+ const a = JSON.parse(JSON.stringify(t)), h = s(a) ? a.data : a, c = this.data;
222
+ this.data = yield v(h), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, c), e && this.updateState(e, i), this.render();
236
223
  });
237
224
  }
238
225
  /** 更新户型图位置 */
@@ -250,7 +237,7 @@ class Xt extends M {
250
237
  return t.appendChild(this.container), this.render(), this;
251
238
  }
252
239
  show() {
253
- return f(this, arguments, function* (t = {}) {
240
+ return p(this, arguments, function* (t = {}) {
254
241
  if (this.state.visible)
255
242
  return;
256
243
  const e = t.userAction !== void 0 ? t.userAction : !0;
@@ -258,7 +245,7 @@ class Xt extends M {
258
245
  });
259
246
  }
260
247
  hide() {
261
- return f(this, arguments, function* (t = {}) {
248
+ return p(this, arguments, function* (t = {}) {
262
249
  if (this.isHiddenByHideFunc = !0, !this.state.visible)
263
250
  return;
264
251
  const e = t.userAction !== void 0 ? t.userAction : !0;
@@ -293,12 +280,12 @@ class Xt extends M {
293
280
  this.updateState({ config: t }, e), this.render();
294
281
  }
295
282
  formatData(t) {
296
- return f(this, null, function* () {
283
+ return p(this, null, function* () {
297
284
  return yield v(t.data);
298
285
  });
299
286
  }
300
287
  _show(t) {
301
- return f(this, null, function* () {
288
+ return p(this, null, function* () {
302
289
  if (!this.state.enabled)
303
290
  return;
304
291
  this.isHiddenByHideFunc = !1;
@@ -309,7 +296,7 @@ class Xt extends M {
309
296
  });
310
297
  }
311
298
  _hide(t) {
312
- return f(this, null, function* () {
299
+ return p(this, null, function* () {
313
300
  if (!this.state.enabled)
314
301
  return;
315
302
  const { userAction: e } = t;
@@ -370,5 +357,5 @@ class Xt extends M {
370
357
  }
371
358
  }
372
359
  export {
373
- Xt as Controller
360
+ Nt as Controller
374
361
  };
@@ -39,22 +39,8 @@ import "../../base/BasePluginWithData.js";
39
39
  import "../../base/BasePlugin.js";
40
40
  import "../../shared-utils/Subscribe.js";
41
41
  import "hammerjs";
42
- import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
43
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
44
- import "../../shared-utils/positionToVector3.js";
45
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
46
42
  import "three/examples/jsm/renderers/CSS3DRenderer";
47
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
48
- import "../../shared-utils/util.js";
49
- import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
50
- import "../../CSS3DRenderPlugin/utils/even.js";
51
- import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
52
- import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
53
- import "../../shared-utils/three/centerPoint.js";
54
- import "../../shared-utils/three/getObjectVisible.js";
55
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
56
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
57
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
43
+ import "@realsee/five/line";
58
44
  import "../../shared-utils/three/THREESphere.js";
59
45
  import "animejs";
60
46
  import "../../shared-utils/Utils/FiveUtil.js";
@@ -63,14 +49,15 @@ import "../../shared-utils/Utils/WorkUtil.js";
63
49
  import "../../shared-utils/five/transformPosition.js";
64
50
  import "../../shared-utils/five/getFiveModel.js";
65
51
  import "../../shared-utils/url/absoluteUrl.js";
52
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
66
53
  import "../../shared-utils/five/changeMode.js";
67
54
  import "../../shared-utils/nearlyEqual.js";
68
55
  import "../../shared-utils/to.js";
69
56
  import "../../shared-utils/getPxmm.js";
70
57
  import "../../shared-utils/changeModelCanvasOpacity.js";
71
58
  import "../../shared-utils/isNil.js";
72
- const Po = (o, r) => new t(o, r);
59
+ const lo = (o, r) => new t(o, r);
73
60
  export {
74
- Po as TopviewFloorplanPlugin,
75
- Po as default
61
+ lo as TopviewFloorplanPlugin,
62
+ lo as default
76
63
  };
@@ -1,9 +1,9 @@
1
1
  import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
2
2
  import "three";
3
3
  import "hammerjs";
4
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
5
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
6
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
4
+ import "three/examples/jsm/renderers/CSS3DRenderer";
5
+ import "@realsee/five/line";
7
6
  import "../shared-utils/three/THREESphere.js";
8
7
  import "animejs";
8
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
9
9
  import "../shared-utils/nearlyEqual.js";