@realsee/dnalogel 3.77.5 → 3.77.7

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 (145) hide show
  1. package/CHANGELOG.md +17 -11
  2. package/dist/PanoTagPlugin/controller/Tag/BaseTag.d.ts +5 -1
  3. package/dist/PanoTagPlugin/controller/Tag/BoxTag.d.ts +119 -0
  4. package/dist/PanoTagPlugin/controller/Tag/MaskTag.d.ts +257 -0
  5. package/dist/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +10 -0
  6. package/dist/PanoTagPlugin/controller/Tag/PolygonTag.d.ts +112 -0
  7. package/dist/PanoTagPlugin/controller/TagRender.d.ts +1 -1
  8. package/dist/PanoTagPlugin/controller/index.d.ts +55 -2
  9. package/dist/PanoTagPlugin/typings/controller.d.ts +10 -0
  10. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +8 -3
  11. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +50 -1
  12. package/dist/PanoTagPlugin/utils/sculptDataToBoxPosition.d.ts +6 -0
  13. package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +6 -0
  14. package/dist/PanoTagPlugin/utils/tagPosition.d.ts +12 -3
  15. package/dist/Sculpt/Meshes/Line.d.ts +4 -0
  16. package/dist/index.cjs.js +178 -95
  17. package/dist/index.js +11378 -9801
  18. package/dist/index.umd.js +173 -90
  19. package/dist/shared-utils/five/getFiveFromParentChain.d.ts +7 -0
  20. package/libs/AreaMakerPlugin/Controller.js +3 -2
  21. package/libs/AreaMakerPlugin/index.js +3 -2
  22. package/libs/AreaMakerPlugin/utils/Item.js +3 -2
  23. package/libs/CSS3DRenderPlugin/Controller.js +3 -2
  24. package/libs/CSS3DRenderPlugin/index.js +6 -5
  25. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +39 -38
  26. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +10 -9
  27. package/libs/CruisePlugin/BaseController.js +5 -4
  28. package/libs/CruisePlugin/Move.js +8 -2
  29. package/libs/CruisePlugin/Work.js +8 -2
  30. package/libs/CruisePlugin/index.js +12 -6
  31. package/libs/CurrentPanoImagePlugin/Controller.js +15 -14
  32. package/libs/CurrentPanoImagePlugin/index.js +4 -3
  33. package/libs/GuideLinePlugin/Controller.js +10 -4
  34. package/libs/GuideLinePlugin/GuideLineItem.js +8 -2
  35. package/libs/GuideLinePlugin/GuideLineModeItem.js +8 -2
  36. package/libs/GuideLinePlugin/index.js +12 -6
  37. package/libs/MeasurePlugin/Controller.js +11 -10
  38. package/libs/MeasurePlugin/index.js +5 -4
  39. package/libs/MeasurePlugin/utils/MeasureMesh.js +3 -2
  40. package/libs/ModelChassisCompassPlugin/Plugin.js +4 -3
  41. package/libs/ModelChassisCompassPlugin/index.js +1 -0
  42. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +6 -5
  43. package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
  44. package/libs/ModelMakerPlugin/Controller.js +3 -2
  45. package/libs/ModelMakerPlugin/index.js +3 -2
  46. package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
  47. package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
  48. package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
  49. package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
  50. package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
  51. package/libs/ModelTVVideoPlugin/index.js +3 -2
  52. package/libs/ModelViewPlugin/Plugin.js +20 -19
  53. package/libs/ModelViewPlugin/index.js +1 -0
  54. package/libs/Object3DHelperPlugin/Controller.js +3 -2
  55. package/libs/Object3DHelperPlugin/index.js +6 -5
  56. package/libs/PanoCompassPlugin/Controller.js +3 -2
  57. package/libs/PanoCompassPlugin/index.js +4 -3
  58. package/libs/PanoDoorLabelPlugin/Controller.js +24 -23
  59. package/libs/PanoDoorLabelPlugin/index.js +4 -3
  60. package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
  61. package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
  62. package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
  63. package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
  64. package/libs/PanoMeasurePlugin/Controller/index.js +3 -2
  65. package/libs/PanoMeasurePlugin/Model/area.js +3 -2
  66. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -0
  67. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +16 -15
  68. package/libs/PanoMeasurePlugin/index.js +14 -13
  69. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
  70. package/libs/PanoRulerProPlugin/Controller.js +3 -2
  71. package/libs/PanoRulerProPlugin/RulerItems.js +42 -41
  72. package/libs/PanoRulerProPlugin/index.js +4 -3
  73. package/libs/PanoSpatialTagPlugin/Plugin.js +34 -33
  74. package/libs/PanoSpatialTagPlugin/index.js +1 -0
  75. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -2
  76. package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +3 -2
  77. package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +3 -2
  78. package/libs/PanoTagPlugin/Components/Common/TagPopover/index.js +3 -2
  79. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
  80. package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
  81. package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
  82. package/libs/PanoTagPlugin/Components/TagItem.js +125 -124
  83. package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +5 -1
  84. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +321 -289
  85. package/libs/PanoTagPlugin/controller/Tag/BoxTag.d.ts +119 -0
  86. package/libs/PanoTagPlugin/controller/Tag/BoxTag.js +516 -0
  87. package/libs/PanoTagPlugin/controller/Tag/MaskTag.d.ts +257 -0
  88. package/libs/PanoTagPlugin/controller/Tag/MaskTag.js +816 -0
  89. package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +10 -0
  90. package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.js +94 -0
  91. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
  92. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
  93. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
  94. package/libs/PanoTagPlugin/controller/Tag/PolygonTag.d.ts +112 -0
  95. package/libs/PanoTagPlugin/controller/Tag/PolygonTag.js +479 -0
  96. package/libs/PanoTagPlugin/controller/TagRender.d.ts +1 -1
  97. package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
  98. package/libs/PanoTagPlugin/controller/TagUtil.js +22 -19
  99. package/libs/PanoTagPlugin/controller/index.d.ts +55 -2
  100. package/libs/PanoTagPlugin/controller/index.js +243 -129
  101. package/libs/PanoTagPlugin/index.js +17 -11
  102. package/libs/PanoTagPlugin/typings/controller.d.ts +10 -0
  103. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +8 -3
  104. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +50 -1
  105. package/libs/PanoTagPlugin/utils/addDebugPoints.js +27 -13
  106. package/libs/PanoTagPlugin/utils/index.js +29 -26
  107. package/libs/PanoTagPlugin/utils/sculptDataToBoxPosition.d.ts +6 -0
  108. package/libs/PanoTagPlugin/utils/sculptDataToBoxPosition.js +18 -0
  109. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
  110. package/libs/PanoTagPlugin/utils/tag/format.js +3 -2
  111. package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +6 -0
  112. package/libs/PanoTagPlugin/utils/tag/tagCheck.js +26 -14
  113. package/libs/PanoTagPlugin/utils/tagPosition.d.ts +12 -3
  114. package/libs/PanoTagPlugin/utils/tagPosition.js +49 -16
  115. package/libs/PanoVideoPlugin/Controller.js +9 -8
  116. package/libs/PanoVideoPlugin/VideoMeshController.js +3 -2
  117. package/libs/PanoVideoPlugin/index.js +6 -5
  118. package/libs/PipelinePlugin/Controller.js +3 -2
  119. package/libs/PipelinePlugin/index.js +4 -3
  120. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -2
  121. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -2
  122. package/libs/PipelinePlugin/utils/Objects/Pipe.js +1 -0
  123. package/libs/Sculpt/Meshes/Line.d.ts +4 -0
  124. package/libs/Sculpt/Meshes/Line.js +85 -76
  125. package/libs/Sculpt/Meshes/Point.js +28 -28
  126. package/libs/Sculpt/Meshes/Polygon.js +43 -43
  127. package/libs/Sculpt/index.js +1 -1
  128. package/libs/Sculpt/utils/Modules/Cursor.js +7 -7
  129. package/libs/base/BasePlugin.js +1 -1
  130. package/libs/floorplan/FloorplanGuidePlugin/Controller.js +3 -2
  131. package/libs/floorplan/FloorplanGuidePlugin/index.js +4 -3
  132. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -2
  133. package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -3
  134. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -2
  135. package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -3
  136. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -2
  137. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -3
  138. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -2
  139. package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -3
  140. package/libs/index.js +164 -158
  141. package/libs/shared-utils/five/getFiveFromParentChain.d.ts +7 -0
  142. package/libs/shared-utils/five/getFiveFromParentChain.js +15 -0
  143. package/libs/shared-utils/logger.js +1 -1
  144. package/libs/shared-utils/three/PointSelector/utils/PointHelper2.js +1 -0
  145. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ import type { Five } from '@realsee/five';
2
+ import type { Object3D } from 'three';
3
+ /**
4
+ * 从 Object3D 的父级链向上遍历,查找 __five__ 或 __sculpt__.five
5
+ * 用于在场景树中正确获取渲染该对象的 Five 实例
6
+ */
7
+ export declare function getFiveFromParentChain(object: Object3D): Five | undefined;
@@ -81,6 +81,7 @@ import "../shared-utils/three/IObject3D.js";
81
81
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
82
82
  import "../shared-utils/three/applyObjectMatrixWorld.js";
83
83
  import "../shared-utils/util.js";
84
+ import "../shared-utils/five/getFiveFromParentChain.js";
84
85
  import "../shared-utils/three/core/LineGeometry.js";
85
86
  import "../shared-utils/three/core/LineMaterial.js";
86
87
  import "../shared-utils/three/core/Line2.js";
@@ -111,7 +112,7 @@ import "../components/AreaLabel/Assets/fontSize.js";
111
112
  import "../shared-utils/px2rem.js";
112
113
  import "../shared-utils/math/planimetry.js";
113
114
  import "../shared-utils/fontSize.js";
114
- class oe extends k {
115
+ class se extends k {
115
116
  /** AreaMakerPlugin
116
117
  * @param `five` `<Five>` Five 实例
117
118
  * @param `params` `<PluginType.Params> | <undefined>` 插件初始化参数
@@ -386,5 +387,5 @@ class oe extends k {
386
387
  }
387
388
  }
388
389
  export {
389
- oe as Controller
390
+ se as Controller
390
391
  };
@@ -55,6 +55,7 @@ import "../Sculpt/typings/style.js";
55
55
  import "../shared-utils/three/IObject3D.js";
56
56
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
57
57
  import "../shared-utils/three/applyObjectMatrixWorld.js";
58
+ import "../shared-utils/five/getFiveFromParentChain.js";
58
59
  import "../shared-utils/three/core/LineGeometry.js";
59
60
  import "../shared-utils/three/core/LineMaterial.js";
60
61
  import "../shared-utils/three/core/Line2.js";
@@ -83,7 +84,7 @@ import "../components/AreaLabel/Assets/fontSize.js";
83
84
  import "../shared-utils/px2rem.js";
84
85
  import "../shared-utils/math/planimetry.js";
85
86
  import "../shared-utils/fontSize.js";
86
- const Gr = (r, o) => new t(r, o);
87
+ const Hr = (r, o) => new t(r, o);
87
88
  export {
88
- Gr as AreaMakerPlugin
89
+ Hr as AreaMakerPlugin
89
90
  };
@@ -55,6 +55,7 @@ import "../../shared-utils/three/IObject3D.js";
55
55
  import "../../Sculpt/utils/Meshes/getLengthHTML.js";
56
56
  import "../../shared-utils/three/applyObjectMatrixWorld.js";
57
57
  import "../../shared-utils/util.js";
58
+ import "../../shared-utils/five/getFiveFromParentChain.js";
58
59
  import "../../shared-utils/three/core/LineGeometry.js";
59
60
  import "../../shared-utils/three/core/LineMaterial.js";
60
61
  import "../../shared-utils/three/core/Line2.js";
@@ -89,7 +90,7 @@ class P extends y {
89
90
  this.areaMakerItem.makerObject.raycast(t, s);
90
91
  }
91
92
  }
92
- class ti {
93
+ class ii {
93
94
  constructor(i, t) {
94
95
  e(this, "id");
95
96
  /** 标注名称 */
@@ -359,5 +360,5 @@ function u(n, i) {
359
360
  t.multiply(s), t.multiply(o), t.multiply(h), n.applyMatrix4(t);
360
361
  }
361
362
  export {
362
- ti as AreaMakerItem
363
+ ii as AreaMakerItem
363
364
  };
@@ -64,6 +64,7 @@ import "../Sculpt/typings/style.js";
64
64
  import "../shared-utils/three/IObject3D.js";
65
65
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
66
66
  import "../shared-utils/three/applyObjectMatrixWorld.js";
67
+ import "../shared-utils/five/getFiveFromParentChain.js";
67
68
  import "../shared-utils/three/core/LineGeometry.js";
68
69
  import "../shared-utils/three/core/LineMaterial.js";
69
70
  import "../shared-utils/three/core/Line2.js";
@@ -79,7 +80,7 @@ import "../Sculpt/utils/three/rayOnLine.js";
79
80
  import "../vendor/animejs/lib/anime.es.js";
80
81
  import "@realsee/five";
81
82
  const f = "v2.0.1", E = `CSS3DRenderPlugin@${f}`;
82
- class ke extends T {
83
+ class qe extends T {
83
84
  constructor(e) {
84
85
  super();
85
86
  n(this, "five");
@@ -186,5 +187,5 @@ class ke extends T {
186
187
  }
187
188
  export {
188
189
  E as PLUGIN_NAME,
189
- ke as default
190
+ qe as default
190
191
  };
@@ -1,5 +1,5 @@
1
1
  import o from "./Controller.js";
2
- import { CSS3DRender as Rr } from "./utils/three/CSS3DRender.js";
2
+ import { CSS3DRender as cr } 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";
@@ -50,6 +50,7 @@ import "../Sculpt/typings/style.js";
50
50
  import "../shared-utils/three/IObject3D.js";
51
51
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
52
52
  import "../shared-utils/three/applyObjectMatrixWorld.js";
53
+ import "../shared-utils/five/getFiveFromParentChain.js";
53
54
  import "../shared-utils/three/core/LineGeometry.js";
54
55
  import "../shared-utils/three/core/LineMaterial.js";
55
56
  import "../shared-utils/three/core/Line2.js";
@@ -66,9 +67,9 @@ import "../shared-utils/url/defaultUrls.js";
66
67
  import "./utils/three/CSS3DScene.js";
67
68
  import "./utils/getAllCSS3DObject.js";
68
69
  import "./utils/three/CSS3DGroup.js";
69
- const ur = (r) => new o(r);
70
+ const xr = (r) => new o(r);
70
71
  export {
71
- Rr as CSS3DRender,
72
- ur as CSS3DRenderPlugin,
73
- ur as default
72
+ cr as CSS3DRender,
73
+ xr as CSS3DRenderPlugin,
74
+ xr as default
74
75
  };
@@ -1,6 +1,6 @@
1
1
  var A = Object.defineProperty;
2
- var D = (c, p, t) => p in c ? A(c, p, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[p] = t;
3
- var o = (c, p, t) => (D(c, typeof p != "symbol" ? p + "" : p, t), t);
2
+ var D = (m, p, t) => p in m ? A(m, p, { enumerable: !0, configurable: !0, writable: !0, value: t }) : m[p] = t;
3
+ var e = (m, p, t) => (D(m, typeof p != "symbol" ? p + "" : p, t), t);
4
4
  import { Vector3 as n } from "three";
5
5
  import { even as E } from "../../../shared-utils/even.js";
6
6
  import { Subscribe as N } from "../../../shared-utils/Subscribe.js";
@@ -50,6 +50,7 @@ import "../../../shared-utils/three/IObject3D.js";
50
50
  import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
51
51
  import "../../../shared-utils/three/applyObjectMatrixWorld.js";
52
52
  import "../../../shared-utils/util.js";
53
+ import "../../../shared-utils/five/getFiveFromParentChain.js";
53
54
  import "../../../shared-utils/three/core/LineGeometry.js";
54
55
  import "../../../shared-utils/three/core/LineMaterial.js";
55
56
  import "../../../shared-utils/three/core/Line2.js";
@@ -74,69 +75,69 @@ class ei extends T {
74
75
  if (O(t.cornerPoints) && O(t.width))
75
76
  throw new Error("cornerPoints and width cannot be both empty");
76
77
  const i = (x = t.container) != null ? x : document.createElement("div"), r = (b = t.cornerPoints) != null ? b : (() => {
77
- const e = t.width / 2;
78
+ const o = t.width / 2;
78
79
  return [
79
- new n(-e, e, 0),
80
- new n(-e, -e, 0),
81
- new n(e, -e, 0),
82
- new n(e, e, 0)
80
+ new n(-o, o, 0),
81
+ new n(-o, -o, 0),
82
+ new n(o, -o, 0),
83
+ new n(o, o, 0)
83
84
  ];
84
- })(), s = (w = t.ratio) != null ? w : z, P = (g = t.dpr) != null ? g : 1, F = (V = t.pointerEvents) != null ? V : "auto", h = Math.max(k, s), l = r[0].distanceTo(r[1]), d = r[1].distanceTo(r[2]), m = E(l / s * P), a = E(d / s * P), y = R(...r);
85
+ })(), s = (w = t.ratio) != null ? w : z, P = (g = t.dpr) != null ? g : 1, F = (V = t.pointerEvents) != null ? V : "auto", h = Math.max(k, s), l = r[0].distanceTo(r[1]), d = r[1].distanceTo(r[2]), c = E(l / s * P), a = E(d / s * P), y = R(...r);
85
86
  let u;
86
87
  if (h === s)
87
- i.style.width = `${m}px`, i.style.height = `${a}px`, u = i;
88
+ i.style.width = `${c}px`, i.style.height = `${a}px`, u = i;
88
89
  else {
89
- const e = document.createElement("div");
90
- e.style.width = `${m}px`, e.style.height = `${a}px`, e.style.pointerEvents = "none";
90
+ const o = document.createElement("div");
91
+ o.style.width = `${c}px`, o.style.height = `${a}px`, o.style.pointerEvents = "none";
91
92
  const S = s / h;
92
- i.style.position = "absolute", i.style.left = "0", i.style.top = "0", i.style.width = `${S * m}px`, i.style.height = `${S * a}px`, e.appendChild(i), u = e;
93
+ i.style.position = "absolute", i.style.left = "0", i.style.top = "0", i.style.width = `${S * c}px`, i.style.height = `${S * a}px`, o.appendChild(i), u = o;
93
94
  }
94
95
  super(u);
95
- o(this, "version", $);
96
- o(this, "isCSS3DObjectPlus", !0);
97
- o(this, "isCSS3DObject", !0);
98
- o(this, "name", W);
99
- o(this, "container");
100
- o(this, "width");
101
- o(this, "height");
102
- o(this, "domWidthPx");
103
- o(this, "domHeightPx");
104
- o(this, "cornerPoints");
105
- o(this, "centerPosition");
106
- o(this, "ratio");
107
- o(this, "mode", "front");
108
- o(this, "hooks", new N());
109
- o(this, "opacityMesh");
110
- o(this, "selfVisible", !0);
111
- o(this, "setVisible", (t) => {
96
+ e(this, "version", $);
97
+ e(this, "isCSS3DObjectPlus", !0);
98
+ e(this, "isCSS3DObject", !0);
99
+ e(this, "name", W);
100
+ e(this, "container");
101
+ e(this, "width");
102
+ e(this, "height");
103
+ e(this, "domWidthPx");
104
+ e(this, "domHeightPx");
105
+ e(this, "cornerPoints");
106
+ e(this, "centerPosition");
107
+ e(this, "ratio");
108
+ e(this, "mode", "front");
109
+ e(this, "hooks", new N());
110
+ e(this, "opacityMesh");
111
+ e(this, "selfVisible", !0);
112
+ e(this, "setVisible", (t) => {
112
113
  this.selfVisible = t, this.visible = L(this.parent) && this.selfVisible, this.opacityMesh && (this.opacityMesh.visible = this.visible);
113
114
  });
114
- o(this, "updateVisible", () => {
115
+ e(this, "updateVisible", () => {
115
116
  this.setVisible(this.selfVisible);
116
117
  });
117
118
  /**
118
119
  * @description: 生成透明Mesh
119
120
  */
120
- o(this, "createOpacityMesh", (t) => {
121
+ e(this, "createOpacityMesh", (t) => {
121
122
  const { domWidthPx: i, domHeightPx: r } = t, s = new Q(i, r);
122
123
  return s.position.copy(t.position), s.rotation.copy(t.rotation), s.scale.copy(t.scale), s;
123
124
  });
124
125
  if (i.style.pointerEvents = F, Object.assign(i.style, t.style), this.scale.set(h, h, h), this.cornerPoints = r, this.ratio = s, this.container = i, t.mode && (this.mode = t.mode), h === s)
125
- this.width = l, this.height = d, this.domWidthPx = m, this.domHeightPx = a, this.centerPosition = y;
126
+ this.width = l, this.height = d, this.domWidthPx = c, this.domHeightPx = a, this.centerPosition = y;
126
127
  else {
127
- const e = s / h;
128
- this.width = e * l, this.height = e * d, this.domWidthPx = e * m, this.domHeightPx = e * a, this.centerPosition = new n().subVectors(y, r[0]).multiplyScalar(e).add(r[0]);
128
+ const o = s / h;
129
+ this.width = o * l, this.height = o * d, this.domWidthPx = o * c, this.domHeightPx = o * a, this.centerPosition = new n().subVectors(y, r[0]).multiplyScalar(o).add(r[0]);
129
130
  }
130
131
  i.classList.add(`${W}__container`);
131
132
  const C = new n().subVectors(r[1], r[0]), M = new n().subVectors(r[3], r[0]), H = new n().crossVectors(C, M).normalize();
132
133
  this.lookAt(H);
133
134
  const f = this.up.clone().applyQuaternion(this.quaternion), v = M.clone(), j = new n().crossVectors(f, v).normalize();
134
135
  this.rotateOnWorldAxis(j, f.angleTo(v)), this.position.copy(y), this.addEventListener("added", () => {
135
- var e;
136
- this.mode === "front" && ((e = this.opacityMesh) == null || e.removeFromParent());
136
+ var o;
137
+ this.mode === "front" && ((o = this.opacityMesh) == null || o.removeFromParent());
137
138
  }), this.addEventListener("removed", () => {
138
- var e;
139
- (e = this.opacityMesh) == null || e.removeFromParent();
139
+ var o;
140
+ (o = this.opacityMesh) == null || o.removeFromParent();
140
141
  });
141
142
  }
142
143
  removeFromParent() {
@@ -14,18 +14,18 @@ var n = (o, e, t) => (C(o, typeof e != "symbol" ? e + "" : e, t), t);
14
14
  var l = (o, e, t) => new Promise((r, s) => {
15
15
  var d = (c) => {
16
16
  try {
17
- m(t.next(c));
17
+ u(t.next(c));
18
18
  } catch (a) {
19
19
  s(a);
20
20
  }
21
- }, u = (c) => {
21
+ }, m = (c) => {
22
22
  try {
23
- m(t.throw(c));
23
+ u(t.throw(c));
24
24
  } catch (a) {
25
25
  s(a);
26
26
  }
27
- }, m = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(d, u);
28
- m((t = t.apply(o, e)).next());
27
+ }, u = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(d, m);
28
+ u((t = t.apply(o, e)).next());
29
29
  });
30
30
  import { anyPositionToVector3 as q } from "../../../shared-utils/positionToVector3.js";
31
31
  import { ICSS3DRenderer as B } from "../../../shared-utils/CSS3DRender/CSS3DRenderer.js";
@@ -69,6 +69,7 @@ import "../../../shared-utils/three/IObject3D.js";
69
69
  import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
70
70
  import "../../../shared-utils/three/applyObjectMatrixWorld.js";
71
71
  import "../../../shared-utils/util.js";
72
+ import "../../../shared-utils/five/getFiveFromParentChain.js";
72
73
  import "../../../shared-utils/three/core/LineGeometry.js";
73
74
  import "@realsee/five/line";
74
75
  import "../../../shared-utils/three/core/LineMaterial.js";
@@ -177,9 +178,9 @@ class y {
177
178
  })(), d = t.map(q);
178
179
  if ((d == null ? void 0 : d.length) < 4)
179
180
  return console.error(`${f}: requires 4 point but params may have fewer`);
180
- const { ratio: u, devicePixelRatio: m, mode: c, autoRender: a, container: O, pointerEvents: F, wrapperStyle: I } = s;
181
+ const { ratio: m, devicePixelRatio: u, mode: c, autoRender: a, container: O, pointerEvents: F, wrapperStyle: I } = s;
181
182
  let b = !1;
182
- const p = this.createObject(d, { ratio: u, dpr: m, container: O, mode: c, pointerEvents: F, wrapperStyle: I });
183
+ const p = this.createObject(d, { ratio: m, dpr: u, container: O, mode: c, pointerEvents: F, wrapperStyle: I });
183
184
  i.css3DObjects.push(p), s.scene && this.setScene(s.scene);
184
185
  const N = () => {
185
186
  if (b)
@@ -297,8 +298,8 @@ class y {
297
298
  console.error(`${f}: scene is required when mode is behind`);
298
299
  return;
299
300
  }
300
- const u = new T(d);
301
- i.behindModeStore.css3DScene = u, i.behindModeStore.scene = d;
301
+ const m = new T(d);
302
+ i.behindModeStore.css3DScene = m, i.behindModeStore.scene = d;
302
303
  }
303
304
  return i.behindModeStore.css3DScene;
304
305
  }
@@ -79,6 +79,7 @@ import "../shared-utils/three/IObject3D.js";
79
79
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
80
80
  import "../shared-utils/three/applyObjectMatrixWorld.js";
81
81
  import "../shared-utils/util.js";
82
+ import "../shared-utils/five/getFiveFromParentChain.js";
82
83
  import "../shared-utils/three/core/LineGeometry.js";
83
84
  import "../shared-utils/three/core/LineMaterial.js";
84
85
  import "../shared-utils/three/core/Line2.js";
@@ -97,8 +98,8 @@ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
97
98
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
98
99
  import "@realsee/five";
99
100
  import "../shared-utils/isTruelyObject.js";
100
- const g = "CruisePlugin", p = `${g}`, Be = (a) => `${p}--${a}`;
101
- class Fe extends y {
101
+ const g = "CruisePlugin", p = `${g}`, Fe = (a) => `${p}--${a}`;
102
+ class He extends y {
102
103
  constructor(e, t) {
103
104
  super(e, t);
104
105
  o(this, "state", {
@@ -280,6 +281,6 @@ class Fe extends y {
280
281
  }
281
282
  }
282
283
  export {
283
- Fe as default,
284
- Be as pluginFlag
284
+ He as default,
285
+ Fe as pluginFlag
285
286
  };
@@ -85,6 +85,7 @@ import "../shared-utils/three/IObject3D.js";
85
85
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
86
86
  import "../shared-utils/three/applyObjectMatrixWorld.js";
87
87
  import "../shared-utils/util.js";
88
+ import "../shared-utils/five/getFiveFromParentChain.js";
88
89
  import "../shared-utils/three/core/LineGeometry.js";
89
90
  import "../shared-utils/three/core/LineMaterial.js";
90
91
  import "../shared-utils/three/core/Line2.js";
@@ -334,6 +335,11 @@ import "../Sculpt/Meshes/Box.js";
334
335
  import "../shared-utils/forReverseEach.js";
335
336
  import "../Sculpt/Objects/Line/index.js";
336
337
  import "../shared-utils/five/getFloorMesh.js";
338
+ import "../PanoTagPlugin/controller/Tag/BoxTag.js";
339
+ import "../PanoTagPlugin/utils/sculptDataToBoxPosition.js";
340
+ import "../PanoTagPlugin/controller/Tag/PolygonTag.js";
341
+ import "../PanoTagPlugin/controller/Tag/MaskTag.js";
342
+ import "../PanoTagPlugin/controller/Tag/MaskTag.shaders.js";
337
343
  import "../PanoTagPlugin/Components/TagContainer.js";
338
344
  import "../PanoTagPlugin/Components/TagItem.js";
339
345
  import "../PanoTagPlugin/Components/Common/TagPoint.js";
@@ -366,7 +372,7 @@ import "./utils/coordinatesToVector.js";
366
372
  import "./utils/safeCall.js";
367
373
  import "./utils/sleep.js";
368
374
  import "../shared-utils/five/fiveLoaded.js";
369
- class Zp extends z {
375
+ class me extends z {
370
376
  constructor(t, r) {
371
377
  var h;
372
378
  super(t, r);
@@ -474,5 +480,5 @@ class Zp extends z {
474
480
  }
475
481
  }
476
482
  export {
477
- Zp as default
483
+ me as default
478
484
  };
@@ -267,6 +267,7 @@ import "../Sculpt/Meshes/Point.js";
267
267
  import "../Sculpt/typings/style.js";
268
268
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
269
269
  import "../shared-utils/three/applyObjectMatrixWorld.js";
270
+ import "../shared-utils/five/getFiveFromParentChain.js";
270
271
  import "../Sculpt/utils/renderDom.js";
271
272
  import "../Sculpt/Meshes/Line.js";
272
273
  import "../shared-utils/three/core/LineGeometry.js";
@@ -320,6 +321,11 @@ import "../Sculpt/Meshes/Box.js";
320
321
  import "../shared-utils/forReverseEach.js";
321
322
  import "../Sculpt/Objects/Line/index.js";
322
323
  import "../shared-utils/five/getFloorMesh.js";
324
+ import "../PanoTagPlugin/controller/Tag/BoxTag.js";
325
+ import "../PanoTagPlugin/utils/sculptDataToBoxPosition.js";
326
+ import "../PanoTagPlugin/controller/Tag/PolygonTag.js";
327
+ import "../PanoTagPlugin/controller/Tag/MaskTag.js";
328
+ import "../PanoTagPlugin/controller/Tag/MaskTag.shaders.js";
323
329
  import "../PanoTagPlugin/Components/TagContainer.js";
324
330
  import "../PanoTagPlugin/Components/TagItem.js";
325
331
  import "../PanoTagPlugin/Components/Common/TagPoint.js";
@@ -366,7 +372,7 @@ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
366
372
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
367
373
  import "./Work.js";
368
374
  import "./utils/coordinatesToVector.js";
369
- class am extends V {
375
+ class dm extends V {
370
376
  constructor(t, i) {
371
377
  super(t, i);
372
378
  C(this, "state", {
@@ -841,5 +847,5 @@ class am extends V {
841
847
  }
842
848
  }
843
849
  export {
844
- am as default
850
+ dm as default
845
851
  };
@@ -1,4 +1,4 @@
1
- import { typing as Tm } from "./typing/index.js";
1
+ import { typing as zm } from "./typing/index.js";
2
2
  import t from "./Work.js";
3
3
  import i from "./Move.js";
4
4
  import "../GuideLinePlugin/index.js";
@@ -56,6 +56,7 @@ import "../Sculpt/typings/style.js";
56
56
  import "../shared-utils/three/IObject3D.js";
57
57
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
58
58
  import "../shared-utils/three/applyObjectMatrixWorld.js";
59
+ import "../shared-utils/five/getFiveFromParentChain.js";
59
60
  import "../shared-utils/three/core/LineGeometry.js";
60
61
  import "../shared-utils/three/core/LineMaterial.js";
61
62
  import "../shared-utils/three/core/Line2.js";
@@ -306,6 +307,11 @@ import "../Sculpt/Meshes/Box.js";
306
307
  import "../shared-utils/forReverseEach.js";
307
308
  import "../Sculpt/Objects/Line/index.js";
308
309
  import "../shared-utils/five/getFloorMesh.js";
310
+ import "../PanoTagPlugin/controller/Tag/BoxTag.js";
311
+ import "../PanoTagPlugin/utils/sculptDataToBoxPosition.js";
312
+ import "../PanoTagPlugin/controller/Tag/PolygonTag.js";
313
+ import "../PanoTagPlugin/controller/Tag/MaskTag.js";
314
+ import "../PanoTagPlugin/controller/Tag/MaskTag.shaders.js";
309
315
  import "../PanoTagPlugin/Components/TagContainer.js";
310
316
  import "../PanoTagPlugin/Components/TagItem.js";
311
317
  import "../PanoTagPlugin/Components/Common/TagPoint.js";
@@ -338,13 +344,13 @@ import "./utils/sleep.js";
338
344
  import "../shared-utils/five/fiveLoaded.js";
339
345
  import "./BaseController.js";
340
346
  import "./utils/getFiveStateOnCurve.js";
341
- const ym = (o, r) => new t(o, r), Mm = (o, r) => new i(o, r);
347
+ const bm = (o, r) => new t(o, r), hm = (o, r) => new i(o, r);
342
348
  export {
343
- ym as CruisePlugin,
349
+ bm as CruisePlugin,
344
350
  t as CruisePluginController,
345
- Tm as CruisePluginTypes,
351
+ zm as CruisePluginTypes,
346
352
  i as MoveController,
347
- Mm as MovePlugin,
353
+ hm as MovePlugin,
348
354
  t as WalkController,
349
- ym as default
355
+ bm as default
350
356
  };
@@ -10,21 +10,21 @@ var f = (n, r, e) => r in n ? g(n, r, { enumerable: !0, configurable: !0, writab
10
10
  return n;
11
11
  };
12
12
  var o = (n, r, e) => (f(n, typeof r != "symbol" ? r + "" : r, e), e);
13
- var u = (n, r, e) => new Promise((i, t) => {
13
+ var m = (n, r, e) => new Promise((i, t) => {
14
14
  var s = (l) => {
15
15
  try {
16
- m(e.next(l));
17
- } catch (p) {
18
- t(p);
16
+ p(e.next(l));
17
+ } catch (u) {
18
+ t(u);
19
19
  }
20
20
  }, d = (l) => {
21
21
  try {
22
- m(e.throw(l));
23
- } catch (p) {
24
- t(p);
22
+ p(e.throw(l));
23
+ } catch (u) {
24
+ t(u);
25
25
  }
26
- }, m = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(s, d);
27
- m((e = e.apply(n, r)).next());
26
+ }, p = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(s, d);
27
+ p((e = e.apply(n, r)).next());
28
28
  });
29
29
  import * as h from "three";
30
30
  import { Controller as A } from "../base/BasePlugin.js";
@@ -81,6 +81,7 @@ import "../shared-utils/three/IObject3D.js";
81
81
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
82
82
  import "../shared-utils/three/applyObjectMatrixWorld.js";
83
83
  import "../shared-utils/util.js";
84
+ import "../shared-utils/five/getFiveFromParentChain.js";
84
85
  import "../shared-utils/three/core/LineGeometry.js";
85
86
  import "../shared-utils/three/core/LineMaterial.js";
86
87
  import "../shared-utils/three/core/Line2.js";
@@ -99,7 +100,7 @@ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
99
100
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
100
101
  import "@realsee/five";
101
102
  import "../shared-utils/isTruelyObject.js";
102
- class qe extends A {
103
+ class Be extends A {
103
104
  constructor(e, i) {
104
105
  super(e);
105
106
  // ==================== public properties ====================
@@ -219,7 +220,7 @@ class qe extends A {
219
220
  * @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
220
221
  */
221
222
  show(e) {
222
- return u(this, null, function* () {
223
+ return m(this, null, function* () {
223
224
  if (this.state.visible)
224
225
  return Promise.resolve();
225
226
  if (this.disposed)
@@ -233,7 +234,7 @@ class qe extends A {
233
234
  * @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
234
235
  */
235
236
  hide(e) {
236
- return u(this, null, function* () {
237
+ return m(this, null, function* () {
237
238
  if (this.state.visible === !1)
238
239
  return;
239
240
  const i = a({ userAction: !0 }, e);
@@ -296,7 +297,7 @@ class qe extends A {
296
297
  }
297
298
  /** 重新加载贴图,调用时会先清除已有的贴图 */
298
299
  reloadTexture(e) {
299
- return u(this, null, function* () {
300
+ return m(this, null, function* () {
300
301
  if (this.mesh.material.map = null, e !== "") {
301
302
  const i = k(e);
302
303
  this.textureLoadingPromise = i;
@@ -330,5 +331,5 @@ class qe extends A {
330
331
  }
331
332
  }
332
333
  export {
333
- qe as CurrentPanoImagePluginController
334
+ Be as CurrentPanoImagePluginController
334
335
  };
@@ -51,6 +51,7 @@ import "../Sculpt/typings/style.js";
51
51
  import "../shared-utils/three/IObject3D.js";
52
52
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
53
53
  import "../shared-utils/three/applyObjectMatrixWorld.js";
54
+ import "../shared-utils/five/getFiveFromParentChain.js";
54
55
  import "../shared-utils/three/core/LineGeometry.js";
55
56
  import "../shared-utils/three/core/LineMaterial.js";
56
57
  import "../shared-utils/three/core/Line2.js";
@@ -72,8 +73,8 @@ import "../shared-utils/animationFrame/index.js";
72
73
  import "../shared-utils/equal.js";
73
74
  import "../shared-utils/isTruelyObject.js";
74
75
  import "../shared-utils/three/loadTexture.js";
75
- const jr = (r, o) => new t(r, o);
76
+ const kr = (r, o) => new t(r, o);
76
77
  export {
77
- jr as CurrentPanoImagePlugin,
78
- jr as default
78
+ kr as CurrentPanoImagePlugin,
79
+ kr as default
79
80
  };
@@ -85,6 +85,7 @@ import "../shared-utils/three/IObject3D.js";
85
85
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
86
86
  import "../shared-utils/three/applyObjectMatrixWorld.js";
87
87
  import "../shared-utils/util.js";
88
+ import "../shared-utils/five/getFiveFromParentChain.js";
88
89
  import "../shared-utils/three/core/LineGeometry.js";
89
90
  import "../shared-utils/three/core/LineMaterial.js";
90
91
  import "../shared-utils/three/core/Line2.js";
@@ -331,6 +332,11 @@ import "../Sculpt/Meshes/Box.js";
331
332
  import "../shared-utils/forReverseEach.js";
332
333
  import "../Sculpt/Objects/Line/index.js";
333
334
  import "../shared-utils/five/getFloorMesh.js";
335
+ import "../PanoTagPlugin/controller/Tag/BoxTag.js";
336
+ import "../PanoTagPlugin/utils/sculptDataToBoxPosition.js";
337
+ import "../PanoTagPlugin/controller/Tag/PolygonTag.js";
338
+ import "../PanoTagPlugin/controller/Tag/MaskTag.js";
339
+ import "../PanoTagPlugin/controller/Tag/MaskTag.shaders.js";
334
340
  import "../PanoTagPlugin/Components/TagContainer.js";
335
341
  import "../PanoTagPlugin/Components/TagItem.js";
336
342
  import "../PanoTagPlugin/Components/Common/TagPoint.js";
@@ -366,8 +372,8 @@ import "../CruisePlugin/utils/coordinatesToVector.js";
366
372
  import "../CruisePlugin/utils/safeCall.js";
367
373
  import "../CruisePlugin/utils/sleep.js";
368
374
  import "../shared-utils/five/fiveLoaded.js";
369
- const _ = "GuideLinePlugin", E = `${_}`, ne = (a) => `${E}--${a}`;
370
- class le extends k {
375
+ const _ = "GuideLinePlugin", E = `${_}`, ce = (a) => `${E}--${a}`;
376
+ class be extends k {
371
377
  constructor(t, i) {
372
378
  super(t, i);
373
379
  d(this, "name", _);
@@ -531,6 +537,6 @@ class le extends k {
531
537
  }
532
538
  }
533
539
  export {
534
- le as default,
535
- ne as pluginFlag
540
+ be as default,
541
+ ce as pluginFlag
536
542
  };
@@ -5,7 +5,7 @@ import "../shared-utils/five/changeMode.js";
5
5
  import "../CruisePlugin/Move.js";
6
6
  import "../CruisePlugin/Work.js";
7
7
  import "../shared-utils/Subscribe.js";
8
- import { GuideLineItem as cp } from "./GuideLineItem/index.js";
8
+ import { GuideLineItem as qp } from "./GuideLineItem/index.js";
9
9
  import "three";
10
10
  import "./utils/createLineGeometry.js";
11
11
  import "../vendor/polyline-normals/index.js";
@@ -65,6 +65,7 @@ import "../Sculpt/typings/style.js";
65
65
  import "../shared-utils/three/IObject3D.js";
66
66
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
67
67
  import "../shared-utils/three/applyObjectMatrixWorld.js";
68
+ import "../shared-utils/five/getFiveFromParentChain.js";
68
69
  import "../shared-utils/three/core/LineGeometry.js";
69
70
  import "../shared-utils/three/core/LineMaterial.js";
70
71
  import "../shared-utils/three/core/Line2.js";
@@ -300,6 +301,11 @@ import "../Sculpt/Meshes/Box.js";
300
301
  import "../shared-utils/forReverseEach.js";
301
302
  import "../Sculpt/Objects/Line/index.js";
302
303
  import "../shared-utils/five/getFloorMesh.js";
304
+ import "../PanoTagPlugin/controller/Tag/BoxTag.js";
305
+ import "../PanoTagPlugin/utils/sculptDataToBoxPosition.js";
306
+ import "../PanoTagPlugin/controller/Tag/PolygonTag.js";
307
+ import "../PanoTagPlugin/controller/Tag/MaskTag.js";
308
+ import "../PanoTagPlugin/controller/Tag/MaskTag.shaders.js";
303
309
  import "../PanoTagPlugin/Components/TagContainer.js";
304
310
  import "../PanoTagPlugin/Components/TagItem.js";
305
311
  import "../PanoTagPlugin/Components/Common/TagPoint.js";
@@ -338,5 +344,5 @@ import "../CruisePlugin/utils/safeCall.js";
338
344
  import "../CruisePlugin/utils/sleep.js";
339
345
  import "../shared-utils/five/fiveLoaded.js";
340
346
  export {
341
- cp as GuideLineItem
347
+ qp as GuideLineItem
342
348
  };