@realsee/dnalogel 3.47.13 → 3.47.15

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 (101) hide show
  1. package/CHANGELOG.md +8 -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 +2 -1
  5. package/dist/index.cjs.js +53 -53
  6. package/dist/index.js +18650 -18640
  7. package/dist/index.umd.js +47 -47
  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 +50 -41
  77. package/libs/Sculpt/Meshes/Point.js +9 -10
  78. package/libs/Sculpt/Meshes/Polygon.d.ts +2 -1
  79. package/libs/Sculpt/Meshes/Polygon.js +47 -37
  80. package/libs/Sculpt/Meshes/Polyline.js +18 -16
  81. package/libs/Sculpt/Meshes/Rectangle.js +3 -4
  82. package/libs/Sculpt/Objects/Line/Editor.js +2 -3
  83. package/libs/Sculpt/Objects/Rectangle/index.js +1 -1
  84. package/libs/Sculpt/utils/removeAllTag.js +4 -4
  85. package/libs/Sculpt/utils/three/ColoredMesh.js +3 -4
  86. package/libs/base/BasePlugin.js +3 -4
  87. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +59 -128
  88. package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -75
  89. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +59 -129
  90. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -75
  91. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +62 -134
  92. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -76
  93. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +81 -151
  94. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -75
  95. package/libs/floorplan/index.js +0 -1
  96. package/libs/index.js +62 -62
  97. package/libs/shared-utils/five/index.js +2 -3
  98. package/libs/shared-utils/five/lookObject.js +17 -18
  99. package/libs/shared-utils/logger.js +1 -1
  100. package/libs/shared-utils/three/index.js +0 -1
  101. package/package.json +1 -1
@@ -1,33 +1,32 @@
1
- var M = Object.defineProperty;
2
- var m = Object.getOwnPropertySymbols;
1
+ var _ = Object.defineProperty;
2
+ var b = Object.getOwnPropertySymbols;
3
3
  var k = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
4
- var u = (o, s, e) => s in o ? M(o, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[s] = e, f = (o, s) => {
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
- k.call(s, e) && u(o, e, s[e]);
7
- if (m)
8
- for (var e of m(s))
9
- S.call(s, e) && u(o, e, s[e]);
6
+ k.call(s, e) && f(o, e, s[e]);
7
+ if (b)
8
+ for (var e of b(s))
9
+ S.call(s, e) && f(o, e, s[e]);
10
10
  return o;
11
11
  };
12
- var l = (o, s, e) => (u(o, typeof s != "symbol" ? s + "" : s, e), e);
13
- import * as g from "three";
14
- import { DEFAULT_LINE_COLOR as b, DEFAULT_LINE_WIDTH as p, DEFAULT_HIGHLIGHT_OPACITY as D } from "../typings/style.js";
15
- import { LineGeometry as y, LineMaterial as I, THREE_Line2 as w } from "../../shared-utils/five/FiveLine.js";
12
+ var l = (o, s, e) => (f(o, typeof s != "symbol" ? s + "" : s, e), e);
13
+ import * as u from "three";
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
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";
25
- import { applyObjectMatrixWorld as T } from "../../shared-utils/three/applyObjectMatrixWorld.js";
22
+ import { removeAllTag as W } from "../utils/removeAllTag.js";
23
+ import { getLengthHTML as v } from "../utils/Meshes/getLengthHTML.js";
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,15 +45,15 @@ 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 _ extends w {
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 X extends R {
56
55
  constructor(e) {
57
- var h, r, d, a, L;
56
+ var h, r, d, a, g;
58
57
  super();
59
58
  l(this, "name", "LineMesh");
60
59
  l(this, "points");
@@ -66,15 +65,15 @@ class $ extends R {
66
65
  l(this, "paramsStyle", {});
67
66
  l(this, "lastRenderLengthItem");
68
67
  this.paramsStyle = e != null ? e : {};
69
- const i = new y(), t = new E({
70
- color: new g.Color((h = e == null ? void 0 : e.lineColor) != null ? h : b),
68
+ const i = new L(), t = new E({
69
+ color: new u.Color((h = e == null ? void 0 : e.lineColor) != null ? h : D),
71
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,
75
74
  dashed: (a = e == null ? void 0 : e.dashed) != null ? a : !1
76
75
  }), n = new E({
77
- color: new g.Color((L = e == null ? void 0 : e.lineColor) != null ? L : b),
76
+ color: new u.Color((g = e == null ? void 0 : e.lineColor) != null ? g : D),
78
77
  linewidth: t.linewidth * 0.9,
79
78
  dashScale: t.dashScale,
80
79
  opacity: t.opacity * 0.8,
@@ -83,8 +82,8 @@ class $ extends R {
83
82
  transparent: !0,
84
83
  resolution: t.resolution
85
84
  });
86
- this.line = new _(i, t), this.backLine = new _(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);
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", () => {
86
+ W(this);
88
87
  });
89
88
  }
90
89
  get style() {
@@ -101,7 +100,7 @@ class $ extends R {
101
100
  return this.line.material.linewidth;
102
101
  }
103
102
  get color() {
104
- return new g.Color(this.line.material.three_color);
103
+ return new u.Color(this.line.material.three_color);
105
104
  }
106
105
  get dashed() {
107
106
  return this.line.material.dashed;
@@ -112,21 +111,25 @@ class $ extends R {
112
111
  get occlusionMode() {
113
112
  return this.line.material.depthTest === !1 ? "depthTest" : "translucence";
114
113
  }
114
+ get five() {
115
+ return window.globalModules.five;
116
+ }
115
117
  updateMatrixWorld(e) {
116
- var t;
117
- super.updateMatrixWorld(e);
118
- const i = (t = this.points) == null ? void 0 : t.map((n) => n.toArray().join(",")).join(",");
119
- i !== this.lastRenderLengthItem && (this.updateLengthItems(), this.lastRenderLengthItem = i);
118
+ var i;
119
+ if (super.updateMatrixWorld(e), this.points) {
120
+ const t = (i = m(this, this.points)) == null ? void 0 : i.map((n) => n.toArray().join(",")).join(",");
121
+ t !== this.lastRenderLengthItem && (this.updateLengthItems(), this.lastRenderLengthItem = t);
122
+ }
120
123
  }
121
124
  setPoints(e) {
122
125
  const i = e.map(H).filter(c);
123
126
  if (this.points = i, i.length < 2) {
124
- this.line.geometry = new y(), this.backLine.geometry = this.line.geometry, this.updateLengthItems();
127
+ this.line.geometry = new L(), this.backLine.geometry = this.line.geometry, this.updateLengthItems();
125
128
  return;
126
129
  }
127
130
  this.addIfNotExists(this.line, this.backLine);
128
131
  const t = i.flatMap((n) => [n.x, n.y, n.z]);
129
- t.length > 2 && (this.line.geometry.dispose(), this.line.geometry = new y(), this.backLine.geometry = this.line.geometry), this.line.geometry.setPositions(t), this.line.computeLineDistances(), this.updateLengthItems(), this.needsRender = !0;
132
+ t.length > 2 && (this.line.geometry.dispose(), this.line.geometry = new L(), this.backLine.geometry = this.line.geometry), this.line.geometry.setPositions(t), this.line.computeLineDistances(), this.updateLengthItems(), this.needsRender = !0;
130
133
  }
131
134
  setResolution(e, i) {
132
135
  const t = this.line.material.resolution;
@@ -136,39 +139,45 @@ class $ extends R {
136
139
  }
137
140
  setStyle(e) {
138
141
  var n, h, r;
139
- this.paramsStyle = f(f({}, this.paramsStyle), e), c(e.lineColor) && (this.line.material.three_color = new g.Color(e.lineColor), this.backLine.material.three_color = new g.Color(e.lineColor)), c(e.lineWidth) && (this.line.material.linewidth = e.lineWidth), c(e.dashed) && this.line.material.setDashed(e.dashed), c(e.opacity) && (this.line.material.opacity = e.opacity, this.backLine.material.opacity = this.line.material.opacity * 0.2), this.updateLengthItems();
142
+ this.paramsStyle = y(y({}, this.paramsStyle), e), c(e.lineColor) && (this.line.material.three_color = new u.Color(e.lineColor), this.backLine.material.three_color = new u.Color(e.lineColor)), c(e.lineWidth) && (this.line.material.linewidth = e.lineWidth), c(e.dashed) && this.line.material.setDashed(e.dashed), c(e.opacity) && (this.line.material.opacity = e.opacity, this.backLine.material.opacity = this.line.material.opacity * 0.2), this.updateLengthItems();
140
143
  const i = (n = e.occlusionVisibility) != null ? n : this.paramsStyle.occlusionVisibility, t = (r = (h = e.occlusionMode) != null ? h : this.paramsStyle.occlusionMode) != null ? r : "translucence";
141
144
  i ? t === "depthTest" ? (this.line.material.depthTest = !1, this.backLine.visible = !1) : t === "translucence" && (this.line.material.depthTest = !0, this.backLine.visible = !0, this.line.material.opacity === 1 ? this.backLine.material.setDashed(!0) : this.backLine.material.setDashed(this.line.material.dashed)) : (this.line.material.depthTest = !0, this.backLine.visible = !1), this.needsRender = !0;
142
145
  }
143
146
  highlight() {
144
- this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.line.material.opacity, this.line.material.opacity = this.opacityBeforeHighlight * D, this.backLine.material.opacity = this.backLine.material.opacity * D, this.needsRender = !0);
147
+ this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.line.material.opacity, this.line.material.opacity = this.opacityBeforeHighlight * T, this.backLine.material.opacity = this.backLine.material.opacity * T, this.needsRender = !0);
145
148
  }
146
149
  unhighlight() {
147
150
  this.highlighted && (this.highlighted = !1, this.line.material.opacity = this.opacityBeforeHighlight, this.backLine.material.opacity = 0.2, this.needsRender = !0);
148
151
  }
149
152
  updateLengthItems() {
153
+ if (!this.five) {
154
+ console.error("Five not found");
155
+ return;
156
+ }
150
157
  const e = () => {
151
158
  this.lengthDoms.forEach((i) => i.destroy()), this.lengthDoms = [];
152
159
  };
153
160
  if (!this.points || this.points.length < 2)
154
161
  return e();
155
162
  if (this.paramsStyle.lengthEnable) {
156
- const i = T(this, this.points).map((t, n) => {
163
+ const i = m(this, this.points).map((t, n) => {
157
164
  if (n !== 0)
158
- return [T(this, this.points[n - 1]), t];
165
+ return [m(this, this.points[n - 1]), t];
159
166
  }).filter(c);
160
167
  i.forEach(([t, n], h) => {
161
- var d;
168
+ var a;
162
169
  const r = C(t, n);
163
- this.lengthDoms[h] = (d = this.lengthDoms[h]) != null ? d : (() => {
164
- const a = new x(W.five);
165
- return a.intersectCheck = !1, a;
166
- })(), this.lengthDoms[h].setPosition(r, [t, n]), this.lengthDoms[h].container.innerHTML = O(t.distanceTo(n).toFixed(2) + "m");
170
+ this.lengthDoms[h] = (a = this.lengthDoms[h]) != null ? a : (() => {
171
+ const g = new x(this.five);
172
+ return g.intersectCheck = !1, g;
173
+ })(), this.lengthDoms[h].setPosition(r, [t, n]);
174
+ const d = t.distanceTo(n).toFixed(2);
175
+ d === "0.00" ? this.lengthDoms[h].container.innerHTML = "" : this.lengthDoms[h].container.innerHTML = v(d + "m");
167
176
  }), this.lengthDoms.length > i.length && (this.lengthDoms.slice(i.length).forEach((t) => t.destroy()), this.lengthDoms.length = i.length);
168
177
  } else
169
178
  e();
170
179
  }
171
180
  }
172
181
  export {
173
- $ as LineMesh
182
+ X as LineMesh
174
183
  };
@@ -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+/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==";
26
+ const F = "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==";
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,11 +28,12 @@ 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;
34
35
  private highlighted;
35
- private lastRenderLengthItem;
36
+ private lastRenderAreaItem;
36
37
  private areaDom?;
37
38
  constructor(params?: Partial<PolygonStyle & PolygonData>);
38
39
  updateMatrixWorld(force?: boolean): void;
@@ -1,29 +1,29 @@
1
- var d = Object.defineProperty, y = Object.defineProperties;
2
- var f = Object.getOwnPropertyDescriptors;
3
- var p = Object.getOwnPropertySymbols;
1
+ var d = Object.defineProperty, f = Object.defineProperties;
2
+ var y = Object.getOwnPropertyDescriptors;
3
+ var m = Object.getOwnPropertySymbols;
4
4
  var u = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
5
- var h = (i, t, e) => t in i ? d(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, n = (i, t) => {
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) => {
6
6
  for (var e in t || (t = {}))
7
- u.call(t, e) && h(i, e, t[e]);
8
- if (p)
9
- for (var e of p(t))
10
- c.call(t, e) && h(i, e, t[e]);
7
+ u.call(t, e) && a(i, e, t[e]);
8
+ if (m)
9
+ for (var e of m(t))
10
+ c.call(t, e) && a(i, e, t[e]);
11
11
  return i;
12
- }, g = (i, t) => y(i, f(t));
13
- var r = (i, t, e) => (h(i, typeof t != "symbol" ? t + "" : t, e), e);
12
+ }, g = (i, t) => f(i, y(t));
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";
16
16
  import { DEFAULT_HIGHLIGHT_OPACITY as H } from "../typings/style.js";
17
17
  import { anyPositionToVector3 as P } from "../../shared-utils/positionToVector3.js";
18
- import { ColoredMesh as _ } from "../utils/three/ColoredMesh.js";
19
- import { getGeometryInfo as S } from "../../shared-utils/three/geometryUtil.js";
20
- import { LightTag as L } from "../../shared-utils/tag.js";
21
- import { globalModules as U } from "../utils/Modules/Global.js";
22
- import { getLengthHTML as A } from "../utils/Meshes/getLengthHTML.js";
23
- const a = new l.BufferGeometry();
24
- a.name = "blankGeometry";
25
- a.isBlank = !0;
26
- class E extends _ {
18
+ import { ColoredMesh as A } from "../utils/three/ColoredMesh.js";
19
+ import { getGeometryInfo as _ } from "../../shared-utils/three/geometryUtil.js";
20
+ import { LightTag as S } from "../../shared-utils/tag.js";
21
+ import { getLengthHTML as M } from "../utils/Meshes/getLengthHTML.js";
22
+ import { applyObjectMatrixWorld as D } from "../../shared-utils/three/applyObjectMatrixWorld.js";
23
+ const p = new l.BufferGeometry();
24
+ p.name = "blankGeometry";
25
+ p.isBlank = !0;
26
+ class k extends A {
27
27
  constructor(e) {
28
28
  super(e);
29
29
  r(this, "name", "PolygonMesh");
@@ -35,35 +35,39 @@ class E extends _ {
35
35
  r(this, "_geometryInfo", null);
36
36
  r(this, "opacityBeforeHighlight");
37
37
  r(this, "highlighted", !1);
38
- r(this, "lastRenderLengthItem");
38
+ r(this, "lastRenderAreaItem");
39
39
  r(this, "areaDom");
40
40
  e != null && e.points && this.setPoints(e.points), this._paramsStyle = e != null ? e : {}, this.updateAreaItems();
41
41
  }
42
42
  get style() {
43
- return g(n({}, super.style), { lengthEnable: this._paramsStyle.lengthEnable });
43
+ return g(h({}, super.style), { lengthEnable: this._paramsStyle.lengthEnable });
44
44
  }
45
45
  get isBlank() {
46
46
  return !!this.geometry.isBlank;
47
47
  }
48
48
  get center() {
49
- return this.geometryInfo.center;
49
+ var e;
50
+ return (e = this.geometryInfo) == null ? void 0 : e.center;
50
51
  }
51
52
  get geometryInfo() {
52
- return this.geometryInfoNeedUpdate && (this._geometryInfo = S(this.geometry), this.geometryInfoNeedUpdate = !1), this._geometryInfo;
53
+ return this.geometryInfoNeedUpdate && (this._geometryInfo = _(this.geometry), this.geometryInfoNeedUpdate = !1), this._geometryInfo;
54
+ }
55
+ get five() {
56
+ return window.globalModules.five;
53
57
  }
54
58
  updateMatrixWorld(e) {
55
- var s;
56
- super.updateMatrixWorld(e);
57
- const o = (s = this.points) == null ? void 0 : s.map((m) => m.toArray().join(",")).join(",");
58
- o !== this.lastRenderLengthItem && (this.updateAreaItems(), this.lastRenderLengthItem = o);
59
+ if (super.updateMatrixWorld(e), this.center) {
60
+ const o = D(this, this.center).toArray().join(",");
61
+ o !== this.lastRenderAreaItem && (this.updateAreaItems(), this.lastRenderAreaItem = o);
62
+ }
59
63
  }
60
64
  setStyle(e) {
61
- this._paramsStyle = n(n({}, this._paramsStyle), e), super.setStyle(this._paramsStyle), this.updateAreaItems();
65
+ this._paramsStyle = h(h({}, this._paramsStyle), e), super.setStyle(this._paramsStyle), this.updateAreaItems();
62
66
  }
63
67
  setPoints(e) {
64
68
  var s;
65
69
  const o = e.map(P);
66
- this.points = o, this.geometry = (s = I(this.points)) != null ? s : a, this.planeHelperNeedUpdate = !0, this.geometryInfoNeedUpdate = !0, this.updateAreaItems();
70
+ this.points = o, this.geometry = (s = I(this.points)) != null ? s : p, this.planeHelperNeedUpdate = !0, this.geometryInfoNeedUpdate = !0, this.updateAreaItems();
67
71
  }
68
72
  /**
69
73
  * @description: 获取一个点投影在当前平面上的点
@@ -81,19 +85,25 @@ class E extends _ {
81
85
  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;
82
86
  }
83
87
  updateAreaItems() {
84
- var o;
88
+ var s;
89
+ if (!this.five) {
90
+ console.error("Five not found");
91
+ return;
92
+ }
85
93
  const e = () => {
86
- var s;
87
- (s = this.areaDom) == null || s.destroy(), this.areaDom = void 0;
94
+ var n;
95
+ (n = this.areaDom) == null || n.destroy(), this.areaDom = void 0;
88
96
  };
89
97
  if (!this._paramsStyle.lengthEnable || !this.geometryInfo)
90
98
  return e();
91
- this.areaDom = (o = this.areaDom) != null ? o : (() => {
92
- const s = new L(U.five);
93
- return s.intersectCheck = !1, s;
94
- })(), this.areaDom.setPosition(this.center), this.areaDom.container.innerHTML = A(this.geometryInfo.area.toFixed(2) + "m²");
99
+ this.areaDom = (s = this.areaDom) != null ? s : (() => {
100
+ const n = new S(this.five);
101
+ return n.intersectCheck = !1, n;
102
+ })(), this.areaDom.setPosition(this.center);
103
+ const o = this.geometryInfo.area.toFixed(2);
104
+ o === "0.00" ? this.areaDom.container.innerHTML = "" : this.areaDom.container.innerHTML = M(o + "m²");
95
105
  }
96
106
  }
97
107
  export {
98
- E as PolygonMesh
108
+ k as PolygonMesh
99
109
  };
@@ -1,40 +1,40 @@
1
1
  var P = Object.defineProperty, S = Object.defineProperties;
2
2
  var M = Object.getOwnPropertyDescriptors;
3
3
  var a = Object.getOwnPropertySymbols;
4
- var y = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
4
+ var u = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
5
5
  var m = (s, e, t) => e in s ? P(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, h = (s, e) => {
6
6
  for (var t in e || (e = {}))
7
- y.call(e, t) && m(s, t, e[t]);
7
+ u.call(e, t) && m(s, t, e[t]);
8
8
  if (a)
9
9
  for (var t of a(e))
10
- d.call(e, t) && m(s, t, e[t]);
10
+ y.call(e, t) && m(s, t, e[t]);
11
11
  return s;
12
12
  }, c = (s, e) => S(s, M(e));
13
13
  var f = (s, e) => {
14
14
  var t = {};
15
15
  for (var i in s)
16
- y.call(s, i) && e.indexOf(i) < 0 && (t[i] = s[i]);
16
+ u.call(s, i) && e.indexOf(i) < 0 && (t[i] = s[i]);
17
17
  if (s != null && a)
18
18
  for (var i of a(s))
19
- e.indexOf(i) < 0 && d.call(s, i) && (t[i] = s[i]);
19
+ e.indexOf(i) < 0 && y.call(s, i) && (t[i] = s[i]);
20
20
  return t;
21
21
  };
22
22
  var l = (s, e, t) => (m(s, typeof e != "symbol" ? e + "" : e, t), t);
23
23
  import { anyPositionToVector3 as b } from "../../shared-utils/positionToVector3.js";
24
- import { IObject3D as D } from "../../shared-utils/three/IObject3D.js";
25
- import * as E from "three";
24
+ import { IObject3D as E } from "../../shared-utils/three/IObject3D.js";
25
+ import * as D from "three";
26
26
  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";
30
+ import { removeAllTag as V } from "../utils/removeAllTag.js";
31
31
  import "../../shared-utils/three/THREESphere.js";
32
32
  import "animejs";
33
- import { notNil as V } from "../../shared-utils/isNil.js";
33
+ import { notNil as W } from "../../shared-utils/isNil.js";
34
34
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
35
- import { LineWithDotsMesh as W } from "./LineWithDots.js";
35
+ import { LineWithDotsMesh as v } from "./LineWithDots.js";
36
36
  import { closeVectors as w } from "../../shared-utils/three/closeVectors.js";
37
- class g extends D {
37
+ class g extends E {
38
38
  constructor(t) {
39
39
  super();
40
40
  l(this, "name", "PolylineBaseMesh");
@@ -42,7 +42,9 @@ class g extends D {
42
42
  l(this, "withDots");
43
43
  l(this, "paramsStyle");
44
44
  const r = t, { withDots: i, points: o } = r, n = f(r, ["withDots", "points"]);
45
- this.withDots = i != null ? i : !0, o && this.setPoints(o), n && this.setStyle(n);
45
+ this.withDots = i != null ? i : !0, o && this.setPoints(o), n && this.setStyle(n), this.addEventListener("removed", () => {
46
+ V(this);
47
+ });
46
48
  }
47
49
  get style() {
48
50
  var t;
@@ -57,7 +59,7 @@ class g extends D {
57
59
  }
58
60
  get lineColor() {
59
61
  var t, i, o;
60
- return (o = (t = this.lines[0]) == null ? void 0 : t.color) != null ? o : (i = this.paramsStyle) != null && i.lineColor ? new E.Color(this.paramsStyle.lineColor) : void 0;
62
+ return (o = (t = this.lines[0]) == null ? void 0 : t.color) != null ? o : (i = this.paramsStyle) != null && i.lineColor ? new D.Color(this.paramsStyle.lineColor) : void 0;
61
63
  }
62
64
  get lineWidth() {
63
65
  var t, i, o;
@@ -85,11 +87,11 @@ class g extends D {
85
87
  const p = o[r + 1];
86
88
  if (r !== 0 && p === void 0)
87
89
  return null;
88
- const u = new W(c(h({}, this.style), {
90
+ const d = new v(c(h({}, this.style), {
89
91
  pointVisibility: this.withDots ? { startPoint: r === 0, endPoint: !0 } : !1
90
92
  }));
91
- return u.setPoints([n, p]), u;
92
- }).filter(V), this.add(...this.lines);
93
+ return d.setPoints([n, p]), d;
94
+ }).filter(W), this.add(...this.lines);
93
95
  }
94
96
  setStyle(t) {
95
97
  this.paramsStyle = h(h({}, this.paramsStyle), t), this.lines.forEach((i) => i.setStyle(this.paramsStyle));
@@ -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
  };
@@ -75,7 +75,7 @@ function J(s, t, e) {
75
75
  const a = s.parent;
76
76
  if (!a)
77
77
  return p(new Error("No container"));
78
- const m = (N = e == null ? void 0 : e.limit) != null ? N : "none", g = (T = e == null ? void 0 : e.drawMethod) != null ? T : "diagonal", l = new M(u(d({}, s.style), { dashed: !0, lengthEnable: !1 })), h = new M(u(d({}, s.style), { dashed: !0, lengthEnable: !1 })), y = new M(u(d({}, s.style), { dashed: !1, lengthEnable: !1 }));
78
+ const m = (N = e == null ? void 0 : e.limit) != null ? N : "none", g = (T = e == null ? void 0 : e.drawMethod) != null ? T : "diagonal", l = new M(u(d({}, s.style), { dashed: !0, lengthEnable: !0 })), h = new M(u(d({}, s.style), { dashed: !0, lengthEnable: !1 })), y = new M(u(d({}, s.style), { dashed: !1, lengthEnable: !1 }));
79
79
  a.add(l, y, h), t.enable();
80
80
  const n = [];
81
81
  let i = new o.Vector3(), v = new o.Vector3();
@@ -1,9 +1,9 @@
1
- import { LightTag as a } from "../../shared-utils/tag.js";
1
+ import { LightTag as e } from "../../shared-utils/tag.js";
2
2
  function s(r) {
3
- e(r), r.traverse((t) => e(t));
3
+ t(r), r.traverse((a) => t(a));
4
4
  }
5
- function e(r) {
6
- Array.isArray(r.lengthDoms) && r.lengthDoms[0] instanceof a && r.lengthDoms.forEach((o) => o.destroy());
5
+ function t(r) {
6
+ Array.isArray(r.lengthDoms) && r.lengthDoms[0] instanceof e && r.lengthDoms.forEach((o) => o.destroy()), r.areaDom instanceof e && r.areaDom.destroy();
7
7
  }
8
8
  export {
9
9
  s as removeAllTag
@@ -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.13");
20
+ i(this, "VERSION", "3.47.15");
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
  };