@realsee/dnalogel 3.44.5 → 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 +6 -0
- package/dist/Sculpt/Meshes/Area.d.ts +1 -1
- package/dist/Sculpt/Meshes/Box.d.ts +1 -1
- package/dist/Sculpt/Meshes/Circle.d.ts +1 -1
- package/dist/Sculpt/Meshes/CircleWithEdge.d.ts +1 -1
- package/dist/Sculpt/Meshes/Line.d.ts +8 -2
- package/dist/Sculpt/Meshes/LineWithDots.d.ts +1 -1
- package/dist/Sculpt/Meshes/Point.d.ts +1 -1
- package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/dist/Sculpt/Meshes/Prism.d.ts +1 -1
- package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +3 -4
- package/dist/Sculpt/Objects/Line/Editor.d.ts +22 -0
- package/dist/Sculpt/Objects/Line/index.d.ts +33 -0
- package/dist/Sculpt/Objects/Point/index.d.ts +1 -1
- package/dist/Sculpt/Objects/Polygon/Editor.d.ts +2 -2
- package/dist/Sculpt/Objects/Polygon/index.d.ts +3 -2
- package/dist/Sculpt/Objects/Polyline/Editor.d.ts +3 -17
- package/dist/Sculpt/Objects/Polyline/index.d.ts +7 -6
- package/dist/Sculpt/index.d.ts +5 -0
- package/dist/Sculpt/typings/index.d.ts +11 -6
- package/dist/Sculpt/{utils/color.d.ts → typings/style.d.ts} +7 -0
- package/dist/Sculpt/typings/utils.type.d.ts +2 -0
- package/dist/Sculpt/utils/three/ColoredMesh.d.ts +1 -1
- package/dist/Sculpt/utils/three/rayOnLine.d.ts +3 -5
- package/dist/index.cjs.js +56 -56
- package/dist/index.js +29820 -29686
- package/dist/index.umd.js +49 -49
- package/dist/shared-utils/Utils/WorkUtil.d.ts +6 -6
- 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 +140 -83
- 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 +141 -89
- package/libs/PanoMeasurePlugin/Components/Controller1.js +179 -127
- package/libs/PanoMeasurePlugin/Controller/EditController.js +125 -73
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +167 -92
- package/libs/PanoMeasurePlugin/Controller/index.js +110 -65
- package/libs/PanoMeasurePlugin/Model/area.js +114 -38
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +78 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +98 -46
- package/libs/PanoMeasurePlugin/index.js +77 -32
- 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/Area.d.ts +1 -1
- package/libs/Sculpt/Meshes/Box.d.ts +1 -1
- package/libs/Sculpt/Meshes/Box.js +16 -15
- package/libs/Sculpt/Meshes/Circle.d.ts +1 -1
- package/libs/Sculpt/Meshes/Circle.js +1 -1
- package/libs/Sculpt/Meshes/CircleWithEdge.d.ts +1 -1
- package/libs/Sculpt/Meshes/Cylinder.js +8 -7
- package/libs/Sculpt/Meshes/Line.d.ts +8 -2
- package/libs/Sculpt/Meshes/Line.js +93 -65
- package/libs/Sculpt/Meshes/LineWithDots.d.ts +1 -1
- package/libs/Sculpt/Meshes/LineWithDots.js +26 -26
- package/libs/Sculpt/Meshes/Point.d.ts +1 -1
- package/libs/Sculpt/Meshes/Point.js +7 -6
- package/libs/Sculpt/Meshes/Polygon.js +1 -1
- package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/libs/Sculpt/Meshes/Polyline.js +5 -4
- package/libs/Sculpt/Meshes/Prism.d.ts +1 -1
- package/libs/Sculpt/Meshes/Rectangle.js +3 -2
- package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +3 -4
- package/libs/Sculpt/Objects/Box/index.js +41 -43
- package/libs/Sculpt/Objects/Cylinder/index.js +35 -37
- package/libs/Sculpt/Objects/Line/Editor.d.ts +22 -0
- package/libs/Sculpt/Objects/Line/Editor.js +62 -0
- package/libs/Sculpt/Objects/Line/index.d.ts +33 -0
- package/libs/Sculpt/Objects/Line/index.js +107 -0
- package/libs/Sculpt/Objects/Point/index.d.ts +1 -1
- package/libs/Sculpt/Objects/Polygon/Editor.d.ts +2 -2
- package/libs/Sculpt/Objects/Polygon/Editor.js +5 -5
- package/libs/Sculpt/Objects/Polygon/index.d.ts +3 -2
- package/libs/Sculpt/Objects/Polygon/index.js +80 -80
- package/libs/Sculpt/Objects/Polyline/Editor.d.ts +3 -17
- package/libs/Sculpt/Objects/Polyline/Editor.js +10 -48
- package/libs/Sculpt/Objects/Polyline/index.d.ts +7 -6
- package/libs/Sculpt/Objects/Polyline/index.js +63 -58
- package/libs/Sculpt/Objects/Prism/index.js +56 -58
- package/libs/Sculpt/index.d.ts +5 -0
- package/libs/Sculpt/index.js +58 -48
- package/libs/Sculpt/typings/index.d.ts +11 -6
- package/libs/Sculpt/{utils/color.d.ts → typings/style.d.ts} +7 -0
- package/libs/Sculpt/typings/utils.type.d.ts +2 -0
- package/libs/Sculpt/utils/three/ColoredMesh.d.ts +1 -1
- package/libs/Sculpt/utils/three/ColoredMesh.js +15 -14
- package/libs/Sculpt/utils/three/rayOnLine.d.ts +3 -5
- package/libs/Sculpt/utils/three/rayOnLine.js +15 -14
- package/libs/base/BasePlugin.js +14 -13
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +131 -61
- 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 +194 -192
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +23 -23
- package/libs/shared-utils/Utils/WorkUtil.d.ts +6 -6
- package/libs/shared-utils/Utils/WorkUtil.js +8 -7
- 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/PointSelector/utils/PointSelectorHelper.js +15 -15
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +1 -1
- package/dist/Sculpt/typings/SimplifyDeep.d.ts +0 -3
- package/libs/Sculpt/typings/SimplifyDeep.d.ts +0 -3
- /package/libs/Sculpt/{utils/color.js → typings/style.js} +0 -0
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
import type { LineStyle } from '../
|
|
1
|
+
import type { LineStyle } from '../typings/style';
|
|
2
2
|
import type { PointsData } from '../utils/data';
|
|
3
3
|
import type { ColoredMeshStyle } from '../utils/three/ColoredMesh';
|
|
4
4
|
import { PolygonWithEdgeMesh } from './PolygonWithEdge';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IObject3D } from '../../shared-utils/three/IObject3D';
|
|
2
2
|
import { type AnyPositions, type AnyPosition } from '../../shared-utils/positionToVector3';
|
|
3
3
|
import type * as THREE from 'three';
|
|
4
|
-
import type { LineStyle } from '../
|
|
4
|
+
import type { LineStyle } from '../typings/style';
|
|
5
5
|
import { RectangleWithEdgeMesh } from './RectangleWithEdge';
|
|
6
6
|
import { RectangleMesh } from './Rectangle';
|
|
7
7
|
import type { PointsData } from '../utils/data';
|
|
@@ -1,30 +1,31 @@
|
|
|
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
|
-
var
|
|
4
|
-
import { IObject3D as
|
|
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";
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
s(this, "name", "BoxMesh");
|
|
21
|
+
s(this, "bottomPlane");
|
|
22
|
+
s(this, "topPlane");
|
|
23
|
+
s(this, "heightPoint");
|
|
24
|
+
s(this, "edgePlanes", []);
|
|
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;
|
|
@@ -62,8 +63,8 @@ class w extends a {
|
|
|
62
63
|
return;
|
|
63
64
|
const o = c(t);
|
|
64
65
|
this.heightPoint = o, this.addIfNotExists(this.topPlane);
|
|
65
|
-
const h = this.bottomPlane.projectPoint(o),
|
|
66
|
-
this.topPlane.setPoints(l), this.up.copy(
|
|
66
|
+
const h = this.bottomPlane.projectPoint(o), n = o.clone().sub(h), l = this.bottomPlane.points.map((g) => g.clone().add(n));
|
|
67
|
+
this.topPlane.setPoints(l), this.up.copy(n.clone().normalize()), this.setEdgePlanes();
|
|
67
68
|
}
|
|
68
69
|
setEdgePlanes() {
|
|
69
70
|
for (let t = 0; t < 4; t++) {
|
|
@@ -75,8 +76,8 @@ class w extends a {
|
|
|
75
76
|
occlusionVisibility: this.occlusionVisibility,
|
|
76
77
|
occlusionMode: this.occlusionMode
|
|
77
78
|
}), o = this.edgePlanes[t]);
|
|
78
|
-
const h = this.topPlane.sortedPoint,
|
|
79
|
-
o.setPoints([h[t],
|
|
79
|
+
const h = this.topPlane.sortedPoint, n = this.bottomPlane.sortedPoint, l = t === 3 ? 0 : t + 1;
|
|
80
|
+
o.setPoints([h[t], n[l], n[t]]), o.line.setPoints([h[t], n[t]]), this.addIfNotExists(o);
|
|
80
81
|
}
|
|
81
82
|
}
|
|
82
83
|
setStyle(t) {
|
|
@@ -90,5 +91,5 @@ class w extends a {
|
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
93
|
export {
|
|
93
|
-
|
|
94
|
+
H as BoxMesh
|
|
94
95
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
|
-
import { type OcclusionStyle } from '../
|
|
2
|
+
import { type OcclusionStyle } from '../typings/style';
|
|
3
3
|
import ColoredMesh, { type ColoredMeshStyle } from '../utils/three/ColoredMesh';
|
|
4
4
|
import { type AnyPosition } from '../../shared-utils/positionToVector3';
|
|
5
5
|
export type CircleStyle = ColoredMeshStyle & OcclusionStyle;
|
|
@@ -2,7 +2,7 @@ var g = Object.defineProperty;
|
|
|
2
2
|
var c = (i, e, t) => e in i ? g(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
3
|
var o = (i, e, t) => (c(i, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import * as d from "three";
|
|
5
|
-
import { DEFAULT_HIGHLIGHT_OPACITY as u } from "../
|
|
5
|
+
import { DEFAULT_HIGHLIGHT_OPACITY as u } from "../typings/style.js";
|
|
6
6
|
import { radiusToSegments as y } from "../utils/radiusToSegments.js";
|
|
7
7
|
import { ColoredMesh as f } from "../utils/three/ColoredMesh.js";
|
|
8
8
|
import { anyPositionToVector3 as s } from "../../shared-utils/positionToVector3.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LineStyle } from '../
|
|
1
|
+
import type { LineStyle } from '../typings/style';
|
|
2
2
|
import { CircleMesh, type CircleData, type CircleStyle } from './Circle';
|
|
3
3
|
export type CircleWithEdgeMeshStyle = CircleStyle & LineStyle;
|
|
4
4
|
export declare class CircleWithEdgeMesh extends CircleMesh {
|
|
@@ -14,17 +14,18 @@ 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 "../
|
|
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
|
};
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
|
-
import { type Color, type OcclusionStyle, type LineStyle } from '../
|
|
2
|
+
import { type Color, type OcclusionStyle, type LineStyle } from '../typings/style';
|
|
3
3
|
import { LineGeometry, LineMaterial, THREE_Line2 } from '../../shared-utils/five/FiveLine';
|
|
4
4
|
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,8 @@ 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[];
|
|
35
|
+
get style(): LineMeshStyle;
|
|
31
36
|
get lineWidth(): number;
|
|
32
37
|
get color(): THREE.Color;
|
|
33
38
|
get dashed(): boolean;
|
|
@@ -44,4 +49,5 @@ export declare class LineMesh extends IObject3D {
|
|
|
44
49
|
setStyle(params: Partial<LineMeshStyle>): void;
|
|
45
50
|
highlight(): void;
|
|
46
51
|
unhighlight(): void;
|
|
52
|
+
updateLengthItems(): void;
|
|
47
53
|
}
|