@realsee/dnalogel 3.77.6 → 3.77.8

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 (113) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/Sculpt/Meshes/Line.d.ts +4 -0
  3. package/dist/index.cjs.js +71 -71
  4. package/dist/index.js +3390 -3366
  5. package/dist/index.umd.js +64 -64
  6. package/dist/shared-utils/five/getFiveFromParentChain.d.ts +8 -0
  7. package/libs/AreaMakerPlugin/Controller.js +3 -2
  8. package/libs/AreaMakerPlugin/index.js +3 -2
  9. package/libs/AreaMakerPlugin/utils/Item.js +3 -2
  10. package/libs/CSS3DRenderPlugin/Controller.js +3 -2
  11. package/libs/CSS3DRenderPlugin/index.js +6 -5
  12. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +39 -38
  13. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +10 -9
  14. package/libs/CruisePlugin/BaseController.js +5 -4
  15. package/libs/CruisePlugin/Move.js +3 -2
  16. package/libs/CruisePlugin/Work.js +3 -2
  17. package/libs/CruisePlugin/index.js +7 -6
  18. package/libs/CurrentPanoImagePlugin/Controller.js +15 -14
  19. package/libs/CurrentPanoImagePlugin/index.js +4 -3
  20. package/libs/GuideLinePlugin/Controller.js +5 -4
  21. package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
  22. package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
  23. package/libs/GuideLinePlugin/index.js +7 -6
  24. package/libs/MeasurePlugin/Controller.js +11 -10
  25. package/libs/MeasurePlugin/index.js +5 -4
  26. package/libs/MeasurePlugin/utils/MeasureMesh.js +3 -2
  27. package/libs/ModelChassisCompassPlugin/Plugin.js +4 -3
  28. package/libs/ModelChassisCompassPlugin/index.js +1 -0
  29. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +6 -5
  30. package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
  31. package/libs/ModelMakerPlugin/Controller.js +3 -2
  32. package/libs/ModelMakerPlugin/index.js +3 -2
  33. package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
  34. package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
  35. package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
  36. package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
  37. package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
  38. package/libs/ModelTVVideoPlugin/index.js +3 -2
  39. package/libs/ModelViewPlugin/Plugin.js +20 -19
  40. package/libs/ModelViewPlugin/index.js +1 -0
  41. package/libs/Object3DHelperPlugin/Controller.js +3 -2
  42. package/libs/Object3DHelperPlugin/index.js +6 -5
  43. package/libs/PanoCompassPlugin/Controller.js +3 -2
  44. package/libs/PanoCompassPlugin/index.js +4 -3
  45. package/libs/PanoDoorLabelPlugin/Controller.js +24 -23
  46. package/libs/PanoDoorLabelPlugin/index.js +4 -3
  47. package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
  48. package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
  49. package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
  50. package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
  51. package/libs/PanoMeasurePlugin/Controller/index.js +3 -2
  52. package/libs/PanoMeasurePlugin/Model/area.js +3 -2
  53. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -0
  54. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +16 -15
  55. package/libs/PanoMeasurePlugin/index.js +14 -13
  56. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
  57. package/libs/PanoRulerProPlugin/Controller.js +3 -2
  58. package/libs/PanoRulerProPlugin/RulerItems.js +42 -41
  59. package/libs/PanoRulerProPlugin/index.js +4 -3
  60. package/libs/PanoSpatialTagPlugin/Plugin.js +34 -33
  61. package/libs/PanoSpatialTagPlugin/index.js +1 -0
  62. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -2
  63. package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +3 -2
  64. package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +3 -2
  65. package/libs/PanoTagPlugin/Components/Common/TagPopover/index.js +3 -2
  66. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
  67. package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
  68. package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
  69. package/libs/PanoTagPlugin/Components/TagItem.js +3 -2
  70. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +3 -2
  71. package/libs/PanoTagPlugin/controller/Tag/BoxTag.js +3 -2
  72. package/libs/PanoTagPlugin/controller/Tag/MaskTag.js +1 -0
  73. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
  74. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
  75. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
  76. package/libs/PanoTagPlugin/controller/Tag/PolygonTag.js +3 -2
  77. package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
  78. package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
  79. package/libs/PanoTagPlugin/controller/index.js +30 -29
  80. package/libs/PanoTagPlugin/index.js +12 -11
  81. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
  82. package/libs/PanoTagPlugin/utils/tag/format.js +3 -2
  83. package/libs/PanoVideoPlugin/Controller.js +9 -8
  84. package/libs/PanoVideoPlugin/VideoMeshController.js +3 -2
  85. package/libs/PanoVideoPlugin/index.js +6 -5
  86. package/libs/PipelinePlugin/Controller.js +3 -2
  87. package/libs/PipelinePlugin/index.js +4 -3
  88. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -2
  89. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -2
  90. package/libs/PipelinePlugin/utils/Objects/Pipe.js +1 -0
  91. package/libs/Sculpt/Meshes/Line.d.ts +4 -0
  92. package/libs/Sculpt/Meshes/Line.js +85 -76
  93. package/libs/Sculpt/Meshes/Point.js +28 -28
  94. package/libs/Sculpt/Meshes/Polygon.js +43 -43
  95. package/libs/Sculpt/index.js +1 -1
  96. package/libs/Sculpt/utils/Modules/Cursor.js +7 -7
  97. package/libs/base/BasePlugin.js +1 -1
  98. package/libs/floorplan/FloorplanGuidePlugin/Controller.js +3 -2
  99. package/libs/floorplan/FloorplanGuidePlugin/index.js +4 -3
  100. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -2
  101. package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -3
  102. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -2
  103. package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -3
  104. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -2
  105. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -3
  106. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -2
  107. package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -3
  108. package/libs/index.js +159 -158
  109. package/libs/shared-utils/five/getFiveFromParentChain.d.ts +8 -0
  110. package/libs/shared-utils/five/getFiveFromParentChain.js +20 -0
  111. package/libs/shared-utils/logger.js +1 -1
  112. package/libs/shared-utils/three/PointSelector/utils/PointHelper2.js +1 -0
  113. package/package.json +1 -1
@@ -0,0 +1,8 @@
1
+ import type { Five } from '@realsee/five';
2
+ import type { Object3D } from 'three';
3
+ /**
4
+ * 从 Object3D 的父级链向上遍历,查找 __five__ 或 __sculpt__.five
5
+ * 用于在场景树中正确获取渲染该对象的 Five 实例
6
+ * 兜底:父链未找到时回退到 window.globalModules.five / window.$five,保证单 VR 场景兼容
7
+ */
8
+ 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";
@@ -371,7 +372,7 @@ import "./utils/coordinatesToVector.js";
371
372
  import "./utils/safeCall.js";
372
373
  import "./utils/sleep.js";
373
374
  import "../shared-utils/five/fiveLoaded.js";
374
- class oe extends z {
375
+ class me extends z {
375
376
  constructor(t, r) {
376
377
  var h;
377
378
  super(t, r);
@@ -479,5 +480,5 @@ class oe extends z {
479
480
  }
480
481
  }
481
482
  export {
482
- oe as default
483
+ me as default
483
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";
@@ -371,7 +372,7 @@ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
371
372
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
372
373
  import "./Work.js";
373
374
  import "./utils/coordinatesToVector.js";
374
- class um extends V {
375
+ class dm extends V {
375
376
  constructor(t, i) {
376
377
  super(t, i);
377
378
  C(this, "state", {
@@ -846,5 +847,5 @@ class um extends V {
846
847
  }
847
848
  }
848
849
  export {
849
- um as default
850
+ dm as default
850
851
  };
@@ -1,4 +1,4 @@
1
- import { typing as qm } 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";
@@ -343,13 +344,13 @@ import "./utils/sleep.js";
343
344
  import "../shared-utils/five/fiveLoaded.js";
344
345
  import "./BaseController.js";
345
346
  import "./utils/getFiveStateOnCurve.js";
346
- const Wm = (o, r) => new t(o, r), bm = (o, r) => new i(o, r);
347
+ const bm = (o, r) => new t(o, r), hm = (o, r) => new i(o, r);
347
348
  export {
348
- Wm as CruisePlugin,
349
+ bm as CruisePlugin,
349
350
  t as CruisePluginController,
350
- qm as CruisePluginTypes,
351
+ zm as CruisePluginTypes,
351
352
  i as MoveController,
352
- bm as MovePlugin,
353
+ hm as MovePlugin,
353
354
  t as WalkController,
354
- Wm as default
355
+ bm as default
355
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";
@@ -371,8 +372,8 @@ import "../CruisePlugin/utils/coordinatesToVector.js";
371
372
  import "../CruisePlugin/utils/safeCall.js";
372
373
  import "../CruisePlugin/utils/sleep.js";
373
374
  import "../shared-utils/five/fiveLoaded.js";
374
- const _ = "GuideLinePlugin", E = `${_}`, fe = (a) => `${E}--${a}`;
375
- class ce extends k {
375
+ const _ = "GuideLinePlugin", E = `${_}`, ce = (a) => `${E}--${a}`;
376
+ class be extends k {
376
377
  constructor(t, i) {
377
378
  super(t, i);
378
379
  d(this, "name", _);
@@ -536,6 +537,6 @@ class ce extends k {
536
537
  }
537
538
  }
538
539
  export {
539
- ce as default,
540
- fe as pluginFlag
540
+ be as default,
541
+ ce as pluginFlag
541
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 lp } 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";
@@ -343,5 +344,5 @@ import "../CruisePlugin/utils/safeCall.js";
343
344
  import "../CruisePlugin/utils/sleep.js";
344
345
  import "../shared-utils/five/fiveLoaded.js";
345
346
  export {
346
- lp as GuideLineItem
347
+ qp as GuideLineItem
347
348
  };
@@ -25,7 +25,7 @@ import "./utils/index.js";
25
25
  import "../vendor/object-assign-deep/objectAssignDeep.js";
26
26
  import "./utils/createPath.js";
27
27
  import "../shared-utils/fontSize.js";
28
- import { GuideLineModeItem as mp } from "./GuideLineModeItem/index.js";
28
+ import { GuideLineModeItem as rp } from "./GuideLineModeItem/index.js";
29
29
  import "../vendor/polyline-normals/index.js";
30
30
  import "../vendor/polyline-miter-util/index.js";
31
31
  import "../vendor/gl-vec2/add.js";
@@ -68,6 +68,7 @@ import "../shared-utils/three/IObject3D.js";
68
68
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
69
69
  import "../shared-utils/three/applyObjectMatrixWorld.js";
70
70
  import "../shared-utils/util.js";
71
+ import "../shared-utils/five/getFiveFromParentChain.js";
71
72
  import "../shared-utils/three/core/LineGeometry.js";
72
73
  import "../shared-utils/three/core/LineMaterial.js";
73
74
  import "../shared-utils/three/core/Line2.js";
@@ -323,5 +324,5 @@ import "../PanoTagPlugin/Components/Common/TagPopover/ShareIcon.js";
323
324
  import "../PanoTagPlugin/utils/popoverContainer.js";
324
325
  import "../shared-utils/px2rem.js";
325
326
  export {
326
- mp as GuideLineModeItem
327
+ rp as GuideLineModeItem
327
328
  };
@@ -1,6 +1,6 @@
1
1
  import t from "./Controller.js";
2
- import { GuideLineItem$1 as hp } from "./GuideLineItem/index.js";
3
- import { GuideLineModeItem$1 as kp } from "./GuideLineModeItem/index.js";
2
+ import { GuideLineItem$1 as jp } from "./GuideLineItem/index.js";
3
+ import { GuideLineModeItem$1 as qp } from "./GuideLineModeItem/index.js";
4
4
  import "../base/BasePluginWithData.js";
5
5
  import "../base/BasePlugin.js";
6
6
  import "../shared-utils/Subscribe.js";
@@ -54,6 +54,7 @@ import "../Sculpt/typings/style.js";
54
54
  import "../shared-utils/three/IObject3D.js";
55
55
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
56
56
  import "../shared-utils/three/applyObjectMatrixWorld.js";
57
+ import "../shared-utils/five/getFiveFromParentChain.js";
57
58
  import "../shared-utils/three/core/LineGeometry.js";
58
59
  import "../shared-utils/three/core/LineMaterial.js";
59
60
  import "../shared-utils/three/core/Line2.js";
@@ -342,10 +343,10 @@ import "../shared-utils/five/changeMode.js";
342
343
  import "../shared-utils/nearlyEqual.js";
343
344
  import "../CruisePlugin/Move.js";
344
345
  import "../CruisePlugin/utils/getFiveStateOnCurve.js";
345
- const r = (i, o) => new t(i, o), wp = r;
346
+ const r = (i, o) => new t(i, o), Cp = r;
346
347
  export {
347
- hp as GuideLineItem,
348
- kp as GuideLineModeItem,
348
+ jp as GuideLineItem,
349
+ qp as GuideLineModeItem,
349
350
  r as GuideLinePlugin,
350
- wp as default
351
+ Cp as default
351
352
  };