@realsee/dnalogel 3.47.10 → 3.47.12
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/Line.d.ts +3 -1
- package/dist/Sculpt/Meshes/Polygon.d.ts +16 -7
- package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -0
- package/dist/Sculpt/Meshes/Polyline.d.ts +1 -0
- package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +1 -0
- package/dist/index.cjs.js +57 -57
- package/dist/index.js +3263 -3227
- package/dist/index.umd.js +50 -50
- package/libs/AreaMakerPlugin/Controller.js +14 -13
- package/libs/AreaMakerPlugin/index.js +15 -14
- package/libs/AreaMakerPlugin/utils/Item.js +15 -14
- package/libs/CSS3DRenderPlugin/Controller.js +12 -11
- package/libs/CSS3DRenderPlugin/index.js +18 -17
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +12 -11
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +26 -25
- package/libs/CruisePlugin/BaseController.js +17 -16
- package/libs/CruisePlugin/Move.js +20 -19
- package/libs/CruisePlugin/Work.js +15 -14
- package/libs/CruisePlugin/index.js +19 -18
- package/libs/CurrentPanoImagePlugin/Controller.js +14 -13
- package/libs/CurrentPanoImagePlugin/index.js +16 -15
- package/libs/GuideLinePlugin/Controller.js +17 -16
- package/libs/GuideLinePlugin/GuideLineItem.js +15 -14
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +5 -3
- package/libs/GuideLinePlugin/GuideLineModeItem.js +15 -14
- package/libs/GuideLinePlugin/index.js +19 -18
- package/libs/ModelMakerPlugin/Controller.js +13 -12
- package/libs/ModelMakerPlugin/index.js +15 -14
- package/libs/ModelTVVideoPlugin/Plugin.js +37 -36
- package/libs/ModelTVVideoPlugin/index.js +13 -12
- package/libs/Object3DHelperPlugin/Controller.js +14 -13
- package/libs/Object3DHelperPlugin/index.js +18 -17
- package/libs/PanoCompassPlugin/Controller.js +15 -14
- package/libs/PanoCompassPlugin/index.js +16 -15
- package/libs/PanoDoorLabelPlugin/BaseController.js +15 -14
- package/libs/PanoDoorLabelPlugin/Controller.js +15 -14
- package/libs/PanoDoorLabelPlugin/index.js +16 -15
- package/libs/PanoMeasurePlugin/Components/Controller0.js +12 -11
- package/libs/PanoMeasurePlugin/Components/Controller1.js +12 -11
- package/libs/PanoMeasurePlugin/Controller/EditController.js +12 -11
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +13 -12
- package/libs/PanoMeasurePlugin/Controller/index.js +10 -9
- package/libs/PanoMeasurePlugin/Model/area.js +12 -11
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +12 -11
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +12 -11
- package/libs/PanoMeasurePlugin/index.js +21 -20
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +12 -11
- package/libs/PanoSpatialTagPlugin/Plugin.js +14 -13
- package/libs/PanoSpatialTagPlugin/index.js +11 -10
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +14 -13
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +13 -12
- package/libs/PanoTagPlugin/Components/Tag/index.js +13 -12
- package/libs/PanoTagPlugin/Components/TagContainer.js +13 -12
- package/libs/PanoTagPlugin/Components/TagItem.js +13 -12
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +34 -33
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +13 -12
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +13 -12
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +15 -14
- package/libs/PanoTagPlugin/controller/TagRender.js +12 -11
- package/libs/PanoTagPlugin/controller/TagUtil.js +13 -12
- package/libs/PanoTagPlugin/controller/index.js +16 -15
- package/libs/PanoTagPlugin/index.js +21 -20
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +14 -13
- package/libs/PanoVideoPlugin/Controller.js +15 -14
- package/libs/PanoVideoPlugin/VideoMeshController.js +30 -29
- package/libs/PanoVideoPlugin/index.js +18 -17
- package/libs/PipelinePlugin/Controller.js +14 -13
- package/libs/PipelinePlugin/index.js +16 -15
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +21 -20
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +15 -14
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +13 -12
- package/libs/Sculpt/Meshes/Box.js +10 -8
- package/libs/Sculpt/Meshes/Cylinder.js +17 -15
- package/libs/Sculpt/Meshes/Line.d.ts +3 -1
- package/libs/Sculpt/Meshes/Line.js +89 -78
- package/libs/Sculpt/Meshes/Point.js +14 -12
- package/libs/Sculpt/Meshes/Polygon.d.ts +16 -7
- package/libs/Sculpt/Meshes/Polygon.js +71 -33
- package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -0
- package/libs/Sculpt/Meshes/Polyline.d.ts +1 -0
- package/libs/Sculpt/Meshes/Polyline.js +69 -74
- package/libs/Sculpt/Meshes/Rectangle.js +7 -5
- package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +1 -0
- package/libs/Sculpt/Objects/Base/index.js +5 -5
- package/libs/Sculpt/Objects/Line/Editor.js +17 -15
- package/libs/Sculpt/Objects/Polygon/index.js +22 -22
- package/libs/Sculpt/Objects/Rectangle/Editor.js +2 -2
- package/libs/Sculpt/Objects/Rectangle/index.js +79 -69
- package/libs/Sculpt/index.js +15 -14
- package/libs/Sculpt/utils/three/ColoredMesh.js +6 -4
- package/libs/base/BasePlugin.js +16 -14
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +13 -12
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +16 -15
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +13 -12
- package/libs/floorplan/ModelFloorplanPlugin/index.js +16 -15
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +15 -14
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +16 -15
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +13 -12
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +16 -15
- package/libs/floorplan/index.js +3 -1
- package/libs/index.js +12 -12
- package/libs/shared-utils/five/index.js +5 -3
- package/libs/shared-utils/five/lookObject.js +20 -18
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/applyObjectMatrixWorld.js +4 -6
- package/libs/shared-utils/three/index.js +3 -1
- package/package.json +1 -1
|
@@ -5,18 +5,9 @@ import "../base/BasePlugin.js";
|
|
|
5
5
|
import "../shared-utils/Subscribe.js";
|
|
6
6
|
import "hammerjs";
|
|
7
7
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
8
|
-
import "../Sculpt/Meshes/Line.js";
|
|
9
|
-
import "../Sculpt/typings/style.js";
|
|
10
|
-
import "../shared-utils/five/FiveLine.js";
|
|
11
8
|
import "@realsee/five/line";
|
|
12
|
-
import "../shared-utils/positionToVector3.js";
|
|
13
|
-
import "../shared-utils/three/IObject3D.js";
|
|
14
|
-
import "../shared-utils/three/centerPoint.js";
|
|
15
|
-
import "../shared-utils/three/THREESphere.js";
|
|
16
|
-
import "animejs";
|
|
17
|
-
import "../shared-utils/isNil.js";
|
|
18
|
-
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
19
9
|
import "../shared-utils/tag.js";
|
|
10
|
+
import "../shared-utils/positionToVector3.js";
|
|
20
11
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
21
12
|
import "../shared-utils/five/getFiveModel.js";
|
|
22
13
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
@@ -27,9 +18,11 @@ import "../shared-utils/three/temp.js";
|
|
|
27
18
|
import "../Sculpt/utils/Modules/Global.js";
|
|
28
19
|
import "../Sculpt/utils/Modules/Cursor.js";
|
|
29
20
|
import "../Object3DHelperPlugin/Controller.js";
|
|
21
|
+
import "../shared-utils/three/THREESphere.js";
|
|
30
22
|
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
31
23
|
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
32
24
|
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
25
|
+
import "../shared-utils/three/IObject3D.js";
|
|
33
26
|
import "../shared-utils/three/boundingBox.js";
|
|
34
27
|
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
35
28
|
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
@@ -42,7 +35,11 @@ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
|
42
35
|
import "../CSS3DRenderPlugin/utils/even.js";
|
|
43
36
|
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
44
37
|
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
38
|
+
import "../shared-utils/three/centerPoint.js";
|
|
45
39
|
import "../shared-utils/three/getObjectVisible.js";
|
|
40
|
+
import "animejs";
|
|
41
|
+
import "../shared-utils/isNil.js";
|
|
42
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
46
43
|
import "../shared-utils/url/absoluteUrl.js";
|
|
47
44
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
48
45
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
@@ -84,12 +81,16 @@ import "../shared-utils/three/Assets/index.js";
|
|
|
84
81
|
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
85
82
|
import "../shared-utils/five/initialCSS3DRender.js";
|
|
86
83
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
84
|
+
import "../Sculpt/Meshes/Line.js";
|
|
85
|
+
import "../Sculpt/typings/style.js";
|
|
86
|
+
import "../shared-utils/five/FiveLine.js";
|
|
87
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
88
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
89
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
87
90
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
88
91
|
import "../shared-utils/isTouchDevice.js";
|
|
89
92
|
import "../shared-utils/five/getPosition.js";
|
|
90
93
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
91
|
-
import "../Sculpt/utils/removeAllTag.js";
|
|
92
|
-
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
93
94
|
import "../shared-utils/equal.js";
|
|
94
95
|
import "../shared-utils/isTruelyObject.js";
|
|
95
96
|
import "../shared-utils/three/loadTexture.js";
|
|
@@ -101,8 +102,8 @@ import "../shared-utils/animationFrame/BetterTween.js";
|
|
|
101
102
|
import "../shared-utils/three/Extras/Curves/BezierCurve3.js";
|
|
102
103
|
import "../shared-utils/three/Extras/Core/Interpolations.js";
|
|
103
104
|
import "../shared-utils/three/Extras/Core/Interpolations2.js";
|
|
104
|
-
const
|
|
105
|
+
const _r = (r) => new o(r);
|
|
105
106
|
export {
|
|
106
|
-
|
|
107
|
-
|
|
107
|
+
_r as PipelinePlugin,
|
|
108
|
+
_r as default
|
|
108
109
|
};
|
|
@@ -4,20 +4,14 @@ var m = (r, o, t) => (u(r, typeof o != "symbol" ? o + "" : o, t), t);
|
|
|
4
4
|
import "three";
|
|
5
5
|
import "hammerjs";
|
|
6
6
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
7
|
-
import "
|
|
7
|
+
import "@realsee/five/line";
|
|
8
|
+
import "../../../shared-utils/tag.js";
|
|
9
|
+
import "../../../Sculpt/utils/Modules/Global.js";
|
|
8
10
|
import "../../../shared-utils/three/THREESphere.js";
|
|
9
11
|
import "animejs";
|
|
10
12
|
import { requestAnimationFrameInterval as c } from "../../../shared-utils/animationFrame/index.js";
|
|
11
13
|
import { ObjectPipe as h } from "./Pipe.js";
|
|
12
|
-
import "../../../Sculpt/typings/style.js";
|
|
13
|
-
import "../../../shared-utils/five/FiveLine.js";
|
|
14
|
-
import "@realsee/five/line";
|
|
15
14
|
import "../../../shared-utils/positionToVector3.js";
|
|
16
|
-
import "../../../shared-utils/three/IObject3D.js";
|
|
17
|
-
import "../../../shared-utils/three/centerPoint.js";
|
|
18
|
-
import "../../../shared-utils/isNil.js";
|
|
19
|
-
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
20
|
-
import "../../../shared-utils/tag.js";
|
|
21
15
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
22
16
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
23
17
|
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
@@ -26,14 +20,15 @@ import "../../../shared-utils/Subscribe.js";
|
|
|
26
20
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
27
21
|
import "../../../shared-utils/five/transformPosition.js";
|
|
28
22
|
import "../../../shared-utils/three/temp.js";
|
|
29
|
-
import "../../../Sculpt/utils/Modules/Global.js";
|
|
30
23
|
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
31
24
|
import "../../../Object3DHelperPlugin/Controller.js";
|
|
32
25
|
import "../../../base/BasePlugin.js";
|
|
33
26
|
import "../../../shared-utils/url/absoluteUrl.js";
|
|
27
|
+
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
34
28
|
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
35
29
|
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
36
30
|
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
31
|
+
import "../../../shared-utils/three/IObject3D.js";
|
|
37
32
|
import "../../../shared-utils/three/boundingBox.js";
|
|
38
33
|
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
39
34
|
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
@@ -46,7 +41,9 @@ import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
|
46
41
|
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
47
42
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
48
43
|
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
44
|
+
import "../../../shared-utils/three/centerPoint.js";
|
|
49
45
|
import "../../../shared-utils/three/getObjectVisible.js";
|
|
46
|
+
import "../../../shared-utils/isNil.js";
|
|
50
47
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
51
48
|
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
52
49
|
import "../../../shared-utils/util.js";
|
|
@@ -87,12 +84,16 @@ import "../../../shared-utils/three/Assets/index.js";
|
|
|
87
84
|
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
88
85
|
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
89
86
|
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
87
|
+
import "../../../Sculpt/Meshes/Line.js";
|
|
88
|
+
import "../../../Sculpt/typings/style.js";
|
|
89
|
+
import "../../../shared-utils/five/FiveLine.js";
|
|
90
|
+
import "../../../Sculpt/utils/removeAllTag.js";
|
|
91
|
+
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
92
|
+
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
90
93
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
91
94
|
import "../../../shared-utils/isTouchDevice.js";
|
|
92
95
|
import "../../../shared-utils/five/getPosition.js";
|
|
93
96
|
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
94
|
-
import "../../../Sculpt/utils/removeAllTag.js";
|
|
95
|
-
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
96
97
|
import "../../../shared-utils/animationFrame/BetterTween.js";
|
|
97
98
|
import "../../../shared-utils/three/Extras/Curves/BezierCurve3.js";
|
|
98
99
|
import "../../../shared-utils/three/Extras/Core/Interpolations.js";
|
|
@@ -116,7 +117,7 @@ const d = (
|
|
|
116
117
|
}
|
|
117
118
|
`
|
|
118
119
|
);
|
|
119
|
-
class
|
|
120
|
+
class ni extends h {
|
|
120
121
|
constructor(t) {
|
|
121
122
|
super(t, d);
|
|
122
123
|
/** 初始状态下,当前水管内的水流在整体管道上的位移
|
|
@@ -147,20 +148,20 @@ class pi extends h {
|
|
|
147
148
|
* @param distance 位移:米 * 方向
|
|
148
149
|
*/
|
|
149
150
|
moveForwardFromInitialOffset(t) {
|
|
150
|
-
const i = t * -1,
|
|
151
|
-
this.moveFromOrigin(
|
|
151
|
+
const i = t * -1, p = this.initialDisplacement + i;
|
|
152
|
+
this.moveFromOrigin(p);
|
|
152
153
|
}
|
|
153
154
|
flow() {
|
|
154
155
|
this.flowAnimationDisposer(), this.oldTime = (/* @__PURE__ */ new Date()).getTime();
|
|
155
156
|
let t = 0, i = 0;
|
|
156
|
-
const
|
|
157
|
-
const
|
|
157
|
+
const p = c(() => {
|
|
158
|
+
const e = (/* @__PURE__ */ new Date()).getTime(), n = e - this.oldTime, s = this.flowSpeed * (n / 1e3), a = this.rotateSpeed * (n / 1e3);
|
|
158
159
|
t = t + s, i = i + a;
|
|
159
160
|
const l = 1 / 360, f = i * l;
|
|
160
|
-
this.material.uniforms.vOffset.value = f, this.moveForwardFromInitialOffset(t), this.oldTime =
|
|
161
|
+
this.material.uniforms.vOffset.value = f, this.moveForwardFromInitialOffset(t), this.oldTime = e;
|
|
161
162
|
});
|
|
162
163
|
this.flowAnimationDisposer = function() {
|
|
163
|
-
|
|
164
|
+
p(), this.moveForwardFromInitialOffset(0);
|
|
164
165
|
};
|
|
165
166
|
}
|
|
166
167
|
stopFlow() {
|
|
@@ -174,5 +175,5 @@ class pi extends h {
|
|
|
174
175
|
}
|
|
175
176
|
}
|
|
176
177
|
export {
|
|
177
|
-
|
|
178
|
+
ni as ObjectFlowPipe
|
|
178
179
|
};
|
|
@@ -4,20 +4,14 @@ var p = (r, t, i) => (n(r, typeof t != "symbol" ? t + "" : t, i), i);
|
|
|
4
4
|
import "three";
|
|
5
5
|
import "hammerjs";
|
|
6
6
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
7
|
-
import "
|
|
7
|
+
import "@realsee/five/line";
|
|
8
|
+
import "../../../shared-utils/tag.js";
|
|
9
|
+
import "../../../Sculpt/utils/Modules/Global.js";
|
|
8
10
|
import "../../../shared-utils/three/THREESphere.js";
|
|
9
11
|
import "animejs";
|
|
10
12
|
import { tweenProgress as h } from "../../../shared-utils/animationFrame/BetterTween.js";
|
|
11
13
|
import { ObjectPipe as a } from "./Pipe.js";
|
|
12
|
-
import "../../../Sculpt/typings/style.js";
|
|
13
|
-
import "../../../shared-utils/five/FiveLine.js";
|
|
14
|
-
import "@realsee/five/line";
|
|
15
14
|
import "../../../shared-utils/positionToVector3.js";
|
|
16
|
-
import "../../../shared-utils/three/IObject3D.js";
|
|
17
|
-
import "../../../shared-utils/three/centerPoint.js";
|
|
18
|
-
import "../../../shared-utils/isNil.js";
|
|
19
|
-
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
20
|
-
import "../../../shared-utils/tag.js";
|
|
21
15
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
22
16
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
23
17
|
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
@@ -26,14 +20,15 @@ import "../../../shared-utils/Subscribe.js";
|
|
|
26
20
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
27
21
|
import "../../../shared-utils/five/transformPosition.js";
|
|
28
22
|
import "../../../shared-utils/three/temp.js";
|
|
29
|
-
import "../../../Sculpt/utils/Modules/Global.js";
|
|
30
23
|
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
31
24
|
import "../../../Object3DHelperPlugin/Controller.js";
|
|
32
25
|
import "../../../base/BasePlugin.js";
|
|
33
26
|
import "../../../shared-utils/url/absoluteUrl.js";
|
|
27
|
+
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
34
28
|
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
35
29
|
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
36
30
|
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
31
|
+
import "../../../shared-utils/three/IObject3D.js";
|
|
37
32
|
import "../../../shared-utils/three/boundingBox.js";
|
|
38
33
|
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
39
34
|
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
@@ -46,7 +41,9 @@ import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
|
46
41
|
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
47
42
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
48
43
|
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
44
|
+
import "../../../shared-utils/three/centerPoint.js";
|
|
49
45
|
import "../../../shared-utils/three/getObjectVisible.js";
|
|
46
|
+
import "../../../shared-utils/isNil.js";
|
|
50
47
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
51
48
|
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
52
49
|
import "../../../shared-utils/util.js";
|
|
@@ -87,17 +84,21 @@ import "../../../shared-utils/three/Assets/index.js";
|
|
|
87
84
|
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
88
85
|
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
89
86
|
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
87
|
+
import "../../../Sculpt/Meshes/Line.js";
|
|
88
|
+
import "../../../Sculpt/typings/style.js";
|
|
89
|
+
import "../../../shared-utils/five/FiveLine.js";
|
|
90
|
+
import "../../../Sculpt/utils/removeAllTag.js";
|
|
91
|
+
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
92
|
+
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
90
93
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
91
94
|
import "../../../shared-utils/isTouchDevice.js";
|
|
92
95
|
import "../../../shared-utils/five/getPosition.js";
|
|
93
96
|
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
94
|
-
import "../../../Sculpt/utils/removeAllTag.js";
|
|
95
|
-
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
96
97
|
import "../../../shared-utils/animationFrame/index.js";
|
|
97
98
|
import "../../../shared-utils/three/Extras/Curves/BezierCurve3.js";
|
|
98
99
|
import "../../../shared-utils/three/Extras/Core/Interpolations.js";
|
|
99
100
|
import "../../../shared-utils/three/Extras/Core/Interpolations2.js";
|
|
100
|
-
class
|
|
101
|
+
class rt extends a {
|
|
101
102
|
constructor(i) {
|
|
102
103
|
super(i);
|
|
103
104
|
p(this, "imageCount", 64);
|
|
@@ -120,5 +121,5 @@ class tt extends a {
|
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
123
|
export {
|
|
123
|
-
|
|
124
|
+
rt as ObjectHighlightPipe
|
|
124
125
|
};
|
|
@@ -29,20 +29,14 @@ var l = (p, i, t) => new Promise((r, m) => {
|
|
|
29
29
|
import * as u from "three";
|
|
30
30
|
import "hammerjs";
|
|
31
31
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
32
|
-
import "
|
|
32
|
+
import "@realsee/five/line";
|
|
33
|
+
import "../../../shared-utils/tag.js";
|
|
34
|
+
import "../../../Sculpt/utils/Modules/Global.js";
|
|
33
35
|
import "../../../shared-utils/three/THREESphere.js";
|
|
34
36
|
import "animejs";
|
|
35
37
|
import { BetterTween as g } from "../../../shared-utils/animationFrame/BetterTween.js";
|
|
36
38
|
import { CustomBezierCurve3 as x } from "../../../shared-utils/three/Extras/Curves/BezierCurve3.js";
|
|
37
|
-
import "../../../Sculpt/typings/style.js";
|
|
38
|
-
import "../../../shared-utils/five/FiveLine.js";
|
|
39
|
-
import "@realsee/five/line";
|
|
40
39
|
import "../../../shared-utils/positionToVector3.js";
|
|
41
|
-
import "../../../shared-utils/three/IObject3D.js";
|
|
42
|
-
import "../../../shared-utils/three/centerPoint.js";
|
|
43
|
-
import "../../../shared-utils/isNil.js";
|
|
44
|
-
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
45
|
-
import "../../../shared-utils/tag.js";
|
|
46
40
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
47
41
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
48
42
|
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
@@ -51,14 +45,15 @@ import "../../../shared-utils/Subscribe.js";
|
|
|
51
45
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
52
46
|
import "../../../shared-utils/five/transformPosition.js";
|
|
53
47
|
import "../../../shared-utils/three/temp.js";
|
|
54
|
-
import "../../../Sculpt/utils/Modules/Global.js";
|
|
55
48
|
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
56
49
|
import "../../../Object3DHelperPlugin/Controller.js";
|
|
57
50
|
import "../../../base/BasePlugin.js";
|
|
58
51
|
import "../../../shared-utils/url/absoluteUrl.js";
|
|
52
|
+
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
59
53
|
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
60
54
|
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
61
55
|
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
56
|
+
import "../../../shared-utils/three/IObject3D.js";
|
|
62
57
|
import "../../../shared-utils/three/boundingBox.js";
|
|
63
58
|
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
64
59
|
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
@@ -71,7 +66,9 @@ import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
|
71
66
|
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
72
67
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
73
68
|
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
69
|
+
import "../../../shared-utils/three/centerPoint.js";
|
|
74
70
|
import "../../../shared-utils/three/getObjectVisible.js";
|
|
71
|
+
import "../../../shared-utils/isNil.js";
|
|
75
72
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
76
73
|
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
77
74
|
import "../../../shared-utils/util.js";
|
|
@@ -112,12 +109,16 @@ import "../../../shared-utils/three/Assets/index.js";
|
|
|
112
109
|
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
113
110
|
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
114
111
|
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
112
|
+
import "../../../Sculpt/Meshes/Line.js";
|
|
113
|
+
import "../../../Sculpt/typings/style.js";
|
|
114
|
+
import "../../../shared-utils/five/FiveLine.js";
|
|
115
|
+
import "../../../Sculpt/utils/removeAllTag.js";
|
|
116
|
+
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
117
|
+
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
115
118
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
116
119
|
import "../../../shared-utils/isTouchDevice.js";
|
|
117
120
|
import "../../../shared-utils/five/getPosition.js";
|
|
118
121
|
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
119
|
-
import "../../../Sculpt/utils/removeAllTag.js";
|
|
120
|
-
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
121
122
|
import "../../../shared-utils/animationFrame/index.js";
|
|
122
123
|
import "../../../shared-utils/three/Extras/Core/Interpolations.js";
|
|
123
124
|
import "../../../shared-utils/three/Extras/Core/Interpolations2.js";
|
|
@@ -1,19 +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
|
-
import "
|
|
9
|
+
import "@realsee/five/line";
|
|
10
|
+
import "../../shared-utils/tag.js";
|
|
11
|
+
import "../utils/Modules/Global.js";
|
|
10
12
|
import "../../shared-utils/three/THREESphere.js";
|
|
11
13
|
import "animejs";
|
|
12
14
|
import { notNil as r } from "../../shared-utils/isNil.js";
|
|
13
15
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
14
16
|
import { RectangleWithEdgeMesh as c } from "./RectangleWithEdge.js";
|
|
15
|
-
import { RectangleMesh as
|
|
16
|
-
class
|
|
17
|
+
import { RectangleMesh as a } from "./Rectangle.js";
|
|
18
|
+
class N extends d {
|
|
17
19
|
constructor(t) {
|
|
18
20
|
super();
|
|
19
21
|
s(this, "name", "BoxMesh");
|
|
@@ -24,7 +26,7 @@ class w extends a {
|
|
|
24
26
|
this.bottomPlane = new c(t), this.topPlane = new c(t), this.add(this.bottomPlane), t != null && t.points && this.setPoints(t);
|
|
25
27
|
}
|
|
26
28
|
get planes() {
|
|
27
|
-
return this.children.filter((t) => t instanceof
|
|
29
|
+
return this.children.filter((t) => t instanceof a);
|
|
28
30
|
}
|
|
29
31
|
get color() {
|
|
30
32
|
var t;
|
|
@@ -90,5 +92,5 @@ class w extends a {
|
|
|
90
92
|
}
|
|
91
93
|
}
|
|
92
94
|
export {
|
|
93
|
-
|
|
95
|
+
N as BoxMesh
|
|
94
96
|
};
|
|
@@ -14,17 +14,19 @@ 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 "
|
|
17
|
+
import { DEFAULT_HIGHLIGHT_OPACITY as M } from "../typings/style.js";
|
|
18
|
+
import "@realsee/five/line";
|
|
19
|
+
import { anyPositionToVector3 as d } from "../../shared-utils/positionToVector3.js";
|
|
20
|
+
import "../../shared-utils/tag.js";
|
|
21
|
+
import "../utils/Modules/Global.js";
|
|
18
22
|
import "../../shared-utils/three/THREESphere.js";
|
|
19
23
|
import "animejs";
|
|
20
|
-
import { notNil as
|
|
24
|
+
import { notNil as g } from "../../shared-utils/isNil.js";
|
|
21
25
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
22
|
-
import { CircleWithEdgeMesh as
|
|
23
|
-
import { radiusToSegments as
|
|
24
|
-
import { ColoredMesh as
|
|
25
|
-
|
|
26
|
-
import { DEFAULT_HIGHLIGHT_OPACITY as a } from "../typings/style.js";
|
|
27
|
-
class z extends f {
|
|
26
|
+
import { CircleWithEdgeMesh as m } from "./CircleWithEdge.js";
|
|
27
|
+
import { radiusToSegments as y } from "../utils/radiusToSegments.js";
|
|
28
|
+
import { ColoredMesh as a } from "../utils/three/ColoredMesh.js";
|
|
29
|
+
class D extends f {
|
|
28
30
|
constructor(t) {
|
|
29
31
|
super();
|
|
30
32
|
o(this, "bottomCircle");
|
|
@@ -33,7 +35,7 @@ class z extends f {
|
|
|
33
35
|
o(this, "opacityBeforeHighlight");
|
|
34
36
|
o(this, "highlighted", !1);
|
|
35
37
|
o(this, "params");
|
|
36
|
-
this.params = t, this.bottomCircle = new
|
|
38
|
+
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
39
|
}
|
|
38
40
|
get bottomCenter() {
|
|
39
41
|
return this.bottomCircle.center;
|
|
@@ -51,8 +53,8 @@ class z extends f {
|
|
|
51
53
|
return this.bottomCircle.color;
|
|
52
54
|
}
|
|
53
55
|
setPoints(t) {
|
|
54
|
-
const r =
|
|
55
|
-
this.bottomCircle.setPoints({ center: s, normal:
|
|
56
|
+
const r = d(t.topCenter), s = d(t.bottomCenter), C = r.clone().sub(s).normalize();
|
|
57
|
+
this.bottomCircle.setPoints({ center: s, normal: C, radius: t.radius }), this.setTopCenter(r), this.needsRender = !0;
|
|
56
58
|
}
|
|
57
59
|
setTopCenter(t) {
|
|
58
60
|
this.addIfNotExists(this.topCircle), this.topCircle.setPoints({ center: t, normal: this.normal, radius: this.radius }), this.setEdgeMesh();
|
|
@@ -61,10 +63,10 @@ class z extends f {
|
|
|
61
63
|
this.addIfNotExists(this.bottomCircle), this.bottomCircle.setPoints({ center: t, normal: this.normal, radius: this.radius }), this.setEdgeMesh();
|
|
62
64
|
}
|
|
63
65
|
setStyle(t) {
|
|
64
|
-
this.params = l(l({}, this.params), t),
|
|
66
|
+
this.params = l(l({}, this.params), t), g(t.color) && this.bottomCircle.setStyle({ color: t.color }), g(t.color) && this.topCircle.setStyle({ color: t.color });
|
|
65
67
|
}
|
|
66
68
|
highlight() {
|
|
67
|
-
this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.edgeMesh.opacity, this.edgeMesh.setStyle({ opacity: this.edgeMesh.opacity *
|
|
69
|
+
this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.edgeMesh.opacity, this.edgeMesh.setStyle({ opacity: this.edgeMesh.opacity * M }), this.bottomCircle.highlight(), this.topCircle.highlight(), this.needsRender = !0);
|
|
68
70
|
}
|
|
69
71
|
unhighlight() {
|
|
70
72
|
this.highlighted && (this.highlighted = !1, this.edgeMesh.setStyle({ opacity: this.opacityBeforeHighlight }), this.bottomCircle.unhighlight(), this.topCircle.unhighlight(), this.needsRender = !0);
|
|
@@ -76,7 +78,7 @@ class z extends f {
|
|
|
76
78
|
this.radius,
|
|
77
79
|
this.radius,
|
|
78
80
|
t.distanceTo(r),
|
|
79
|
-
|
|
81
|
+
y(this.radius),
|
|
80
82
|
1,
|
|
81
83
|
!0
|
|
82
84
|
);
|
|
@@ -85,5 +87,5 @@ class z extends f {
|
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
89
|
export {
|
|
88
|
-
|
|
90
|
+
D as CylinderMesh
|
|
89
91
|
};
|
|
@@ -43,11 +43,13 @@ export declare class LineMesh extends IObject3D {
|
|
|
43
43
|
private backLine;
|
|
44
44
|
private opacityBeforeHighlight;
|
|
45
45
|
private paramsStyle;
|
|
46
|
+
private lastRenderLengthItem;
|
|
46
47
|
constructor(params?: Partial<LineMeshStyle & LineData>);
|
|
48
|
+
updateMatrixWorld(force?: boolean): void;
|
|
47
49
|
setPoints(points: AnyPositions): void;
|
|
48
50
|
setResolution(width: number, height: number): void;
|
|
49
51
|
setStyle(params: Partial<LineMeshStyle>): void;
|
|
50
52
|
highlight(): void;
|
|
51
53
|
unhighlight(): void;
|
|
52
|
-
updateLengthItems
|
|
54
|
+
private updateLengthItems;
|
|
53
55
|
}
|