@realsee/dnalogel 3.49.0 → 3.49.2
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 +9 -1
- package/dist/Sculpt/Meshes/Line.d.ts +2 -1
- package/dist/index.cjs.js +3008 -87
- package/dist/index.js +39458 -20049
- package/dist/index.umd.js +3001 -80
- package/dist/shared-utils/three/index.d.ts +1 -1
- package/libs/AreaMakerPlugin/Controller.js +7 -4
- package/libs/AreaMakerPlugin/index.js +7 -4
- package/libs/AreaMakerPlugin/utils/Item.js +7 -4
- package/libs/CSS3DRenderPlugin/Controller.js +12 -9
- package/libs/CSS3DRenderPlugin/index.js +9 -6
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +21 -18
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +6 -3
- package/libs/CruisePlugin/BaseController.js +12 -9
- package/libs/CruisePlugin/Move.js +7 -4
- package/libs/CruisePlugin/Work.js +7 -4
- package/libs/CruisePlugin/index.js +11 -8
- package/libs/CurrentPanoImagePlugin/Controller.js +6 -3
- package/libs/CurrentPanoImagePlugin/index.js +7 -4
- package/libs/GuideLinePlugin/Controller.js +9 -6
- package/libs/GuideLinePlugin/GuideLineItem.js +7 -4
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +4 -3
- package/libs/GuideLinePlugin/GuideLineModeItem.js +7 -4
- package/libs/GuideLinePlugin/index.js +11 -8
- package/libs/ModelMakerPlugin/Controller.js +7 -4
- package/libs/ModelMakerPlugin/index.js +7 -4
- package/libs/ModelMakerPlugin/item/baseItem.js +2 -2
- package/libs/ModelMakerPlugin/item/boxItem.js +2 -2
- package/libs/ModelMakerPlugin/item/polygonItem.js +2 -2
- package/libs/ModelMakerPlugin/item/prismItem.js +2 -2
- package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +1 -1
- package/libs/ModelTVVideoPlugin/Plugin.js +7 -4
- package/libs/ModelTVVideoPlugin/index.js +6 -3
- package/libs/Object3DHelperPlugin/Controller.js +6 -3
- package/libs/Object3DHelperPlugin/index.js +9 -6
- package/libs/PanoCompassPlugin/Controller.js +6 -3
- package/libs/PanoCompassPlugin/index.js +7 -4
- package/libs/PanoDoorLabelPlugin/BaseController.js +16 -13
- package/libs/PanoDoorLabelPlugin/Controller.js +58 -55
- package/libs/PanoDoorLabelPlugin/index.js +7 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +6 -3
- package/libs/PanoMeasurePlugin/Components/Controller1.js +6 -3
- package/libs/PanoMeasurePlugin/Controller/EditController.js +6 -3
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +6 -3
- package/libs/PanoMeasurePlugin/Controller/index.js +6 -3
- package/libs/PanoMeasurePlugin/Model/area.js +6 -3
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +4 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +6 -3
- package/libs/PanoMeasurePlugin/index.js +17 -14
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +16 -13
- package/libs/PanoSpatialTagPlugin/Plugin.js +7 -4
- package/libs/PanoSpatialTagPlugin/index.js +4 -1
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +24 -21
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +6 -3
- package/libs/PanoTagPlugin/Components/Tag/index.js +6 -3
- package/libs/PanoTagPlugin/Components/TagContainer.js +6 -3
- package/libs/PanoTagPlugin/Components/TagItem.js +6 -3
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +11 -5
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +14 -11
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +12 -9
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +10 -7
- package/libs/PanoTagPlugin/controller/TagRender.js +7 -4
- package/libs/PanoTagPlugin/controller/TagUtil.js +7 -4
- package/libs/PanoTagPlugin/controller/index.js +10 -7
- package/libs/PanoTagPlugin/index.js +16 -13
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +25 -22
- package/libs/PanoVideoPlugin/Controller.js +9 -6
- package/libs/PanoVideoPlugin/VideoMeshController.js +6 -3
- package/libs/PanoVideoPlugin/index.js +9 -6
- package/libs/PipelinePlugin/Controller.js +13 -10
- package/libs/PipelinePlugin/index.js +7 -4
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +6 -3
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +16 -13
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +20 -17
- package/libs/Sculpt/Meshes/Box.js +7 -6
- package/libs/Sculpt/Meshes/Cylinder.js +4 -3
- package/libs/Sculpt/Meshes/Line.d.ts +2 -1
- package/libs/Sculpt/Meshes/Line.js +11 -10
- package/libs/Sculpt/Meshes/LineWithDots.js +1 -1
- package/libs/Sculpt/Meshes/Point.js +11 -10
- package/libs/Sculpt/Meshes/PolygonWithEdge.js +1 -1
- package/libs/Sculpt/Meshes/Polyline.js +31 -31
- package/libs/Sculpt/Meshes/Prism.js +2 -2
- package/libs/Sculpt/Meshes/Rectangle.js +5 -4
- package/libs/Sculpt/Objects/Line/Editor.js +4 -3
- package/libs/Sculpt/index.js +4 -3
- package/libs/Sculpt/utils/three/ColoredMesh.js +5 -4
- package/libs/base/BasePlugin.js +5 -4
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +6 -3
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +7 -4
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +6 -3
- package/libs/floorplan/ModelFloorplanPlugin/index.js +7 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +6 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +7 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +6 -3
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +7 -4
- package/libs/floorplan/index.js +2 -1
- package/libs/index.js +131 -128
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -1
- package/libs/shared-utils/five/FiveDomEvents.js +1 -1
- package/libs/shared-utils/five/FiveLine.js +6 -18
- package/libs/shared-utils/five/index.js +4 -3
- package/libs/shared-utils/five/lookObject.js +18 -17
- package/libs/shared-utils/index.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.js +5 -5
- package/libs/shared-utils/three/PointSelector/index.js +24 -22
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +1 -1
- package/libs/shared-utils/three/boundingBox.js +1 -1
- package/libs/shared-utils/three/index.d.ts +1 -1
- package/libs/shared-utils/three/index.js +2 -1
- package/libs/vendor/three/build/three.module.js +19336 -0
- package/libs/vendor/three/examples/jsm/lines/LineGeometry.js +28 -0
- package/libs/vendor/three/examples/jsm/lines/LineSegmentsGeometry.js +69 -0
- package/package.json +1 -1
- /package/dist/shared-utils/three/{objects → core}/LineSegments.d.ts +0 -0
- /package/dist/shared-utils/three/{THREERaycaster.d.ts → core/Raycaster.d.ts} +0 -0
- /package/dist/shared-utils/three/{THREESphere.d.ts → core/Sphere.d.ts} +0 -0
- /package/libs/shared-utils/three/{objects → core}/LineSegments.d.ts +0 -0
- /package/libs/shared-utils/three/{objects → core}/LineSegments.js +0 -0
- /package/libs/shared-utils/three/{THREERaycaster.d.ts → core/Raycaster.d.ts} +0 -0
- /package/libs/shared-utils/three/{THREERaycaster.js → core/Raycaster.js} +0 -0
- /package/libs/shared-utils/three/{THREESphere.d.ts → core/Sphere.d.ts} +0 -0
- /package/libs/shared-utils/three/{THREESphere.js → core/Sphere.js} +0 -0
|
@@ -5,11 +5,14 @@ import "three";
|
|
|
5
5
|
import "hammerjs";
|
|
6
6
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
7
7
|
import "@realsee/five/line";
|
|
8
|
+
import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
8
9
|
import "../../../shared-utils/tag.js";
|
|
9
|
-
import "../../../shared-utils/three/
|
|
10
|
+
import "../../../shared-utils/three/core/Sphere.js";
|
|
10
11
|
import "animejs";
|
|
11
12
|
import { requestAnimationFrameInterval as c } from "../../../shared-utils/animationFrame/index.js";
|
|
12
13
|
import { ObjectPipe as h } from "./Pipe.js";
|
|
14
|
+
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
15
|
+
import "../../../vendor/three/build/three.module.js";
|
|
13
16
|
import "../../../shared-utils/positionToVector3.js";
|
|
14
17
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
15
18
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
@@ -43,7 +46,7 @@ const d = (
|
|
|
43
46
|
}
|
|
44
47
|
`
|
|
45
48
|
);
|
|
46
|
-
class
|
|
49
|
+
class J extends h {
|
|
47
50
|
constructor(t) {
|
|
48
51
|
super(t, d);
|
|
49
52
|
/** 初始状态下,当前水管内的水流在整体管道上的位移
|
|
@@ -101,5 +104,5 @@ class N extends h {
|
|
|
101
104
|
}
|
|
102
105
|
}
|
|
103
106
|
export {
|
|
104
|
-
|
|
107
|
+
J as ObjectFlowPipe
|
|
105
108
|
};
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var n = (e, t, i) => t in e ?
|
|
3
|
-
var
|
|
1
|
+
var s = Object.defineProperty;
|
|
2
|
+
var n = (e, t, i) => t in e ? s(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
|
3
|
+
var o = (e, t, i) => (n(e, typeof t != "symbol" ? t + "" : t, i), i);
|
|
4
4
|
import "three";
|
|
5
5
|
import "hammerjs";
|
|
6
6
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
7
7
|
import "@realsee/five/line";
|
|
8
|
+
import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
8
9
|
import "../../../shared-utils/tag.js";
|
|
9
|
-
import "../../../shared-utils/three/
|
|
10
|
+
import "../../../shared-utils/three/core/Sphere.js";
|
|
10
11
|
import "animejs";
|
|
11
|
-
import { tweenProgress as
|
|
12
|
+
import { tweenProgress as h } from "../../../shared-utils/animationFrame/BetterTween.js";
|
|
12
13
|
import { ObjectPipe as a } from "./Pipe.js";
|
|
14
|
+
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
15
|
+
import "../../../vendor/three/build/three.module.js";
|
|
13
16
|
import "../../../shared-utils/positionToVector3.js";
|
|
14
17
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
15
18
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
@@ -24,21 +27,21 @@ import "../../../shared-utils/animationFrame/index.js";
|
|
|
24
27
|
import "../../../shared-utils/three/Extras/Curves/BezierCurve3.js";
|
|
25
28
|
import "../../../shared-utils/three/Extras/Core/Interpolations.js";
|
|
26
29
|
import "../../../shared-utils/three/Extras/Core/Interpolations2.js";
|
|
27
|
-
class
|
|
30
|
+
class G extends a {
|
|
28
31
|
constructor(i) {
|
|
29
32
|
super(i);
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
o(this, "imageCount", 64);
|
|
34
|
+
o(this, "highlightAnime");
|
|
32
35
|
}
|
|
33
36
|
highlight(i) {
|
|
34
37
|
const r = (i == null ? void 0 : i.duration) || 500;
|
|
35
|
-
this.disposeAnime(), this.highlightAnime =
|
|
38
|
+
this.disposeAnime(), this.highlightAnime = h(r).onUpdate(({ progress: m }) => this.setOpacity(m)).yoyo(!0).repeat(1 / 0).play();
|
|
36
39
|
}
|
|
37
40
|
highlight1(i) {
|
|
38
41
|
const r = (i == null ? void 0 : i.duration) || 2500;
|
|
39
|
-
this.disposeAnime(), this.highlightAnime =
|
|
40
|
-
const
|
|
41
|
-
this.material.uniforms.vOffset.value !==
|
|
42
|
+
this.disposeAnime(), this.highlightAnime = h(r).onUpdate(({ progress: m }) => {
|
|
43
|
+
const p = -(Math.ceil(m * this.imageCount) - 1) / this.imageCount;
|
|
44
|
+
this.material.uniforms.vOffset.value !== p && (this.material.uniforms.vOffset.value = p, this.material.needsUpdate = !0, this.needsRender = !0);
|
|
42
45
|
}).repeat(1 / 0).play();
|
|
43
46
|
}
|
|
44
47
|
disposeAnime() {
|
|
@@ -47,5 +50,5 @@ class D extends a {
|
|
|
47
50
|
}
|
|
48
51
|
}
|
|
49
52
|
export {
|
|
50
|
-
|
|
53
|
+
G as ObjectHighlightPipe
|
|
51
54
|
};
|
|
@@ -9,7 +9,7 @@ var f = (a, e, t) => e in a ? d(a, e, { enumerable: !0, configurable: !0, writab
|
|
|
9
9
|
w.call(e, t) && f(a, t, e[t]);
|
|
10
10
|
return a;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
12
|
+
var m = (a, e, t) => (f(a, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
13
|
var l = (a, e, t) => new Promise((i, s) => {
|
|
14
14
|
var o = (p) => {
|
|
15
15
|
try {
|
|
@@ -26,15 +26,18 @@ var l = (a, e, t) => new Promise((i, s) => {
|
|
|
26
26
|
}, n = (p) => p.done ? i(p.value) : Promise.resolve(p.value).then(o, r);
|
|
27
27
|
n((t = t.apply(a, e)).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 "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
33
34
|
import "../../../shared-utils/tag.js";
|
|
34
|
-
import "../../../shared-utils/three/
|
|
35
|
+
import "../../../shared-utils/three/core/Sphere.js";
|
|
35
36
|
import "animejs";
|
|
36
37
|
import { BetterTween as g } from "../../../shared-utils/animationFrame/BetterTween.js";
|
|
37
38
|
import { CustomBezierCurve3 as x } from "../../../shared-utils/three/Extras/Curves/BezierCurve3.js";
|
|
39
|
+
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
40
|
+
import "../../../vendor/three/build/three.module.js";
|
|
38
41
|
import "../../../shared-utils/positionToVector3.js";
|
|
39
42
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
40
43
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
@@ -75,29 +78,29 @@ const C = (
|
|
|
75
78
|
}
|
|
76
79
|
`
|
|
77
80
|
);
|
|
78
|
-
class h extends
|
|
81
|
+
class h extends u.Mesh {
|
|
79
82
|
constructor(t, i = O) {
|
|
80
83
|
super();
|
|
81
|
-
|
|
84
|
+
m(this, "geometryConfig", {
|
|
82
85
|
radius: 1.5 / 100,
|
|
83
86
|
tubularSegments: 20,
|
|
84
87
|
radialSegments: 8
|
|
85
88
|
});
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
m(this, "customID");
|
|
90
|
+
m(this, "path");
|
|
91
|
+
m(this, "pathLength", 0);
|
|
92
|
+
m(this, "pathPoints");
|
|
93
|
+
m(this, "texture");
|
|
94
|
+
m(this, "opacityAnime");
|
|
92
95
|
/** u / m: 每米水管对应到贴图上,应该对应的 u 的长度 */
|
|
93
|
-
|
|
94
|
-
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((p) => new
|
|
96
|
+
m(this, "uPreMeter", 1);
|
|
97
|
+
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((p) => new u.Vector3().fromArray(p))), this.pathLength = this.path.getLength(), this.texture = h.formatTexture(t.texture);
|
|
95
98
|
const { radius: s, tubularSegments: o, radialSegments: r } = this.geometryConfig, n = h.formatTexture(t.texture);
|
|
96
99
|
this.geometry = h.formatGeometryUV(
|
|
97
|
-
new
|
|
100
|
+
new u.TubeBufferGeometry(this.path, o, s, r),
|
|
98
101
|
this.pathLength,
|
|
99
102
|
this.uPreMeter
|
|
100
|
-
), this.material = new
|
|
103
|
+
), this.material = new u.ShaderMaterial({
|
|
101
104
|
uniforms: {
|
|
102
105
|
opacity: { value: 1 },
|
|
103
106
|
uOffset: { value: 0 },
|
|
@@ -116,7 +119,7 @@ class h extends m.Mesh {
|
|
|
116
119
|
* @description 两个控制点使用直线路径,多个控制点使用贝塞尔路径
|
|
117
120
|
*/
|
|
118
121
|
static calculatePath(t) {
|
|
119
|
-
return t.length === 2 ? new
|
|
122
|
+
return t.length === 2 ? new u.LineCurve3(t[0], t[1]) : new x(t);
|
|
120
123
|
}
|
|
121
124
|
static formatGeometryUV(t, i, s) {
|
|
122
125
|
const o = t.getAttribute("uv");
|
|
@@ -130,7 +133,7 @@ class h extends m.Mesh {
|
|
|
130
133
|
* 管道的 Texture 需要满足一定的要求,需要使用 formatTexture 先 format
|
|
131
134
|
*/
|
|
132
135
|
static formatTexture(t) {
|
|
133
|
-
return t.wrapS =
|
|
136
|
+
return t.wrapS = u.RepeatWrapping, t.wrapT = u.RepeatWrapping, t;
|
|
134
137
|
}
|
|
135
138
|
hide(t) {
|
|
136
139
|
return l(this, null, function* () {
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
var p = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var s = (e, i, t) => (
|
|
4
|
-
import { IObject3D as
|
|
2
|
+
var m = (e, i, t) => i in e ? p(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t;
|
|
3
|
+
var s = (e, i, t) => (m(e, typeof i != "symbol" ? i + "" : i, t), t);
|
|
4
|
+
import { IObject3D as d } from "../../shared-utils/three/IObject3D.js";
|
|
5
5
|
import { anyPositionToVector3 as P } 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 "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
10
11
|
import "../../shared-utils/tag.js";
|
|
11
|
-
import "../../shared-utils/three/
|
|
12
|
+
import "../../shared-utils/three/core/Sphere.js";
|
|
12
13
|
import "animejs";
|
|
13
14
|
import { notNil as r } from "../../shared-utils/isNil.js";
|
|
14
15
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
15
16
|
import { RectangleWithEdgeMesh as c } from "./RectangleWithEdge.js";
|
|
16
17
|
import { RectangleMesh as a } from "./Rectangle.js";
|
|
17
|
-
class
|
|
18
|
+
class N extends d {
|
|
18
19
|
constructor(t) {
|
|
19
20
|
super();
|
|
20
21
|
s(this, "name", "BoxMesh");
|
|
@@ -91,5 +92,5 @@ class H extends m {
|
|
|
91
92
|
}
|
|
92
93
|
}
|
|
93
94
|
export {
|
|
94
|
-
|
|
95
|
+
N as BoxMesh
|
|
95
96
|
};
|
|
@@ -16,16 +16,17 @@ import "hammerjs";
|
|
|
16
16
|
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
|
+
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
19
20
|
import { anyPositionToVector3 as d } from "../../shared-utils/positionToVector3.js";
|
|
20
21
|
import "../../shared-utils/tag.js";
|
|
21
|
-
import "../../shared-utils/three/
|
|
22
|
+
import "../../shared-utils/three/core/Sphere.js";
|
|
22
23
|
import "animejs";
|
|
23
24
|
import { notNil as g } from "../../shared-utils/isNil.js";
|
|
24
25
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
25
26
|
import { CircleWithEdgeMesh as m } from "./CircleWithEdge.js";
|
|
26
27
|
import { radiusToSegments as y } from "../utils/radiusToSegments.js";
|
|
27
28
|
import { ColoredMesh as a } from "../utils/three/ColoredMesh.js";
|
|
28
|
-
class
|
|
29
|
+
class D extends f {
|
|
29
30
|
constructor(t) {
|
|
30
31
|
super();
|
|
31
32
|
o(this, "bottomCircle");
|
|
@@ -86,5 +87,5 @@ class A extends f {
|
|
|
86
87
|
}
|
|
87
88
|
}
|
|
88
89
|
export {
|
|
89
|
-
|
|
90
|
+
D as CylinderMesh
|
|
90
91
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
import { type Color, type OcclusionStyle, type LineStyle } from '../typings/style';
|
|
3
|
-
import {
|
|
3
|
+
import { LineMaterial, THREE_Line2 } from '../../shared-utils/five/FiveLine';
|
|
4
|
+
import { LineGeometry } from 'three/examples/jsm/lines/LineGeometry';
|
|
4
5
|
import { type AnyPositions } from '../../shared-utils/positionToVector3';
|
|
5
6
|
import { IObject3D } from '../../shared-utils/three/IObject3D';
|
|
6
7
|
import type { Merge } from 'type-fest';
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
var E = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var L = Object.getOwnPropertySymbols;
|
|
3
3
|
var _ = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable;
|
|
4
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
5
|
for (var e in o || (o = {}))
|
|
6
6
|
_.call(o, e) && f(l, e, o[e]);
|
|
7
|
-
if (
|
|
8
|
-
for (var e of
|
|
7
|
+
if (L)
|
|
8
|
+
for (var e of L(o))
|
|
9
9
|
T.call(o, e) && f(l, e, o[e]);
|
|
10
10
|
return l;
|
|
11
11
|
};
|
|
12
12
|
var h = (l, o, e) => (f(l, typeof o != "symbol" ? o + "" : o, e), e);
|
|
13
13
|
import * as u from "three";
|
|
14
14
|
import { DEFAULT_LINE_COLOR as b, DEFAULT_LINE_WIDTH as k, DEFAULT_HIGHLIGHT_OPACITY as p } from "../typings/style.js";
|
|
15
|
-
import {
|
|
15
|
+
import { LineMaterial as w, THREE_Line2 as I } from "../../shared-utils/five/FiveLine.js";
|
|
16
|
+
import { LineGeometry as m } from "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
16
17
|
import { anyPositionToVector3 as H } from "../../shared-utils/positionToVector3.js";
|
|
17
18
|
import { IObject3D as C } from "../../shared-utils/three/IObject3D.js";
|
|
18
19
|
import "hammerjs";
|
|
@@ -22,7 +23,7 @@ import { LightTag as x } from "../../shared-utils/tag.js";
|
|
|
22
23
|
import { removeAllTag as W } from "../utils/removeAllTag.js";
|
|
23
24
|
import { getLengthHTML as v } from "../utils/Meshes/getLengthHTML.js";
|
|
24
25
|
import { applyObjectMatrixWorld as D } from "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
25
|
-
import "../../shared-utils/three/
|
|
26
|
+
import "../../shared-utils/three/core/Sphere.js";
|
|
26
27
|
import "animejs";
|
|
27
28
|
import { notNil as d } from "../../shared-utils/isNil.js";
|
|
28
29
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -51,7 +52,7 @@ class M extends I {
|
|
|
51
52
|
h(this, "name", "Line3");
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
|
-
class
|
|
55
|
+
class X extends C {
|
|
55
56
|
constructor(e) {
|
|
56
57
|
var s, r, c, a, g;
|
|
57
58
|
super();
|
|
@@ -65,7 +66,7 @@ class Q extends C {
|
|
|
65
66
|
h(this, "paramsStyle", {});
|
|
66
67
|
h(this, "lastRenderLengthItem");
|
|
67
68
|
this.paramsStyle = e != null ? e : {};
|
|
68
|
-
const i = new
|
|
69
|
+
const i = new m(), t = new S({
|
|
69
70
|
color: new u.Color((s = e == null ? void 0 : e.lineColor) != null ? s : b),
|
|
70
71
|
linewidth: (r = e == null ? void 0 : e.lineWidth) != null ? r : k,
|
|
71
72
|
dashScale: 40,
|
|
@@ -133,12 +134,12 @@ class Q extends C {
|
|
|
133
134
|
setPoints(e) {
|
|
134
135
|
const i = e.map(H).filter(d);
|
|
135
136
|
if (this.points = i, i.length < 2) {
|
|
136
|
-
this.line.geometry = new
|
|
137
|
+
this.line.geometry = new m(), this.backLine.geometry = this.line.geometry, this.updateLengthItems();
|
|
137
138
|
return;
|
|
138
139
|
}
|
|
139
140
|
this.addIfNotExists(this.line, this.backLine);
|
|
140
141
|
const t = i.flatMap((n) => [n.x, n.y, n.z]);
|
|
141
|
-
t.length > 2 && (this.line.geometry.dispose(), this.line.geometry = new
|
|
142
|
+
t.length > 2 && (this.line.geometry.dispose(), this.line.geometry = new m(), this.backLine.geometry = this.line.geometry), this.line.geometry.setPositions(t), this.line.computeLineDistances(), this.updateLengthItems(), this.needsRender = !0;
|
|
142
143
|
}
|
|
143
144
|
setResolution(e, i) {
|
|
144
145
|
const t = this.line.material.resolution;
|
|
@@ -183,5 +184,5 @@ class Q extends C {
|
|
|
183
184
|
}
|
|
184
185
|
}
|
|
185
186
|
export {
|
|
186
|
-
|
|
187
|
+
X as LineMesh
|
|
187
188
|
};
|
|
@@ -17,7 +17,7 @@ import "three";
|
|
|
17
17
|
import "hammerjs";
|
|
18
18
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
19
19
|
import { LineMesh as S } from "./Line.js";
|
|
20
|
-
import "../../shared-utils/three/
|
|
20
|
+
import "../../shared-utils/three/core/Sphere.js";
|
|
21
21
|
import "animejs";
|
|
22
22
|
import { notNil as y } from "../../shared-utils/isNil.js";
|
|
23
23
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
var C = Object.defineProperty, N = Object.defineProperties;
|
|
2
2
|
var P = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var M = Object.getOwnPropertySymbols;
|
|
4
|
-
var k = Object.prototype.hasOwnProperty,
|
|
4
|
+
var k = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var n = (i, e, t) => e in i ? C(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, c = (i, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
7
|
k.call(e, t) && n(i, t, e[t]);
|
|
8
8
|
if (M)
|
|
9
9
|
for (var t of M(e))
|
|
10
|
-
|
|
10
|
+
m.call(e, t) && n(i, t, e[t]);
|
|
11
11
|
return i;
|
|
12
12
|
}, g = (i, e) => N(i, P(e));
|
|
13
13
|
var A = (i, e, t) => (n(i, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
14
|
import * as o from "three";
|
|
15
|
-
import { DEFAULT_HIGHLIGHT_OPACITY as
|
|
16
|
-
import { IObject3D as
|
|
15
|
+
import { DEFAULT_HIGHLIGHT_OPACITY as B } from "../typings/style.js";
|
|
16
|
+
import { IObject3D as b } from "../../shared-utils/three/IObject3D.js";
|
|
17
17
|
import { anyPositionToVector3 as E } from "../../shared-utils/positionToVector3.js";
|
|
18
18
|
import "hammerjs";
|
|
19
19
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
20
20
|
import "@realsee/five/line";
|
|
21
|
+
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
21
22
|
import "../../shared-utils/tag.js";
|
|
22
|
-
import "../../shared-utils/three/
|
|
23
|
+
import "../../shared-utils/three/core/Sphere.js";
|
|
23
24
|
import "animejs";
|
|
24
25
|
import { notNil as u } from "../../shared-utils/isNil.js";
|
|
25
26
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
26
|
-
const
|
|
27
|
+
const p = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sHDgwCEMBJZu0AAAAdaVRYdENvbW1lbnQAAAAAAENyZWF0ZWQgd2l0aCBHSU1QZC5lBwAABM5JREFUWMO1V0tPG2cUPZ4Hxh6DazIOrjFNqJs0FIMqWFgWQkatsmvVbtggKlSVRVf5AWz4AWz4AUSKEChll19QJYSXkECuhFxsHjEhxCYm+DWGMZ5HF72DJq4bAzFXurI0M/I5997v3u9cC65vTJVn2lX/xHINQOYSBLTLEuIuCWw4Z3IGAEvf6ASmVHjNzHCXBG4A0AjACsAOwEbO0nsFQBnAGYASAIl+ZRMR7SolMEdsByD09fV5R0ZGgg8ePPjW5/N1iqLYpuu6RZblciKR2I9Go69evnwZnZ+fjwI4IS8AKBIRzeQfJWCANwKwh0KhtrGxsYehUOin1tbW+zzP23ietzY2NnIAoGmaLsuyUiqVyvl8XtrY2NiamZn589mzZxsAUgCOAeQAnFI2tI+VxIjaAeDzoaGh7xYWFuZOTk6OZVk+12uYqqq6JEnn0Wg0OT4+/geAXwGEAdwDIFJQXC1wO4DWR48e/RCPxxclSSroVzRFUbSDg4P848ePFwH8DuAhkWih83TRQWxFOXgAwvDwcOfo6OhvXV1d39tsNtuVBwTDWBwOh1UUxVsMw1hXVlbSdCgNV43uYSvrHg6H24aHh38eHBz85TrgF9FYLHA4HLzH43FvbW2d7u/vG+dANp8FpqIlbd3d3V8Fg8EfBUFw4BONZVmL3+9vHhkZCQL4AoAHgJPK8G+yzC0XDofdoVAo5PP5vkadTBAEtr+/39ff3x8gAp/RPOEqx2qjx+NpvXv3bk9DQ0NDvQgwDIOWlhZrMBj8kgi0UJdxRgYMArzL5XJ7vd57qLPZ7Xamp6fnNgBXtQxcjFuHw+Hyer3t9SYgCAITCAScAJoBNNEY/08GOFVVrfVMv7kMNDntFD1vjIAPrlRN0xjckOm6biFQ3jwNPwDMZrOnqVTqfb3Bi8Wivru7W/VCYkwPlKOjo0IikXh7EwQikYgE4Nw0CfXKDCipVCoTj8df3QABbW1tLUc6oUgkFPMkVACUNjc337148eKvw8PDbJ2jP1taWkoCyNDVXDSECmNSK4qiKNLq6urW8+fPI/UicHx8rD59+jSVy+WOAKSJhKENwFItLtoxk8mwsixzHR0dHe3t7c5PAU+n09rs7OzJkydPYqVSaQfANoDXALIk31S2smU1TWMPDg7K5XKZ7+3t9TudTut1U7+wsFCcmJiIpdPpbQBxADsAknQWymYCOukBHYCuKApisdhpMpnURFEU79y503TVyKenpzOTk5M7e3t7MQKPV0Zv1gNm+awB0MvlshqLxfLb29uyJElWURSbXC4XXyvqxcXFs6mpqeTc3Nzu3t7e3wQcA7BPZ8Cov1pNlJplmQtAG8MwHV6v95tAINA5MDBwPxAIuLu6upr8fr/VAN3c3JQjkcjZ+vp6fnl5+d2bN29SuVzuNYAEpf01CdRChUL+X1VskHACuA3Ay3Fcu9vt7nA6nZ7m5uYWQRCaNE3jVVW15PP580KhIGUymWw2m00DOAJwSP4WwPtq4LX2Ao6USxNlQyS/RcQcdLGwlNIz6vEMAaZpNzCk2Pll94LK/cDYimxERiBwG10sxjgvEZBE0UpE6vxj+0Ct5bTaXthgEhRmja8QWNkkPGsuIpfdjpkK+cZUWTC0KredVmtD/gdlSl6EG4AMvQAAAABJRU5ErkJggg==";
|
|
27
28
|
let w = null;
|
|
28
|
-
class
|
|
29
|
+
class Q extends b {
|
|
29
30
|
constructor(t) {
|
|
30
31
|
var f, a;
|
|
31
32
|
super();
|
|
@@ -40,7 +41,7 @@ class T extends m {
|
|
|
40
41
|
transparent: !0,
|
|
41
42
|
side: o.DoubleSide,
|
|
42
43
|
size: (f = t == null ? void 0 : t.size) != null ? f : 8,
|
|
43
|
-
map: w || (w = new o.TextureLoader().load(
|
|
44
|
+
map: w || (w = new o.TextureLoader().load(p)),
|
|
44
45
|
sizeAttenuation: !1
|
|
45
46
|
}, r = new o.PointsMaterial(g(c({}, d), {
|
|
46
47
|
color: (a = t == null ? void 0 : t.color) != null ? a : 16777215,
|
|
@@ -65,12 +66,12 @@ class T extends m {
|
|
|
65
66
|
u(t.color) && (this.fontMesh.material.setValues({ color: t.color }), this.backgroundMesh.material.setValues({ color: t.color })), u(t.size) && (this.fontMesh.material.setValues({ side: t.size }), this.backgroundMesh.material.setValues({ side: t.size })), u(t.occlusionVisibility) && (t.occlusionVisibility ? t.occlusionMode === "depthTest" ? (this.fontMesh.material.depthTest = !1, this.backgroundMesh.visible = !1) : (this.fontMesh.material.depthTest = !0, this.backgroundMesh.visible = !0) : (this.fontMesh.material.depthTest = !0, this.backgroundMesh.visible = !1));
|
|
66
67
|
}
|
|
67
68
|
highlight() {
|
|
68
|
-
this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.fontMesh.material.opacity, this.fontMesh.material.setValues({ opacity: this.opacityBeforeHighlight *
|
|
69
|
+
this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.fontMesh.material.opacity, this.fontMesh.material.setValues({ opacity: this.opacityBeforeHighlight * B }));
|
|
69
70
|
}
|
|
70
71
|
unhighlight() {
|
|
71
72
|
this.highlighted && (this.highlighted = !1, this.fontMesh.material.setValues({ opacity: this.opacityBeforeHighlight }));
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
75
|
export {
|
|
75
|
-
|
|
76
|
+
Q as PointMesh
|
|
76
77
|
};
|
|
@@ -22,7 +22,7 @@ var c = (i, e) => {
|
|
|
22
22
|
var o = (i, e, t) => (l(i, typeof e != "symbol" ? e + "" : e, t), t);
|
|
23
23
|
import { PolylineMesh as W } from "./Polyline.js";
|
|
24
24
|
import { PolygonMesh as C } from "./Polygon.js";
|
|
25
|
-
import { intersectWithoutLine as E } from "../../shared-utils/three/
|
|
25
|
+
import { intersectWithoutLine as E } from "../../shared-utils/three/core/Raycaster.js";
|
|
26
26
|
class w extends C {
|
|
27
27
|
constructor(t) {
|
|
28
28
|
const r = t != null ? t : {}, { points: s } = r, h = c(r, ["points"]);
|
|
@@ -2,12 +2,12 @@ var M = Object.defineProperty, E = Object.defineProperties;
|
|
|
2
2
|
var b = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var a = Object.getOwnPropertySymbols;
|
|
4
4
|
var g = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var m = (e, o, t) => o in e ? M(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t, r = (e, o) => {
|
|
6
6
|
for (var t in o || (o = {}))
|
|
7
|
-
g.call(o, t) &&
|
|
7
|
+
g.call(o, t) && m(e, t, o[t]);
|
|
8
8
|
if (a)
|
|
9
9
|
for (var t of a(o))
|
|
10
|
-
f.call(o, t) &&
|
|
10
|
+
f.call(o, t) && m(e, t, o[t]);
|
|
11
11
|
return e;
|
|
12
12
|
}, c = (e, o) => E(e, b(o));
|
|
13
13
|
var S = (e, o) => {
|
|
@@ -19,22 +19,22 @@ var S = (e, o) => {
|
|
|
19
19
|
o.indexOf(i) < 0 && f.call(e, i) && (t[i] = e[i]);
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
import { anyPositionToVector3 as
|
|
24
|
-
import { IObject3D as
|
|
25
|
-
import { LineWithDotsMesh as
|
|
26
|
-
import * as
|
|
22
|
+
var h = (e, o, t) => (m(e, typeof o != "symbol" ? o + "" : o, t), t);
|
|
23
|
+
import { anyPositionToVector3 as v } from "../../shared-utils/positionToVector3.js";
|
|
24
|
+
import { IObject3D as D } from "../../shared-utils/three/IObject3D.js";
|
|
25
|
+
import { LineWithDotsMesh as V } from "./LineWithDots.js";
|
|
26
|
+
import * as W from "three";
|
|
27
27
|
import { closeVectors as w } from "../../shared-utils/three/closeVectors.js";
|
|
28
28
|
import { removeAllTag as C } from "../utils/removeAllTag.js";
|
|
29
|
-
class P extends
|
|
29
|
+
class P extends D {
|
|
30
30
|
constructor(t) {
|
|
31
31
|
super();
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
this.withDots = i != null ? i : !0, s && this.setPoints(s),
|
|
32
|
+
h(this, "name", "PolylineBaseMesh");
|
|
33
|
+
h(this, "lines", []);
|
|
34
|
+
h(this, "withDots");
|
|
35
|
+
h(this, "paramsStyle");
|
|
36
|
+
const n = t, { withDots: i, points: s } = n, l = S(n, ["withDots", "points"]);
|
|
37
|
+
this.withDots = i != null ? i : !0, s && this.setPoints(s), l && this.setStyle(l), this.addEventListener("removed", () => {
|
|
38
38
|
C(this);
|
|
39
39
|
});
|
|
40
40
|
}
|
|
@@ -56,7 +56,7 @@ class P extends V {
|
|
|
56
56
|
}
|
|
57
57
|
get lineColor() {
|
|
58
58
|
var t, i, s;
|
|
59
|
-
return (s = (t = this.lines[0]) == null ? void 0 : t.color) != null ? s : (i = this.paramsStyle) != null && i.lineColor ? new
|
|
59
|
+
return (s = (t = this.lines[0]) == null ? void 0 : t.color) != null ? s : (i = this.paramsStyle) != null && i.lineColor ? new W.Color(this.paramsStyle.lineColor) : void 0;
|
|
60
60
|
}
|
|
61
61
|
get lineWidth() {
|
|
62
62
|
var t, i, s;
|
|
@@ -79,20 +79,20 @@ class P extends V {
|
|
|
79
79
|
return this.lines.map((i) => i.points[0]).concat((t = this.lines.at(-1)) == null ? void 0 : t.points[1]).filter(Boolean);
|
|
80
80
|
}
|
|
81
81
|
setPoints(t, i = { closed: !1 }) {
|
|
82
|
-
let s = t.map(
|
|
83
|
-
i.closed && (s = w(s)), s.forEach((
|
|
82
|
+
let s = t.map(v);
|
|
83
|
+
i.closed && (s = w(s)), s.forEach((l, n) => {
|
|
84
84
|
var d;
|
|
85
|
-
const
|
|
86
|
-
if (
|
|
87
|
-
return
|
|
88
|
-
const u = (d = this.lines[
|
|
89
|
-
const y = new
|
|
90
|
-
pointVisibility: this.withDots ? { startPoint:
|
|
85
|
+
const p = s[n + 1];
|
|
86
|
+
if (n !== 0 && p === void 0)
|
|
87
|
+
return;
|
|
88
|
+
const u = (d = this.lines[n]) != null ? d : (() => {
|
|
89
|
+
const y = new V(c(r({}, this.style), {
|
|
90
|
+
pointVisibility: this.withDots ? { startPoint: n === 0, endPoint: !0 } : !1
|
|
91
91
|
}));
|
|
92
|
-
return this.lines[
|
|
92
|
+
return this.lines[n] = y, this.add(y), y;
|
|
93
93
|
})();
|
|
94
|
-
u.setStyle(this.style), u.setPoints([
|
|
95
|
-
}), this.lines.length > s.length - 1 && this.lines.splice(s.length - 1).forEach((
|
|
94
|
+
u.setStyle(this.style), u.setPoints([l, p]);
|
|
95
|
+
}), s.length === 0 ? (this.lines.forEach((l) => l.removeFromParent()), this.lines = []) : s.length === 1 || this.lines.length > s.length - 1 && this.lines.splice(s.length - 1).forEach((l) => l.removeFromParent());
|
|
96
96
|
}
|
|
97
97
|
setStyle(t) {
|
|
98
98
|
this.paramsStyle = r(r({}, this.paramsStyle), t), this.lines.forEach((i) => i.setStyle(this.paramsStyle));
|
|
@@ -104,19 +104,19 @@ class P extends V {
|
|
|
104
104
|
this.lines.forEach((t) => t.unhighlight());
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
class
|
|
107
|
+
class A extends P {
|
|
108
108
|
constructor(...t) {
|
|
109
109
|
super(c(r({}, t[0]), { withDots: !1 }));
|
|
110
|
-
|
|
110
|
+
h(this, "name", "PolylineMesh");
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
class H extends P {
|
|
114
114
|
constructor(...t) {
|
|
115
115
|
super(c(r({}, t[0]), { withDots: !0 }));
|
|
116
|
-
|
|
116
|
+
h(this, "name", "PolylineWithDotsMesh");
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
export {
|
|
120
|
-
|
|
120
|
+
A as PolylineMesh,
|
|
121
121
|
H as PolylineWithDotsMesh
|
|
122
122
|
};
|
|
@@ -16,13 +16,13 @@ import * as p from "three";
|
|
|
16
16
|
import "hammerjs";
|
|
17
17
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
18
18
|
import { LineMesh as y } from "./Line.js";
|
|
19
|
-
import "../../shared-utils/three/
|
|
19
|
+
import "../../shared-utils/three/core/Sphere.js";
|
|
20
20
|
import "animejs";
|
|
21
21
|
import { notNil as f } from "../../shared-utils/isNil.js";
|
|
22
22
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
23
23
|
import { PolygonMesh as d } from "./Polygon.js";
|
|
24
24
|
import { PolygonWithEdgeMesh as u } from "./PolygonWithEdge.js";
|
|
25
|
-
import { intersectWithoutLine as S } from "../../shared-utils/three/
|
|
25
|
+
import { intersectWithoutLine as S } from "../../shared-utils/three/core/Raycaster.js";
|
|
26
26
|
class z extends c {
|
|
27
27
|
constructor(t) {
|
|
28
28
|
super();
|
|
@@ -6,8 +6,9 @@ import "three";
|
|
|
6
6
|
import "hammerjs";
|
|
7
7
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
8
8
|
import "@realsee/five/line";
|
|
9
|
+
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
9
10
|
import "../../shared-utils/tag.js";
|
|
10
|
-
import "../../shared-utils/three/
|
|
11
|
+
import "../../shared-utils/three/core/Sphere.js";
|
|
11
12
|
import "animejs";
|
|
12
13
|
import { notNil as h } from "../../shared-utils/isNil.js";
|
|
13
14
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -15,7 +16,7 @@ import { PolygonMesh as u } from "./Polygon.js";
|
|
|
15
16
|
import { RectangleGeometry as g } from "../utils/three/RectangleGeometry.js";
|
|
16
17
|
import { getBetterNormal as f } from "../utils/getBetterNormal.js";
|
|
17
18
|
import { Sculpt as d } from "../index.js";
|
|
18
|
-
class
|
|
19
|
+
class T extends u {
|
|
19
20
|
constructor(t) {
|
|
20
21
|
super(t);
|
|
21
22
|
i(this, "name", "RectangleMesh");
|
|
@@ -37,12 +38,12 @@ class S extends u {
|
|
|
37
38
|
return;
|
|
38
39
|
}
|
|
39
40
|
if (t.length === 3) {
|
|
40
|
-
const [
|
|
41
|
+
const [m, s, n] = o, p = m.clone().add(n).sub(s);
|
|
41
42
|
o.push(p);
|
|
42
43
|
}
|
|
43
44
|
this.up.copy(f(o, d.modules.five.camera.position)), this.points = o, this.geometry = new g(o), this.planeHelperNeedUpdate = !0, this.geometryInfoNeedUpdate = !0;
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
export {
|
|
47
|
-
|
|
48
|
+
T as RectangleMesh
|
|
48
49
|
};
|
|
@@ -9,8 +9,9 @@ import "three";
|
|
|
9
9
|
import "hammerjs";
|
|
10
10
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
11
11
|
import "@realsee/five/line";
|
|
12
|
+
import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
12
13
|
import "../../../shared-utils/tag.js";
|
|
13
|
-
import "../../../shared-utils/three/
|
|
14
|
+
import "../../../shared-utils/three/core/Sphere.js";
|
|
14
15
|
import "animejs";
|
|
15
16
|
import { notNil as m } from "../../../shared-utils/isNil.js";
|
|
16
17
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -42,7 +43,7 @@ class l extends p {
|
|
|
42
43
|
super.disable(), this.removeChildren();
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
|
-
class
|
|
46
|
+
class q extends l {
|
|
46
47
|
constructor(t) {
|
|
47
48
|
super(t);
|
|
48
49
|
o(this, "onDrag", (t) => {
|
|
@@ -57,6 +58,6 @@ class O extends l {
|
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
export {
|
|
60
|
-
|
|
61
|
+
q as LineEditor,
|
|
61
62
|
l as LineEditorAbstract
|
|
62
63
|
};
|
package/libs/Sculpt/index.js
CHANGED
|
@@ -34,8 +34,9 @@ import "three";
|
|
|
34
34
|
import "hammerjs";
|
|
35
35
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
36
36
|
import "@realsee/five/line";
|
|
37
|
+
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
37
38
|
import "../shared-utils/tag.js";
|
|
38
|
-
import "../shared-utils/three/
|
|
39
|
+
import "../shared-utils/three/core/Sphere.js";
|
|
39
40
|
import "animejs";
|
|
40
41
|
import { notNil as k } from "../shared-utils/isNil.js";
|
|
41
42
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -229,8 +230,8 @@ const a = class extends S {
|
|
|
229
230
|
};
|
|
230
231
|
let d = a;
|
|
231
232
|
h(d, "modules", O);
|
|
232
|
-
const
|
|
233
|
+
const he = (m) => new d(m);
|
|
233
234
|
export {
|
|
234
235
|
d as Sculpt,
|
|
235
|
-
|
|
236
|
+
he as SculptPlugin
|
|
236
237
|
};
|