@realsee/dnalogel 3.45.0 → 3.46.1

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 (100) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/Sculpt/Meshes/Line.d.ts +6 -1
  3. package/dist/Sculpt/utils/removeAllTag.d.ts +2 -0
  4. package/dist/index.cjs.js +53 -53
  5. package/dist/index.js +29600 -29557
  6. package/dist/index.umd.js +49 -49
  7. package/dist/shared-utils/tag.d.ts +6 -3
  8. package/libs/AreaMakerPlugin/Controller.js +151 -78
  9. package/libs/AreaMakerPlugin/index.js +77 -4
  10. package/libs/AreaMakerPlugin/utils/Item.js +191 -111
  11. package/libs/CSS3DRenderPlugin/Controller.js +90 -29
  12. package/libs/CSS3DRenderPlugin/index.js +76 -15
  13. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +133 -58
  14. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +182 -116
  15. package/libs/CruisePlugin/BaseController.js +122 -49
  16. package/libs/CruisePlugin/Move.js +74 -21
  17. package/libs/CruisePlugin/Work.js +99 -46
  18. package/libs/CruisePlugin/index.js +80 -27
  19. package/libs/CurrentPanoImagePlugin/Controller.js +177 -104
  20. package/libs/CurrentPanoImagePlugin/index.js +77 -4
  21. package/libs/GuideLinePlugin/Controller.js +79 -26
  22. package/libs/GuideLinePlugin/GuideLineItem.js +83 -30
  23. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  24. package/libs/GuideLinePlugin/GuideLineModeItem.js +82 -29
  25. package/libs/GuideLinePlugin/index.js +80 -27
  26. package/libs/ModelMakerPlugin/Controller.js +140 -82
  27. package/libs/ModelMakerPlugin/index.js +76 -18
  28. package/libs/ModelTVVideoPlugin/Plugin.js +118 -57
  29. package/libs/ModelTVVideoPlugin/index.js +69 -8
  30. package/libs/Object3DHelperPlugin/Controller.js +67 -43
  31. package/libs/Object3DHelperPlugin/index.js +36 -13
  32. package/libs/PanoCompassPlugin/Controller.js +98 -42
  33. package/libs/PanoCompassPlugin/index.js +72 -16
  34. package/libs/PanoDoorLabelPlugin/BaseController.js +99 -26
  35. package/libs/PanoDoorLabelPlugin/Controller.js +188 -115
  36. package/libs/PanoDoorLabelPlugin/index.js +77 -4
  37. package/libs/PanoMeasurePlugin/Components/Controller0.js +141 -88
  38. package/libs/PanoMeasurePlugin/Components/Controller1.js +179 -126
  39. package/libs/PanoMeasurePlugin/Controller/EditController.js +125 -72
  40. package/libs/PanoMeasurePlugin/Controller/WatchController.js +168 -92
  41. package/libs/PanoMeasurePlugin/Controller/index.js +110 -64
  42. package/libs/PanoMeasurePlugin/Model/area.js +115 -38
  43. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +79 -0
  44. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +98 -45
  45. package/libs/PanoMeasurePlugin/index.js +77 -31
  46. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +99 -20
  47. package/libs/PanoSpatialTagPlugin/Plugin.js +211 -150
  48. package/libs/PanoSpatialTagPlugin/index.js +67 -6
  49. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +149 -68
  50. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +296 -216
  51. package/libs/PanoTagPlugin/Components/Tag/index.js +258 -187
  52. package/libs/PanoTagPlugin/Components/TagContainer.js +158 -87
  53. package/libs/PanoTagPlugin/Components/TagItem.js +145 -74
  54. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +133 -62
  55. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +110 -39
  56. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +106 -35
  57. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +114 -43
  58. package/libs/PanoTagPlugin/controller/TagRender.js +133 -80
  59. package/libs/PanoTagPlugin/controller/TagUtil.js +137 -84
  60. package/libs/PanoTagPlugin/controller/index.js +114 -61
  61. package/libs/PanoTagPlugin/index.js +90 -37
  62. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +122 -41
  63. package/libs/PanoVideoPlugin/Controller.js +138 -65
  64. package/libs/PanoVideoPlugin/VideoMeshController.js +150 -69
  65. package/libs/PanoVideoPlugin/index.js +83 -10
  66. package/libs/PipelinePlugin/Controller.js +200 -128
  67. package/libs/PipelinePlugin/index.js +77 -5
  68. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +103 -22
  69. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +96 -15
  70. package/libs/PipelinePlugin/utils/Objects/Pipe.js +137 -56
  71. package/libs/Sculpt/Meshes/Box.js +6 -5
  72. package/libs/Sculpt/Meshes/Cylinder.js +7 -6
  73. package/libs/Sculpt/Meshes/Line.d.ts +6 -1
  74. package/libs/Sculpt/Meshes/Line.js +80 -57
  75. package/libs/Sculpt/Meshes/Point.js +6 -5
  76. package/libs/Sculpt/Meshes/Polyline.js +5 -4
  77. package/libs/Sculpt/Meshes/Rectangle.js +3 -2
  78. package/libs/Sculpt/Objects/Base/index.js +20 -17
  79. package/libs/Sculpt/Objects/Line/Editor.js +11 -10
  80. package/libs/Sculpt/utils/removeAllTag.d.ts +2 -0
  81. package/libs/Sculpt/utils/removeAllTag.js +10 -0
  82. package/libs/Sculpt/utils/three/ColoredMesh.js +14 -13
  83. package/libs/base/BasePlugin.js +14 -13
  84. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +129 -59
  85. package/libs/floorplan/MapviewFloorplanPlugin/index.js +76 -6
  86. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +130 -59
  87. package/libs/floorplan/ModelFloorplanPlugin/index.js +76 -5
  88. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +159 -86
  89. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +77 -4
  90. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +152 -81
  91. package/libs/floorplan/TopviewFloorplanPlugin/index.js +76 -5
  92. package/libs/floorplan/index.js +1 -0
  93. package/libs/index.js +193 -192
  94. package/libs/shared-utils/five/index.js +3 -2
  95. package/libs/shared-utils/five/lookObject.js +3 -2
  96. package/libs/shared-utils/logger.js +1 -1
  97. package/libs/shared-utils/tag.d.ts +6 -3
  98. package/libs/shared-utils/tag.js +38 -24
  99. package/libs/shared-utils/three/index.js +1 -0
  100. package/package.json +1 -1
@@ -1,40 +1,121 @@
1
1
  var d = Object.defineProperty;
2
2
  var v = Object.getOwnPropertySymbols;
3
3
  var A = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
4
- var f = (o, e, t) => e in o ? d(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, y = (o, e) => {
5
- for (var t in e || (e = {}))
6
- A.call(e, t) && f(o, t, e[t]);
4
+ var f = (p, i, t) => i in p ? d(p, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[i] = t, y = (p, i) => {
5
+ for (var t in i || (i = {}))
6
+ A.call(i, t) && f(p, t, i[t]);
7
7
  if (v)
8
- for (var t of v(e))
9
- w.call(e, t) && f(o, t, e[t]);
10
- return o;
8
+ for (var t of v(i))
9
+ w.call(i, t) && f(p, t, i[t]);
10
+ return p;
11
11
  };
12
- var p = (o, e, t) => (f(o, typeof e != "symbol" ? e + "" : e, t), t);
13
- var l = (o, e, t) => new Promise((i, s) => {
14
- var a = (u) => {
12
+ var n = (p, i, t) => (f(p, typeof i != "symbol" ? i + "" : i, t), t);
13
+ var l = (p, i, t) => new Promise((r, m) => {
14
+ var o = (s) => {
15
15
  try {
16
- n(t.next(u));
16
+ a(t.next(s));
17
17
  } catch (c) {
18
- s(c);
18
+ m(c);
19
19
  }
20
- }, r = (u) => {
20
+ }, e = (s) => {
21
21
  try {
22
- n(t.throw(u));
22
+ a(t.throw(s));
23
23
  } catch (c) {
24
- s(c);
24
+ m(c);
25
25
  }
26
- }, n = (u) => u.done ? i(u.value) : Promise.resolve(u.value).then(a, r);
27
- n((t = t.apply(o, e)).next());
26
+ }, a = (s) => s.done ? r(s.value) : Promise.resolve(s.value).then(o, e);
27
+ a((t = t.apply(p, i)).next());
28
28
  });
29
- import * as m from "three";
29
+ import * as u from "three";
30
30
  import "hammerjs";
31
31
  import "three/examples/jsm/renderers/CSS3DRenderer";
32
32
  import "@realsee/five/line";
33
+ import "../../../Sculpt/utils/Modules/Global.js";
33
34
  import "../../../shared-utils/three/THREESphere.js";
34
35
  import "animejs";
35
36
  import { BetterTween as g } from "../../../shared-utils/animationFrame/BetterTween.js";
36
37
  import { CustomBezierCurve3 as x } from "../../../shared-utils/three/Extras/Curves/BezierCurve3.js";
38
+ import "../../../Sculpt/utils/Modules/Cursor.js";
39
+ import "../../../Object3DHelperPlugin/Controller.js";
40
+ import "../../../base/BasePlugin.js";
41
+ import "../../../shared-utils/Subscribe.js";
42
+ import "../../../shared-utils/Utils/FiveUtil.js";
43
+ import "../../../shared-utils/Utils/BaseUtil.js";
44
+ import "../../../shared-utils/Utils/WorkUtil.js";
45
+ import "../../../shared-utils/five/transformPosition.js";
46
+ import "../../../shared-utils/five/getFiveModel.js";
47
+ import "../../../shared-utils/url/absoluteUrl.js";
37
48
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
49
+ import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
50
+ import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
51
+ import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
52
+ import "../../../shared-utils/three/IObject3D.js";
53
+ import "../../../shared-utils/three/boundingBox.js";
54
+ import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
55
+ import "../../../shared-utils/Object3DHelper/utils/direction.js";
56
+ import "../../../shared-utils/Object3DHelper/Constants/color.js";
57
+ import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
58
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
59
+ import "../../../shared-utils/positionToVector3.js";
60
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
61
+ import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
62
+ import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
63
+ import "../../../CSS3DRenderPlugin/utils/even.js";
64
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
65
+ import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
66
+ import "../../../shared-utils/three/centerPoint.js";
67
+ import "../../../shared-utils/three/getObjectVisible.js";
68
+ import "../../../shared-utils/isNil.js";
69
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
70
+ import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
71
+ import "../../../shared-utils/util.js";
72
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
73
+ import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
74
+ import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
75
+ import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
76
+ import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
77
+ import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
78
+ import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
79
+ import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
80
+ import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
81
+ import "../../../shared-utils/threex/domevents/index.js";
82
+ import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
83
+ import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
84
+ import "../../../Sculpt/utils/three/rayOnLine.js";
85
+ import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
86
+ import "../../../shared-utils/Object3DHelper/index.js";
87
+ import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
88
+ import "../../../shared-utils/math/rad2Deg.js";
89
+ import "../../../shared-utils/math/deg2Rad.js";
90
+ import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
91
+ import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
92
+ import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
93
+ import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
94
+ import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
95
+ import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
96
+ import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
97
+ import "../../../shared-utils/five/fiveModelLoad.js";
98
+ import "../../../shared-utils/five/FiveDomEvents.js";
99
+ import "../../../shared-utils/five/calculateThreeMouse.js";
100
+ import "../../../shared-utils/three/THREERaycaster.js";
101
+ import "../../../shared-utils/three/PointSelector/index.js";
102
+ import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
103
+ import "../../../shared-utils/three/Magnifier.js";
104
+ import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
105
+ import "../../../shared-utils/three/Assets/index.js";
106
+ import "../../../shared-utils/three/PointSelector/utils/html.js";
107
+ import "../../../shared-utils/five/initialCSS3DRender.js";
108
+ 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
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
116
+ import "../../../shared-utils/isTouchDevice.js";
117
+ import "../../../shared-utils/five/getPosition.js";
118
+ import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
38
119
  import "../../../shared-utils/animationFrame/index.js";
39
120
  import "../../../shared-utils/three/Extras/Core/Interpolations.js";
40
121
  import "../../../shared-utils/three/Extras/Core/Interpolations2.js";
@@ -65,40 +146,40 @@ const C = (
65
146
  }
66
147
  `
67
148
  );
68
- class h extends m.Mesh {
69
- constructor(t, i = O) {
149
+ class h extends u.Mesh {
150
+ constructor(t, r = O) {
70
151
  super();
71
- p(this, "geometryConfig", {
152
+ n(this, "geometryConfig", {
72
153
  radius: 1.5 / 100,
73
154
  tubularSegments: 20,
74
155
  radialSegments: 8
75
156
  });
76
- p(this, "customID");
77
- p(this, "path");
78
- p(this, "pathLength", 0);
79
- p(this, "pathPoints");
80
- p(this, "texture");
81
- p(this, "opacityAnime");
157
+ n(this, "customID");
158
+ n(this, "path");
159
+ n(this, "pathLength", 0);
160
+ n(this, "pathPoints");
161
+ n(this, "texture");
162
+ n(this, "opacityAnime");
82
163
  /** u / m: 每米水管对应到贴图上,应该对应的 u 的长度 */
83
- p(this, "uPreMeter", 1);
84
- 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((u) => new m.Vector3().fromArray(u))), this.pathLength = this.path.getLength(), this.texture = h.formatTexture(t.texture);
85
- const { radius: s, tubularSegments: a, radialSegments: r } = this.geometryConfig, n = h.formatTexture(t.texture);
164
+ n(this, "uPreMeter", 1);
165
+ 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);
86
167
  this.geometry = h.formatGeometryUV(
87
- new m.TubeBufferGeometry(this.path, a, s, r),
168
+ new u.TubeBufferGeometry(this.path, o, m, e),
88
169
  this.pathLength,
89
170
  this.uPreMeter
90
- ), this.material = new m.ShaderMaterial({
171
+ ), this.material = new u.ShaderMaterial({
91
172
  uniforms: {
92
173
  opacity: { value: 1 },
93
174
  uOffset: { value: 0 },
94
175
  vOffset: { value: 0 },
95
176
  envMap: {
96
- value: n
177
+ value: a
97
178
  }
98
179
  },
99
180
  transparent: !0,
100
181
  vertexShader: C,
101
- fragmentShader: i
182
+ fragmentShader: r
102
183
  });
103
184
  }
104
185
  /** 根据控制点数量计算管道路径
@@ -106,13 +187,13 @@ class h extends m.Mesh {
106
187
  * @description 两个控制点使用直线路径,多个控制点使用贝塞尔路径
107
188
  */
108
189
  static calculatePath(t) {
109
- return t.length === 2 ? new m.LineCurve3(t[0], t[1]) : new x(t);
190
+ return t.length === 2 ? new u.LineCurve3(t[0], t[1]) : new x(t);
110
191
  }
111
- static formatGeometryUV(t, i, s) {
112
- const a = t.getAttribute("uv");
113
- for (let r = 0; r < a.count; r++) {
114
- const n = a.getX(r) * i * s;
115
- a.setX(r, n);
192
+ 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);
116
197
  }
117
198
  return t;
118
199
  }
@@ -120,34 +201,34 @@ class h extends m.Mesh {
120
201
  * 管道的 Texture 需要满足一定的要求,需要使用 formatTexture 先 format
121
202
  */
122
203
  static formatTexture(t) {
123
- return t.wrapS = m.RepeatWrapping, t.wrapT = m.RepeatWrapping, t;
204
+ return t.wrapS = u.RepeatWrapping, t.wrapT = u.RepeatWrapping, t;
124
205
  }
125
206
  hide(t) {
126
207
  return l(this, null, function* () {
127
- var a;
128
- (a = this.opacityAnime) == null || a.dispose();
129
- const i = 0;
208
+ var o;
209
+ (o = this.opacityAnime) == null || o.dispose();
210
+ const r = 0;
130
211
  if (typeof (t == null ? void 0 : t.duration) != "number")
131
- return this.setOpacity(i);
132
- const s = this.material.uniforms.opacity.value;
133
- return s === i ? !0 : new Promise((r) => {
134
- this.opacityAnime = new g({ progress: s }).to({ progress: i }).onUpdate(({ progress: n }) => this.setOpacity(n)).onComplete(() => r(!0)).onDispose(() => {
135
- this.setOpacity(i), r(!1);
212
+ return this.setOpacity(r);
213
+ 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);
136
217
  }).play();
137
218
  });
138
219
  });
139
220
  }
140
221
  show(t) {
141
222
  return l(this, null, function* () {
142
- var a;
143
- (a = this.opacityAnime) == null || a.dispose();
144
- const i = 1;
223
+ var o;
224
+ (o = this.opacityAnime) == null || o.dispose();
225
+ const r = 1;
145
226
  if (typeof (t == null ? void 0 : t.duration) != "number")
146
- return this.setOpacity(i);
147
- const s = this.material.uniforms.opacity.value;
148
- return new Promise((r) => {
149
- this.opacityAnime = new g({ progress: s }).to({ progress: i }).onUpdate(({ progress: n }) => this.setOpacity(n)).onComplete(() => r(!0)).onDispose(() => {
150
- this.setOpacity(i), r(!1);
227
+ return this.setOpacity(r);
228
+ 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);
151
232
  }).play();
152
233
  });
153
234
  });
@@ -1,19 +1,20 @@
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 a } from "../../shared-utils/three/IObject3D.js";
4
+ import { IObject3D as m } 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
9
  import "@realsee/five/line";
10
+ import "../utils/Modules/Global.js";
10
11
  import "../../shared-utils/three/THREESphere.js";
11
12
  import "animejs";
12
13
  import { notNil as r } from "../../shared-utils/isNil.js";
13
14
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
14
15
  import { RectangleWithEdgeMesh as P } from "./RectangleWithEdge.js";
15
- import { RectangleMesh as m } from "./Rectangle.js";
16
- class w extends a {
16
+ import { RectangleMesh as a } from "./Rectangle.js";
17
+ class H extends m {
17
18
  constructor(t) {
18
19
  super();
19
20
  s(this, "name", "BoxMesh");
@@ -24,7 +25,7 @@ class w extends a {
24
25
  this.bottomPlane = new P(t), this.topPlane = new P(t), this.add(this.bottomPlane), t != null && t.points && this.setPoints(t);
25
26
  }
26
27
  get planes() {
27
- return this.children.filter((t) => t instanceof m);
28
+ return this.children.filter((t) => t instanceof a);
28
29
  }
29
30
  get color() {
30
31
  var t;
@@ -90,5 +91,5 @@ class w extends a {
90
91
  }
91
92
  }
92
93
  export {
93
- w as BoxMesh
94
+ H as BoxMesh
94
95
  };
@@ -17,14 +17,15 @@ import "three/examples/jsm/renderers/CSS3DRenderer";
17
17
  import { DEFAULT_HIGHLIGHT_OPACITY as M } from "../typings/style.js";
18
18
  import "@realsee/five/line";
19
19
  import { anyPositionToVector3 as d } from "../../shared-utils/positionToVector3.js";
20
+ import "../utils/Modules/Global.js";
20
21
  import "../../shared-utils/three/THREESphere.js";
21
22
  import "animejs";
22
23
  import { notNil as g } from "../../shared-utils/isNil.js";
23
24
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
24
- import { CircleWithEdgeMesh as C } from "./CircleWithEdge.js";
25
+ import { CircleWithEdgeMesh as m } from "./CircleWithEdge.js";
25
26
  import { radiusToSegments as y } from "../utils/radiusToSegments.js";
26
27
  import { ColoredMesh as a } from "../utils/three/ColoredMesh.js";
27
- class z extends f {
28
+ class A extends f {
28
29
  constructor(t) {
29
30
  super();
30
31
  o(this, "bottomCircle");
@@ -33,7 +34,7 @@ class z extends f {
33
34
  o(this, "opacityBeforeHighlight");
34
35
  o(this, "highlighted", !1);
35
36
  o(this, "params");
36
- this.params = t, this.bottomCircle = new C(t), this.bottomCircle.name = "bottomCircle", this.topCircle = new C(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);
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);
37
38
  }
38
39
  get bottomCenter() {
39
40
  return this.bottomCircle.center;
@@ -51,8 +52,8 @@ class z extends f {
51
52
  return this.bottomCircle.color;
52
53
  }
53
54
  setPoints(t) {
54
- const r = d(t.topCenter), s = d(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;
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;
56
57
  }
57
58
  setTopCenter(t) {
58
59
  this.addIfNotExists(this.topCircle), this.topCircle.setPoints({ center: t, normal: this.normal, radius: this.radius }), this.setEdgeMesh();
@@ -85,5 +86,5 @@ class z extends f {
85
86
  }
86
87
  }
87
88
  export {
88
- z as CylinderMesh
89
+ A as CylinderMesh
89
90
  };
@@ -5,9 +5,12 @@ import { type AnyPositions } from '../../shared-utils/positionToVector3';
5
5
  import { IObject3D } from '../../shared-utils/three/IObject3D';
6
6
  import type { Merge } from 'type-fest';
7
7
  import type { PointsData } from '../utils/data';
8
+ import { LightTag } from '../../shared-utils/tag';
8
9
  export type LineMeshStyle = LineStyle & {
9
10
  dashed?: boolean;
10
- } & OcclusionStyle;
11
+ } & OcclusionStyle & {
12
+ lengthEnable?: boolean;
13
+ };
11
14
  export type LineData = PointsData;
12
15
  export declare class LineMaterial2 extends LineMaterial {
13
16
  get three_color(): Color;
@@ -28,6 +31,7 @@ export declare class THREE_Line3 extends THREE_Line2 {
28
31
  export declare class LineMesh extends IObject3D {
29
32
  name: string;
30
33
  points: THREE.Vector3[];
34
+ lengthDoms: LightTag[];
31
35
  get style(): LineMeshStyle;
32
36
  get lineWidth(): number;
33
37
  get color(): THREE.Color;
@@ -45,4 +49,5 @@ export declare class LineMesh extends IObject3D {
45
49
  setStyle(params: Partial<LineMeshStyle>): void;
46
50
  highlight(): void;
47
51
  unhighlight(): void;
52
+ updateLengthItems(): void;
48
53
  }
@@ -1,33 +1,37 @@
1
- var E = Object.defineProperty;
1
+ var _ = Object.defineProperty;
2
2
  var L = Object.getOwnPropertySymbols;
3
- var M = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
4
- var u = (n, l, e) => l in n ? E(n, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[l] = e, a = (n, l) => {
5
- for (var e in l || (l = {}))
6
- M.call(l, e) && u(n, e, l[e]);
3
+ var S = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
4
+ var f = (l, o, e) => o in l ? _(l, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[o] = e, y = (l, o) => {
5
+ for (var e in o || (o = {}))
6
+ S.call(o, e) && f(l, e, o[e]);
7
7
  if (L)
8
- for (var e of L(l))
9
- w.call(l, e) && u(n, e, l[e]);
10
- return n;
8
+ for (var e of L(o))
9
+ k.call(o, e) && f(l, e, o[e]);
10
+ return l;
11
11
  };
12
- var s = (n, l, e) => (u(n, typeof l != "symbol" ? l + "" : l, e), e);
13
- import * as d from "three";
14
- import { DEFAULT_LINE_COLOR as b, DEFAULT_LINE_WIDTH as C, DEFAULT_HIGHLIGHT_OPACITY as _ } from "../typings/style.js";
15
- import { LineGeometry as k, LineMaterial as D, THREE_Line2 as H } from "../../shared-utils/five/FiveLine.js";
16
- import { anyPositionToVector3 as R } from "../../shared-utils/positionToVector3.js";
17
- import { IObject3D as x } from "../../shared-utils/three/IObject3D.js";
12
+ var h = (l, o, e) => (f(l, typeof o != "symbol" ? o + "" : o, e), e);
13
+ import * as a from "three";
14
+ import { DEFAULT_LINE_COLOR as b, DEFAULT_LINE_WIDTH as M, DEFAULT_HIGHLIGHT_OPACITY as m } from "../typings/style.js";
15
+ import { LineGeometry as D, 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";
18
18
  import "hammerjs";
19
19
  import "three/examples/jsm/renderers/CSS3DRenderer";
20
+ import { centerPoint as R } from "../../shared-utils/three/centerPoint.js";
21
+ import { LightTag as x } from "../../shared-utils/tag.js";
22
+ import { globalModules as p } from "../utils/Modules/Global.js";
23
+ import { removeAllTag as v } from "../utils/removeAllTag.js";
20
24
  import "../../shared-utils/three/THREESphere.js";
21
25
  import "animejs";
22
- import { notNil as h } from "../../shared-utils/isNil.js";
26
+ import { notNil as c } from "../../shared-utils/isNil.js";
23
27
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
24
- class S extends D {
28
+ class T extends w {
25
29
  constructor(e) {
26
- var i, t;
30
+ var n, t;
27
31
  super(e);
28
- s(this, "_three_color");
29
- h(e == null ? void 0 : e.color) && (this.three_color = (i = e == null ? void 0 : e.color) != null ? i : 16777215), Object.keys(e).forEach((o) => {
30
- ["color", "dashed", "dashScale", "dashSize", "gapSize", "resolution"].includes(o) || o in this && (this[o] = e[o]);
32
+ h(this, "_three_color");
33
+ 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
+ ["color", "dashed", "dashScale", "dashSize", "gapSize", "resolution"].includes(i) || i in this && (this[i] = e[i]);
31
35
  }), this.setDashed((t = e == null ? void 0 : e.dashed) != null ? t : !1);
32
36
  }
33
37
  get three_color() {
@@ -40,33 +44,34 @@ class S extends D {
40
44
  this.dashed = e, e ? this.defines.USE_DASH = "" : delete this.defines.USE_DASH, this.needsUpdate = !0;
41
45
  }
42
46
  }
43
- class T extends H {
44
- constructor(e, i) {
45
- super(e, i);
46
- s(this, "name", "Line3");
47
+ class E extends H {
48
+ constructor(e, n) {
49
+ super(e, n);
50
+ h(this, "name", "Line3");
47
51
  }
48
52
  }
49
- class z extends x {
53
+ class J extends I {
50
54
  constructor(e) {
51
- var r, c, f, y, g;
55
+ var s, r, u, g, d;
52
56
  super();
53
- s(this, "name", "LineMesh");
54
- s(this, "points");
55
- s(this, "highlighted", !1);
56
- s(this, "line");
57
- s(this, "backLine");
58
- s(this, "opacityBeforeHighlight");
59
- s(this, "paramsStyle", {});
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
65
  this.paramsStyle = e != null ? e : {};
61
- const i = new k(), t = new S({
62
- color: new d.Color((r = e == null ? void 0 : e.lineColor) != null ? r : b),
63
- linewidth: (c = e == null ? void 0 : e.lineWidth) != null ? c : C,
66
+ const n = new D(), t = new T({
67
+ color: new a.Color((s = e == null ? void 0 : e.lineColor) != null ? s : b),
68
+ linewidth: (r = e == null ? void 0 : e.lineWidth) != null ? r : M,
64
69
  dashScale: 40,
65
- opacity: (f = e == null ? void 0 : e.opacity) != null ? f : 1,
70
+ opacity: (u = e == null ? void 0 : e.opacity) != null ? u : 1,
66
71
  transparent: !0,
67
- dashed: (y = e == null ? void 0 : e.dashed) != null ? y : !1
68
- }), o = new S({
69
- color: new d.Color((g = e == null ? void 0 : e.lineColor) != null ? g : b),
72
+ dashed: (g = e == null ? void 0 : e.dashed) != null ? g : !1
73
+ }), i = new T({
74
+ color: new a.Color((d = e == null ? void 0 : e.lineColor) != null ? d : b),
70
75
  linewidth: t.linewidth * 0.9,
71
76
  dashScale: t.dashScale,
72
77
  opacity: t.opacity * 0.8,
@@ -75,7 +80,9 @@ class z extends x {
75
80
  transparent: !0,
76
81
  resolution: t.resolution
77
82
  });
78
- this.line = new T(i, t), this.backLine = new T(i, o), 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);
83
+ this.line = new E(n, t), this.backLine = new E(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);
85
+ });
79
86
  }
80
87
  get style() {
81
88
  return {
@@ -83,14 +90,15 @@ class z extends x {
83
90
  lineWidth: this.lineWidth,
84
91
  dashed: this.dashed,
85
92
  occlusionVisibility: this.occlusionVisibility,
86
- occlusionMode: this.occlusionMode
93
+ occlusionMode: this.occlusionMode,
94
+ lengthEnable: this.paramsStyle.lengthEnable
87
95
  };
88
96
  }
89
97
  get lineWidth() {
90
98
  return this.line.material.linewidth;
91
99
  }
92
100
  get color() {
93
- return new d.Color(this.line.material.three_color);
101
+ return new a.Color(this.line.material.three_color);
94
102
  }
95
103
  get dashed() {
96
104
  return this.line.material.dashed;
@@ -102,32 +110,47 @@ class z extends x {
102
110
  return this.line.material.depthTest === !1 ? "depthTest" : "translucence";
103
111
  }
104
112
  setPoints(e) {
105
- const i = e.map(R).filter(h);
106
- if (this.points = i, i.length < 2)
113
+ const n = e.map(C).filter(c);
114
+ if (this.points = n, n.length < 2)
107
115
  return;
108
116
  this.addIfNotExists(this.line, this.backLine);
109
- const t = i.flatMap((o) => [o.x, o.y, o.z]);
110
- t.length > 2 && (this.line.geometry.dispose(), this.line.geometry = new k(), this.backLine.geometry = this.line.geometry), this.line.geometry.setPositions(t), this.line.computeLineDistances(), this.needsRender = !0;
117
+ const t = n.flatMap((i) => [i.x, i.y, i.z]);
118
+ 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;
111
119
  }
112
- setResolution(e, i) {
120
+ setResolution(e, n) {
113
121
  const t = this.line.material.resolution;
114
- (t.x !== e || t.y !== i) && (t.set(e, i), this.needsRender = !0);
115
- const o = this.backLine.material.resolution;
116
- (o.x !== e || o.y !== i) && (o.set(e, i), this.needsRender = !0);
122
+ (t.x !== e || t.y !== n) && (t.set(e, n), this.needsRender = !0);
123
+ const i = this.backLine.material.resolution;
124
+ (i.x !== e || i.y !== n) && (i.set(e, n), this.needsRender = !0);
117
125
  }
118
126
  setStyle(e) {
119
- var o, r, c;
120
- this.paramsStyle = a(a({}, this.paramsStyle), e), h(e.lineColor) && (this.line.material.three_color = new d.Color(e.lineColor), this.backLine.material.three_color = new d.Color(e.lineColor)), h(e.lineWidth) && (this.line.material.linewidth = e.lineWidth), h(e.dashed) && this.line.material.setDashed(e.dashed), h(e.opacity) && (this.line.material.opacity = e.opacity, this.backLine.material.opacity = this.line.material.opacity * 0.2);
121
- const i = (o = e.occlusionVisibility) != null ? o : this.paramsStyle.occlusionVisibility, t = (c = (r = e.occlusionMode) != null ? r : this.paramsStyle.occlusionMode) != null ? c : "translucence";
122
- 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;
127
+ var i, s, r;
128
+ 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();
129
+ const n = (i = e.occlusionVisibility) != null ? i : this.paramsStyle.occlusionVisibility, t = (r = (s = e.occlusionMode) != null ? s : this.paramsStyle.occlusionMode) != null ? r : "translucence";
130
+ 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;
123
131
  }
124
132
  highlight() {
125
- this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.line.material.opacity, this.line.material.opacity = this.opacityBeforeHighlight * _, this.backLine.material.opacity = this.backLine.material.opacity * _, this.needsRender = !0);
133
+ 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);
126
134
  }
127
135
  unhighlight() {
128
136
  this.highlighted && (this.highlighted = !1, this.line.material.opacity = this.opacityBeforeHighlight, this.backLine.material.opacity = 0.2, this.needsRender = !0);
129
137
  }
138
+ updateLengthItems() {
139
+ var e, n;
140
+ if (this.paramsStyle.lengthEnable) {
141
+ const t = (n = (e = this.points) == null ? void 0 : e.map((i, s) => {
142
+ if (s !== 0)
143
+ return [this.points[s - 1], i];
144
+ }).filter(c)) != null ? n : [];
145
+ t.forEach(([i, s], r) => {
146
+ var d;
147
+ const u = R(i, s), g = i.distanceTo(s).toFixed(2) + "m";
148
+ this.lengthDoms[r] = (d = this.lengthDoms[r]) != null ? d : new x(p.five), this.lengthDoms[r].setPosition(u), this.lengthDoms[r].container.innerHTML = `<div style="pointer-events:none;color:white;">${g}</div>`;
149
+ }), this.lengthDoms.length > t.length && (this.lengthDoms.slice(t.length).forEach((i) => i.destroy()), this.lengthDoms.length = t.length);
150
+ } else
151
+ this.lengthDoms.forEach((t) => t.destroy()), this.lengthDoms = [];
152
+ }
130
153
  }
131
154
  export {
132
- z as LineMesh
155
+ J as LineMesh
133
156
  };
@@ -13,18 +13,19 @@ 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 E } from "../../shared-utils/three/IObject3D.js";
17
- import { anyPositionToVector3 as m } from "../../shared-utils/positionToVector3.js";
16
+ import { IObject3D as m } from "../../shared-utils/three/IObject3D.js";
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
+ import "../utils/Modules/Global.js";
21
22
  import "../../shared-utils/three/THREESphere.js";
22
23
  import "animejs";
23
24
  import { notNil as u } from "../../shared-utils/isNil.js";
24
25
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
25
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==";
26
27
  let w = null;
27
- class O extends E {
28
+ class T extends m {
28
29
  constructor(t) {
29
30
  var f, a;
30
31
  super();
@@ -52,7 +53,7 @@ class O extends E {
52
53
  depthTest: !1,
53
54
  opacity: 0.5
54
55
  })), s = new o.Points(l, r), h = new o.Points(l, V);
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);
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);
56
57
  }
57
58
  get color() {
58
59
  return this.fontMesh.material.color;
@@ -71,5 +72,5 @@ class O extends E {
71
72
  }
72
73
  }
73
74
  export {
74
- O as PointMesh
75
+ T as PointMesh
75
76
  };