@realsee/dnalogel 3.45.0 → 3.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/dist/Sculpt/Meshes/Line.d.ts +6 -1
- package/dist/index.cjs.js +53 -53
- package/dist/index.js +29609 -29576
- package/dist/index.umd.js +49 -49
- package/dist/shared-utils/tag.d.ts +6 -3
- package/libs/AreaMakerPlugin/Controller.js +150 -78
- package/libs/AreaMakerPlugin/index.js +76 -4
- package/libs/AreaMakerPlugin/utils/Item.js +190 -111
- package/libs/CSS3DRenderPlugin/Controller.js +89 -29
- package/libs/CSS3DRenderPlugin/index.js +75 -15
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +132 -58
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +181 -116
- package/libs/CruisePlugin/BaseController.js +121 -49
- package/libs/CruisePlugin/Move.js +73 -21
- package/libs/CruisePlugin/Work.js +98 -46
- package/libs/CruisePlugin/index.js +79 -27
- package/libs/CurrentPanoImagePlugin/Controller.js +176 -104
- package/libs/CurrentPanoImagePlugin/index.js +76 -4
- package/libs/GuideLinePlugin/Controller.js +82 -30
- package/libs/GuideLinePlugin/GuideLineItem.js +82 -30
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +81 -29
- package/libs/GuideLinePlugin/index.js +79 -27
- package/libs/ModelMakerPlugin/Controller.js +139 -82
- package/libs/ModelMakerPlugin/index.js +75 -18
- package/libs/ModelTVVideoPlugin/Plugin.js +117 -57
- package/libs/ModelTVVideoPlugin/index.js +68 -8
- package/libs/Object3DHelperPlugin/Controller.js +54 -31
- package/libs/Object3DHelperPlugin/index.js +35 -13
- package/libs/PanoCompassPlugin/Controller.js +97 -42
- package/libs/PanoCompassPlugin/index.js +71 -16
- package/libs/PanoDoorLabelPlugin/BaseController.js +98 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +187 -115
- package/libs/PanoDoorLabelPlugin/index.js +76 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +140 -88
- package/libs/PanoMeasurePlugin/Components/Controller1.js +178 -126
- package/libs/PanoMeasurePlugin/Controller/EditController.js +124 -72
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +167 -92
- package/libs/PanoMeasurePlugin/Controller/index.js +109 -64
- package/libs/PanoMeasurePlugin/Model/area.js +114 -38
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +78 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +97 -45
- package/libs/PanoMeasurePlugin/index.js +76 -31
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +98 -20
- package/libs/PanoSpatialTagPlugin/Plugin.js +210 -150
- package/libs/PanoSpatialTagPlugin/index.js +66 -6
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +133 -53
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +295 -216
- package/libs/PanoTagPlugin/Components/Tag/index.js +257 -187
- package/libs/PanoTagPlugin/Components/TagContainer.js +157 -87
- package/libs/PanoTagPlugin/Components/TagItem.js +144 -74
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +73 -3
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +109 -39
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +105 -35
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +113 -43
- package/libs/PanoTagPlugin/controller/TagRender.js +132 -80
- package/libs/PanoTagPlugin/controller/TagUtil.js +136 -84
- package/libs/PanoTagPlugin/controller/index.js +113 -61
- package/libs/PanoTagPlugin/index.js +89 -37
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +121 -41
- package/libs/PanoVideoPlugin/Controller.js +137 -65
- package/libs/PanoVideoPlugin/VideoMeshController.js +149 -69
- package/libs/PanoVideoPlugin/index.js +82 -10
- package/libs/PipelinePlugin/Controller.js +199 -128
- package/libs/PipelinePlugin/index.js +76 -5
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +102 -22
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +95 -15
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +136 -56
- package/libs/Sculpt/Meshes/Box.js +6 -5
- package/libs/Sculpt/Meshes/Cylinder.js +7 -6
- package/libs/Sculpt/Meshes/Line.d.ts +6 -1
- package/libs/Sculpt/Meshes/Line.js +76 -56
- package/libs/Sculpt/Meshes/Point.js +6 -5
- package/libs/Sculpt/Meshes/Polyline.js +5 -4
- package/libs/Sculpt/Meshes/Rectangle.js +3 -2
- package/libs/Sculpt/Objects/Line/Editor.js +11 -10
- package/libs/Sculpt/utils/three/ColoredMesh.js +14 -13
- package/libs/base/BasePlugin.js +14 -13
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +128 -59
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +75 -6
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +129 -59
- package/libs/floorplan/ModelFloorplanPlugin/index.js +75 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +158 -86
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +76 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +151 -81
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +75 -5
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +67 -67
- package/libs/shared-utils/five/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +6 -3
- package/libs/shared-utils/tag.js +38 -24
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +1 -1
|
@@ -1,40 +1,120 @@
|
|
|
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 = (
|
|
5
|
-
for (var t in
|
|
6
|
-
A.call(
|
|
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(
|
|
9
|
-
w.call(
|
|
10
|
-
return
|
|
8
|
+
for (var t of v(i))
|
|
9
|
+
w.call(i, t) && f(p, t, i[t]);
|
|
10
|
+
return p;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var l = (
|
|
14
|
-
var
|
|
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
|
-
|
|
16
|
+
a(t.next(s));
|
|
17
17
|
} catch (c) {
|
|
18
|
-
|
|
18
|
+
m(c);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, e = (s) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
22
|
+
a(t.throw(s));
|
|
23
23
|
} catch (c) {
|
|
24
|
-
|
|
24
|
+
m(c);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
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
|
|
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 "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
115
|
+
import "../../../shared-utils/isTouchDevice.js";
|
|
116
|
+
import "../../../shared-utils/five/getPosition.js";
|
|
117
|
+
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
38
118
|
import "../../../shared-utils/animationFrame/index.js";
|
|
39
119
|
import "../../../shared-utils/three/Extras/Core/Interpolations.js";
|
|
40
120
|
import "../../../shared-utils/three/Extras/Core/Interpolations2.js";
|
|
@@ -65,40 +145,40 @@ const C = (
|
|
|
65
145
|
}
|
|
66
146
|
`
|
|
67
147
|
);
|
|
68
|
-
class h extends
|
|
69
|
-
constructor(t,
|
|
148
|
+
class h extends u.Mesh {
|
|
149
|
+
constructor(t, r = O) {
|
|
70
150
|
super();
|
|
71
|
-
|
|
151
|
+
n(this, "geometryConfig", {
|
|
72
152
|
radius: 1.5 / 100,
|
|
73
153
|
tubularSegments: 20,
|
|
74
154
|
radialSegments: 8
|
|
75
155
|
});
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
156
|
+
n(this, "customID");
|
|
157
|
+
n(this, "path");
|
|
158
|
+
n(this, "pathLength", 0);
|
|
159
|
+
n(this, "pathPoints");
|
|
160
|
+
n(this, "texture");
|
|
161
|
+
n(this, "opacityAnime");
|
|
82
162
|
/** u / m: 每米水管对应到贴图上,应该对应的 u 的长度 */
|
|
83
|
-
|
|
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((
|
|
85
|
-
const { radius:
|
|
163
|
+
n(this, "uPreMeter", 1);
|
|
164
|
+
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);
|
|
165
|
+
const { radius: m, tubularSegments: o, radialSegments: e } = this.geometryConfig, a = h.formatTexture(t.texture);
|
|
86
166
|
this.geometry = h.formatGeometryUV(
|
|
87
|
-
new
|
|
167
|
+
new u.TubeBufferGeometry(this.path, o, m, e),
|
|
88
168
|
this.pathLength,
|
|
89
169
|
this.uPreMeter
|
|
90
|
-
), this.material = new
|
|
170
|
+
), this.material = new u.ShaderMaterial({
|
|
91
171
|
uniforms: {
|
|
92
172
|
opacity: { value: 1 },
|
|
93
173
|
uOffset: { value: 0 },
|
|
94
174
|
vOffset: { value: 0 },
|
|
95
175
|
envMap: {
|
|
96
|
-
value:
|
|
176
|
+
value: a
|
|
97
177
|
}
|
|
98
178
|
},
|
|
99
179
|
transparent: !0,
|
|
100
180
|
vertexShader: C,
|
|
101
|
-
fragmentShader:
|
|
181
|
+
fragmentShader: r
|
|
102
182
|
});
|
|
103
183
|
}
|
|
104
184
|
/** 根据控制点数量计算管道路径
|
|
@@ -106,13 +186,13 @@ class h extends m.Mesh {
|
|
|
106
186
|
* @description 两个控制点使用直线路径,多个控制点使用贝塞尔路径
|
|
107
187
|
*/
|
|
108
188
|
static calculatePath(t) {
|
|
109
|
-
return t.length === 2 ? new
|
|
189
|
+
return t.length === 2 ? new u.LineCurve3(t[0], t[1]) : new x(t);
|
|
110
190
|
}
|
|
111
|
-
static formatGeometryUV(t,
|
|
112
|
-
const
|
|
113
|
-
for (let
|
|
114
|
-
const
|
|
115
|
-
|
|
191
|
+
static formatGeometryUV(t, r, m) {
|
|
192
|
+
const o = t.getAttribute("uv");
|
|
193
|
+
for (let e = 0; e < o.count; e++) {
|
|
194
|
+
const a = o.getX(e) * r * m;
|
|
195
|
+
o.setX(e, a);
|
|
116
196
|
}
|
|
117
197
|
return t;
|
|
118
198
|
}
|
|
@@ -120,34 +200,34 @@ class h extends m.Mesh {
|
|
|
120
200
|
* 管道的 Texture 需要满足一定的要求,需要使用 formatTexture 先 format
|
|
121
201
|
*/
|
|
122
202
|
static formatTexture(t) {
|
|
123
|
-
return t.wrapS =
|
|
203
|
+
return t.wrapS = u.RepeatWrapping, t.wrapT = u.RepeatWrapping, t;
|
|
124
204
|
}
|
|
125
205
|
hide(t) {
|
|
126
206
|
return l(this, null, function* () {
|
|
127
|
-
var
|
|
128
|
-
(
|
|
129
|
-
const
|
|
207
|
+
var o;
|
|
208
|
+
(o = this.opacityAnime) == null || o.dispose();
|
|
209
|
+
const r = 0;
|
|
130
210
|
if (typeof (t == null ? void 0 : t.duration) != "number")
|
|
131
|
-
return this.setOpacity(
|
|
132
|
-
const
|
|
133
|
-
return
|
|
134
|
-
this.opacityAnime = new g({ progress:
|
|
135
|
-
this.setOpacity(
|
|
211
|
+
return this.setOpacity(r);
|
|
212
|
+
const m = this.material.uniforms.opacity.value;
|
|
213
|
+
return m === r ? !0 : new Promise((e) => {
|
|
214
|
+
this.opacityAnime = new g({ progress: m }).to({ progress: r }).onUpdate(({ progress: a }) => this.setOpacity(a)).onComplete(() => e(!0)).onDispose(() => {
|
|
215
|
+
this.setOpacity(r), e(!1);
|
|
136
216
|
}).play();
|
|
137
217
|
});
|
|
138
218
|
});
|
|
139
219
|
}
|
|
140
220
|
show(t) {
|
|
141
221
|
return l(this, null, function* () {
|
|
142
|
-
var
|
|
143
|
-
(
|
|
144
|
-
const
|
|
222
|
+
var o;
|
|
223
|
+
(o = this.opacityAnime) == null || o.dispose();
|
|
224
|
+
const r = 1;
|
|
145
225
|
if (typeof (t == null ? void 0 : t.duration) != "number")
|
|
146
|
-
return this.setOpacity(
|
|
147
|
-
const
|
|
148
|
-
return new Promise((
|
|
149
|
-
this.opacityAnime = new g({ progress:
|
|
150
|
-
this.setOpacity(
|
|
226
|
+
return this.setOpacity(r);
|
|
227
|
+
const m = this.material.uniforms.opacity.value;
|
|
228
|
+
return new Promise((e) => {
|
|
229
|
+
this.opacityAnime = new g({ progress: m }).to({ progress: r }).onUpdate(({ progress: a }) => this.setOpacity(a)).onComplete(() => e(!0)).onDispose(() => {
|
|
230
|
+
this.setOpacity(r), e(!1);
|
|
151
231
|
}).play();
|
|
152
232
|
});
|
|
153
233
|
});
|
|
@@ -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
|
|
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
|
|
16
|
-
class
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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),
|
|
55
|
-
this.bottomCircle.setPoints({ center: s, normal:
|
|
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
|
-
|
|
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,36 @@
|
|
|
1
1
|
var E = Object.defineProperty;
|
|
2
2
|
var L = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
for (var e in
|
|
6
|
-
|
|
3
|
+
var S = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var f = (l, o, e) => o in l ? E(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(
|
|
9
|
-
|
|
10
|
-
return
|
|
8
|
+
for (var e of L(o))
|
|
9
|
+
k.call(o, e) && f(l, e, o[e]);
|
|
10
|
+
return l;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
import * as
|
|
14
|
-
import { DEFAULT_LINE_COLOR as b, DEFAULT_LINE_WIDTH as
|
|
15
|
-
import { LineGeometry as
|
|
16
|
-
import { anyPositionToVector3 as
|
|
17
|
-
import { IObject3D as
|
|
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 D } from "../typings/style.js";
|
|
15
|
+
import { LineGeometry as T, 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";
|
|
20
23
|
import "../../shared-utils/three/THREESphere.js";
|
|
21
24
|
import "animejs";
|
|
22
|
-
import { notNil as
|
|
25
|
+
import { notNil as c } from "../../shared-utils/isNil.js";
|
|
23
26
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
24
|
-
class
|
|
27
|
+
class _ extends w {
|
|
25
28
|
constructor(e) {
|
|
26
|
-
var
|
|
29
|
+
var n, t;
|
|
27
30
|
super(e);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
["color", "dashed", "dashScale", "dashSize", "gapSize", "resolution"].includes(
|
|
31
|
+
h(this, "_three_color");
|
|
32
|
+
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) => {
|
|
33
|
+
["color", "dashed", "dashScale", "dashSize", "gapSize", "resolution"].includes(i) || i in this && (this[i] = e[i]);
|
|
31
34
|
}), this.setDashed((t = e == null ? void 0 : e.dashed) != null ? t : !1);
|
|
32
35
|
}
|
|
33
36
|
get three_color() {
|
|
@@ -40,33 +43,34 @@ class S extends D {
|
|
|
40
43
|
this.dashed = e, e ? this.defines.USE_DASH = "" : delete this.defines.USE_DASH, this.needsUpdate = !0;
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
|
-
class
|
|
44
|
-
constructor(e,
|
|
45
|
-
super(e,
|
|
46
|
-
|
|
46
|
+
class m extends H {
|
|
47
|
+
constructor(e, n) {
|
|
48
|
+
super(e, n);
|
|
49
|
+
h(this, "name", "Line3");
|
|
47
50
|
}
|
|
48
51
|
}
|
|
49
|
-
class
|
|
52
|
+
class $ extends I {
|
|
50
53
|
constructor(e) {
|
|
51
|
-
var
|
|
54
|
+
var s, r, u, g, d;
|
|
52
55
|
super();
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
h(this, "name", "LineMesh");
|
|
57
|
+
h(this, "points");
|
|
58
|
+
h(this, "lengthDoms", []);
|
|
59
|
+
h(this, "highlighted", !1);
|
|
60
|
+
h(this, "line");
|
|
61
|
+
h(this, "backLine");
|
|
62
|
+
h(this, "opacityBeforeHighlight");
|
|
63
|
+
h(this, "paramsStyle", {});
|
|
60
64
|
this.paramsStyle = e != null ? e : {};
|
|
61
|
-
const
|
|
62
|
-
color: new
|
|
63
|
-
linewidth: (
|
|
65
|
+
const n = new T(), t = new _({
|
|
66
|
+
color: new a.Color((s = e == null ? void 0 : e.lineColor) != null ? s : b),
|
|
67
|
+
linewidth: (r = e == null ? void 0 : e.lineWidth) != null ? r : M,
|
|
64
68
|
dashScale: 40,
|
|
65
|
-
opacity: (
|
|
69
|
+
opacity: (u = e == null ? void 0 : e.opacity) != null ? u : 1,
|
|
66
70
|
transparent: !0,
|
|
67
|
-
dashed: (
|
|
68
|
-
}),
|
|
69
|
-
color: new
|
|
71
|
+
dashed: (g = e == null ? void 0 : e.dashed) != null ? g : !1
|
|
72
|
+
}), i = new _({
|
|
73
|
+
color: new a.Color((d = e == null ? void 0 : e.lineColor) != null ? d : b),
|
|
70
74
|
linewidth: t.linewidth * 0.9,
|
|
71
75
|
dashScale: t.dashScale,
|
|
72
76
|
opacity: t.opacity * 0.8,
|
|
@@ -75,7 +79,7 @@ class z extends x {
|
|
|
75
79
|
transparent: !0,
|
|
76
80
|
resolution: t.resolution
|
|
77
81
|
});
|
|
78
|
-
this.line = new
|
|
82
|
+
this.line = new m(n, t), this.backLine = new m(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);
|
|
79
83
|
}
|
|
80
84
|
get style() {
|
|
81
85
|
return {
|
|
@@ -83,14 +87,15 @@ class z extends x {
|
|
|
83
87
|
lineWidth: this.lineWidth,
|
|
84
88
|
dashed: this.dashed,
|
|
85
89
|
occlusionVisibility: this.occlusionVisibility,
|
|
86
|
-
occlusionMode: this.occlusionMode
|
|
90
|
+
occlusionMode: this.occlusionMode,
|
|
91
|
+
lengthEnable: this.paramsStyle.lengthEnable
|
|
87
92
|
};
|
|
88
93
|
}
|
|
89
94
|
get lineWidth() {
|
|
90
95
|
return this.line.material.linewidth;
|
|
91
96
|
}
|
|
92
97
|
get color() {
|
|
93
|
-
return new
|
|
98
|
+
return new a.Color(this.line.material.three_color);
|
|
94
99
|
}
|
|
95
100
|
get dashed() {
|
|
96
101
|
return this.line.material.dashed;
|
|
@@ -102,32 +107,47 @@ class z extends x {
|
|
|
102
107
|
return this.line.material.depthTest === !1 ? "depthTest" : "translucence";
|
|
103
108
|
}
|
|
104
109
|
setPoints(e) {
|
|
105
|
-
const
|
|
106
|
-
if (this.points =
|
|
110
|
+
const n = e.map(C).filter(c);
|
|
111
|
+
if (this.points = n, n.length < 2)
|
|
107
112
|
return;
|
|
108
113
|
this.addIfNotExists(this.line, this.backLine);
|
|
109
|
-
const t =
|
|
110
|
-
t.length > 2 && (this.line.geometry.dispose(), this.line.geometry = new
|
|
114
|
+
const t = n.flatMap((i) => [i.x, i.y, i.z]);
|
|
115
|
+
t.length > 2 && (this.line.geometry.dispose(), this.line.geometry = new T(), this.backLine.geometry = this.line.geometry), this.line.geometry.setPositions(t), this.line.computeLineDistances(), this.updateLengthItems(), this.needsRender = !0;
|
|
111
116
|
}
|
|
112
|
-
setResolution(e,
|
|
117
|
+
setResolution(e, n) {
|
|
113
118
|
const t = this.line.material.resolution;
|
|
114
|
-
(t.x !== e || t.y !==
|
|
115
|
-
const
|
|
116
|
-
(
|
|
119
|
+
(t.x !== e || t.y !== n) && (t.set(e, n), this.needsRender = !0);
|
|
120
|
+
const i = this.backLine.material.resolution;
|
|
121
|
+
(i.x !== e || i.y !== n) && (i.set(e, n), this.needsRender = !0);
|
|
117
122
|
}
|
|
118
123
|
setStyle(e) {
|
|
119
|
-
var
|
|
120
|
-
this.paramsStyle =
|
|
121
|
-
const
|
|
122
|
-
|
|
124
|
+
var i, s, r;
|
|
125
|
+
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();
|
|
126
|
+
const n = (i = e.occlusionVisibility) != null ? i : this.paramsStyle.occlusionVisibility, t = (r = (s = e.occlusionMode) != null ? s : this.paramsStyle.occlusionMode) != null ? r : "translucence";
|
|
127
|
+
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
128
|
}
|
|
124
129
|
highlight() {
|
|
125
|
-
this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.line.material.opacity, this.line.material.opacity = this.opacityBeforeHighlight *
|
|
130
|
+
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);
|
|
126
131
|
}
|
|
127
132
|
unhighlight() {
|
|
128
133
|
this.highlighted && (this.highlighted = !1, this.line.material.opacity = this.opacityBeforeHighlight, this.backLine.material.opacity = 0.2, this.needsRender = !0);
|
|
129
134
|
}
|
|
135
|
+
updateLengthItems() {
|
|
136
|
+
var e, n;
|
|
137
|
+
if (this.paramsStyle.lengthEnable) {
|
|
138
|
+
const t = (n = (e = this.points) == null ? void 0 : e.map((i, s) => {
|
|
139
|
+
if (s !== 0)
|
|
140
|
+
return [this.points[s - 1], i];
|
|
141
|
+
}).filter(c)) != null ? n : [];
|
|
142
|
+
t.forEach(([i, s], r) => {
|
|
143
|
+
var d;
|
|
144
|
+
const u = R(i, s), g = i.distanceTo(s).toFixed(2) + "m";
|
|
145
|
+
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;">${g}</div>`;
|
|
146
|
+
}), this.lengthDoms.length > t.length && (this.lengthDoms.slice(t.length).forEach((i) => i.destroy()), this.lengthDoms.length = t.length);
|
|
147
|
+
} else
|
|
148
|
+
this.lengthDoms.forEach((t) => t.destroy()), this.lengthDoms = [];
|
|
149
|
+
}
|
|
130
150
|
}
|
|
131
151
|
export {
|
|
132
|
-
|
|
152
|
+
$ as LineMesh
|
|
133
153
|
};
|
|
@@ -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
|
|
17
|
-
import { anyPositionToVector3 as
|
|
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
|
|
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(
|
|
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
|
-
|
|
75
|
+
T as PointMesh
|
|
75
76
|
};
|