@realsee/dnalogel 3.47.3 → 3.47.5

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 (130) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/Sculpt/Meshes/Polygon.d.ts +1 -1
  3. package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
  4. package/dist/Sculpt/utils/Meshes/getLengthHTML.d.ts +1 -0
  5. package/dist/Sculpt/utils/three/ColoredMesh.d.ts +2 -2
  6. package/dist/index.cjs.js +79 -55
  7. package/dist/index.js +5073 -5050
  8. package/dist/index.umd.js +74 -50
  9. package/dist/shared-utils/five/vector3ToScreen.d.ts +4 -4
  10. package/dist/shared-utils/tag.d.ts +1 -3
  11. package/dist/shared-utils/three/Magnifier.d.ts +1 -0
  12. package/dist/shared-utils/three/index.d.ts +0 -2
  13. package/dist/shared-utils/three/raycaster.d.ts +2 -0
  14. package/libs/AreaMakerPlugin/Controller.js +16 -14
  15. package/libs/AreaMakerPlugin/index.js +18 -16
  16. package/libs/AreaMakerPlugin/utils/Item.js +55 -53
  17. package/libs/CSS3DRenderPlugin/Controller.js +14 -12
  18. package/libs/CSS3DRenderPlugin/index.js +21 -19
  19. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +15 -13
  20. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +16 -14
  21. package/libs/CruisePlugin/BaseController.js +29 -27
  22. package/libs/CruisePlugin/Move.js +21 -19
  23. package/libs/CruisePlugin/Work.js +16 -14
  24. package/libs/CruisePlugin/index.js +22 -20
  25. package/libs/CurrentPanoImagePlugin/Controller.js +25 -23
  26. package/libs/CurrentPanoImagePlugin/index.js +19 -17
  27. package/libs/GuideLinePlugin/Controller.js +18 -16
  28. package/libs/GuideLinePlugin/GuideLineItem.js +18 -16
  29. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -4
  30. package/libs/GuideLinePlugin/GuideLineModeItem.js +18 -16
  31. package/libs/GuideLinePlugin/index.js +22 -20
  32. package/libs/ModelMakerPlugin/Controller.js +22 -20
  33. package/libs/ModelMakerPlugin/index.js +18 -16
  34. package/libs/ModelMakerPlugin/item/baseItem.js +14 -13
  35. package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
  36. package/libs/ModelMakerPlugin/item/polygonItem.js +6 -5
  37. package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
  38. package/libs/ModelTVVideoPlugin/Plugin.js +17 -15
  39. package/libs/ModelTVVideoPlugin/index.js +16 -14
  40. package/libs/Object3DHelperPlugin/Controller.js +17 -15
  41. package/libs/Object3DHelperPlugin/index.js +21 -19
  42. package/libs/PanoCompassPlugin/Controller.js +18 -16
  43. package/libs/PanoCompassPlugin/index.js +19 -17
  44. package/libs/PanoDoorLabelPlugin/BaseController.js +18 -16
  45. package/libs/PanoDoorLabelPlugin/Controller.js +38 -36
  46. package/libs/PanoDoorLabelPlugin/index.js +19 -17
  47. package/libs/PanoMeasurePlugin/Components/Controller0.js +15 -13
  48. package/libs/PanoMeasurePlugin/Components/Controller1.js +15 -13
  49. package/libs/PanoMeasurePlugin/Controller/EditController.js +14 -12
  50. package/libs/PanoMeasurePlugin/Controller/WatchController.js +15 -13
  51. package/libs/PanoMeasurePlugin/Controller/index.js +13 -11
  52. package/libs/PanoMeasurePlugin/Model/area.js +15 -13
  53. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +15 -13
  54. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +15 -13
  55. package/libs/PanoMeasurePlugin/index.js +24 -22
  56. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +15 -13
  57. package/libs/PanoSpatialTagPlugin/Plugin.js +17 -15
  58. package/libs/PanoSpatialTagPlugin/index.js +14 -12
  59. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +17 -15
  60. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +16 -14
  61. package/libs/PanoTagPlugin/Components/Tag/index.js +16 -14
  62. package/libs/PanoTagPlugin/Components/TagContainer.js +16 -14
  63. package/libs/PanoTagPlugin/Components/TagItem.js +16 -14
  64. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +60 -60
  65. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +16 -14
  66. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +16 -14
  67. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +18 -16
  68. package/libs/PanoTagPlugin/controller/TagRender.js +15 -13
  69. package/libs/PanoTagPlugin/controller/TagUtil.js +16 -14
  70. package/libs/PanoTagPlugin/controller/index.js +18 -16
  71. package/libs/PanoTagPlugin/index.js +24 -22
  72. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +17 -15
  73. package/libs/PanoVideoPlugin/Controller.js +18 -16
  74. package/libs/PanoVideoPlugin/VideoMeshController.js +18 -16
  75. package/libs/PanoVideoPlugin/index.js +21 -19
  76. package/libs/PipelinePlugin/Controller.js +17 -15
  77. package/libs/PipelinePlugin/index.js +19 -17
  78. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +18 -16
  79. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +18 -16
  80. package/libs/PipelinePlugin/utils/Objects/Pipe.js +35 -33
  81. package/libs/Sculpt/Meshes/Box.js +6 -7
  82. package/libs/Sculpt/Meshes/Cylinder.js +15 -16
  83. package/libs/Sculpt/Meshes/Line.js +61 -55
  84. package/libs/Sculpt/Meshes/Point.js +6 -7
  85. package/libs/Sculpt/Meshes/Polygon.d.ts +1 -1
  86. package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
  87. package/libs/Sculpt/Meshes/Polyline.js +5 -6
  88. package/libs/Sculpt/Meshes/Rectangle.js +3 -4
  89. package/libs/Sculpt/Objects/Line/Editor.js +15 -16
  90. package/libs/Sculpt/Objects/Line/index.js +35 -35
  91. package/libs/Sculpt/Objects/Polygon/index.js +55 -61
  92. package/libs/Sculpt/Objects/Polyline/index.js +45 -45
  93. package/libs/Sculpt/index.js +1 -1
  94. package/libs/Sculpt/utils/Meshes/getLengthHTML.d.ts +1 -0
  95. package/libs/Sculpt/utils/Meshes/getLengthHTML.js +34 -0
  96. package/libs/Sculpt/utils/three/ColoredMesh.d.ts +2 -2
  97. package/libs/Sculpt/utils/three/ColoredMesh.js +3 -4
  98. package/libs/base/BasePlugin.js +14 -15
  99. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +15 -13
  100. package/libs/floorplan/MapviewFloorplanPlugin/index.js +19 -17
  101. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +15 -13
  102. package/libs/floorplan/ModelFloorplanPlugin/index.js +19 -17
  103. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +18 -16
  104. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +19 -17
  105. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +15 -13
  106. package/libs/floorplan/TopviewFloorplanPlugin/index.js +19 -17
  107. package/libs/floorplan/index.js +1 -2
  108. package/libs/index.js +15 -15
  109. package/libs/shared-utils/Object3DHelper/utils/getMouseRaycaster.js +7 -7
  110. package/libs/shared-utils/five/index.js +3 -4
  111. package/libs/shared-utils/five/lookObject.js +3 -4
  112. package/libs/shared-utils/five/vector3ToScreen.d.ts +4 -4
  113. package/libs/shared-utils/five/vector3ToScreen.js +9 -4
  114. package/libs/shared-utils/index.js +45 -49
  115. package/libs/shared-utils/logger.js +1 -1
  116. package/libs/shared-utils/tag.d.ts +1 -3
  117. package/libs/shared-utils/tag.js +37 -29
  118. package/libs/shared-utils/three/Magnifier.d.ts +1 -0
  119. package/libs/shared-utils/three/Magnifier.js +23 -24
  120. package/libs/shared-utils/three/index.d.ts +0 -2
  121. package/libs/shared-utils/three/index.js +1 -2
  122. package/libs/shared-utils/three/raycaster.d.ts +2 -0
  123. package/libs/shared-utils/three/raycaster.js +6 -0
  124. package/package.json +2 -2
  125. package/dist/shared-utils/three/getIntersect.d.ts +0 -21
  126. package/dist/shared-utils/three/getRaycaster.d.ts +0 -6
  127. package/libs/shared-utils/three/getIntersect.d.ts +0 -21
  128. package/libs/shared-utils/three/getIntersect.js +0 -24
  129. package/libs/shared-utils/three/getRaycaster.d.ts +0 -6
  130. package/libs/shared-utils/three/getRaycaster.js +0 -12
@@ -11,30 +11,42 @@ var f = (p, i, t) => i in p ? d(p, i, { enumerable: !0, configurable: !0, writab
11
11
  };
12
12
  var n = (p, i, t) => (f(p, typeof i != "symbol" ? i + "" : i, t), t);
13
13
  var l = (p, i, t) => new Promise((r, m) => {
14
- var o = (s) => {
14
+ var e = (s) => {
15
15
  try {
16
16
  a(t.next(s));
17
17
  } catch (c) {
18
18
  m(c);
19
19
  }
20
- }, e = (s) => {
20
+ }, o = (s) => {
21
21
  try {
22
22
  a(t.throw(s));
23
23
  } catch (c) {
24
24
  m(c);
25
25
  }
26
- }, a = (s) => s.done ? r(s.value) : Promise.resolve(s.value).then(o, e);
26
+ }, a = (s) => s.done ? r(s.value) : Promise.resolve(s.value).then(e, o);
27
27
  a((t = t.apply(p, i)).next());
28
28
  });
29
29
  import * as u from "three";
30
30
  import "hammerjs";
31
31
  import "three/examples/jsm/renderers/CSS3DRenderer";
32
- import "@realsee/five/line";
33
- import "../../../Sculpt/utils/Modules/Global.js";
32
+ import "../../../Sculpt/Meshes/Line.js";
34
33
  import "../../../shared-utils/three/THREESphere.js";
35
34
  import "animejs";
36
35
  import { BetterTween as g } from "../../../shared-utils/animationFrame/BetterTween.js";
37
36
  import { CustomBezierCurve3 as x } from "../../../shared-utils/three/Extras/Curves/BezierCurve3.js";
37
+ import "../../../Sculpt/typings/style.js";
38
+ import "../../../shared-utils/five/FiveLine.js";
39
+ import "@realsee/five/line";
40
+ import "../../../shared-utils/positionToVector3.js";
41
+ import "../../../shared-utils/three/IObject3D.js";
42
+ import "../../../shared-utils/three/centerPoint.js";
43
+ import "../../../shared-utils/isNil.js";
44
+ import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
45
+ import "../../../shared-utils/tag.js";
46
+ import "../../../shared-utils/five/vector3ToScreen.js";
47
+ import "../../../shared-utils/five/getFiveModel.js";
48
+ import "../../../shared-utils/three/raycaster.js";
49
+ import "../../../Sculpt/utils/Modules/Global.js";
38
50
  import "../../../Sculpt/utils/Modules/Cursor.js";
39
51
  import "../../../Object3DHelperPlugin/Controller.js";
40
52
  import "../../../base/BasePlugin.js";
@@ -43,29 +55,23 @@ import "../../../shared-utils/Utils/FiveUtil.js";
43
55
  import "../../../shared-utils/Utils/BaseUtil.js";
44
56
  import "../../../shared-utils/Utils/WorkUtil.js";
45
57
  import "../../../shared-utils/five/transformPosition.js";
46
- import "../../../shared-utils/five/getFiveModel.js";
47
58
  import "../../../shared-utils/url/absoluteUrl.js";
48
- import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
49
59
  import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
50
60
  import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
51
61
  import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
52
- import "../../../shared-utils/three/IObject3D.js";
53
62
  import "../../../shared-utils/three/boundingBox.js";
54
63
  import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
55
64
  import "../../../shared-utils/Object3DHelper/utils/direction.js";
56
65
  import "../../../shared-utils/Object3DHelper/Constants/color.js";
57
66
  import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
58
67
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
59
- import "../../../shared-utils/positionToVector3.js";
60
68
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
61
69
  import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
62
70
  import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
63
71
  import "../../../CSS3DRenderPlugin/utils/even.js";
64
72
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
65
73
  import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
66
- import "../../../shared-utils/three/centerPoint.js";
67
74
  import "../../../shared-utils/three/getObjectVisible.js";
68
- import "../../../shared-utils/isNil.js";
69
75
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
70
76
  import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
71
77
  import "../../../shared-utils/util.js";
@@ -106,16 +112,12 @@ import "../../../shared-utils/three/Assets/index.js";
106
112
  import "../../../shared-utils/three/PointSelector/utils/html.js";
107
113
  import "../../../shared-utils/five/initialCSS3DRender.js";
108
114
  import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
109
- import "../../../Sculpt/Meshes/Line.js";
110
- import "../../../Sculpt/typings/style.js";
111
- import "../../../shared-utils/five/FiveLine.js";
112
- import "../../../shared-utils/tag.js";
113
- import "../../../shared-utils/five/vector3ToScreen.js";
114
- import "../../../Sculpt/utils/removeAllTag.js";
115
115
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
116
116
  import "../../../shared-utils/isTouchDevice.js";
117
117
  import "../../../shared-utils/five/getPosition.js";
118
118
  import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
119
+ import "../../../Sculpt/utils/removeAllTag.js";
120
+ import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
119
121
  import "../../../shared-utils/animationFrame/index.js";
120
122
  import "../../../shared-utils/three/Extras/Core/Interpolations.js";
121
123
  import "../../../shared-utils/three/Extras/Core/Interpolations2.js";
@@ -163,9 +165,9 @@ class h extends u.Mesh {
163
165
  /** u / m: 每米水管对应到贴图上,应该对应的 u 的长度 */
164
166
  n(this, "uPreMeter", 1);
165
167
  t.geometryConfig && (this.geometryConfig = y(y({}, this.geometryConfig), t.geometryConfig)), this.customID = t.id || this.uuid, this.pathPoints = t.path, this.path = h.calculatePath(t.path.map((s) => new u.Vector3().fromArray(s))), this.pathLength = this.path.getLength(), this.texture = h.formatTexture(t.texture);
166
- const { radius: m, tubularSegments: o, radialSegments: e } = this.geometryConfig, a = h.formatTexture(t.texture);
168
+ const { radius: m, tubularSegments: e, radialSegments: o } = this.geometryConfig, a = h.formatTexture(t.texture);
167
169
  this.geometry = h.formatGeometryUV(
168
- new u.TubeBufferGeometry(this.path, o, m, e),
170
+ new u.TubeBufferGeometry(this.path, e, m, o),
169
171
  this.pathLength,
170
172
  this.uPreMeter
171
173
  ), this.material = new u.ShaderMaterial({
@@ -190,10 +192,10 @@ class h extends u.Mesh {
190
192
  return t.length === 2 ? new u.LineCurve3(t[0], t[1]) : new x(t);
191
193
  }
192
194
  static formatGeometryUV(t, r, m) {
193
- const o = t.getAttribute("uv");
194
- for (let e = 0; e < o.count; e++) {
195
- const a = o.getX(e) * r * m;
196
- o.setX(e, a);
195
+ const e = t.getAttribute("uv");
196
+ for (let o = 0; o < e.count; o++) {
197
+ const a = e.getX(o) * r * m;
198
+ e.setX(o, a);
197
199
  }
198
200
  return t;
199
201
  }
@@ -205,30 +207,30 @@ class h extends u.Mesh {
205
207
  }
206
208
  hide(t) {
207
209
  return l(this, null, function* () {
208
- var o;
209
- (o = this.opacityAnime) == null || o.dispose();
210
+ var e;
211
+ (e = this.opacityAnime) == null || e.dispose();
210
212
  const r = 0;
211
213
  if (typeof (t == null ? void 0 : t.duration) != "number")
212
214
  return this.setOpacity(r);
213
215
  const m = this.material.uniforms.opacity.value;
214
- return m === r ? !0 : new Promise((e) => {
215
- this.opacityAnime = new g({ progress: m }).to({ progress: r }).onUpdate(({ progress: a }) => this.setOpacity(a)).onComplete(() => e(!0)).onDispose(() => {
216
- this.setOpacity(r), e(!1);
216
+ return m === r ? !0 : new Promise((o) => {
217
+ this.opacityAnime = new g({ progress: m }).to({ progress: r }).onUpdate(({ progress: a }) => this.setOpacity(a)).onComplete(() => o(!0)).onDispose(() => {
218
+ this.setOpacity(r), o(!1);
217
219
  }).play();
218
220
  });
219
221
  });
220
222
  }
221
223
  show(t) {
222
224
  return l(this, null, function* () {
223
- var o;
224
- (o = this.opacityAnime) == null || o.dispose();
225
+ var e;
226
+ (e = this.opacityAnime) == null || e.dispose();
225
227
  const r = 1;
226
228
  if (typeof (t == null ? void 0 : t.duration) != "number")
227
229
  return this.setOpacity(r);
228
230
  const m = this.material.uniforms.opacity.value;
229
- return new Promise((e) => {
230
- this.opacityAnime = new g({ progress: m }).to({ progress: r }).onUpdate(({ progress: a }) => this.setOpacity(a)).onComplete(() => e(!0)).onDispose(() => {
231
- this.setOpacity(r), e(!1);
231
+ return new Promise((o) => {
232
+ this.opacityAnime = new g({ progress: m }).to({ progress: r }).onUpdate(({ progress: a }) => this.setOpacity(a)).onComplete(() => o(!0)).onDispose(() => {
233
+ this.setOpacity(r), o(!1);
232
234
  }).play();
233
235
  });
234
236
  });
@@ -1,20 +1,19 @@
1
1
  var d = Object.defineProperty;
2
2
  var p = (e, i, t) => i in e ? d(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t;
3
3
  var s = (e, i, t) => (p(e, typeof i != "symbol" ? i + "" : i, t), t);
4
- import { IObject3D as m } from "../../shared-utils/three/IObject3D.js";
4
+ import { IObject3D as a } from "../../shared-utils/three/IObject3D.js";
5
5
  import { anyPositionToVector3 as c } from "../../shared-utils/positionToVector3.js";
6
6
  import "three";
7
7
  import "hammerjs";
8
8
  import "three/examples/jsm/renderers/CSS3DRenderer";
9
- import "@realsee/five/line";
10
- import "../utils/Modules/Global.js";
9
+ import "./Line.js";
11
10
  import "../../shared-utils/three/THREESphere.js";
12
11
  import "animejs";
13
12
  import { notNil as r } from "../../shared-utils/isNil.js";
14
13
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
15
14
  import { RectangleWithEdgeMesh as P } from "./RectangleWithEdge.js";
16
- import { RectangleMesh as a } from "./Rectangle.js";
17
- class H extends m {
15
+ import { RectangleMesh as m } from "./Rectangle.js";
16
+ class w extends a {
18
17
  constructor(t) {
19
18
  super();
20
19
  s(this, "name", "BoxMesh");
@@ -25,7 +24,7 @@ class H extends m {
25
24
  this.bottomPlane = new P(t), this.topPlane = new P(t), this.add(this.bottomPlane), t != null && t.points && this.setPoints(t);
26
25
  }
27
26
  get planes() {
28
- return this.children.filter((t) => t instanceof a);
27
+ return this.children.filter((t) => t instanceof m);
29
28
  }
30
29
  get color() {
31
30
  var t;
@@ -91,5 +90,5 @@ class H extends m {
91
90
  }
92
91
  }
93
92
  export {
94
- H as BoxMesh
93
+ w as BoxMesh
95
94
  };
@@ -14,18 +14,17 @@ import { IObject3D as f } from "../../shared-utils/three/IObject3D.js";
14
14
  import * as h from "three";
15
15
  import "hammerjs";
16
16
  import "three/examples/jsm/renderers/CSS3DRenderer";
17
- import { DEFAULT_HIGHLIGHT_OPACITY as M } from "../typings/style.js";
18
- import "@realsee/five/line";
19
- import { anyPositionToVector3 as d } from "../../shared-utils/positionToVector3.js";
20
- import "../utils/Modules/Global.js";
17
+ import "./Line.js";
21
18
  import "../../shared-utils/three/THREESphere.js";
22
19
  import "animejs";
23
- import { notNil as g } from "../../shared-utils/isNil.js";
20
+ import { notNil as d } from "../../shared-utils/isNil.js";
24
21
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
25
- import { CircleWithEdgeMesh as m } from "./CircleWithEdge.js";
26
- import { radiusToSegments as y } from "../utils/radiusToSegments.js";
27
- import { ColoredMesh as a } from "../utils/three/ColoredMesh.js";
28
- class A extends f {
22
+ import { CircleWithEdgeMesh as g } from "./CircleWithEdge.js";
23
+ import { radiusToSegments as M } from "../utils/radiusToSegments.js";
24
+ import { ColoredMesh as y } from "../utils/three/ColoredMesh.js";
25
+ import { anyPositionToVector3 as C } from "../../shared-utils/positionToVector3.js";
26
+ import { DEFAULT_HIGHLIGHT_OPACITY as a } from "../typings/style.js";
27
+ class z extends f {
29
28
  constructor(t) {
30
29
  super();
31
30
  o(this, "bottomCircle");
@@ -34,7 +33,7 @@ class A extends f {
34
33
  o(this, "opacityBeforeHighlight");
35
34
  o(this, "highlighted", !1);
36
35
  o(this, "params");
37
- this.params = t, this.bottomCircle = new m(t), this.bottomCircle.name = "bottomCircle", this.topCircle = new m(t), this.topCircle.name = "topCircle", this.edgeMesh = new a(t), t != null && t.bottomCenter && (t != null && t.topCenter) && (t != null && t.radius) && this.setPoints(t), this.addIfNotExists(this.bottomCircle);
36
+ this.params = t, this.bottomCircle = new g(t), this.bottomCircle.name = "bottomCircle", this.topCircle = new g(t), this.topCircle.name = "topCircle", this.edgeMesh = new y(t), t != null && t.bottomCenter && (t != null && t.topCenter) && (t != null && t.radius) && this.setPoints(t), this.addIfNotExists(this.bottomCircle);
38
37
  }
39
38
  get bottomCenter() {
40
39
  return this.bottomCircle.center;
@@ -52,8 +51,8 @@ class A extends f {
52
51
  return this.bottomCircle.color;
53
52
  }
54
53
  setPoints(t) {
55
- const r = d(t.topCenter), s = d(t.bottomCenter), C = r.clone().sub(s).normalize();
56
- this.bottomCircle.setPoints({ center: s, normal: C, radius: t.radius }), this.setTopCenter(r), this.needsRender = !0;
54
+ const r = C(t.topCenter), s = C(t.bottomCenter), m = r.clone().sub(s).normalize();
55
+ this.bottomCircle.setPoints({ center: s, normal: m, radius: t.radius }), this.setTopCenter(r), this.needsRender = !0;
57
56
  }
58
57
  setTopCenter(t) {
59
58
  this.addIfNotExists(this.topCircle), this.topCircle.setPoints({ center: t, normal: this.normal, radius: this.radius }), this.setEdgeMesh();
@@ -62,10 +61,10 @@ class A extends f {
62
61
  this.addIfNotExists(this.bottomCircle), this.bottomCircle.setPoints({ center: t, normal: this.normal, radius: this.radius }), this.setEdgeMesh();
63
62
  }
64
63
  setStyle(t) {
65
- this.params = l(l({}, this.params), t), g(t.color) && this.bottomCircle.setStyle({ color: t.color }), g(t.color) && this.topCircle.setStyle({ color: t.color });
64
+ this.params = l(l({}, this.params), t), d(t.color) && this.bottomCircle.setStyle({ color: t.color }), d(t.color) && this.topCircle.setStyle({ color: t.color });
66
65
  }
67
66
  highlight() {
68
- this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.edgeMesh.opacity, this.edgeMesh.setStyle({ opacity: this.edgeMesh.opacity * M }), this.bottomCircle.highlight(), this.topCircle.highlight(), this.needsRender = !0);
67
+ this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.edgeMesh.opacity, this.edgeMesh.setStyle({ opacity: this.edgeMesh.opacity * a }), this.bottomCircle.highlight(), this.topCircle.highlight(), this.needsRender = !0);
69
68
  }
70
69
  unhighlight() {
71
70
  this.highlighted && (this.highlighted = !1, this.edgeMesh.setStyle({ opacity: this.opacityBeforeHighlight }), this.bottomCircle.unhighlight(), this.topCircle.unhighlight(), this.needsRender = !0);
@@ -77,7 +76,7 @@ class A extends f {
77
76
  this.radius,
78
77
  this.radius,
79
78
  t.distanceTo(r),
80
- y(this.radius),
79
+ M(this.radius),
81
80
  1,
82
81
  !0
83
82
  );
@@ -86,5 +85,5 @@ class A extends f {
86
85
  }
87
86
  }
88
87
  export {
89
- A as CylinderMesh
88
+ z as CylinderMesh
90
89
  };
@@ -1,35 +1,38 @@
1
- var _ = Object.defineProperty;
2
- var b = Object.getOwnPropertySymbols;
3
- var S = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
4
- var f = (s, o, e) => o in s ? _(s, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[o] = e, y = (s, o) => {
1
+ var C = Object.defineProperty;
2
+ var _ = Object.getOwnPropertySymbols;
3
+ var I = Object.prototype.hasOwnProperty, R = Object.prototype.propertyIsEnumerable;
4
+ var m = (s, o, e) => o in s ? C(s, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[o] = e, b = (s, o) => {
5
5
  for (var e in o || (o = {}))
6
- S.call(o, e) && f(s, e, o[e]);
7
- if (b)
8
- for (var e of b(o))
9
- k.call(o, e) && f(s, e, o[e]);
6
+ I.call(o, e) && m(s, e, o[e]);
7
+ if (_)
8
+ for (var e of _(o))
9
+ R.call(o, e) && m(s, e, o[e]);
10
10
  return s;
11
11
  };
12
- var h = (s, o, e) => (f(s, typeof o != "symbol" ? o + "" : o, e), e);
13
- import * as a from "three";
14
- import { DEFAULT_LINE_COLOR as m, DEFAULT_LINE_WIDTH as M, DEFAULT_HIGHLIGHT_OPACITY as D } from "../typings/style.js";
15
- import { LineGeometry as L, LineMaterial as w, THREE_Line2 as H } from "../../shared-utils/five/FiveLine.js";
16
- import { anyPositionToVector3 as C } from "../../shared-utils/positionToVector3.js";
17
- import { IObject3D as I } from "../../shared-utils/three/IObject3D.js";
12
+ var r = (s, o, e) => (m(s, typeof o != "symbol" ? o + "" : o, e), e);
13
+ import * as d from "three";
14
+ import { DEFAULT_LINE_COLOR as P, DEFAULT_LINE_WIDTH as v, DEFAULT_HIGHLIGHT_OPACITY as M } from "../typings/style.js";
15
+ import { LineGeometry as D, LineMaterial as V, THREE_Line2 as W } from "../../shared-utils/five/FiveLine.js";
16
+ import { anyPositionToVector3 as A } from "../../shared-utils/positionToVector3.js";
17
+ import { IObject3D as O } from "../../shared-utils/three/IObject3D.js";
18
18
  import "hammerjs";
19
19
  import "three/examples/jsm/renderers/CSS3DRenderer";
20
- import { centerPoint as p } from "../../shared-utils/three/centerPoint.js";
21
- import { LightTag as R } from "../../shared-utils/tag.js";
22
- import { globalModules as x } from "../utils/Modules/Global.js";
23
- import { removeAllTag as v } from "../utils/removeAllTag.js";
20
+ import { centerPoint as B } from "../../shared-utils/three/centerPoint.js";
24
21
  import "../../shared-utils/three/THREESphere.js";
25
22
  import "animejs";
26
23
  import { notNil as c } from "../../shared-utils/isNil.js";
27
24
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
28
- class E extends w {
25
+ import { LightTag as F } from "../../shared-utils/tag.js";
26
+ import { globalModules as L } from "../utils/Modules/Global.js";
27
+ import { removeAllTag as U } from "../utils/removeAllTag.js";
28
+ import { getLengthHTML as z } from "../utils/Meshes/getLengthHTML.js";
29
+ import { vector3ToScreen as k } from "../../shared-utils/five/vector3ToScreen.js";
30
+ const G = new d.Vector2();
31
+ class x extends V {
29
32
  constructor(e) {
30
33
  var n, t;
31
34
  super(e);
32
- h(this, "_three_color");
35
+ r(this, "_three_color");
33
36
  c(e == null ? void 0 : e.color) && (this.three_color = (n = e == null ? void 0 : e.color) != null ? n : 16777215), Object.keys(e).forEach((i) => {
34
37
  ["color", "dashed", "dashScale", "dashSize", "gapSize", "resolution"].includes(i) || i in this && (this[i] = e[i]);
35
38
  }), this.setDashed((t = e == null ? void 0 : e.dashed) != null ? t : !1);
@@ -44,34 +47,34 @@ class E extends w {
44
47
  this.dashed = e, e ? this.defines.USE_DASH = "" : delete this.defines.USE_DASH, this.needsUpdate = !0;
45
48
  }
46
49
  }
47
- class T extends H {
50
+ class w extends W {
48
51
  constructor(e, n) {
49
52
  super(e, n);
50
- h(this, "name", "Line3");
53
+ r(this, "name", "Line3");
51
54
  }
52
55
  }
53
- class J extends I {
56
+ class he extends O {
54
57
  constructor(e) {
55
- var l, r, g, u, d;
58
+ var l, h, f, g, a;
56
59
  super();
57
- h(this, "name", "LineMesh");
58
- h(this, "points");
59
- h(this, "lengthDoms", []);
60
- h(this, "highlighted", !1);
61
- h(this, "line");
62
- h(this, "backLine");
63
- h(this, "opacityBeforeHighlight");
64
- h(this, "paramsStyle", {});
60
+ r(this, "name", "LineMesh");
61
+ r(this, "points");
62
+ r(this, "lengthDoms", []);
63
+ r(this, "highlighted", !1);
64
+ r(this, "line");
65
+ r(this, "backLine");
66
+ r(this, "opacityBeforeHighlight");
67
+ r(this, "paramsStyle", {});
65
68
  this.paramsStyle = e != null ? e : {};
66
- const n = new L(), t = new E({
67
- color: new a.Color((l = e == null ? void 0 : e.lineColor) != null ? l : m),
68
- linewidth: (r = e == null ? void 0 : e.lineWidth) != null ? r : M,
69
+ const n = new D(), t = new x({
70
+ color: new d.Color((l = e == null ? void 0 : e.lineColor) != null ? l : P),
71
+ linewidth: (h = e == null ? void 0 : e.lineWidth) != null ? h : v,
69
72
  dashScale: 40,
70
- opacity: (g = e == null ? void 0 : e.opacity) != null ? g : 1,
73
+ opacity: (f = e == null ? void 0 : e.opacity) != null ? f : 1,
71
74
  transparent: !0,
72
- dashed: (u = e == null ? void 0 : e.dashed) != null ? u : !1
73
- }), i = new E({
74
- color: new a.Color((d = e == null ? void 0 : e.lineColor) != null ? d : m),
75
+ dashed: (g = e == null ? void 0 : e.dashed) != null ? g : !1
76
+ }), i = new x({
77
+ color: new d.Color((a = e == null ? void 0 : e.lineColor) != null ? a : P),
75
78
  linewidth: t.linewidth * 0.9,
76
79
  dashScale: t.dashScale,
77
80
  opacity: t.opacity * 0.8,
@@ -80,8 +83,8 @@ class J extends I {
80
83
  transparent: !0,
81
84
  resolution: t.resolution
82
85
  });
83
- this.line = new T(n, t), this.backLine = new T(n, i), 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", () => {
84
- v(this);
86
+ this.line = new w(n, t), this.backLine = new w(n, i), 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
+ U(this);
85
88
  });
86
89
  }
87
90
  get style() {
@@ -98,7 +101,7 @@ class J extends I {
98
101
  return this.line.material.linewidth;
99
102
  }
100
103
  get color() {
101
- return new a.Color(this.line.material.three_color);
104
+ return new d.Color(this.line.material.three_color);
102
105
  }
103
106
  get dashed() {
104
107
  return this.line.material.dashed;
@@ -110,14 +113,14 @@ class J extends I {
110
113
  return this.line.material.depthTest === !1 ? "depthTest" : "translucence";
111
114
  }
112
115
  setPoints(e) {
113
- const n = e.map(C).filter(c);
116
+ const n = e.map(A).filter(c);
114
117
  if (this.points = n, n.length < 2) {
115
- this.line.geometry = new L(), this.backLine.geometry = this.line.geometry, this.updateLengthItems();
118
+ this.line.geometry = new D(), this.backLine.geometry = this.line.geometry, this.updateLengthItems();
116
119
  return;
117
120
  }
118
121
  this.addIfNotExists(this.line, this.backLine);
119
122
  const t = n.flatMap((i) => [i.x, i.y, i.z]);
120
- 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;
123
+ t.length > 2 && (this.line.geometry.dispose(), this.line.geometry = new D(), this.backLine.geometry = this.line.geometry), this.line.geometry.setPositions(t), this.line.computeLineDistances(), this.updateLengthItems(), this.needsRender = !0;
121
124
  }
122
125
  setResolution(e, n) {
123
126
  const t = this.line.material.resolution;
@@ -126,33 +129,36 @@ class J extends I {
126
129
  (i.x !== e || i.y !== n) && (i.set(e, n), this.needsRender = !0);
127
130
  }
128
131
  setStyle(e) {
129
- var i, l, r;
130
- this.paramsStyle = y(y({}, this.paramsStyle), e), c(e.lineColor) && (this.line.material.three_color = new a.Color(e.lineColor), this.backLine.material.three_color = new a.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();
131
- const n = (i = e.occlusionVisibility) != null ? i : this.paramsStyle.occlusionVisibility, t = (r = (l = e.occlusionMode) != null ? l : this.paramsStyle.occlusionMode) != null ? r : "translucence";
132
+ var i, l, h;
133
+ this.paramsStyle = b(b({}, this.paramsStyle), e), c(e.lineColor) && (this.line.material.three_color = new d.Color(e.lineColor), this.backLine.material.three_color = new d.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();
134
+ const n = (i = e.occlusionVisibility) != null ? i : this.paramsStyle.occlusionVisibility, t = (h = (l = e.occlusionMode) != null ? l : this.paramsStyle.occlusionMode) != null ? h : "translucence";
132
135
  n ? 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;
133
136
  }
134
137
  highlight() {
135
- 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);
138
+ this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.line.material.opacity, this.line.material.opacity = this.opacityBeforeHighlight * M, this.backLine.material.opacity = this.backLine.material.opacity * M, this.needsRender = !0);
136
139
  }
137
140
  unhighlight() {
138
141
  this.highlighted && (this.highlighted = !1, this.line.material.opacity = this.opacityBeforeHighlight, this.backLine.material.opacity = 0.2, this.needsRender = !0);
139
142
  }
140
143
  updateLengthItems() {
141
144
  var e, n;
142
- if (this.points.length < 2 && (this.lengthDoms.forEach((t) => t.destroy()), this.lengthDoms = []), this.paramsStyle.lengthEnable) {
145
+ if ((!this.points || this.points.length < 2) && (this.lengthDoms.forEach((t) => t.destroy()), this.lengthDoms = []), this.paramsStyle.lengthEnable) {
143
146
  const t = (n = (e = this.points) == null ? void 0 : e.map((i, l) => {
144
147
  if (l !== 0)
145
148
  return [this.points[l - 1], i];
146
149
  }).filter(c)) != null ? n : [];
147
- t.forEach(([i, l], r) => {
148
- var d;
149
- const g = p(i, l), u = i.distanceTo(l).toFixed(2) + "m";
150
- this.lengthDoms[r] = (d = this.lengthDoms[r]) != null ? d : new R(x.five), this.lengthDoms[r].setPosition(g), this.lengthDoms[r].container.innerHTML = `<div style="pointer-events:none;color:white;">${u}</div>`;
150
+ t.forEach(([i, l], h) => {
151
+ var a;
152
+ const f = B(i, l), g = (() => {
153
+ const T = L.five.renderer.getSize(G), u = k(L.five.camera, i, T), y = k(L.five.camera, l, T), E = u.leftPx > y.leftPx ? y : u, S = u.leftPx > y.leftPx ? u : y, H = S.leftPx - E.leftPx, p = S.topPx - E.topPx;
154
+ return Math.atan2(p, H) * (180 / Math.PI);
155
+ })();
156
+ this.lengthDoms[h] = (a = this.lengthDoms[h]) != null ? a : new F(L.five), this.lengthDoms[h].setPosition(f), this.lengthDoms[h].container.style.rotate = g + "deg", this.lengthDoms[h].container.innerHTML = z(i.distanceTo(l).toFixed(2) + "m");
151
157
  }), this.lengthDoms.length > t.length && (this.lengthDoms.slice(t.length).forEach((i) => i.destroy()), this.lengthDoms.length = t.length);
152
158
  } else
153
159
  this.lengthDoms.forEach((t) => t.destroy()), this.lengthDoms = [];
154
160
  }
155
161
  }
156
162
  export {
157
- J as LineMesh
163
+ he as LineMesh
158
164
  };
@@ -13,19 +13,18 @@ var n = (i, e, t) => e in i ? C(i, e, { enumerable: !0, configurable: !0, writab
13
13
  var A = (i, e, t) => (n(i, typeof e != "symbol" ? e + "" : e, t), t);
14
14
  import * as o from "three";
15
15
  import { DEFAULT_HIGHLIGHT_OPACITY as b } from "../typings/style.js";
16
- import { IObject3D as m } from "../../shared-utils/three/IObject3D.js";
17
- import { anyPositionToVector3 as E } from "../../shared-utils/positionToVector3.js";
16
+ import { IObject3D as E } from "../../shared-utils/three/IObject3D.js";
17
+ import { anyPositionToVector3 as m } from "../../shared-utils/positionToVector3.js";
18
18
  import "hammerjs";
19
19
  import "three/examples/jsm/renderers/CSS3DRenderer";
20
- import "@realsee/five/line";
21
- import "../utils/Modules/Global.js";
20
+ import "./Line.js";
22
21
  import "../../shared-utils/three/THREESphere.js";
23
22
  import "animejs";
24
23
  import { notNil as u } from "../../shared-utils/isNil.js";
25
24
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
26
25
  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==";
27
26
  let w = null;
28
- class T extends m {
27
+ class O extends E {
29
28
  constructor(t) {
30
29
  var f, a;
31
30
  super();
@@ -53,7 +52,7 @@ class T extends m {
53
52
  depthTest: !1,
54
53
  opacity: 0.5
55
54
  })), s = new o.Points(l, r), h = new o.Points(l, V);
56
- this.fontMesh = s, this.backgroundMesh = h, s.name = "FontMesh", h.name = "BackgroundMesh", s.renderOrder = 10, h.renderOrder = 0, this.add(s, h), t != null && t.point && this.position.copy(E(t.point)), t && this.setStyle(t);
55
+ this.fontMesh = s, this.backgroundMesh = h, s.name = "FontMesh", h.name = "BackgroundMesh", s.renderOrder = 10, h.renderOrder = 0, this.add(s, h), t != null && t.point && this.position.copy(m(t.point)), t && this.setStyle(t);
57
56
  }
58
57
  get color() {
59
58
  return this.fontMesh.material.color;
@@ -72,5 +71,5 @@ class T extends m {
72
71
  }
73
72
  }
74
73
  export {
75
- T as PointMesh
74
+ O as PointMesh
76
75
  };
@@ -13,7 +13,7 @@ export default class PolygonMesh extends ColoredMesh<THREE.BufferGeometry> {
13
13
  color: THREE.Color;
14
14
  opacity: number;
15
15
  occlusionVisibility: boolean;
16
- occlusionMode: string;
16
+ occlusionMode: "translucence" | "depthTest";
17
17
  };
18
18
  get isBlank(): boolean;
19
19
  get center(): THREE.Vector3;
@@ -15,7 +15,7 @@ export declare class PolygonWithEdgeMesh extends PolygonMesh {
15
15
  color: THREE.Color;
16
16
  opacity: number;
17
17
  occlusionVisibility: boolean;
18
- occlusionMode: string;
18
+ occlusionMode: "translucence" | "depthTest";
19
19
  };
20
20
  get lineWidth(): number;
21
21
  get lineColor(): THREE.Color;
@@ -25,8 +25,7 @@ import { IObject3D as F } from "../../shared-utils/three/IObject3D.js";
25
25
  import * as H from "three";
26
26
  import "hammerjs";
27
27
  import "three/examples/jsm/renderers/CSS3DRenderer";
28
- import "@realsee/five/line";
29
- import "../utils/Modules/Global.js";
28
+ import "./Line.js";
30
29
  import "../../shared-utils/three/THREESphere.js";
31
30
  import "animejs";
32
31
  import { notNil as I } from "../../shared-utils/isNil.js";
@@ -107,19 +106,19 @@ class v extends F {
107
106
  this.lines.forEach((i) => i.unhighlight());
108
107
  }
109
108
  }
110
- class Z extends v {
109
+ class Y extends v {
111
110
  constructor(...i) {
112
111
  super(c(a({}, i[0]), { withDots: !1 }));
113
112
  l(this, "name", "PolylineMesh");
114
113
  }
115
114
  }
116
- class _ extends v {
115
+ class Z extends v {
117
116
  constructor(...i) {
118
117
  super(c(a({}, i[0]), { withDots: !0 }));
119
118
  l(this, "name", "PolylineWithDotsMesh");
120
119
  }
121
120
  }
122
121
  export {
123
- Z as PolylineMesh,
124
- _ as PolylineWithDotsMesh
122
+ Y as PolylineMesh,
123
+ Z as PolylineWithDotsMesh
125
124
  };
@@ -5,8 +5,7 @@ import { anyPositionToVector3 as a } from "../../shared-utils/positionToVector3.
5
5
  import * as u from "three";
6
6
  import "hammerjs";
7
7
  import "three/examples/jsm/renderers/CSS3DRenderer";
8
- import "@realsee/five/line";
9
- import "../utils/Modules/Global.js";
8
+ import "./Line.js";
10
9
  import "../../shared-utils/three/THREESphere.js";
11
10
  import "animejs";
12
11
  import { notNil as s } from "../../shared-utils/isNil.js";
@@ -15,7 +14,7 @@ import { PolygonMesh as f } from "./Polygon.js";
15
14
  import { RectangleGeometry as g } from "../utils/three/RectangleGeometry.js";
16
15
  import { getBetterNormal as d } from "../utils/getBetterNormal.js";
17
16
  import { Sculpt as v } from "../index.js";
18
- class G extends f {
17
+ class B extends f {
19
18
  constructor(t) {
20
19
  super(t);
21
20
  i(this, "name", "RectangleMesh");
@@ -47,5 +46,5 @@ class G extends f {
47
46
  }
48
47
  }
49
48
  export {
50
- G as RectangleMesh
49
+ B as RectangleMesh
51
50
  };