@realsee/dnalogel 3.73.1 → 3.73.3

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 (127) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/MeasurePlugin/Controller.d.ts +3 -4
  3. package/dist/MeasurePlugin/index.d.ts +2 -1
  4. package/dist/Sculpt/utils/export.d.ts +1 -0
  5. package/dist/index.cjs.js +71 -71
  6. package/dist/index.js +4893 -4894
  7. package/dist/index.umd.js +76 -76
  8. package/dist/shared-utils/three/index.d.ts +2 -0
  9. package/libs/AreaMakerPlugin/Controller.js +3 -2
  10. package/libs/AreaMakerPlugin/index.js +3 -2
  11. package/libs/AreaMakerPlugin/utils/Item.js +80 -79
  12. package/libs/CSS3DRenderPlugin/Controller.js +3 -2
  13. package/libs/CSS3DRenderPlugin/index.js +6 -5
  14. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +3 -2
  15. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +1 -0
  16. package/libs/CruisePlugin/BaseController.js +5 -4
  17. package/libs/CruisePlugin/Move.js +1 -1
  18. package/libs/CruisePlugin/Work.js +1 -1
  19. package/libs/CruisePlugin/index.js +1 -1
  20. package/libs/CurrentPanoImagePlugin/Controller.js +3 -2
  21. package/libs/CurrentPanoImagePlugin/index.js +4 -3
  22. package/libs/GuideLinePlugin/Controller.js +1 -1
  23. package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
  24. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  25. package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
  26. package/libs/GuideLinePlugin/index.js +1 -1
  27. package/libs/MeasurePlugin/Controller.d.ts +3 -4
  28. package/libs/MeasurePlugin/Controller.js +29 -29
  29. package/libs/MeasurePlugin/index.d.ts +2 -1
  30. package/libs/MeasurePlugin/index.js +6 -5
  31. package/libs/MeasurePlugin/utils/MeasureMesh.js +1 -1
  32. package/libs/ModelChassisCompassPlugin/Plugin.js +4 -3
  33. package/libs/ModelChassisCompassPlugin/index.js +1 -0
  34. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +6 -5
  35. package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
  36. package/libs/ModelMakerPlugin/Controller.js +1 -1
  37. package/libs/ModelMakerPlugin/index.js +1 -1
  38. package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
  39. package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
  40. package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
  41. package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
  42. package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
  43. package/libs/ModelTVVideoPlugin/index.js +3 -2
  44. package/libs/ModelViewPlugin/Plugin.js +4 -3
  45. package/libs/ModelViewPlugin/index.js +1 -0
  46. package/libs/Object3DHelperPlugin/Controller.js +18 -17
  47. package/libs/Object3DHelperPlugin/index.js +6 -5
  48. package/libs/PanoCompassPlugin/Controller.js +3 -2
  49. package/libs/PanoCompassPlugin/index.js +4 -3
  50. package/libs/PanoDoorLabelPlugin/Controller.js +3 -2
  51. package/libs/PanoDoorLabelPlugin/index.js +4 -3
  52. package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -1
  53. package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -1
  54. package/libs/PanoMeasurePlugin/Controller/index.js +1 -1
  55. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -0
  56. package/libs/PanoMeasurePlugin/index.js +1 -1
  57. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
  58. package/libs/PanoRulerProPlugin/Controller.js +3 -2
  59. package/libs/PanoRulerProPlugin/RulerItems.js +3 -2
  60. package/libs/PanoRulerProPlugin/index.js +4 -3
  61. package/libs/PanoSpatialTagPlugin/Plugin.js +4 -3
  62. package/libs/PanoSpatialTagPlugin/index.js +1 -0
  63. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -2
  64. package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +3 -2
  65. package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +3 -2
  66. package/libs/PanoTagPlugin/Components/Common/TagPopover/index.js +3 -2
  67. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +233 -232
  68. package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
  69. package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
  70. package/libs/PanoTagPlugin/Components/TagItem.js +3 -2
  71. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +3 -2
  72. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +22 -21
  73. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +1 -1
  74. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
  75. package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
  76. package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
  77. package/libs/PanoTagPlugin/controller/index.js +1 -1
  78. package/libs/PanoTagPlugin/index.js +1 -1
  79. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
  80. package/libs/PanoTagPlugin/utils/tag/format.js +3 -2
  81. package/libs/PanoVideoPlugin/Controller.js +3 -2
  82. package/libs/PanoVideoPlugin/VideoMeshController.js +3 -2
  83. package/libs/PanoVideoPlugin/index.js +6 -5
  84. package/libs/PipelinePlugin/Controller.js +95 -94
  85. package/libs/PipelinePlugin/index.js +4 -3
  86. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -2
  87. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -2
  88. package/libs/PipelinePlugin/utils/Objects/Pipe.js +22 -21
  89. package/libs/Sculpt/Meshes/Circle.js +3 -2
  90. package/libs/Sculpt/Meshes/Cylinder.js +3 -2
  91. package/libs/Sculpt/Meshes/Line.js +3 -2
  92. package/libs/Sculpt/Meshes/LineWithDots.js +5 -4
  93. package/libs/Sculpt/Meshes/Point.js +3 -2
  94. package/libs/Sculpt/Meshes/Rectangle.js +4 -3
  95. package/libs/Sculpt/Objects/Base/index.js +1 -0
  96. package/libs/Sculpt/Objects/Line/Editor.js +7 -6
  97. package/libs/Sculpt/index.js +19 -18
  98. package/libs/Sculpt/utils/export.d.ts +1 -0
  99. package/libs/Sculpt/utils/export.js +23 -20
  100. package/libs/Sculpt/utils/three/ColoredMesh.js +3 -2
  101. package/libs/base/BasePlugin.js +8 -7
  102. package/libs/floorplan/FloorplanGuidePlugin/Controller.js +3 -2
  103. package/libs/floorplan/FloorplanGuidePlugin/index.js +4 -3
  104. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -2
  105. package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -3
  106. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -2
  107. package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -3
  108. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -2
  109. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -3
  110. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -2
  111. package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -3
  112. package/libs/floorplan/index.js +1 -0
  113. package/libs/index.js +146 -145
  114. package/libs/shared-utils/CSS3DRender/CSS3DObject.js +3 -2
  115. package/libs/shared-utils/exports.js +62 -55
  116. package/libs/shared-utils/five/index.js +4 -3
  117. package/libs/shared-utils/five/lookObject.js +3 -2
  118. package/libs/shared-utils/index.js +1 -0
  119. package/libs/shared-utils/logger.js +1 -1
  120. package/libs/shared-utils/tag.js +3 -2
  121. package/libs/shared-utils/three/PointDomHelper.js +3 -2
  122. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -2
  123. package/libs/shared-utils/three/geometryUtil.js +12 -8
  124. package/libs/shared-utils/three/index.d.ts +2 -0
  125. package/libs/shared-utils/three/index.js +1 -0
  126. package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +139 -151
  127. package/package.json +1 -1
@@ -11,3 +11,5 @@ export * from './getIntersect';
11
11
  export * from './getRaycaster';
12
12
  export * from './PointDomHelper';
13
13
  export * from './LegacyPointHelper';
14
+ export * from './geometryUtil';
15
+ export { default as generatePolygonGeometry } from './generatePolygonGeometry';
@@ -40,6 +40,7 @@ import "../shared-utils/three/core/Sphere.js";
40
40
  import "../shared-utils/three/blink.js";
41
41
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
42
42
  import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
43
+ import "../vendor/earcut/src/earcut.js";
43
44
  import { equal as I } from "../shared-utils/equal.js";
44
45
  import "../shared-utils/five/FivePuppet.js";
45
46
  import { AreaMakerItem as D } from "./utils/Item.js";
@@ -110,7 +111,7 @@ import "../components/AreaLabel/Assets/fontSize.js";
110
111
  import "../shared-utils/px2rem.js";
111
112
  import "../shared-utils/math/planimetry.js";
112
113
  import "../shared-utils/fontSize.js";
113
- class ie extends k {
114
+ class oe extends k {
114
115
  /** AreaMakerPlugin
115
116
  * @param `five` `<Five>` Five 实例
116
117
  * @param `params` `<PluginType.Params> | <undefined>` 插件初始化参数
@@ -385,5 +386,5 @@ class ie extends k {
385
386
  }
386
387
  }
387
388
  export {
388
- ie as Controller
389
+ oe as Controller
389
390
  };
@@ -43,6 +43,7 @@ import "../shared-utils/createResizeObserver.js";
43
43
  import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
44
44
  import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
45
45
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
46
+ import "../vendor/earcut/src/earcut.js";
46
47
  import "../shared-utils/five/FivePuppet.js";
47
48
  import "@realsee/five";
48
49
  import "../shared-utils/three/PointSelector/utils/html.js";
@@ -82,7 +83,7 @@ import "../components/AreaLabel/Assets/fontSize.js";
82
83
  import "../shared-utils/px2rem.js";
83
84
  import "../shared-utils/math/planimetry.js";
84
85
  import "../shared-utils/fontSize.js";
85
- const Fr = (r, o) => new t(r, o);
86
+ const Gr = (r, o) => new t(r, o);
86
87
  export {
87
- Fr as AreaMakerPlugin
88
+ Gr as AreaMakerPlugin
88
89
  };
@@ -1,6 +1,6 @@
1
1
  var b = Object.defineProperty;
2
- var k = (n, e, t) => e in n ? b(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var i = (n, e, t) => (k(n, typeof e != "symbol" ? e + "" : e, t), t);
2
+ var k = (n, i, t) => i in n ? b(n, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[i] = t;
3
+ var e = (n, i, t) => (k(n, typeof i != "symbol" ? i + "" : i, t), t);
4
4
  import * as r from "three";
5
5
  import "../../shared-utils/tag.js";
6
6
  import "../../vendor/hammerjs/hammer.js";
@@ -16,6 +16,7 @@ import "../../shared-utils/three/core/Sphere.js";
16
16
  import "../../shared-utils/three/blink.js";
17
17
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
18
18
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
19
+ import "../../vendor/earcut/src/earcut.js";
19
20
  import { BetterTween as O } from "../../shared-utils/animationFrame/BetterTween.js";
20
21
  import "../../shared-utils/five/FivePuppet.js";
21
22
  import { LabelItem as v } from "../../components/AreaLabel/LabelItem.js";
@@ -81,80 +82,80 @@ import "../../shared-utils/px2rem.js";
81
82
  class P extends y {
82
83
  constructor(t) {
83
84
  super();
84
- i(this, "areaMakerItem");
85
+ e(this, "areaMakerItem");
85
86
  this.areaMakerItem = t;
86
87
  }
87
88
  raycast(t, s) {
88
89
  this.areaMakerItem.makerObject.raycast(t, s);
89
90
  }
90
91
  }
91
- class Qt {
92
- constructor(e, t) {
93
- i(this, "id");
92
+ class ti {
93
+ constructor(i, t) {
94
+ e(this, "id");
94
95
  /** 标注名称 */
95
- i(this, "name", "");
96
+ e(this, "name", "");
96
97
  /** 标注几何体 */
97
- i(this, "makerObject");
98
+ e(this, "makerObject");
98
99
  /** 标注几何体的边框 */
99
- i(this, "outline");
100
+ e(this, "outline");
100
101
  /** 标注底面 Y 坐标 */
101
- i(this, "bottomY");
102
+ e(this, "bottomY");
102
103
  /** 标注透明度 */
103
- i(this, "opacity");
104
+ e(this, "opacity");
104
105
  /** 标注高度 */
105
- i(this, "height");
106
+ e(this, "height");
106
107
  /** 标注所在楼层 */
107
- i(this, "floorIndex");
108
+ e(this, "floorIndex");
108
109
  /** 标注底面形状 */
109
- i(this, "shape");
110
+ e(this, "shape");
110
111
  /** 是否被挂载 */
111
- i(this, "mounted", !1);
112
+ e(this, "mounted", !1);
112
113
  /** 查询问题使用的调试对象 */
113
- i(this, "checkMsg", {
114
+ e(this, "checkMsg", {
114
115
  /** 当标注没有展示时,可以通过这个字段查看原因 */
115
116
  checkVisibleMsg: "",
116
117
  /** 当标注标签没有展示时,可以通过这个字段查看原因 */
117
118
  checkTagVisibleMsg: ""
118
119
  });
119
120
  /** 模型容器 */
120
- i(this, "modelGroup");
121
+ e(this, "modelGroup");
121
122
  /** 标注是否可见 */
122
- i(this, "visible", !0);
123
+ e(this, "visible", !0);
123
124
  // ==================== 标签相关 ====================
124
125
  /** 标注标签实例 */
125
- i(this, "tagApp");
126
+ e(this, "tagApp");
126
127
  /** 标注标签是否可见 */
127
- i(this, "tagVisible", null);
128
+ e(this, "tagVisible", null);
128
129
  /** 标注标签的世界坐标 */
129
- i(this, "tagPosition", new r.Vector3());
130
+ e(this, "tagPosition", new r.Vector3());
130
131
  /** 标注标签的 NDC 坐标 */
131
- i(this, "tagNDCPosition", new r.Vector3());
132
+ e(this, "tagNDCPosition", new r.Vector3());
132
133
  /** 标注标签的 transform */
133
- i(this, "tagTransform", { left: 0, top: 0 });
134
+ e(this, "tagTransform", { left: 0, top: 0 });
134
135
  /** 标注标签的显示层级 */
135
- i(this, "tagZIndex", 0);
136
+ e(this, "tagZIndex", 0);
136
137
  /** 标注实例的事件处理器 */
137
- i(this, "hooks", new T());
138
+ e(this, "hooks", new T());
138
139
  /** 自定义 Dom */
139
- i(this, "itemRenderer");
140
+ e(this, "itemRenderer");
140
141
  /** 数据 */
141
- i(this, "data");
142
+ e(this, "data");
142
143
  /** Plugin 实例 */
143
- i(this, "plugin");
144
+ e(this, "plugin");
144
145
  /** 标注透明度动画 */
145
- i(this, "opacityAnime");
146
+ e(this, "opacityAnime");
146
147
  /** 是否在容器 resize 动画中 */
147
- i(this, "isInContainerResizeAnimation", !1);
148
+ e(this, "isInContainerResizeAnimation", !1);
148
149
  /** 监听容器 resize 的计时器 id,用于判断 resize 过程是否结束 */
149
- i(this, "containerResizeTimeoutID", null);
150
+ e(this, "containerResizeTimeoutID", null);
150
151
  /** 容器大小变化监听器 */
151
- i(this, "resizeObserver");
152
+ e(this, "resizeObserver");
152
153
  /** 响应式字体大小管理器 */
153
- i(this, "fontSizeManager", V());
154
+ e(this, "fontSizeManager", V());
154
155
  /** 当前字体大小 */
155
- i(this, "currentFontSize", j());
156
+ e(this, "currentFontSize", j());
156
157
  /** 字体大小订阅取消函数 */
157
- i(this, "unsubscribeFontSize", null);
158
+ e(this, "unsubscribeFontSize", null);
158
159
  /** 显示标注 */
159
160
  // public show() {
160
161
  // return this.doOpacityAnime({
@@ -174,10 +175,10 @@ class Qt {
174
175
  // })
175
176
  // }
176
177
  /** 透明度动画 */
177
- i(this, "doOpacityAnime", (e) => {
178
+ e(this, "doOpacityAnime", (i) => {
178
179
  var p;
179
180
  (p = this.opacityAnime) == null || p.dispose();
180
- const t = e.duration, [s, o] = e.makerObjectOpacity, [h, a] = e.outlineOpacity;
181
+ const t = i.duration, [s, o] = i.makerObjectOpacity, [h, a] = i.outlineOpacity;
181
182
  if (t === 0) {
182
183
  this.makerObject.material.opacity = o, this.outline.material.opacity = a;
183
184
  return;
@@ -194,53 +195,53 @@ class Qt {
194
195
  });
195
196
  });
196
197
  /** 插件 Config 变化时更新自身 depthTest */
197
- i(this, "onPluginConfigChange", (e) => {
198
- this.makerObject.material.depthTest = e.config.modelDepthTest, this.outline.material.depthTest = e.config.modelDepthTest, this.plugin.five.needsRender = !0;
198
+ e(this, "onPluginConfigChange", (i) => {
199
+ this.makerObject.material.depthTest = i.config.modelDepthTest, this.outline.material.depthTest = i.config.modelDepthTest, this.plugin.five.needsRender = !0;
199
200
  });
200
201
  /** 插件整体可见性变化时,需要更新自身可见性 */
201
- i(this, "onPluginStateChange", () => {
202
+ e(this, "onPluginStateChange", () => {
202
203
  this.updateVisible(), this.updateTagVisible();
203
204
  });
204
205
  /** 更新标注可见性 */
205
- i(this, "updateVisible", () => {
206
+ e(this, "updateVisible", () => {
206
207
  var o;
207
- const { result: e, msg: t } = this.checkVisible();
208
- if (this.checkMsg.checkVisibleMsg = t, this.visible === e)
208
+ const { result: i, msg: t } = this.checkVisible();
209
+ if (this.checkMsg.checkVisibleMsg = t, this.visible === i)
209
210
  return;
210
- this.visible = e;
211
+ this.visible = i;
211
212
  const s = (o = this.data.object_data.visible) != null ? o : !0;
212
- this.modelGroup.visible = e && s, this.plugin.five.needsRender = !0;
213
+ this.modelGroup.visible = i && s, this.plugin.five.needsRender = !0;
213
214
  });
214
215
  /** 检测标注是否可见 */
215
- i(this, "checkVisible", () => {
216
+ e(this, "checkVisible", () => {
216
217
  if (!this.plugin.state.visible)
217
218
  return { result: !1, msg: "插件不可见" };
218
219
  const t = this.plugin.fiveUtil.model.shownFloor;
219
220
  return t === null || t === this.floorIndex ? { result: !0, msg: "" } : { result: !1, msg: `模型高亮楼层不符合展示条件, 当前高亮楼层为:${t}` };
220
221
  });
221
222
  /** 更新标注标签 */
222
- i(this, "updateTag", () => {
223
+ e(this, "updateTag", () => {
223
224
  this.tagApp && (this.updateTagNDCPosition(), this.updateTagDomTransform(), this.updateTagVisible());
224
225
  });
225
226
  /** 更新标注标签的 NDC Position */
226
- i(this, "updateTagNDCPosition", () => {
227
+ e(this, "updateTagNDCPosition", () => {
227
228
  const t = this.tagPosition.clone().project(this.plugin.five.camera);
228
229
  this.tagNDCPosition.copy(t);
229
230
  });
230
231
  /** 更新标注标签的 transform */
231
- i(this, "updateTagDomTransform", () => {
232
+ e(this, "updateTagDomTransform", () => {
232
233
  var o;
233
- const e = this.tagNDCPosition, t = Math.round((e.x + 1) / 2 * this.plugin.tagDomContainer.clientWidth), s = Math.round((-e.y + 1) / 2 * this.plugin.tagDomContainer.clientHeight);
234
+ const i = this.tagNDCPosition, t = Math.round((i.x + 1) / 2 * this.plugin.tagDomContainer.clientWidth), s = Math.round((-i.y + 1) / 2 * this.plugin.tagDomContainer.clientHeight);
234
235
  this.tagTransform.left === t && this.tagTransform.top === s || (this.tagTransform = { left: t, top: s }, (o = this.tagApp) == null || o.$set({ transform: `translate(${t}px, ${s}px)` }));
235
236
  });
236
237
  /** 更新标注标签可见性 */
237
- i(this, "updateTagVisible", () => {
238
+ e(this, "updateTagVisible", () => {
238
239
  var s;
239
- const { result: e, msg: t } = this.checkTagVisible();
240
- this.checkMsg.checkTagVisibleMsg = t, this.tagVisible !== e && (this.tagVisible = e, this.tagApp && (this.tagVisible ? this.hooks.emit("tagShow") : this.hooks.emit("tagHide"), (s = this.tagApp) == null || s.$set({ visible: e })));
240
+ const { result: i, msg: t } = this.checkTagVisible();
241
+ this.checkMsg.checkTagVisibleMsg = t, this.tagVisible !== i && (this.tagVisible = i, this.tagApp && (this.tagVisible ? this.hooks.emit("tagShow") : this.hooks.emit("tagHide"), (s = this.tagApp) == null || s.$set({ visible: i })));
241
242
  });
242
243
  /** 检测标注标签是否可见 */
243
- i(this, "checkTagVisible", () => {
244
+ e(this, "checkTagVisible", () => {
244
245
  if (!this.visible)
245
246
  return { result: !1, msg: "标注整体不可见" };
246
247
  if (this.isInContainerResizeAnimation)
@@ -254,11 +255,11 @@ class Qt {
254
255
  return Math.abs(a.x) > 1.2 || Math.abs(a.y) > 1.2 || Math.abs(a.z) > 1 ? { result: !1, msg: "标注标签不在屏幕内" } : { result: !0, msg: "" };
255
256
  });
256
257
  /** 相机位姿发生变化时,更新标签 */
257
- i(this, "onFiveCameraUpdate", () => {
258
+ e(this, "onFiveCameraUpdate", () => {
258
259
  this.tagApp && this.visible && (this.updateTagNDCPosition(), this.updateTagDomTransform(), this.updateTagVisible());
259
260
  });
260
261
  /** tag container DOM 发生 resize */
261
- i(this, "onContainerResize", () => {
262
+ e(this, "onContainerResize", () => {
262
263
  this.isInContainerResizeAnimation === !1 && (this.isInContainerResizeAnimation = !0, this.updateTag());
263
264
  const t = () => {
264
265
  this.isInContainerResizeAnimation = !1, this.containerResizeTimeoutID = null, this.updateTag();
@@ -266,12 +267,12 @@ class Qt {
266
267
  this.containerResizeTimeoutID && clearTimeout(this.containerResizeTimeoutID), this.containerResizeTimeoutID = setTimeout(t, 100);
267
268
  });
268
269
  /** 更新标注字体大小 */
269
- i(this, "updateTagFontSize", () => {
270
+ e(this, "updateTagFontSize", () => {
270
271
  this.tagApp && this.tagApp.$set({ fontSize: this.currentFontSize });
271
272
  });
272
273
  var m, l, c, g;
273
274
  const s = t.object_data, o = s.bottom_y, h = s.height, a = new r.Color((m = s.color) != null ? m : "#FFFFFF"), p = (l = s.opacity) != null ? l : 0.4;
274
- this.data = t, this.id = t.id, this.name = (c = t.name) != null ? c : "", this.plugin = e, this.height = h, this.bottomY = o, this.opacity = p, this.shape = new r.Shape().fromJSON(s.shape), this.floorIndex = t.floor_index, this.makerObject = new r.Mesh(d(this.shape, h), S(a, p)), u(this.makerObject, o), this.makerObject.material.depthTest = this.plugin.config.modelDepthTest, this.outline = new C(
275
+ this.data = t, this.id = t.id, this.name = (c = t.name) != null ? c : "", this.plugin = i, this.height = h, this.bottomY = o, this.opacity = p, this.shape = new r.Shape().fromJSON(s.shape), this.floorIndex = t.floor_index, this.makerObject = new r.Mesh(d(this.shape, h), S(a, p)), u(this.makerObject, o), this.makerObject.material.depthTest = this.plugin.config.modelDepthTest, this.outline = new C(
275
276
  new r.EdgesGeometry(this.makerObject.geometry),
276
277
  new r.LineBasicMaterial({ color: a, transparent: !0 })
277
278
  ), u(this.outline, o), this.outline.material.depthTest = this.plugin.config.modelDepthTest, this.setHeight(h), this.modelGroup = new P(this), this.modelGroup.visible = (g = s.visible) != null ? g : !0;
@@ -281,8 +282,8 @@ class Qt {
281
282
  if (this.mounted)
282
283
  return;
283
284
  this.mounted = !0, this.updateVisible(), this.makerObject.material.depthTest = this.plugin.config.modelDepthTest, this.outline.material.depthTest = this.plugin.config.modelDepthTest, this.modelGroup.add(this.makerObject, this.outline);
284
- const e = !!this.name, t = this.plugin.tagDomContainer;
285
- e && (this.tagApp = new v({
285
+ const i = !!this.name, t = this.plugin.tagDomContainer;
286
+ i && (this.tagApp = new v({
286
287
  target: t,
287
288
  props: {
288
289
  fontSize: this.currentFontSize,
@@ -299,32 +300,32 @@ class Qt {
299
300
  }
300
301
  /** 卸载标注 */
301
302
  unmount() {
302
- var e, t, s;
303
- this.mounted && (this.mounted = !1, this.modelGroup.remove(...this.modelGroup.children), (e = this.tagApp) == null || e.$destroy(), this.tagApp = null, this.plugin.hooks.off("stateChange", this.onPluginStateChange), this.plugin.hooks.off("configChange", this.onPluginConfigChange), this.plugin.five.off("modeChange", this.updateVisible), this.plugin.five.off("modelShownFloorChange", this.updateVisible), this.plugin.five.off("cameraUpdate", this.onFiveCameraUpdate), (t = this.resizeObserver) == null || t.unobserve(), (s = this.unsubscribeFontSize) == null || s.call(this));
303
+ var i, t, s;
304
+ this.mounted && (this.mounted = !1, this.modelGroup.remove(...this.modelGroup.children), (i = this.tagApp) == null || i.$destroy(), this.tagApp = null, this.plugin.hooks.off("stateChange", this.onPluginStateChange), this.plugin.hooks.off("configChange", this.onPluginConfigChange), this.plugin.five.off("modeChange", this.updateVisible), this.plugin.five.off("modelShownFloorChange", this.updateVisible), this.plugin.five.off("cameraUpdate", this.onFiveCameraUpdate), (t = this.resizeObserver) == null || t.unobserve(), (s = this.unsubscribeFontSize) == null || s.call(this));
304
305
  }
305
306
  /** 更改标注透明度
306
307
  * @param opacity 标注透明度,范围:0-1
307
308
  */
308
- setOpacity(e) {
309
+ setOpacity(i) {
309
310
  var t;
310
- this.opacity = e, (t = this.opacityAnime) == null || t.dispose(), this.makerObject.material.opacity = e, this.plugin.five.needsRender = !0;
311
+ this.opacity = i, (t = this.opacityAnime) == null || t.dispose(), this.makerObject.material.opacity = i, this.plugin.five.needsRender = !0;
311
312
  }
312
313
  /** 更改标注颜色
313
314
  * @param color 标注颜色,支持 hex
314
315
  * @example setColor('#FF0000')
315
316
  */
316
- setColor(e) {
317
- const t = new r.Color(e);
317
+ setColor(i) {
318
+ const t = new r.Color(i);
318
319
  this.makerObject.material.color = t, this.outline.material.color = t, this.plugin.five.needsRender = !0;
319
320
  }
320
321
  /** 更改标注高度
321
322
  * @param height 标注高度,单位:米
322
323
  */
323
- setHeight(e) {
324
- if (e <= 0)
324
+ setHeight(i) {
325
+ if (i <= 0)
325
326
  throw new Error("高度必须大于 0");
326
- this.height = e, this.makerObject.geometry = d(this.shape, e), this.outline.geometry = new r.EdgesGeometry(this.makerObject.geometry);
327
- const t = this.shape.extractPoints(10).shape.slice(0, -1), s = M(t), o = new r.Vector3(s.x, s.y, e);
327
+ this.height = i, this.makerObject.geometry = d(this.shape, i), this.outline.geometry = new r.EdgesGeometry(this.makerObject.geometry);
328
+ const t = this.shape.extractPoints(10).shape.slice(0, -1), s = M(t), o = new r.Vector3(s.x, s.y, i);
328
329
  u(o, this.bottomY), this.tagPosition.copy(o), this.updateTag(), this.plugin.five.needsRender = !0;
329
330
  }
330
331
  /** 更改标注标签的显示层级
@@ -335,28 +336,28 @@ class Qt {
335
336
  * - 标签 A <- 标签 B <- 相机: 标签 A 在标签 B 的后面
336
337
  * 但是当前元素是无法感知到这种变化的,所以需要通过父元素调用这个方法来更新标签的层级。
337
338
  */
338
- setTagZIndex(e) {
339
+ setTagZIndex(i) {
339
340
  var t;
340
- this.tagZIndex !== e && ((t = this.tagApp) == null || t.$set({ zIndex: e }));
341
+ this.tagZIndex !== i && ((t = this.tagApp) == null || t.$set({ zIndex: i }));
341
342
  }
342
343
  }
343
- function d(n, e) {
344
+ function d(n, i) {
344
345
  return new r.ExtrudeBufferGeometry(n, {
345
- depth: e,
346
+ depth: i,
346
347
  bevelEnabled: !1
347
348
  });
348
349
  }
349
- function S(n, e) {
350
+ function S(n, i) {
350
351
  return new r.MeshBasicMaterial({
351
352
  color: n,
352
- opacity: e,
353
+ opacity: i,
353
354
  transparent: !0
354
355
  });
355
356
  }
356
- function u(n, e) {
357
- const t = new r.Matrix4(), s = new r.Matrix4().makeRotationX(Math.PI / 2), o = new r.Matrix4().makeTranslation(0, 0, -e), h = new r.Matrix4().makeScale(1, 1, -1);
357
+ function u(n, i) {
358
+ const t = new r.Matrix4(), s = new r.Matrix4().makeRotationX(Math.PI / 2), o = new r.Matrix4().makeTranslation(0, 0, -i), h = new r.Matrix4().makeScale(1, 1, -1);
358
359
  t.multiply(s), t.multiply(o), t.multiply(h), n.applyMatrix4(t);
359
360
  }
360
361
  export {
361
- Qt as AreaMakerItem
362
+ ti as AreaMakerItem
362
363
  };
@@ -24,6 +24,7 @@ import "../shared-utils/three/core/Five_LineMaterial2.js";
24
24
  import "../shared-utils/three/core/Sphere.js";
25
25
  import "../shared-utils/three/blink.js";
26
26
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
27
+ import "../vendor/earcut/src/earcut.js";
27
28
  import { DEFAULT_STATIC_PREFIX as j } from "../shared-utils/url/defaultUrls.js";
28
29
  import "../shared-utils/five/FivePuppet.js";
29
30
  import "../shared-utils/positionToVector3.js";
@@ -78,7 +79,7 @@ import "../Sculpt/utils/three/rayOnLine.js";
78
79
  import "../vendor/animejs/lib/anime.es.js";
79
80
  import "@realsee/five";
80
81
  const f = "v2.0.1", E = `CSS3DRenderPlugin@${f}`;
81
- class Xe extends T {
82
+ class ke extends T {
82
83
  constructor(e) {
83
84
  super();
84
85
  n(this, "five");
@@ -185,5 +186,5 @@ class Xe extends T {
185
186
  }
186
187
  export {
187
188
  E as PLUGIN_NAME,
188
- Xe as default
189
+ ke as default
189
190
  };
@@ -1,5 +1,5 @@
1
1
  import o from "./Controller.js";
2
- import { CSS3DRender as Dr } from "./utils/three/CSS3DRender.js";
2
+ import { CSS3DRender as Rr } from "./utils/three/CSS3DRender.js";
3
3
  import "./utils/generateBehindFiveElement.js";
4
4
  import "../shared-utils/tag.js";
5
5
  import "../shared-utils/positionToVector3.js";
@@ -36,6 +36,7 @@ import "../shared-utils/three/blink.js";
36
36
  import "../vendor/animejs/lib/anime.es.js";
37
37
  import "../shared-utils/util.js";
38
38
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
39
+ import "../vendor/earcut/src/earcut.js";
39
40
  import "../shared-utils/five/FivePuppet.js";
40
41
  import "@realsee/five";
41
42
  import "../shared-utils/three/PointSelector/utils/html.js";
@@ -65,9 +66,9 @@ import "../shared-utils/url/defaultUrls.js";
65
66
  import "./utils/three/CSS3DScene.js";
66
67
  import "./utils/getAllCSS3DObject.js";
67
68
  import "./utils/three/CSS3DGroup.js";
68
- const sr = (r) => new o(r);
69
+ const ur = (r) => new o(r);
69
70
  export {
70
- Dr as CSS3DRender,
71
- sr as CSS3DRenderPlugin,
72
- sr as default
71
+ Rr as CSS3DRender,
72
+ ur as CSS3DRenderPlugin,
73
+ ur as default
73
74
  };
@@ -19,6 +19,7 @@ import "../../../shared-utils/three/core/Sphere.js";
19
19
  import "../../../shared-utils/three/blink.js";
20
20
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
21
21
  import "./CSS3DRender.js";
22
+ import "../../../vendor/earcut/src/earcut.js";
22
23
  import "../../../shared-utils/five/FivePuppet.js";
23
24
  import "../../../shared-utils/positionToVector3.js";
24
25
  import "../../../shared-utils/five/vector3ToScreen.js";
@@ -67,7 +68,7 @@ import "../getAllCSS3DObject.js";
67
68
  import "./CSS3DGroup.js";
68
69
  import "@realsee/five";
69
70
  const $ = 1, W = `CSS3DObjectPlus@${$}`, k = 216e-5, z = 3e-3;
70
- class ii extends T {
71
+ class ei extends T {
71
72
  constructor(t) {
72
73
  var x, b, w, g, V;
73
74
  if (O(t.cornerPoints) && O(t.width))
@@ -173,7 +174,7 @@ class ii extends T {
173
174
  }
174
175
  }
175
176
  export {
176
- ii as CSS3DObjectPlus,
177
+ ei as CSS3DObjectPlus,
177
178
  z as DefaultRatio,
178
179
  k as MinRatio
179
180
  };
@@ -83,6 +83,7 @@ import "../../../shared-utils/three/blink.js";
83
83
  import "../../../vendor/animejs/lib/anime.es.js";
84
84
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
85
85
  import "./CSS3DRender.js";
86
+ import "../../../vendor/earcut/src/earcut.js";
86
87
  import "../../../shared-utils/five/FivePuppet.js";
87
88
  import "@realsee/five";
88
89
  import "./CSS3DSprite.js";
@@ -39,6 +39,7 @@ import "../shared-utils/three/core/Sphere.js";
39
39
  import "../shared-utils/three/blink.js";
40
40
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
41
41
  import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
42
+ import "../vendor/earcut/src/earcut.js";
42
43
  import { equal as L } from "../shared-utils/equal.js";
43
44
  import "../shared-utils/five/FivePuppet.js";
44
45
  import { objectAssignDeepExports as C } from "../vendor/object-assign-deep/objectAssignDeep.js";
@@ -96,8 +97,8 @@ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
96
97
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
97
98
  import "@realsee/five";
98
99
  import "../shared-utils/isTruelyObject.js";
99
- const g = "CruisePlugin", p = `${g}`, qe = (a) => `${p}--${a}`;
100
- class Be extends y {
100
+ const g = "CruisePlugin", p = `${g}`, Be = (a) => `${p}--${a}`;
101
+ class Fe extends y {
101
102
  constructor(e, t) {
102
103
  super(e, t);
103
104
  o(this, "state", {
@@ -272,6 +273,6 @@ class Be extends y {
272
273
  }
273
274
  }
274
275
  export {
275
- Be as default,
276
- qe as pluginFlag
276
+ Fe as default,
277
+ Be as pluginFlag
277
278
  };
@@ -42,6 +42,7 @@ import "../shared-utils/three/core/Sphere.js";
42
42
  import "../shared-utils/three/blink.js";
43
43
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
44
44
  import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
45
+ import "../vendor/earcut/src/earcut.js";
45
46
  import { uuid as A } from "../shared-utils/uuid.js";
46
47
  import "../shared-utils/five/FivePuppet.js";
47
48
  import { getFiveStateOnCurve as v } from "./utils/getFiveStateOnCurve.js";
@@ -303,7 +304,6 @@ import "../Sculpt/Meshes/PolygonWithEdge.js";
303
304
  import "../Sculpt/Meshes/Polygon.js";
304
305
  import "../shared-utils/three/generatePolygonGeometry.js";
305
306
  import "../shared-utils/three/earcut3D.js";
306
- import "../vendor/earcut/src/earcut.js";
307
307
  import "../PanoMeasurePlugin/utils/isIntersecting.js";
308
308
  import "../Sculpt/utils/three/ColoredMesh.js";
309
309
  import "../shared-utils/three/geometryUtil.js";
@@ -48,6 +48,7 @@ import "../shared-utils/three/core/Sphere.js";
48
48
  import "../shared-utils/three/blink.js";
49
49
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
50
50
  import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
51
+ import "../vendor/earcut/src/earcut.js";
51
52
  import "../shared-utils/five/FivePuppet.js";
52
53
  import "../GuideLinePlugin/Controller.js";
53
54
  import "../base/BasePluginWithData.js";
@@ -289,7 +290,6 @@ import "../Sculpt/Meshes/PolygonWithEdge.js";
289
290
  import "../Sculpt/Meshes/Polygon.js";
290
291
  import "../shared-utils/three/generatePolygonGeometry.js";
291
292
  import "../shared-utils/three/earcut3D.js";
292
- import "../vendor/earcut/src/earcut.js";
293
293
  import "../PanoMeasurePlugin/utils/isIntersecting.js";
294
294
  import "../Sculpt/utils/three/ColoredMesh.js";
295
295
  import "../shared-utils/three/geometryUtil.js";
@@ -62,6 +62,7 @@ import "../shared-utils/three/core/Line2.js";
62
62
  import "../shared-utils/three/core/LineMaterial2.js";
63
63
  import "../Sculpt/utils/unit.js";
64
64
  import "../Sculpt/utils/renderDom.js";
65
+ import "../vendor/earcut/src/earcut.js";
65
66
  import "../shared-utils/five/FivePuppet.js";
66
67
  import "@realsee/five";
67
68
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
@@ -275,7 +276,6 @@ import "../Sculpt/Meshes/PolygonWithEdge.js";
275
276
  import "../Sculpt/Meshes/Polygon.js";
276
277
  import "../shared-utils/three/generatePolygonGeometry.js";
277
278
  import "../shared-utils/three/earcut3D.js";
278
- import "../vendor/earcut/src/earcut.js";
279
279
  import "../PanoMeasurePlugin/utils/isIntersecting.js";
280
280
  import "../Sculpt/utils/three/ColoredMesh.js";
281
281
  import "../shared-utils/three/geometryUtil.js";
@@ -40,6 +40,7 @@ import "../shared-utils/three/core/Sphere.js";
40
40
  import "../shared-utils/three/blink.js";
41
41
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
42
42
  import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
43
+ import "../vendor/earcut/src/earcut.js";
43
44
  import { CURRENT_PANO_IMAGE_DEFAULT_IMAGE as P } from "../shared-utils/url/defaultUrls.js";
44
45
  import { equal as w } from "../shared-utils/equal.js";
45
46
  import "../shared-utils/five/FivePuppet.js";
@@ -98,7 +99,7 @@ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
98
99
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
99
100
  import "@realsee/five";
100
101
  import "../shared-utils/isTruelyObject.js";
101
- class Ge extends A {
102
+ class qe extends A {
102
103
  constructor(e, i) {
103
104
  super(e);
104
105
  // ==================== public properties ====================
@@ -329,5 +330,5 @@ class Ge extends A {
329
330
  }
330
331
  }
331
332
  export {
332
- Ge as CurrentPanoImagePluginController
333
+ qe as CurrentPanoImagePluginController
333
334
  };
@@ -57,6 +57,7 @@ import "../shared-utils/three/core/Line2.js";
57
57
  import "../shared-utils/three/core/LineMaterial2.js";
58
58
  import "../Sculpt/utils/unit.js";
59
59
  import "../Sculpt/utils/renderDom.js";
60
+ import "../vendor/earcut/src/earcut.js";
60
61
  import "../shared-utils/five/FivePuppet.js";
61
62
  import "@realsee/five";
62
63
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
@@ -71,8 +72,8 @@ import "../shared-utils/animationFrame/index.js";
71
72
  import "../shared-utils/equal.js";
72
73
  import "../shared-utils/isTruelyObject.js";
73
74
  import "../shared-utils/three/loadTexture.js";
74
- const hr = (r, o) => new t(r, o);
75
+ const jr = (r, o) => new t(r, o);
75
76
  export {
76
- hr as CurrentPanoImagePlugin,
77
- hr as default
77
+ jr as CurrentPanoImagePlugin,
78
+ jr as default
78
79
  };
@@ -41,6 +41,7 @@ import "../shared-utils/three/core/Sphere.js";
41
41
  import "../shared-utils/three/blink.js";
42
42
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
43
43
  import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
44
+ import "../vendor/earcut/src/earcut.js";
44
45
  import { uuid as H } from "../shared-utils/uuid.js";
45
46
  import { GUIDELINE_WHITE_ARROW_TEXTURE as j, GUIDELINE_DEFAULT_ARROW_TEXTURE as F } from "../shared-utils/url/defaultUrls.js";
46
47
  import { replaceStaticPrefix as g } from "../shared-utils/url/replace-static-prefix.js";
@@ -300,7 +301,6 @@ import "../Sculpt/Meshes/PolygonWithEdge.js";
300
301
  import "../Sculpt/Meshes/Polygon.js";
301
302
  import "../shared-utils/three/generatePolygonGeometry.js";
302
303
  import "../shared-utils/three/earcut3D.js";
303
- import "../vendor/earcut/src/earcut.js";
304
304
  import "../PanoMeasurePlugin/utils/isIntersecting.js";
305
305
  import "../Sculpt/utils/three/ColoredMesh.js";
306
306
  import "../shared-utils/three/geometryUtil.js";
@@ -71,6 +71,7 @@ import "../shared-utils/three/core/Line2.js";
71
71
  import "../shared-utils/three/core/LineMaterial2.js";
72
72
  import "../Sculpt/utils/unit.js";
73
73
  import "../Sculpt/utils/renderDom.js";
74
+ import "../vendor/earcut/src/earcut.js";
74
75
  import "../shared-utils/five/FivePuppet.js";
75
76
  import "@realsee/five";
76
77
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
@@ -269,7 +270,6 @@ import "../Sculpt/Meshes/PolygonWithEdge.js";
269
270
  import "../Sculpt/Meshes/Polygon.js";
270
271
  import "../shared-utils/three/generatePolygonGeometry.js";
271
272
  import "../shared-utils/three/earcut3D.js";
272
- import "../vendor/earcut/src/earcut.js";
273
273
  import "../PanoMeasurePlugin/utils/isIntersecting.js";
274
274
  import "../Sculpt/utils/three/ColoredMesh.js";
275
275
  import "../shared-utils/three/geometryUtil.js";