@realsee/dnalogel 3.47.14 → 3.47.16

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 (99) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/PanoTagPlugin/utils/requestIdleCallback.d.ts +1 -1
  3. package/dist/Sculpt/Meshes/Line.d.ts +1 -0
  4. package/dist/Sculpt/Meshes/Polygon.d.ts +1 -0
  5. package/dist/index.cjs.js +52 -52
  6. package/dist/index.js +16276 -16279
  7. package/dist/index.umd.js +49 -49
  8. package/libs/AreaMakerPlugin/Controller.js +78 -150
  9. package/libs/AreaMakerPlugin/index.js +3 -75
  10. package/libs/AreaMakerPlugin/utils/Item.js +111 -185
  11. package/libs/CSS3DRenderPlugin/Controller.js +29 -86
  12. package/libs/CSS3DRenderPlugin/index.js +12 -69
  13. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +58 -127
  14. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +113 -174
  15. package/libs/CruisePlugin/BaseController.js +50 -122
  16. package/libs/CruisePlugin/Move.js +21 -74
  17. package/libs/CruisePlugin/Work.js +46 -99
  18. package/libs/CruisePlugin/index.js +26 -79
  19. package/libs/CurrentPanoImagePlugin/Controller.js +104 -176
  20. package/libs/CurrentPanoImagePlugin/index.js +4 -76
  21. package/libs/GuideLinePlugin/Controller.js +26 -79
  22. package/libs/GuideLinePlugin/GuideLineItem.js +24 -77
  23. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +2 -3
  24. package/libs/GuideLinePlugin/GuideLineModeItem.js +22 -75
  25. package/libs/GuideLinePlugin/index.js +26 -79
  26. package/libs/ModelMakerPlugin/Controller.js +83 -139
  27. package/libs/ModelMakerPlugin/index.js +16 -72
  28. package/libs/ModelTVVideoPlugin/Plugin.js +48 -105
  29. package/libs/ModelTVVideoPlugin/index.js +7 -64
  30. package/libs/Object3DHelperPlugin/Controller.js +32 -56
  31. package/libs/Object3DHelperPlugin/index.js +12 -35
  32. package/libs/PanoCompassPlugin/Controller.js +37 -93
  33. package/libs/PanoCompassPlugin/index.js +11 -67
  34. package/libs/PanoDoorLabelPlugin/BaseController.js +25 -97
  35. package/libs/PanoDoorLabelPlugin/Controller.js +115 -187
  36. package/libs/PanoDoorLabelPlugin/index.js +4 -76
  37. package/libs/PanoMeasurePlugin/Components/Controller0.js +83 -128
  38. package/libs/PanoMeasurePlugin/Components/Controller1.js +96 -141
  39. package/libs/PanoMeasurePlugin/Controller/EditController.js +66 -111
  40. package/libs/PanoMeasurePlugin/Controller/WatchController.js +51 -121
  41. package/libs/PanoMeasurePlugin/Controller/index.js +59 -101
  42. package/libs/PanoMeasurePlugin/Model/area.js +21 -91
  43. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +0 -73
  44. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +27 -72
  45. package/libs/PanoMeasurePlugin/index.js +25 -67
  46. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +17 -89
  47. package/libs/PanoSpatialTagPlugin/Plugin.js +106 -163
  48. package/libs/PanoSpatialTagPlugin/index.js +5 -62
  49. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +67 -141
  50. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +208 -281
  51. package/libs/PanoTagPlugin/Components/Tag/index.js +180 -251
  52. package/libs/PanoTagPlugin/Components/TagContainer.js +80 -151
  53. package/libs/PanoTagPlugin/Components/TagItem.js +67 -138
  54. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +61 -132
  55. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +28 -99
  56. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +30 -101
  57. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +36 -107
  58. package/libs/PanoTagPlugin/controller/TagRender.js +68 -121
  59. package/libs/PanoTagPlugin/controller/TagUtil.js +79 -132
  60. package/libs/PanoTagPlugin/controller/index.js +55 -108
  61. package/libs/PanoTagPlugin/index.js +31 -84
  62. package/libs/PanoTagPlugin/utils/requestIdleCallback.d.ts +1 -1
  63. package/libs/PanoTagPlugin/utils/requestIdleCallback.js +5 -13
  64. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +30 -104
  65. package/libs/PanoVideoPlugin/Controller.js +64 -136
  66. package/libs/PanoVideoPlugin/VideoMeshController.js +74 -148
  67. package/libs/PanoVideoPlugin/index.js +8 -80
  68. package/libs/PipelinePlugin/Controller.js +128 -199
  69. package/libs/PipelinePlugin/index.js +5 -76
  70. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +17 -91
  71. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +14 -88
  72. package/libs/PipelinePlugin/utils/Objects/Pipe.js +56 -130
  73. package/libs/Sculpt/Meshes/Box.js +5 -6
  74. package/libs/Sculpt/Meshes/Cylinder.js +2 -3
  75. package/libs/Sculpt/Meshes/Line.d.ts +1 -0
  76. package/libs/Sculpt/Meshes/Line.js +36 -34
  77. package/libs/Sculpt/Meshes/Point.js +9 -10
  78. package/libs/Sculpt/Meshes/Polygon.d.ts +1 -0
  79. package/libs/Sculpt/Meshes/Polygon.js +23 -18
  80. package/libs/Sculpt/Meshes/Polyline.js +4 -5
  81. package/libs/Sculpt/Meshes/Rectangle.js +3 -4
  82. package/libs/Sculpt/Objects/Line/Editor.js +2 -3
  83. package/libs/Sculpt/utils/three/ColoredMesh.js +3 -4
  84. package/libs/base/BasePlugin.js +3 -4
  85. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +59 -128
  86. package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -75
  87. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +59 -129
  88. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -75
  89. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +62 -134
  90. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -76
  91. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +81 -151
  92. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -75
  93. package/libs/floorplan/index.js +0 -1
  94. package/libs/index.js +62 -62
  95. package/libs/shared-utils/five/index.js +2 -3
  96. package/libs/shared-utils/five/lookObject.js +17 -18
  97. package/libs/shared-utils/logger.js +1 -1
  98. package/libs/shared-utils/three/index.js +0 -1
  99. package/package.json +1 -1
@@ -1,33 +1,32 @@
1
1
  var _ = Object.defineProperty;
2
2
  var b = Object.getOwnPropertySymbols;
3
- var k = Object.prototype.hasOwnProperty, p = Object.prototype.propertyIsEnumerable;
3
+ var k = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
4
4
  var f = (o, s, e) => s in o ? _(o, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[s] = e, y = (o, s) => {
5
5
  for (var e in s || (s = {}))
6
6
  k.call(s, e) && f(o, e, s[e]);
7
7
  if (b)
8
8
  for (var e of b(s))
9
- p.call(s, e) && f(o, e, s[e]);
9
+ S.call(s, e) && f(o, e, s[e]);
10
10
  return o;
11
11
  };
12
12
  var l = (o, s, e) => (f(o, typeof s != "symbol" ? s + "" : s, e), e);
13
13
  import * as u from "three";
14
- import { DEFAULT_LINE_COLOR as D, DEFAULT_LINE_WIDTH as S, DEFAULT_HIGHLIGHT_OPACITY as T } from "../typings/style.js";
15
- import { LineGeometry as L, LineMaterial as I, THREE_Line2 as H } from "../../shared-utils/five/FiveLine.js";
16
- import { anyPositionToVector3 as w } from "../../shared-utils/positionToVector3.js";
14
+ import { DEFAULT_LINE_COLOR as D, DEFAULT_LINE_WIDTH as p, DEFAULT_HIGHLIGHT_OPACITY as T } from "../typings/style.js";
15
+ import { LineGeometry as L, LineMaterial as w, THREE_Line2 as I } from "../../shared-utils/five/FiveLine.js";
16
+ import { anyPositionToVector3 as H } from "../../shared-utils/positionToVector3.js";
17
17
  import { IObject3D as R } from "../../shared-utils/three/IObject3D.js";
18
18
  import "hammerjs";
19
19
  import "three/examples/jsm/renderers/CSS3DRenderer";
20
20
  import { centerPoint as C } from "../../shared-utils/three/centerPoint.js";
21
21
  import { LightTag as x } from "../../shared-utils/tag.js";
22
- import { globalModules as W } from "../utils/Modules/Global.js";
23
- import { removeAllTag as A } from "../utils/removeAllTag.js";
24
- import { getLengthHTML as O } from "../utils/Meshes/getLengthHTML.js";
22
+ import { removeAllTag as v } from "../utils/removeAllTag.js";
23
+ import { getLengthHTML as W } from "../utils/Meshes/getLengthHTML.js";
25
24
  import { applyObjectMatrixWorld as m } from "../../shared-utils/three/applyObjectMatrixWorld.js";
26
25
  import "../../shared-utils/three/THREESphere.js";
27
26
  import "animejs";
28
27
  import { notNil as c } from "../../shared-utils/isNil.js";
29
28
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
30
- class E extends I {
29
+ class E extends w {
31
30
  constructor(e) {
32
31
  var i, t;
33
32
  super(e);
@@ -46,13 +45,13 @@ class E extends I {
46
45
  this.dashed = e, e ? this.defines.USE_DASH = "" : delete this.defines.USE_DASH, this.needsUpdate = !0;
47
46
  }
48
47
  }
49
- class M extends H {
48
+ class M extends I {
50
49
  constructor(e, i) {
51
50
  super(e, i);
52
51
  l(this, "name", "Line3");
53
52
  }
54
53
  }
55
- class $ extends R {
54
+ class Q extends R {
56
55
  constructor(e) {
57
56
  var h, r, d, a, g;
58
57
  super();
@@ -68,7 +67,7 @@ class $ extends R {
68
67
  this.paramsStyle = e != null ? e : {};
69
68
  const i = new L(), t = new E({
70
69
  color: new u.Color((h = e == null ? void 0 : e.lineColor) != null ? h : D),
71
- linewidth: (r = e == null ? void 0 : e.lineWidth) != null ? r : S,
70
+ linewidth: (r = e == null ? void 0 : e.lineWidth) != null ? r : p,
72
71
  dashScale: 40,
73
72
  opacity: (d = e == null ? void 0 : e.opacity) != null ? d : 1,
74
73
  transparent: !0,
@@ -84,7 +83,7 @@ class $ extends R {
84
83
  resolution: t.resolution
85
84
  });
86
85
  this.line = new M(i, t), this.backLine = new M(i, n), this.line.renderOrder = 1, this.backLine.renderOrder = 0, this.line.name = "lineFrontMaterial", this.backLine.name = "lineBackMaterial", e && this.setStyle(e), e != null && e.points && this.setPoints(e.points), this.addEventListener("removed", () => {
87
- A(this);
86
+ v(this);
88
87
  });
89
88
  }
90
89
  get style() {
@@ -112,6 +111,10 @@ class $ extends R {
112
111
  get occlusionMode() {
113
112
  return this.line.material.depthTest === !1 ? "depthTest" : "translucence";
114
113
  }
114
+ get five() {
115
+ var e, i;
116
+ return (i = (e = window.globalModules) == null ? void 0 : e.five) != null ? i : window.$five;
117
+ }
115
118
  updateMatrixWorld(e) {
116
119
  var i;
117
120
  if (super.updateMatrixWorld(e), this.points) {
@@ -120,7 +123,7 @@ class $ extends R {
120
123
  }
121
124
  }
122
125
  setPoints(e) {
123
- const i = e.map(w).filter(c);
126
+ const i = e.map(H).filter(c);
124
127
  if (this.points = i, i.length < 2) {
125
128
  this.line.geometry = new L(), this.backLine.geometry = this.line.geometry, this.updateLengthItems();
126
129
  return;
@@ -149,29 +152,28 @@ class $ extends R {
149
152
  }
150
153
  updateLengthItems() {
151
154
  const e = () => {
152
- this.lengthDoms.forEach((i) => i.destroy()), this.lengthDoms = [];
155
+ this.lengthDoms.forEach((t) => t.destroy()), this.lengthDoms = [];
153
156
  };
154
- if (!this.points || this.points.length < 2)
157
+ if (!this.points || this.points.length < 2 || !this.paramsStyle.lengthEnable)
155
158
  return e();
156
- if (this.paramsStyle.lengthEnable) {
157
- const i = m(this, this.points).map((t, n) => {
158
- if (n !== 0)
159
- return [m(this, this.points[n - 1]), t];
160
- }).filter(c);
161
- i.forEach(([t, n], h) => {
162
- var a;
163
- const r = C(t, n);
164
- this.lengthDoms[h] = (a = this.lengthDoms[h]) != null ? a : (() => {
165
- const g = new x(W.five);
166
- return g.intersectCheck = !1, g;
167
- })(), this.lengthDoms[h].setPosition(r, [t, n]);
168
- const d = t.distanceTo(n).toFixed(2);
169
- d === "0.00" ? this.lengthDoms[h].container.innerHTML = "" : this.lengthDoms[h].container.innerHTML = O(d + "m");
170
- }), this.lengthDoms.length > i.length && (this.lengthDoms.slice(i.length).forEach((t) => t.destroy()), this.lengthDoms.length = i.length);
171
- } else
172
- e();
159
+ if (!this.five)
160
+ return console.error("Five not found");
161
+ const i = m(this, this.points).map((t, n) => {
162
+ if (n !== 0)
163
+ return [m(this, this.points[n - 1]), t];
164
+ }).filter(c);
165
+ i.forEach(([t, n], h) => {
166
+ var a;
167
+ const r = C(t, n);
168
+ this.lengthDoms[h] = (a = this.lengthDoms[h]) != null ? a : (() => {
169
+ const g = new x(this.five);
170
+ return g.intersectCheck = !1, g;
171
+ })(), this.lengthDoms[h].setPosition(r, [t, n]);
172
+ const d = t.distanceTo(n).toFixed(2);
173
+ d === "0.00" ? this.lengthDoms[h].container.innerHTML = "" : this.lengthDoms[h].container.innerHTML = W(d + "m");
174
+ }), this.lengthDoms.length > i.length && (this.lengthDoms.slice(i.length).forEach((t) => t.destroy()), this.lengthDoms.length = i.length);
173
175
  }
174
176
  }
175
177
  export {
176
- $ as LineMesh
178
+ Q as LineMesh
177
179
  };
@@ -1,32 +1,31 @@
1
1
  var C = Object.defineProperty, N = Object.defineProperties;
2
2
  var P = Object.getOwnPropertyDescriptors;
3
3
  var M = Object.getOwnPropertySymbols;
4
- var k = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
4
+ var k = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
5
5
  var n = (i, e, t) => e in i ? C(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, c = (i, e) => {
6
6
  for (var t in e || (e = {}))
7
7
  k.call(e, t) && n(i, t, e[t]);
8
8
  if (M)
9
9
  for (var t of M(e))
10
- m.call(e, t) && n(i, t, e[t]);
10
+ B.call(e, t) && n(i, t, e[t]);
11
11
  return i;
12
12
  }, g = (i, e) => N(i, P(e));
13
13
  var A = (i, e, t) => (n(i, typeof e != "symbol" ? e + "" : e, t), t);
14
14
  import * as o from "three";
15
- import { DEFAULT_HIGHLIGHT_OPACITY as B } from "../typings/style.js";
16
- import { IObject3D as b } from "../../shared-utils/three/IObject3D.js";
15
+ import { DEFAULT_HIGHLIGHT_OPACITY as b } from "../typings/style.js";
16
+ import { IObject3D as m } from "../../shared-utils/three/IObject3D.js";
17
17
  import { anyPositionToVector3 as E } from "../../shared-utils/positionToVector3.js";
18
18
  import "hammerjs";
19
19
  import "three/examples/jsm/renderers/CSS3DRenderer";
20
20
  import "@realsee/five/line";
21
21
  import "../../shared-utils/tag.js";
22
- import "../utils/Modules/Global.js";
23
22
  import "../../shared-utils/three/THREESphere.js";
24
23
  import "animejs";
25
24
  import { notNil as u } from "../../shared-utils/isNil.js";
26
25
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
27
- const p = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sHDgwCEMBJZu0AAAAdaVRYdENvbW1lbnQAAAAAAENyZWF0ZWQgd2l0aCBHSU1QZC5lBwAABM5JREFUWMO1V0tPG2cUPZ4Hxh6DazIOrjFNqJs0FIMqWFgWQkatsmvVbtggKlSVRVf5AWz4AWz4AUSKEChll19QJYSXkECuhFxsHjEhxCYm+DWGMZ5HF72DJq4bAzFXurI0M/I5997v3u9cC65vTJVn2lX/xHINQOYSBLTLEuIuCWw4Z3IGAEvf6ASmVHjNzHCXBG4A0AjACsAOwEbO0nsFQBnAGYASAIl+ZRMR7SolMEdsByD09fV5R0ZGgg8ePPjW5/N1iqLYpuu6RZblciKR2I9Go69evnwZnZ+fjwI4IS8AKBIRzeQfJWCANwKwh0KhtrGxsYehUOin1tbW+zzP23ietzY2NnIAoGmaLsuyUiqVyvl8XtrY2NiamZn589mzZxsAUgCOAeQAnFI2tI+VxIjaAeDzoaGh7xYWFuZOTk6OZVk+12uYqqq6JEnn0Wg0OT4+/geAXwGEAdwDIFJQ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0NDvQgwDIOWlhZrMBj8kgi0UJdxRgYMArzL5XJ7vd57qLPZ7Xamp6fnNgBXtQxcjFuHw+Hyer3t9SYgCAITCAScAJoBNNEY/08GOFVVrfVMv7kMNDntFD1vjIAPrlRN0xjckOm6biFQ3jwNPwDMZrOnqVTqfb3Bi8Wivru7W/VCYkwPlKOjo0IikXh7EwQikYgE4Nw0CfXKDCipVCoTj8df3QABbW1tLUc6oUgkFPMkVACUNjc337148eKvw8PDbJ2jP1taWkoCyNDVXDSECmNSK4qiKNLq6urW8+fPI/UicHx8rD59+jSVy+WOAKSJhKENwFItLtoxk8mwsixzHR0dHe3t7c5PAU+n09rs7OzJkydPYqVSaQfANoDXALIk31S2smU1TWMPDg7K5XKZ7+3t9TudTut1U7+wsFCcmJiIpdPpbQBxADsAknQWymYCOukBHYCuKApisdhpMpnURFEU79y503TVyKenpzOTk5M7e3t7MQKPV0Zv1gNm+awB0MvlshqLxfLb29uyJElWURSbXC4XXyvqxcXFs6mpqeTc3Nzu3t7e3wQcA7BPZ8Cov1pNlJplmQtAG8MwHV6v95tAINA5MDBwPxAIuLu6upr8fr/VAN3c3JQjkcjZ+vp6fnl5+d2bN29SuVzuNYAEpf01CdRChUL+X1VskHACuA3Ay3Fcu9vt7nA6nZ7m5uYWQRCaNE3jVVW15PP580KhIGUymWw2m00DOAJwSP4WwPtq4LX2Ao6USxNlQyS/RcQcdLGwlNIz6vEMAaZpNzCk2Pll94LK/cDYimxERiBwG10sxjgvEZBE0UpE6vxj+0Ct5bTaXthgEhRmja8QWNkkPGsuIpfdjpkK+cZUWTC0KredVmtD/gdlSl6EG4AMvQAAAABJRU5ErkJggg==";
28
27
  let w = null;
29
- class Q extends b {
28
+ class T extends m {
30
29
  constructor(t) {
31
30
  var f, a;
32
31
  super();
@@ -41,7 +40,7 @@ class Q extends b {
41
40
  transparent: !0,
42
41
  side: o.DoubleSide,
43
42
  size: (f = t == null ? void 0 : t.size) != null ? f : 8,
44
- map: w || (w = new o.TextureLoader().load(p)),
43
+ map: w || (w = new o.TextureLoader().load(F)),
45
44
  sizeAttenuation: !1
46
45
  }, r = new o.PointsMaterial(g(c({}, d), {
47
46
  color: (a = t == null ? void 0 : t.color) != null ? a : 16777215,
@@ -66,12 +65,12 @@ class Q extends b {
66
65
  u(t.color) && (this.fontMesh.material.setValues({ color: t.color }), this.backgroundMesh.material.setValues({ color: t.color })), u(t.size) && (this.fontMesh.material.setValues({ side: t.size }), this.backgroundMesh.material.setValues({ side: t.size })), u(t.occlusionVisibility) && (t.occlusionVisibility ? t.occlusionMode === "depthTest" ? (this.fontMesh.material.depthTest = !1, this.backgroundMesh.visible = !1) : (this.fontMesh.material.depthTest = !0, this.backgroundMesh.visible = !0) : (this.fontMesh.material.depthTest = !0, this.backgroundMesh.visible = !1));
67
66
  }
68
67
  highlight() {
69
- this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.fontMesh.material.opacity, this.fontMesh.material.setValues({ opacity: this.opacityBeforeHighlight * B }));
68
+ this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.fontMesh.material.opacity, this.fontMesh.material.setValues({ opacity: this.opacityBeforeHighlight * b }));
70
69
  }
71
70
  unhighlight() {
72
71
  this.highlighted && (this.highlighted = !1, this.fontMesh.material.setValues({ opacity: this.opacityBeforeHighlight }));
73
72
  }
74
73
  }
75
74
  export {
76
- Q as PointMesh
75
+ T as PointMesh
77
76
  };
@@ -28,6 +28,7 @@ export default class PolygonMesh extends ColoredMesh<THREE.BufferGeometry> {
28
28
  planeHelperNeedUpdate: boolean;
29
29
  geometryInfoNeedUpdate: boolean;
30
30
  _paramsStyle: Partial<PolygonStyle>;
31
+ private get five();
31
32
  private planeHelper;
32
33
  private _geometryInfo;
33
34
  private opacityBeforeHighlight;
@@ -1,5 +1,5 @@
1
- var d = Object.defineProperty, y = Object.defineProperties;
2
- var f = Object.getOwnPropertyDescriptors;
1
+ var d = Object.defineProperty, f = Object.defineProperties;
2
+ var y = Object.getOwnPropertyDescriptors;
3
3
  var m = Object.getOwnPropertySymbols;
4
4
  var u = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
5
5
  var a = (i, t, e) => t in i ? d(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, h = (i, t) => {
@@ -9,7 +9,7 @@ var a = (i, t, e) => t in i ? d(i, t, { enumerable: !0, configurable: !0, writab
9
9
  for (var e of m(t))
10
10
  c.call(t, e) && a(i, e, t[e]);
11
11
  return i;
12
- }, g = (i, t) => y(i, f(t));
12
+ }, g = (i, t) => f(i, y(t));
13
13
  var r = (i, t, e) => (a(i, typeof t != "symbol" ? t + "" : t, e), e);
14
14
  import * as l from "three";
15
15
  import { generatePolygonGeometry as I } from "../../shared-utils/three/generatePolygonGeometry.js";
@@ -18,13 +18,12 @@ import { anyPositionToVector3 as P } from "../../shared-utils/positionToVector3.
18
18
  import { ColoredMesh as A } from "../utils/three/ColoredMesh.js";
19
19
  import { getGeometryInfo as _ } from "../../shared-utils/three/geometryUtil.js";
20
20
  import { LightTag as S } from "../../shared-utils/tag.js";
21
- import { globalModules as M } from "../utils/Modules/Global.js";
22
- import { getLengthHTML as D } from "../utils/Meshes/getLengthHTML.js";
23
- import { applyObjectMatrixWorld as T } from "../../shared-utils/three/applyObjectMatrixWorld.js";
21
+ import { getLengthHTML as M } from "../utils/Meshes/getLengthHTML.js";
22
+ import { applyObjectMatrixWorld as D } from "../../shared-utils/three/applyObjectMatrixWorld.js";
24
23
  const p = new l.BufferGeometry();
25
24
  p.name = "blankGeometry";
26
25
  p.isBlank = !0;
27
- class j extends A {
26
+ class R extends A {
28
27
  constructor(e) {
29
28
  super(e);
30
29
  r(this, "name", "PolygonMesh");
@@ -53,19 +52,23 @@ class j extends A {
53
52
  get geometryInfo() {
54
53
  return this.geometryInfoNeedUpdate && (this._geometryInfo = _(this.geometry), this.geometryInfoNeedUpdate = !1), this._geometryInfo;
55
54
  }
55
+ get five() {
56
+ var e, o;
57
+ return (o = (e = window.globalModules) == null ? void 0 : e.five) != null ? o : window.$five;
58
+ }
56
59
  updateMatrixWorld(e) {
57
60
  if (super.updateMatrixWorld(e), this.center) {
58
- const s = T(this, this.center).toArray().join(",");
59
- s !== this.lastRenderAreaItem && (this.updateAreaItems(), this.lastRenderAreaItem = s);
61
+ const o = D(this, this.center).toArray().join(",");
62
+ o !== this.lastRenderAreaItem && (this.updateAreaItems(), this.lastRenderAreaItem = o);
60
63
  }
61
64
  }
62
65
  setStyle(e) {
63
66
  this._paramsStyle = h(h({}, this._paramsStyle), e), super.setStyle(this._paramsStyle), this.updateAreaItems();
64
67
  }
65
68
  setPoints(e) {
66
- var o;
67
- const s = e.map(P);
68
- this.points = s, this.geometry = (o = I(this.points)) != null ? o : p, this.planeHelperNeedUpdate = !0, this.geometryInfoNeedUpdate = !0, this.updateAreaItems();
69
+ var s;
70
+ const o = e.map(P);
71
+ this.points = o, this.geometry = (s = I(this.points)) != null ? s : p, this.planeHelperNeedUpdate = !0, this.geometryInfoNeedUpdate = !0, this.updateAreaItems();
69
72
  }
70
73
  /**
71
74
  * @description: 获取一个点投影在当前平面上的点
@@ -83,21 +86,23 @@ class j extends A {
83
86
  this.points.length >= 3 ? this.planeHelper = new l.Plane().setFromCoplanarPoints(this.points[0], this.points[1], this.points[2]) : this.planeHelper = null, this.planeHelperNeedUpdate = !1;
84
87
  }
85
88
  updateAreaItems() {
86
- var o;
89
+ var s;
87
90
  const e = () => {
88
91
  var n;
89
92
  (n = this.areaDom) == null || n.destroy(), this.areaDom = void 0;
90
93
  };
91
94
  if (!this._paramsStyle.lengthEnable || !this.geometryInfo)
92
95
  return e();
93
- this.areaDom = (o = this.areaDom) != null ? o : (() => {
94
- const n = new S(M.five);
96
+ if (!this.five)
97
+ return console.error("Five not found");
98
+ this.areaDom = (s = this.areaDom) != null ? s : (() => {
99
+ const n = new S(this.five);
95
100
  return n.intersectCheck = !1, n;
96
101
  })(), this.areaDom.setPosition(this.center);
97
- const s = this.geometryInfo.area.toFixed(2);
98
- s === "0.00" ? this.areaDom.container.innerHTML = "" : this.areaDom.container.innerHTML = D(s + "m²");
102
+ const o = this.geometryInfo.area.toFixed(2);
103
+ o === "0.00" ? this.areaDom.container.innerHTML = "" : this.areaDom.container.innerHTML = M(o + "m²");
99
104
  }
100
105
  }
101
106
  export {
102
- j as PolygonMesh
107
+ R as PolygonMesh
103
108
  };
@@ -27,7 +27,6 @@ import "hammerjs";
27
27
  import "three/examples/jsm/renderers/CSS3DRenderer";
28
28
  import "@realsee/five/line";
29
29
  import "../../shared-utils/tag.js";
30
- import "../utils/Modules/Global.js";
31
30
  import { removeAllTag as V } from "../utils/removeAllTag.js";
32
31
  import "../../shared-utils/three/THREESphere.js";
33
32
  import "animejs";
@@ -104,19 +103,19 @@ class g extends E {
104
103
  this.lines.forEach((t) => t.unhighlight());
105
104
  }
106
105
  }
107
- class z extends g {
106
+ class q extends g {
108
107
  constructor(...t) {
109
108
  super(c(h({}, t[0]), { withDots: !1 }));
110
109
  l(this, "name", "PolylineMesh");
111
110
  }
112
111
  }
113
- class G extends g {
112
+ class z extends g {
114
113
  constructor(...t) {
115
114
  super(c(h({}, t[0]), { withDots: !0 }));
116
115
  l(this, "name", "PolylineWithDotsMesh");
117
116
  }
118
117
  }
119
118
  export {
120
- z as PolylineMesh,
121
- G as PolylineWithDotsMesh
119
+ q as PolylineMesh,
120
+ z as PolylineWithDotsMesh
122
121
  };
@@ -7,7 +7,6 @@ import "hammerjs";
7
7
  import "three/examples/jsm/renderers/CSS3DRenderer";
8
8
  import "@realsee/five/line";
9
9
  import "../../shared-utils/tag.js";
10
- import "../utils/Modules/Global.js";
11
10
  import "../../shared-utils/three/THREESphere.js";
12
11
  import "animejs";
13
12
  import { notNil as h } from "../../shared-utils/isNil.js";
@@ -16,7 +15,7 @@ import { PolygonMesh as u } from "./Polygon.js";
16
15
  import { RectangleGeometry as g } from "../utils/three/RectangleGeometry.js";
17
16
  import { getBetterNormal as f } from "../utils/getBetterNormal.js";
18
17
  import { Sculpt as d } from "../index.js";
19
- class T extends u {
18
+ class S extends u {
20
19
  constructor(t) {
21
20
  super(t);
22
21
  i(this, "name", "RectangleMesh");
@@ -38,12 +37,12 @@ class T extends u {
38
37
  return;
39
38
  }
40
39
  if (t.length === 3) {
41
- const [m, s, n] = o, p = m.clone().add(n).sub(s);
40
+ const [s, m, n] = o, p = s.clone().add(n).sub(m);
42
41
  o.push(p);
43
42
  }
44
43
  this.up.copy(f(o, d.modules.five.camera.position)), this.points = o, this.geometry = new g(o), this.planeHelperNeedUpdate = !0, this.geometryInfoNeedUpdate = !0;
45
44
  }
46
45
  }
47
46
  export {
48
- T as RectangleMesh
47
+ S as RectangleMesh
49
48
  };
@@ -10,7 +10,6 @@ import "hammerjs";
10
10
  import "three/examples/jsm/renderers/CSS3DRenderer";
11
11
  import "@realsee/five/line";
12
12
  import "../../../shared-utils/tag.js";
13
- import "../../utils/Modules/Global.js";
14
13
  import "../../../shared-utils/three/THREESphere.js";
15
14
  import "animejs";
16
15
  import { notNil as m } from "../../../shared-utils/isNil.js";
@@ -43,7 +42,7 @@ class l extends p {
43
42
  super.disable(), this.removeChildren();
44
43
  }
45
44
  }
46
- class q extends l {
45
+ class O extends l {
47
46
  constructor(t) {
48
47
  super(t);
49
48
  o(this, "onDrag", (t) => {
@@ -58,6 +57,6 @@ class q extends l {
58
57
  }
59
58
  }
60
59
  export {
61
- q as LineEditor,
60
+ O as LineEditor,
62
61
  l as LineEditorAbstract
63
62
  };
@@ -12,17 +12,16 @@ var u = (i, e, t) => e in i ? g(i, e, { enumerable: !0, configurable: !0, writab
12
12
  var n = (i, e, t) => (u(i, typeof e != "symbol" ? e + "" : e, t), t);
13
13
  import * as s from "three";
14
14
  import { DEFAULT_COLOR as F } from "../../typings/style.js";
15
- import { IObject3D as p } from "../../../shared-utils/three/IObject3D.js";
15
+ import { IObject3D as B } from "../../../shared-utils/three/IObject3D.js";
16
16
  import "hammerjs";
17
17
  import "three/examples/jsm/renderers/CSS3DRenderer";
18
18
  import "@realsee/five/line";
19
19
  import "../../../shared-utils/tag.js";
20
- import "../Modules/Global.js";
21
20
  import "../../../shared-utils/three/THREESphere.js";
22
21
  import "animejs";
23
22
  import { notNil as y } from "../../../shared-utils/isNil.js";
24
23
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
25
- class x extends p {
24
+ class _ extends B {
26
25
  constructor(t) {
27
26
  var h, m;
28
27
  super();
@@ -84,5 +83,5 @@ class x extends p {
84
83
  }
85
84
  }
86
85
  export {
87
- x as ColoredMesh
86
+ _ as ColoredMesh
88
87
  };
@@ -7,18 +7,17 @@ import "hammerjs";
7
7
  import "three/examples/jsm/renderers/CSS3DRenderer";
8
8
  import "@realsee/five/line";
9
9
  import "../shared-utils/tag.js";
10
- import "../Sculpt/utils/Modules/Global.js";
11
10
  import "../shared-utils/three/THREESphere.js";
12
11
  import "animejs";
13
12
  import { FiveUtil as a } from "../shared-utils/Utils/FiveUtil.js";
14
13
  import { absoluteUrl as m } from "../shared-utils/url/absoluteUrl.js";
15
14
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
16
- let P = class {
15
+ let x = class {
17
16
  constructor(t, r) {
18
17
  /**
19
18
  * @realsee/dnalogel 版本号
20
19
  */
21
- i(this, "VERSION", "3.47.14");
20
+ i(this, "VERSION", "3.47.16");
22
21
  i(this, "NAME");
23
22
  i(this, "five");
24
23
  i(this, "workUtil");
@@ -55,5 +54,5 @@ let P = class {
55
54
  }
56
55
  };
57
56
  export {
58
- P as Controller
57
+ x as Controller
59
58
  };