@realsee/dnalogel 3.52.3 → 3.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/index.cjs.js +40 -40
  3. package/dist/index.d.ts +1 -79
  4. package/dist/index.js +1606 -1567
  5. package/dist/index.umd.js +34 -34
  6. package/dist/shared-utils/exports.d.ts +2 -0
  7. package/dist/shared-utils/five/FivePuppet.d.ts +63 -0
  8. package/dist/shared-utils/index.d.ts +1 -0
  9. package/dist/shared-utils/math/planimetry.d.ts +1 -1
  10. package/libs/AreaMakerPlugin/Controller.js +14 -12
  11. package/libs/AreaMakerPlugin/index.js +4 -2
  12. package/libs/AreaMakerPlugin/utils/Item.js +4 -2
  13. package/libs/CSS3DRenderPlugin/Controller.js +4 -2
  14. package/libs/CSS3DRenderPlugin/index.js +7 -5
  15. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +4 -2
  16. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +4 -2
  17. package/libs/CruisePlugin/BaseController.js +6 -4
  18. package/libs/CruisePlugin/Move.js +4 -3
  19. package/libs/CruisePlugin/Work.js +3 -2
  20. package/libs/CruisePlugin/index.js +8 -7
  21. package/libs/CurrentPanoImagePlugin/Controller.js +4 -2
  22. package/libs/CurrentPanoImagePlugin/index.js +5 -3
  23. package/libs/GuideLinePlugin/Controller.js +6 -5
  24. package/libs/GuideLinePlugin/GuideLineItem.js +4 -3
  25. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  26. package/libs/GuideLinePlugin/GuideLineModeItem.js +4 -3
  27. package/libs/GuideLinePlugin/index.js +8 -7
  28. package/libs/ModelMakerPlugin/Controller.js +4 -2
  29. package/libs/ModelMakerPlugin/index.js +4 -2
  30. package/libs/ModelTVVideoPlugin/Plugin.js +5 -3
  31. package/libs/ModelTVVideoPlugin/index.js +4 -2
  32. package/libs/Object3DHelperPlugin/Controller.js +4 -2
  33. package/libs/Object3DHelperPlugin/index.js +7 -5
  34. package/libs/PanoCompassPlugin/Controller.js +3 -2
  35. package/libs/PanoCompassPlugin/index.js +4 -3
  36. package/libs/PanoDoorLabelPlugin/BaseController.js +3 -2
  37. package/libs/PanoDoorLabelPlugin/Controller.js +3 -2
  38. package/libs/PanoDoorLabelPlugin/index.js +4 -3
  39. package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
  40. package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
  41. package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
  42. package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
  43. package/libs/PanoMeasurePlugin/Controller/index.js +3 -2
  44. package/libs/PanoMeasurePlugin/Model/area.js +3 -2
  45. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +2 -0
  46. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -2
  47. package/libs/PanoMeasurePlugin/index.js +14 -13
  48. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +4 -2
  49. package/libs/PanoRulerProPlugin/Controller.js +11 -10
  50. package/libs/PanoRulerProPlugin/RulerItems.js +3 -2
  51. package/libs/PanoRulerProPlugin/index.js +4 -3
  52. package/libs/PanoSpatialTagPlugin/Plugin.js +4 -3
  53. package/libs/PanoSpatialTagPlugin/index.js +1 -0
  54. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +4 -2
  55. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +4 -2
  56. package/libs/PanoTagPlugin/Components/Tag/index.js +4 -3
  57. package/libs/PanoTagPlugin/Components/TagContainer.js +43 -42
  58. package/libs/PanoTagPlugin/Components/TagItem.js +4 -3
  59. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +3 -2
  60. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
  61. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
  62. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
  63. package/libs/PanoTagPlugin/controller/TagRender.js +4 -3
  64. package/libs/PanoTagPlugin/controller/TagUtil.js +4 -2
  65. package/libs/PanoTagPlugin/controller/index.js +7 -6
  66. package/libs/PanoTagPlugin/index.js +13 -12
  67. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
  68. package/libs/PanoVideoPlugin/Controller.js +4 -2
  69. package/libs/PanoVideoPlugin/VideoMeshController.js +52 -50
  70. package/libs/PanoVideoPlugin/index.js +7 -5
  71. package/libs/PipelinePlugin/Controller.js +4 -2
  72. package/libs/PipelinePlugin/index.js +5 -3
  73. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +4 -2
  74. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +4 -2
  75. package/libs/PipelinePlugin/utils/Objects/Pipe.js +20 -18
  76. package/libs/Sculpt/Meshes/Cylinder.js +6 -5
  77. package/libs/Sculpt/Meshes/Line.js +3 -2
  78. package/libs/Sculpt/Meshes/LineWithDots.js +3 -2
  79. package/libs/Sculpt/Meshes/Point.js +6 -5
  80. package/libs/Sculpt/Meshes/Polygon.js +11 -10
  81. package/libs/Sculpt/Meshes/Rectangle.js +4 -3
  82. package/libs/Sculpt/Objects/Line/Editor.js +7 -6
  83. package/libs/Sculpt/index.js +18 -17
  84. package/libs/Sculpt/utils/export.js +5 -5
  85. package/libs/Sculpt/utils/three/ColoredMesh.js +3 -2
  86. package/libs/base/BasePlugin.js +4 -3
  87. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +4 -2
  88. package/libs/floorplan/MapviewFloorplanPlugin/index.js +5 -3
  89. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +4 -2
  90. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -3
  91. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +19 -17
  92. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -3
  93. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +4 -2
  94. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -3
  95. package/libs/floorplan/index.js +1 -0
  96. package/libs/index.d.ts +1 -79
  97. package/libs/index.js +156 -170
  98. package/libs/shared-utils/exports.d.ts +2 -0
  99. package/libs/shared-utils/exports.js +82 -0
  100. package/libs/shared-utils/five/FivePuppet.d.ts +63 -0
  101. package/libs/shared-utils/five/FivePuppet.js +48 -0
  102. package/libs/shared-utils/five/index.js +3 -2
  103. package/libs/shared-utils/five/lookObject.js +3 -2
  104. package/libs/shared-utils/index.d.ts +1 -0
  105. package/libs/shared-utils/index.js +10 -78
  106. package/libs/shared-utils/logger.js +1 -1
  107. package/libs/shared-utils/math/planimetry.d.ts +1 -1
  108. package/libs/shared-utils/three/index.js +1 -0
  109. package/package.json +2 -2
@@ -1,12 +1,12 @@
1
1
  var u = Object.defineProperty;
2
2
  var c = Object.getOwnPropertySymbols;
3
- var b = Object.prototype.hasOwnProperty, p = Object.prototype.propertyIsEnumerable;
3
+ var p = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
4
4
  var n = (i, e, t) => e in i ? u(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, l = (i, e) => {
5
5
  for (var t in e || (e = {}))
6
- b.call(e, t) && n(i, t, e[t]);
6
+ p.call(e, t) && n(i, t, e[t]);
7
7
  if (c)
8
8
  for (var t of c(e))
9
- p.call(e, t) && n(i, t, e[t]);
9
+ b.call(e, t) && n(i, t, e[t]);
10
10
  return i;
11
11
  };
12
12
  var o = (i, e, t) => (n(i, typeof e != "symbol" ? e + "" : e, t), t);
@@ -22,10 +22,11 @@ import { anyPositionToVector3 as g } from "../../shared-utils/positionToVector3.
22
22
  import "../../shared-utils/three/core/Sphere.js";
23
23
  import "animejs";
24
24
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
25
+ import "../../shared-utils/five/FivePuppet.js";
25
26
  import { CircleWithEdgeMesh as m } from "./CircleWithEdge.js";
26
27
  import { radiusToSegments as M } from "../utils/radiusToSegments.js";
27
28
  import { ColoredMesh as E } from "../utils/three/ColoredMesh.js";
28
- class D extends f {
29
+ class F extends f {
29
30
  constructor(t) {
30
31
  super();
31
32
  o(this, "bottomCircle");
@@ -85,5 +86,5 @@ class D extends f {
85
86
  }
86
87
  }
87
88
  export {
88
- D as CylinderMesh
89
+ F as CylinderMesh
89
90
  };
@@ -28,7 +28,8 @@ import "../../shared-utils/three/core/Sphere.js";
28
28
  import "animejs";
29
29
  import { notNil as c } from "../../shared-utils/isNil.js";
30
30
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
31
- class X extends v {
31
+ import "../../shared-utils/five/FivePuppet.js";
32
+ class Z extends v {
32
33
  constructor(e) {
33
34
  var s, l, a, d, y;
34
35
  super();
@@ -188,5 +189,5 @@ class X extends v {
188
189
  }
189
190
  }
190
191
  export {
191
- X as LineMesh
192
+ Z as LineMesh
192
193
  };
@@ -23,8 +23,9 @@ import "../../shared-utils/three/core/Sphere.js";
23
23
  import "animejs";
24
24
  import { notNil as y } from "../../shared-utils/isNil.js";
25
25
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
26
+ import "../../shared-utils/five/FivePuppet.js";
26
27
  import { IObject3D as M } from "../../shared-utils/three/IObject3D.js";
27
- class W extends S {
28
+ class O extends S {
28
29
  constructor(t) {
29
30
  super();
30
31
  e(this, "name", "LineWithDotsMesh");
@@ -68,5 +69,5 @@ class W extends S {
68
69
  }
69
70
  }
70
71
  export {
71
- W as LineWithDotsMesh
72
+ O as LineWithDotsMesh
72
73
  };
@@ -36,11 +36,12 @@ import { applyObjectMatrixWorld as T } from "../../shared-utils/three/applyObjec
36
36
  import "../../shared-utils/three/core/Sphere.js";
37
37
  import "animejs";
38
38
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
39
+ import "../../shared-utils/five/FivePuppet.js";
39
40
  const H = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sHDgwCEMBJZu0AAAAdaVRYdENvbW1lbnQAAAAAAENyZWF0ZWQgd2l0aCBHSU1QZC5lBwAABM5JREFUWMO1V0tPG2cUPZ4Hxh6DazIOrjFNqJs0FIMqWFgWQkatsmvVbtggKlSVRVf5AWz4AWz4AUSKEChll19QJYSXkECuhFxsHjEhxCYm+DWGMZ5HF72DJq4bAzFXurI0M/I5997v3u9cC65vTJVn2lX/xHINQOYSBLTLEuIuCWw4Z3IGAEvf6ASmVHjNzHCXBG4A0AjACsAOwEbO0nsFQBnAGYASAIl+ZRMR7SolMEdsByD09fV5R0ZGgg8ePPjW5/N1iqLYpuu6RZblciKR2I9Go69evnwZnZ+fjwI4IS8AKBIRzeQfJWCANwKwh0KhtrGxsYehUOin1tbW+zzP23ietzY2NnIAoGmaLsuyUiqVyvl8XtrY2NiamZn589mzZxsAUgCOAeQAnFI2tI+VxIjaAeDzoaGh7xYWFuZOTk6OZVk+12uYqqq6JEnn0Wg0OT4+/geAXwGEAdwDIFJQXC1wO4DWR48e/RCPxxclSSroVzRFUbSDg4P848ePFwH8DuAhkWih83TRQWxFOXgAwvDwcOfo6OhvXV1d39tsNtuVBwTDWBwOh1UUxVsMw1hXVlbSdCgNV43uYSvrHg6H24aHh38eHBz85TrgF9FYLHA4HLzH43FvbW2d7u/vG+dANp8FpqIlbd3d3V8Fg8EfBUFw4BONZVmL3+9vHhkZCQL4AoAHgJPK8G+yzC0XDofdoVAo5PP5vkadTBAEtr+/39ff3x8gAp/RPOEqx2qjx+NpvXv3bk9DQ0NDvQgwDIOWlhZrMBj8kgi0UJdxRgYMArzL5XJ7vd57qLPZ7Xamp6fnNgBXtQxcjFuHw+Hyer3t9SYgCAITCAScAJoBNNEY/08GOFVVrfVMv7kMNDntFD1vjIAPrlRN0xjckOm6biFQ3jwNPwDMZrOnqVTqfb3Bi8Wivru7W/VCYkwPlKOjo0IikXh7EwQikYgE4Nw0CfXKDCipVCoTj8df3QABbW1tLUc6oUgkFPMkVACUNjc337148eKvw8PDbJ2jP1taWkoCyNDVXDSECmNSK4qiKNLq6urW8+fPI/UicHx8rD59+jSVy+WOAKSJhKENwFItLtoxk8mwsixzHR0dHe3t7c5PAU+n09rs7OzJkydPYqVSaQfANoDXALIk31S2smU1TWMPDg7K5XKZ7+3t9TudTut1U7+wsFCcmJiIpdPpbQBxADsAknQWymYCOukBHYCuKApisdhpMpnURFEU79y503TVyKenpzOTk5M7e3t7MQKPV0Zv1gNm+awB0MvlshqLxfLb29uyJElWURSbXC4XXyvqxcXFs6mpqeTc3Nzu3t7e3wQcA7BPZ8Cov1pNlJplmQtAG8MwHV6v95tAINA5MDBwPxAIuLu6upr8fr/VAN3c3JQjkcjZ+vp6fnl5+d2bN29SuVzuNYAEpf01CdRChUL+X1VskHACuA3Ay3Fcu9vt7nA6nZ7m5uYWQRCaNE3jVVW15PP580KhIGUymWw2m00DOAJwSP4WwPtq4LX2Ao6USxNlQyS/RcQcdLGwlNIz6vEMAaZpNzCk2Pll94LK/cDYimxERiBwG10sxjgvEZBE0UpE6vxj+0Ct5bTaXthgEhRmja8QWNkkPGsuIpfdjpkK+cZUWTC0KredVmtD/gdlSl6EG4AMvQAAAABJRU5ErkJggg==";
40
41
  let C = null;
41
- class $ extends W {
42
+ class tt extends W {
42
43
  constructor(t) {
43
- var w, p;
44
+ var p, w;
44
45
  super();
45
46
  s(this, "name", "PointMesh");
46
47
  s(this, "dom");
@@ -58,11 +59,11 @@ class $ extends W {
58
59
  const m = {
59
60
  transparent: !0,
60
61
  side: h.DoubleSide,
61
- size: (w = t == null ? void 0 : t.size) != null ? w : 8,
62
+ size: (p = t == null ? void 0 : t.size) != null ? p : 8,
62
63
  map: C || (C = new h.TextureLoader().load(H)),
63
64
  sizeAttenuation: !1
64
65
  }, u = new h.PointsMaterial(a(g({}, m), {
65
- color: (p = t == null ? void 0 : t.color) != null ? p : 16777215,
66
+ color: (w = t == null ? void 0 : t.color) != null ? w : 16777215,
66
67
  depthTest: !0,
67
68
  opacity: 1
68
69
  })), P = new h.PointsMaterial(a(g({}, m), {
@@ -126,5 +127,5 @@ class $ extends W {
126
127
  }
127
128
  }
128
129
  export {
129
- $ as PointMesh
130
+ tt as PointMesh
130
131
  };
@@ -2,15 +2,15 @@ var y = Object.defineProperty, u = Object.defineProperties;
2
2
  var g = Object.getOwnPropertyDescriptors;
3
3
  var f = Object.getOwnPropertySymbols;
4
4
  var c = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
5
- var h = (r, t, e) => t in r ? y(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, l = (r, t) => {
5
+ var p = (r, t, e) => t in r ? y(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, l = (r, t) => {
6
6
  for (var e in t || (t = {}))
7
- c.call(t, e) && h(r, e, t[e]);
7
+ c.call(t, e) && p(r, e, t[e]);
8
8
  if (f)
9
9
  for (var e of f(t))
10
- I.call(t, e) && h(r, e, t[e]);
10
+ I.call(t, e) && p(r, e, t[e]);
11
11
  return r;
12
12
  }, d = (r, t) => u(r, g(t));
13
- var i = (r, t, e) => (h(r, typeof t != "symbol" ? t + "" : t, e), e);
13
+ var i = (r, t, e) => (p(r, typeof t != "symbol" ? t + "" : t, e), e);
14
14
  import * as a from "three";
15
15
  import { generatePolygonGeometry as H } from "../../shared-utils/three/generatePolygonGeometry.js";
16
16
  import { anyPositionToVector3 as P } from "../../shared-utils/positionToVector3.js";
@@ -27,10 +27,11 @@ import { notNil as D } from "../../shared-utils/isNil.js";
27
27
  import "../../shared-utils/three/core/Sphere.js";
28
28
  import "animejs";
29
29
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
30
- const p = new a.BufferGeometry();
31
- p.name = "blankGeometry";
32
- p.isBlank = !0;
33
- class V extends _ {
30
+ import "../../shared-utils/five/FivePuppet.js";
31
+ const h = new a.BufferGeometry();
32
+ h.name = "blankGeometry";
33
+ h.isBlank = !0;
34
+ class $ extends _ {
34
35
  constructor(e) {
35
36
  super(e);
36
37
  i(this, "name", "PolygonMesh");
@@ -73,7 +74,7 @@ class V extends _ {
73
74
  setPoints(e) {
74
75
  var n;
75
76
  const o = e.map(P);
76
- this.points = o, this.geometry = (n = H(this.points, { checkLinesIntersect: !0 })) != null ? n : p, this.planeHelperNeedUpdate = !0, this.geometryInfoNeedUpdate = !0, this.updateAreaItems();
77
+ this.points = o, this.geometry = (n = H(this.points, { checkLinesIntersect: !0 })) != null ? n : h, this.planeHelperNeedUpdate = !0, this.geometryInfoNeedUpdate = !0, this.updateAreaItems();
77
78
  }
78
79
  /**
79
80
  * @description: 获取一个点投影在当前平面上的点
@@ -105,5 +106,5 @@ class V extends _ {
105
106
  }
106
107
  }
107
108
  export {
108
- V as PolygonMesh
109
+ $ as PolygonMesh
109
110
  };
@@ -12,9 +12,10 @@ import { notNil as h } from "../../shared-utils/isNil.js";
12
12
  import "../../shared-utils/three/core/Sphere.js";
13
13
  import "animejs";
14
14
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
15
+ import "../../shared-utils/five/FivePuppet.js";
15
16
  import { PolygonMesh as g } from "./Polygon.js";
16
17
  import { RectangleGeometry as d } from "../utils/three/RectangleGeometry.js";
17
- class G extends g {
18
+ class H extends g {
18
19
  constructor(t) {
19
20
  super(t);
20
21
  i(this, "name", "RectangleMesh");
@@ -29,12 +30,12 @@ class G extends g {
29
30
  return;
30
31
  }
31
32
  if (t.length === 3) {
32
- const [n, s, m] = r, p = n.clone().add(m).sub(s);
33
+ const [n, m, s] = r, p = n.clone().add(s).sub(m);
33
34
  r.push(p);
34
35
  }
35
36
  this.points = r, this.geometry = new d(r), this.planeHelperNeedUpdate = !0, this.geometryInfoNeedUpdate = !0;
36
37
  }
37
38
  }
38
39
  export {
39
- G as RectangleMesh
40
+ H as RectangleMesh
40
41
  };
@@ -1,7 +1,7 @@
1
1
  var g = Object.defineProperty;
2
- var d = (s, e, t) => e in s ? g(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
- var o = (s, e, t) => (d(s, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { BaseEditor as p } from "../Base/Editor.js";
2
+ var p = (s, e, t) => e in s ? g(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
+ var o = (s, e, t) => (p(s, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import { BaseEditor as d } from "../Base/Editor.js";
5
5
  import { Sculpt as n } from "../../index.js";
6
6
  import { PointMesh as a } from "../../Meshes/Point.js";
7
7
  import { getIntersectByRaycaster as h } from "../../../shared-utils/five/getPosition.js";
@@ -15,7 +15,8 @@ import { notNil as m } from "../../../shared-utils/isNil.js";
15
15
  import "../../../shared-utils/three/core/Sphere.js";
16
16
  import "animejs";
17
17
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
18
- class l extends p {
18
+ import "../../../shared-utils/five/FivePuppet.js";
19
+ class l extends d {
19
20
  constructor(t) {
20
21
  super(t);
21
22
  o(this, "draggingPoints", []);
@@ -43,7 +44,7 @@ class l extends p {
43
44
  super.disable(), this.removeChildren();
44
45
  }
45
46
  }
46
- class q extends l {
47
+ class w extends l {
47
48
  constructor(t) {
48
49
  super(t);
49
50
  o(this, "onDrag", (t) => {
@@ -58,6 +59,6 @@ class q extends l {
58
59
  }
59
60
  }
60
61
  export {
61
- q as LineEditor,
62
+ w as LineEditor,
62
63
  l as LineEditorAbstract
63
64
  };
@@ -2,30 +2,30 @@ var L = Object.defineProperty, B = Object.defineProperties;
2
2
  var U = Object.getOwnPropertyDescriptors;
3
3
  var y = Object.getOwnPropertySymbols;
4
4
  var _ = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
5
- var g = (o, i, e) => i in o ? L(o, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[i] = e, a = (o, i) => {
5
+ var g = (s, i, e) => i in s ? L(s, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[i] = e, a = (s, i) => {
6
6
  for (var e in i || (i = {}))
7
- _.call(i, e) && g(o, e, i[e]);
7
+ _.call(i, e) && g(s, e, i[e]);
8
8
  if (y)
9
9
  for (var e of y(i))
10
- x.call(i, e) && g(o, e, i[e]);
11
- return o;
12
- }, f = (o, i) => B(o, U(i));
13
- var h = (o, i, e) => (g(o, typeof i != "symbol" ? i + "" : i, e), e);
14
- var l = (o, i, e) => new Promise((t, r) => {
10
+ x.call(i, e) && g(s, e, i[e]);
11
+ return s;
12
+ }, f = (s, i) => B(s, U(i));
13
+ var h = (s, i, e) => (g(s, typeof i != "symbol" ? i + "" : i, e), e);
14
+ var l = (s, i, e) => new Promise((t, r) => {
15
15
  var c = (m) => {
16
16
  try {
17
- s(e.next(m));
17
+ o(e.next(m));
18
18
  } catch (p) {
19
19
  r(p);
20
20
  }
21
21
  }, n = (m) => {
22
22
  try {
23
- s(e.throw(m));
23
+ o(e.throw(m));
24
24
  } catch (p) {
25
25
  r(p);
26
26
  }
27
- }, s = (m) => m.done ? t(m.value) : Promise.resolve(m.value).then(c, n);
28
- s((e = e.apply(o, i)).next());
27
+ }, o = (m) => m.done ? t(m.value) : Promise.resolve(m.value).then(c, n);
28
+ o((e = e.apply(s, i)).next());
29
29
  });
30
30
  import { globalModules as E } from "./utils/Modules/Global.js";
31
31
  import { Subscribe as S } from "../shared-utils/Subscribe.js";
@@ -40,6 +40,7 @@ import { notNil as k } from "../shared-utils/isNil.js";
40
40
  import "../shared-utils/three/core/Sphere.js";
41
41
  import "animejs";
42
42
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
43
+ import "../shared-utils/five/FivePuppet.js";
43
44
  import { recurveFindObject as H } from "../shared-utils/three/recurveFindObject.js";
44
45
  import { Polyline as I } from "./Objects/Polyline/index.js";
45
46
  import { Point as b } from "./Objects/Point/index.js";
@@ -74,8 +75,8 @@ const u = class extends S {
74
75
  console.log("redo"), (e = this.creatingItem) == null || e.redo(), this.five.needsRender = !0;
75
76
  });
76
77
  this.five = e, this.theme = t, this.group = new z(), this.group.name = "Sculpt", e.scene.add(this.group), u.modules.init(e), D("ctrl+z, command+z", this.undo), D("ctrl+shift+z, command+shift+z", this.redo), u.modules.fiveDomEvents.addEventListener(this.group, "click", ({ intersects: r, origDomEvent: c }) => {
77
- var s;
78
- const n = H((s = r == null ? void 0 : r[0]) == null ? void 0 : s.object, (m) => m.isSculptObject);
78
+ var o;
79
+ const n = H((o = r == null ? void 0 : r[0]) == null ? void 0 : o.object, (m) => m.isSculptObject);
79
80
  return n && !n.editing ? this.emit("click", c, n) : !1;
80
81
  }), window.__SCULPT_DEBUG__ = this, window.__SCULPT_MODULES_DEBUG__ = u.modules;
81
82
  }
@@ -101,10 +102,10 @@ const u = class extends S {
101
102
  this.clear();
102
103
  const r = (c = e == null ? void 0 : e.items) == null ? void 0 : c.map((n) => {
103
104
  var m;
104
- const s = f(a({}, n), {
105
+ const o = f(a({}, n), {
105
106
  style: a(a({}, (m = this.theme) == null ? void 0 : m[n.type.toLowerCase()]), n.style)
106
107
  });
107
- return n.type === "Point" ? new b(s, t) : n.type === "line" ? new R(s, t) : n.type === "Polyline" ? new I(s, t) : n.type === "Polygon" ? new w(s, t) : n.type === "Prism" ? new j(s, t) : n.type === "Rectangle" ? new O(s, t) : n.type === "Circle" ? new P(s, t) : n.type === "Cylinder" ? new v(s, t) : n.type === "Box" ? new C(s, t) : null;
108
+ return n.type === "Point" ? new b(o, t) : n.type === "line" ? new R(o, t) : n.type === "Polyline" ? new I(o, t) : n.type === "Polygon" ? new w(o, t) : n.type === "Prism" ? new j(o, t) : n.type === "Rectangle" ? new O(o, t) : n.type === "Circle" ? new P(o, t) : n.type === "Cylinder" ? new v(o, t) : n.type === "Box" ? new C(o, t) : null;
108
109
  });
109
110
  this.group.add(...r), this.five.needsRender = !0;
110
111
  }
@@ -238,8 +239,8 @@ const u = class extends S {
238
239
  };
239
240
  let d = u;
240
241
  h(d, "modules", E);
241
- const ue = (o) => new d(o);
242
+ const ae = (s) => new d(s);
242
243
  export {
243
244
  d as Sculpt,
244
- ue as SculptPlugin
245
+ ae as SculptPlugin
245
246
  };
@@ -19,8 +19,8 @@ import { createCircle as E } from "../Objects/Circle/index.js";
19
19
  import { createCylinder as P } from "../Objects/Cylinder/index.js";
20
20
  import { createLine as y } from "../Objects/Line/index.js";
21
21
  import { createPoint as C } from "../Objects/Point/index.js";
22
- import { createPolygon as u } from "../Objects/Polygon/index.js";
23
- import { createPrism as x } from "../Objects/Prism/index.js";
22
+ import { createPolygon as x } from "../Objects/Polygon/index.js";
23
+ import { createPrism as _ } from "../Objects/Prism/index.js";
24
24
  import { createRectangle as B } from "../Objects/Rectangle/index.js";
25
25
  const U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26
26
  __proto__: null,
@@ -45,10 +45,10 @@ const U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
45
45
  createCylinder: P,
46
46
  createLine: y,
47
47
  createPoint: C,
48
- createPolygon: u,
49
- createPrism: x,
48
+ createPolygon: x,
49
+ createPrism: _,
50
50
  createRectangle: B
51
51
  }, Symbol.toStringTag, { value: "Module" }));
52
52
  export {
53
- U as sculpt
53
+ U as _export
54
54
  };
@@ -22,7 +22,8 @@ import { notNil as a } from "../../../shared-utils/isNil.js";
22
22
  import "../../../shared-utils/three/core/Sphere.js";
23
23
  import "animejs";
24
24
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
25
- class I extends M {
25
+ import "../../../shared-utils/five/FivePuppet.js";
26
+ class C extends M {
26
27
  constructor(t) {
27
28
  var n, m;
28
29
  super();
@@ -92,5 +93,5 @@ class I extends M {
92
93
  }
93
94
  }
94
95
  export {
95
- I as ColoredMesh
96
+ C as ColoredMesh
96
97
  };
@@ -13,12 +13,13 @@ import "animejs";
13
13
  import { FiveUtil as a } from "../shared-utils/Utils/FiveUtil.js";
14
14
  import { absoluteUrl as m } from "../shared-utils/url/absoluteUrl.js";
15
15
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
16
- let P = class {
16
+ import "../shared-utils/five/FivePuppet.js";
17
+ let b = class {
17
18
  constructor(t, r) {
18
19
  /**
19
20
  * @realsee/dnalogel 版本号
20
21
  */
21
- i(this, "VERSION", "3.52.3");
22
+ i(this, "VERSION", "3.53.0");
22
23
  i(this, "NAME");
23
24
  i(this, "five");
24
25
  i(this, "workUtil");
@@ -55,5 +56,5 @@ let P = class {
55
56
  }
56
57
  };
57
58
  export {
58
- P as Controller
59
+ b as Controller
59
60
  };
@@ -50,6 +50,7 @@ import "../../shared-utils/three/core/Sphere.js";
50
50
  import "animejs";
51
51
  import { waitFiveModelLoaded as z } from "../../shared-utils/five/fiveModelLoad.js";
52
52
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
53
+ import "../../shared-utils/five/FivePuppet.js";
53
54
  import "../../shared-utils/isTruelyObject.js";
54
55
  import "../../vendor/svelte/internal/index.js";
55
56
  import "../../vendor/svelte/transition/index.js";
@@ -125,6 +126,7 @@ import "../../shared-utils/isTouchDevice.js";
125
126
  import "../../shared-utils/five/getPosition.js";
126
127
  import "../../shared-utils/five/getRaycasterByNdcPosition.js";
127
128
  import "../../shared-utils/three/PointSelector/utils/contents.js";
129
+ import "@realsee/five";
128
130
  function W(d) {
129
131
  const { latitude: n, longitude: t } = d, e = Math.abs(n - Math.PI / 2) > 5 * Math.PI / 180, i = t > 5 * (Math.PI / 180) && t < 355 * (Math.PI / 180);
130
132
  return e || i;
@@ -133,7 +135,7 @@ function G(d) {
133
135
  const { latitude: n, longitude: t } = d, e = Math.abs(n - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
134
136
  return e && i;
135
137
  }
136
- class De extends O {
138
+ class Te extends O {
137
139
  constructor(t, e) {
138
140
  var a, m;
139
141
  super(t);
@@ -468,5 +470,5 @@ class De extends O {
468
470
  }
469
471
  }
470
472
  export {
471
- De as Controller
473
+ Te as Controller
472
474
  };
@@ -69,6 +69,8 @@ import "../../shared-utils/isNil.js";
69
69
  import "../../shared-utils/three/core/Sphere.js";
70
70
  import "animejs";
71
71
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
72
+ import "../../shared-utils/five/FivePuppet.js";
73
+ import "@realsee/five";
72
74
  import "../../shared-utils/three/PointSelector/utils/html.js";
73
75
  import "../../shared-utils/five/initialCSS3DRender.js";
74
76
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
@@ -97,8 +99,8 @@ import "../../shared-utils/nearlyEqual.js";
97
99
  import "../../shared-utils/five/changeMode.js";
98
100
  import "../../shared-utils/changeModelCanvasOpacity.js";
99
101
  import "../../shared-utils/five/fiveModelLoad.js";
100
- const Xo = (o, r) => new t(o, r);
102
+ const Zo = (o, r) => new t(o, r);
101
103
  export {
102
- Xo as MapviewFloorplanPlugin,
103
- Xo as default
104
+ Zo as MapviewFloorplanPlugin,
105
+ Zo as default
104
106
  };
@@ -49,6 +49,7 @@ import { isNil as G } from "../../shared-utils/isNil.js";
49
49
  import "../../shared-utils/three/core/Sphere.js";
50
50
  import "animejs";
51
51
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
52
+ import "../../shared-utils/five/FivePuppet.js";
52
53
  import "../../shared-utils/isTruelyObject.js";
53
54
  import "../../vendor/svelte/internal/index.js";
54
55
  import "../../vendor/svelte/transition/index.js";
@@ -124,6 +125,7 @@ import "../../shared-utils/isTouchDevice.js";
124
125
  import "../../shared-utils/five/getPosition.js";
125
126
  import "../../shared-utils/five/getRaycasterByNdcPosition.js";
126
127
  import "../../shared-utils/three/PointSelector/utils/contents.js";
128
+ import "@realsee/five";
127
129
  function W(d) {
128
130
  const { latitude: s, longitude: t } = d, e = Math.abs(s - Math.PI / 2) > 5 * Math.PI / 180, i = t > 5 * (Math.PI / 180) && t < 355 * (Math.PI / 180);
129
131
  return e || i;
@@ -132,7 +134,7 @@ function z(d) {
132
134
  const { latitude: s, longitude: t } = d, e = Math.abs(s - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
133
135
  return e && i;
134
136
  }
135
- class Le extends T {
137
+ class Oe extends T {
136
138
  constructor(t, e) {
137
139
  var a, f, c;
138
140
  super(t);
@@ -463,5 +465,5 @@ class Le extends T {
463
465
  }
464
466
  }
465
467
  export {
466
- Le as Controller
468
+ Oe as Controller
467
469
  };
@@ -70,6 +70,8 @@ import "../../shared-utils/isNil.js";
70
70
  import "../../shared-utils/three/core/Sphere.js";
71
71
  import "animejs";
72
72
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
73
+ import "../../shared-utils/five/FivePuppet.js";
74
+ import "@realsee/five";
73
75
  import "../../shared-utils/three/PointSelector/utils/html.js";
74
76
  import "../../shared-utils/five/initialCSS3DRender.js";
75
77
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
@@ -96,8 +98,8 @@ import "../utils/constant.js";
96
98
  import "../../shared-utils/nearlyEqual.js";
97
99
  import "../../shared-utils/five/changeMode.js";
98
100
  import "../../shared-utils/changeModelCanvasOpacity.js";
99
- const Wo = (o, r) => new t(o, r);
101
+ const Yo = (o, r) => new t(o, r);
100
102
  export {
101
- Wo as ModelFloorplanPlugin,
102
- Wo as default
103
+ Yo as ModelFloorplanPlugin,
104
+ Yo as default
103
105
  };
@@ -12,19 +12,19 @@ var m = (s, e, t) => e in s ? g(s, e, { enumerable: !0, configurable: !0, writab
12
12
  }, u = (s, e) => w(s, v(e));
13
13
  var o = (s, e, t) => (m(s, typeof e != "symbol" ? e + "" : e, t), t);
14
14
  var c = (s, e, t) => new Promise((i, r) => {
15
- var a = (h) => {
15
+ var p = (h) => {
16
16
  try {
17
17
  d(t.next(h));
18
18
  } catch (l) {
19
19
  r(l);
20
20
  }
21
- }, p = (h) => {
21
+ }, a = (h) => {
22
22
  try {
23
23
  d(t.throw(h));
24
24
  } catch (l) {
25
25
  r(l);
26
26
  }
27
- }, d = (h) => h.done ? i(h.value) : Promise.resolve(h.value).then(a, p);
27
+ }, d = (h) => h.done ? i(h.value) : Promise.resolve(h.value).then(p, a);
28
28
  d((t = t.apply(s, e)).next());
29
29
  });
30
30
  import _ from "./Components/Main.js";
@@ -78,6 +78,8 @@ import "../../shared-utils/isNil.js";
78
78
  import "../../shared-utils/three/core/Sphere.js";
79
79
  import "animejs";
80
80
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
81
+ import "../../shared-utils/five/FivePuppet.js";
82
+ import "@realsee/five";
81
83
  import "../../shared-utils/three/PointSelector/utils/html.js";
82
84
  import "../../shared-utils/five/initialCSS3DRender.js";
83
85
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
@@ -100,7 +102,7 @@ import "../../shared-utils/five/getRaycasterByNdcPosition.js";
100
102
  import "../../shared-utils/three/PointSelector/utils/contents.js";
101
103
  import "../../shared-utils/url/absoluteUrl.js";
102
104
  import "../Assets/floorplanExtraObject.js";
103
- class Ht extends O {
105
+ class Qt extends O {
104
106
  constructor(t, i) {
105
107
  super(t);
106
108
  // =============== public properties =================
@@ -136,15 +138,15 @@ class Ht extends O {
136
138
  highlightEnable: !0,
137
139
  cameraImageUrl: D,
138
140
  missingFloorImageUrl: this.staticPrefix + "/release/web/saas/missing-floor.d687a5ed.png"
139
- }, a = n(n({}, r), i == null ? void 0 : i.configs);
140
- this.state = { enabled: !0, visible: !0, config: a }, i != null && i.wrapper && console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法"), typeof (i == null ? void 0 : i.wrapper) == "string" ? this.wrapperSelector = i.wrapper : (i == null ? void 0 : i.wrapper) instanceof Element && (this.wrapper = i.wrapper), t.once("dispose", this.dispose);
141
+ }, p = n(n({}, r), i == null ? void 0 : i.configs);
142
+ this.state = { enabled: !0, visible: !0, config: p }, i != null && i.wrapper && console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法"), typeof (i == null ? void 0 : i.wrapper) == "string" ? this.wrapperSelector = i.wrapper : (i == null ? void 0 : i.wrapper) instanceof Element && (this.wrapper = i.wrapper), t.once("dispose", this.dispose);
141
143
  }
142
144
  load(t, i, r = !0) {
143
145
  return c(this, null, function* () {
144
- function a(l) {
146
+ function p(l) {
145
147
  return Object.prototype.hasOwnProperty.apply(l, ["version"]);
146
148
  }
147
- const p = JSON.parse(JSON.stringify(t)), d = a(p) ? p.data : p, h = this.data;
149
+ const a = JSON.parse(JSON.stringify(t)), d = p(a) ? a.data : a, h = this.data;
148
150
  this.data = yield b(d), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, h), i && this.updateState(i, r), this.render();
149
151
  });
150
152
  }
@@ -178,14 +180,14 @@ class Ht extends O {
178
180
  }
179
181
  /** 更改插件 State */
180
182
  setState(t, i = {}) {
181
- const r = this.state, a = i.userAction !== void 0 ? i.userAction : !0;
182
- if (this.updateState(t, a), t.enabled !== void 0 && r.enabled !== t.enabled) {
183
- const p = { userAction: a };
184
- t.enabled ? this._enable(p) : this._disable(p);
183
+ const r = this.state, p = i.userAction !== void 0 ? i.userAction : !0;
184
+ if (this.updateState(t, p), t.enabled !== void 0 && r.enabled !== t.enabled) {
185
+ const a = { userAction: p };
186
+ t.enabled ? this._enable(a) : this._disable(a);
185
187
  }
186
188
  if (t.visible !== void 0 && r.visible !== t.visible) {
187
- const p = { userAction: a };
188
- t.visible ? this._show(p) : this._hide(p);
189
+ const a = { userAction: p };
190
+ t.visible ? this._show(a) : this._hide(a);
189
191
  }
190
192
  }
191
193
  /** 把插件的渲染DOM插入到对应的容器中去 */
@@ -220,8 +222,8 @@ class Ht extends O {
220
222
  this.hooks.emit("hide", { userAction: i }), this.render();
221
223
  }
222
224
  updateState(t, i) {
223
- const r = this.state, a = t.config ? n(n({}, r.config), t.config) : r.config;
224
- this.state = u(n(n({}, this.state), t), { config: a }), !y(this.state, r, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: r, userAction: i });
225
+ const r = this.state, p = t.config ? n(n({}, r.config), t.config) : r.config;
226
+ this.state = u(n(n({}, this.state), t), { config: p }), !y(this.state, r, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: r, userAction: i });
225
227
  }
226
228
  render() {
227
229
  if (this.disposed || !this.state.enabled)
@@ -243,5 +245,5 @@ class Ht extends O {
243
245
  }
244
246
  }
245
247
  export {
246
- Ht as Controller
248
+ Qt as Controller
247
249
  };
@@ -49,6 +49,8 @@ import "../../shared-utils/isNil.js";
49
49
  import "../../shared-utils/three/core/Sphere.js";
50
50
  import "animejs";
51
51
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
52
+ import "../../shared-utils/five/FivePuppet.js";
53
+ import "@realsee/five";
52
54
  import "../../shared-utils/three/PointSelector/utils/html.js";
53
55
  import "../../shared-utils/five/initialCSS3DRender.js";
54
56
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
@@ -72,8 +74,8 @@ import "../../shared-utils/three/PointSelector/utils/contents.js";
72
74
  import "../../shared-utils/url/absoluteUrl.js";
73
75
  import "../utils/formatData.js";
74
76
  import "../Assets/floorplanExtraObject.js";
75
- const jo = (o, r) => new t(o, r);
77
+ const qo = (o, r) => new t(o, r);
76
78
  export {
77
- jo as PanoFloorplanRadarPlugin,
78
- jo as default
79
+ qo as PanoFloorplanRadarPlugin,
80
+ qo as default
79
81
  };
@@ -47,6 +47,7 @@ import { isNil as k } from "../../shared-utils/isNil.js";
47
47
  import "../../shared-utils/three/core/Sphere.js";
48
48
  import "animejs";
49
49
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
50
+ import "../../shared-utils/five/FivePuppet.js";
50
51
  import "../../shared-utils/isTruelyObject.js";
51
52
  import "../../vendor/svelte/internal/index.js";
52
53
  import "../../vendor/svelte/transition/index.js";
@@ -122,7 +123,8 @@ import "../../shared-utils/isTouchDevice.js";
122
123
  import "../../shared-utils/five/getPosition.js";
123
124
  import "../../shared-utils/five/getRaycasterByNdcPosition.js";
124
125
  import "../../shared-utils/three/PointSelector/utils/contents.js";
125
- class Ai extends M {
126
+ import "@realsee/five";
127
+ class Si extends M {
126
128
  constructor(t, i) {
127
129
  var h, p;
128
130
  super(t);
@@ -395,5 +397,5 @@ class Ai extends M {
395
397
  }
396
398
  }
397
399
  export {
398
- Ai as Controller
400
+ Si as Controller
399
401
  };