@realsee/dnalogel 3.45.0 → 3.46.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/Sculpt/Meshes/Line.d.ts +6 -1
- package/dist/Sculpt/utils/removeAllTag.d.ts +2 -0
- package/dist/index.cjs.js +53 -53
- package/dist/index.js +29600 -29557
- package/dist/index.umd.js +49 -49
- package/dist/shared-utils/tag.d.ts +6 -3
- package/libs/AreaMakerPlugin/Controller.js +151 -78
- package/libs/AreaMakerPlugin/index.js +77 -4
- package/libs/AreaMakerPlugin/utils/Item.js +191 -111
- package/libs/CSS3DRenderPlugin/Controller.js +90 -29
- package/libs/CSS3DRenderPlugin/index.js +76 -15
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +133 -58
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +182 -116
- package/libs/CruisePlugin/BaseController.js +122 -49
- package/libs/CruisePlugin/Move.js +74 -21
- package/libs/CruisePlugin/Work.js +99 -46
- package/libs/CruisePlugin/index.js +80 -27
- package/libs/CurrentPanoImagePlugin/Controller.js +177 -104
- package/libs/CurrentPanoImagePlugin/index.js +77 -4
- package/libs/GuideLinePlugin/Controller.js +79 -26
- package/libs/GuideLinePlugin/GuideLineItem.js +83 -30
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +82 -29
- package/libs/GuideLinePlugin/index.js +80 -27
- package/libs/ModelMakerPlugin/Controller.js +140 -82
- package/libs/ModelMakerPlugin/index.js +76 -18
- package/libs/ModelTVVideoPlugin/Plugin.js +118 -57
- package/libs/ModelTVVideoPlugin/index.js +69 -8
- package/libs/Object3DHelperPlugin/Controller.js +67 -43
- package/libs/Object3DHelperPlugin/index.js +36 -13
- package/libs/PanoCompassPlugin/Controller.js +98 -42
- package/libs/PanoCompassPlugin/index.js +72 -16
- package/libs/PanoDoorLabelPlugin/BaseController.js +99 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +188 -115
- package/libs/PanoDoorLabelPlugin/index.js +77 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +141 -88
- package/libs/PanoMeasurePlugin/Components/Controller1.js +179 -126
- package/libs/PanoMeasurePlugin/Controller/EditController.js +125 -72
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +168 -92
- package/libs/PanoMeasurePlugin/Controller/index.js +110 -64
- package/libs/PanoMeasurePlugin/Model/area.js +115 -38
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +79 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +98 -45
- package/libs/PanoMeasurePlugin/index.js +77 -31
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +99 -20
- package/libs/PanoSpatialTagPlugin/Plugin.js +211 -150
- package/libs/PanoSpatialTagPlugin/index.js +67 -6
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +149 -68
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +296 -216
- package/libs/PanoTagPlugin/Components/Tag/index.js +258 -187
- package/libs/PanoTagPlugin/Components/TagContainer.js +158 -87
- package/libs/PanoTagPlugin/Components/TagItem.js +145 -74
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +133 -62
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +110 -39
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +106 -35
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +114 -43
- package/libs/PanoTagPlugin/controller/TagRender.js +133 -80
- package/libs/PanoTagPlugin/controller/TagUtil.js +137 -84
- package/libs/PanoTagPlugin/controller/index.js +114 -61
- package/libs/PanoTagPlugin/index.js +90 -37
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +122 -41
- package/libs/PanoVideoPlugin/Controller.js +138 -65
- package/libs/PanoVideoPlugin/VideoMeshController.js +150 -69
- package/libs/PanoVideoPlugin/index.js +83 -10
- package/libs/PipelinePlugin/Controller.js +200 -128
- package/libs/PipelinePlugin/index.js +77 -5
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +103 -22
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +96 -15
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +137 -56
- package/libs/Sculpt/Meshes/Box.js +6 -5
- package/libs/Sculpt/Meshes/Cylinder.js +7 -6
- package/libs/Sculpt/Meshes/Line.d.ts +6 -1
- package/libs/Sculpt/Meshes/Line.js +80 -57
- package/libs/Sculpt/Meshes/Point.js +6 -5
- package/libs/Sculpt/Meshes/Polyline.js +5 -4
- package/libs/Sculpt/Meshes/Rectangle.js +3 -2
- package/libs/Sculpt/Objects/Base/index.js +20 -17
- package/libs/Sculpt/Objects/Line/Editor.js +11 -10
- package/libs/Sculpt/utils/removeAllTag.d.ts +2 -0
- package/libs/Sculpt/utils/removeAllTag.js +10 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +14 -13
- package/libs/base/BasePlugin.js +14 -13
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +129 -59
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +76 -6
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +130 -59
- package/libs/floorplan/ModelFloorplanPlugin/index.js +76 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +159 -86
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +77 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +152 -81
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +76 -5
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +193 -192
- package/libs/shared-utils/five/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +6 -3
- package/libs/shared-utils/tag.js +38 -24
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +1 -1
|
@@ -2,11 +2,90 @@ import "three";
|
|
|
2
2
|
import { Magnifier as o } from "../../shared-utils/three/Magnifier.js";
|
|
3
3
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
4
4
|
import "@realsee/five/line";
|
|
5
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
5
6
|
import "../../shared-utils/three/THREESphere.js";
|
|
6
7
|
import "animejs";
|
|
7
8
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
8
9
|
import "hammerjs";
|
|
9
10
|
import "../../shared-utils/Subscribe.js";
|
|
11
|
+
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
12
|
+
import "../../Object3DHelperPlugin/Controller.js";
|
|
13
|
+
import "../../base/BasePlugin.js";
|
|
14
|
+
import "../../shared-utils/Utils/FiveUtil.js";
|
|
15
|
+
import "../../shared-utils/Utils/BaseUtil.js";
|
|
16
|
+
import "../../shared-utils/Utils/WorkUtil.js";
|
|
17
|
+
import "../../shared-utils/five/transformPosition.js";
|
|
18
|
+
import "../../shared-utils/five/getFiveModel.js";
|
|
19
|
+
import "../../shared-utils/url/absoluteUrl.js";
|
|
20
|
+
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
21
|
+
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
22
|
+
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
23
|
+
import "../../shared-utils/three/IObject3D.js";
|
|
24
|
+
import "../../shared-utils/three/boundingBox.js";
|
|
25
|
+
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
26
|
+
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
27
|
+
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
28
|
+
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
29
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
30
|
+
import "../../shared-utils/positionToVector3.js";
|
|
31
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
32
|
+
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
33
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
34
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
35
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
36
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
37
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
38
|
+
import "../../shared-utils/three/getObjectVisible.js";
|
|
39
|
+
import "../../shared-utils/isNil.js";
|
|
40
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
41
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
42
|
+
import "../../shared-utils/util.js";
|
|
43
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
44
|
+
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
45
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
46
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
47
|
+
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
48
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
49
|
+
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
50
|
+
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
51
|
+
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
52
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
53
|
+
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
54
|
+
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
55
|
+
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
56
|
+
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
57
|
+
import "../../shared-utils/Object3DHelper/index.js";
|
|
58
|
+
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
59
|
+
import "../../shared-utils/math/rad2Deg.js";
|
|
60
|
+
import "../../shared-utils/math/deg2Rad.js";
|
|
61
|
+
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
62
|
+
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
63
|
+
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
64
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
65
|
+
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
66
|
+
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
67
|
+
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
68
|
+
import "../../shared-utils/five/fiveModelLoad.js";
|
|
69
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
70
|
+
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
71
|
+
import "../../shared-utils/three/THREERaycaster.js";
|
|
72
|
+
import "../../shared-utils/three/PointSelector/index.js";
|
|
73
|
+
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
74
|
+
import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
75
|
+
import "../../shared-utils/three/Assets/index.js";
|
|
76
|
+
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
77
|
+
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
78
|
+
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
79
|
+
import "../../Sculpt/Meshes/Line.js";
|
|
80
|
+
import "../../Sculpt/typings/style.js";
|
|
81
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
82
|
+
import "../../shared-utils/tag.js";
|
|
83
|
+
import "../../shared-utils/five/vector3ToScreen.js";
|
|
84
|
+
import "../../Sculpt/utils/removeAllTag.js";
|
|
85
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
86
|
+
import "../../shared-utils/isTouchDevice.js";
|
|
87
|
+
import "../../shared-utils/five/getPosition.js";
|
|
88
|
+
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
10
89
|
export {
|
|
11
90
|
o as default
|
|
12
91
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var a = Object.defineProperty;
|
|
2
|
-
var h = (
|
|
3
|
-
var
|
|
2
|
+
var h = (e, o, t) => o in e ? a(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t;
|
|
3
|
+
var i = (e, o, t) => (h(e, typeof o != "symbol" ? o + "" : o, t), t);
|
|
4
4
|
import d from "./HTML.js";
|
|
5
5
|
import u from "./mobileHTML.js";
|
|
6
6
|
import { controllerBackgroundStyle as y, operatingSpaceStyle as f, uiWrapperStyle as v, textStyle as C, exitItemStyle as E, exitIconStyle as x } from "./style.js";
|
|
@@ -41,35 +41,88 @@ import "../../utils/dom/areaDom.js";
|
|
|
41
41
|
import "../../../shared-utils/three/geometryUtil.js";
|
|
42
42
|
import "hammerjs";
|
|
43
43
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
44
|
+
import "../../../Sculpt/utils/Modules/Global.js";
|
|
45
|
+
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
46
|
+
import "../../../Object3DHelperPlugin/Controller.js";
|
|
47
|
+
import "../../../base/BasePlugin.js";
|
|
48
|
+
import "../../../shared-utils/Subscribe.js";
|
|
44
49
|
import "../../../shared-utils/three/THREESphere.js";
|
|
45
50
|
import "animejs";
|
|
46
|
-
import "../../../shared-utils/
|
|
51
|
+
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
52
|
+
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
53
|
+
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
54
|
+
import "../../../shared-utils/five/transformPosition.js";
|
|
55
|
+
import "../../../shared-utils/five/getFiveModel.js";
|
|
56
|
+
import "../../../shared-utils/url/absoluteUrl.js";
|
|
47
57
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
48
|
-
import "
|
|
58
|
+
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
59
|
+
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
60
|
+
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
61
|
+
import "../../../shared-utils/three/boundingBox.js";
|
|
62
|
+
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
63
|
+
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
64
|
+
import "../../../shared-utils/Object3DHelper/Constants/color.js";
|
|
65
|
+
import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
66
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
67
|
+
import "../../../shared-utils/positionToVector3.js";
|
|
68
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
69
|
+
import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
70
|
+
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
71
|
+
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
72
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
73
|
+
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
74
|
+
import "../../../shared-utils/three/getObjectVisible.js";
|
|
75
|
+
import "../../../shared-utils/isNil.js";
|
|
76
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
77
|
+
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
78
|
+
import "../../../shared-utils/util.js";
|
|
79
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
80
|
+
import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
81
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
82
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
83
|
+
import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
84
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
85
|
+
import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
86
|
+
import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
87
|
+
import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
88
|
+
import "../../../shared-utils/threex/domevents/index.js";
|
|
89
|
+
import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
90
|
+
import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
91
|
+
import "../../../Sculpt/utils/three/rayOnLine.js";
|
|
92
|
+
import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
93
|
+
import "../../../shared-utils/Object3DHelper/index.js";
|
|
94
|
+
import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
95
|
+
import "../../../shared-utils/math/rad2Deg.js";
|
|
96
|
+
import "../../../shared-utils/math/deg2Rad.js";
|
|
97
|
+
import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
98
|
+
import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
99
|
+
import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
100
|
+
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
101
|
+
import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
102
|
+
import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
103
|
+
import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
104
|
+
import "../../../shared-utils/five/fiveModelLoad.js";
|
|
105
|
+
import "../../../shared-utils/five/FiveDomEvents.js";
|
|
106
|
+
import "../../../shared-utils/five/calculateThreeMouse.js";
|
|
107
|
+
import "../../../shared-utils/three/THREERaycaster.js";
|
|
49
108
|
import "../../../shared-utils/three/PointSelector/index.js";
|
|
50
109
|
import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
51
110
|
import "../../../shared-utils/three/Magnifier.js";
|
|
52
|
-
import "../../../shared-utils/Subscribe.js";
|
|
53
111
|
import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
54
112
|
import "../../../shared-utils/three/Assets/index.js";
|
|
55
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
56
|
-
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
57
|
-
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
58
|
-
import "../../../shared-utils/three/getObjectVisible.js";
|
|
59
113
|
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
60
114
|
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
61
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
62
|
-
import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
63
|
-
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
64
115
|
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
65
116
|
import "../../../Sculpt/Meshes/Line.js";
|
|
66
117
|
import "../../../Sculpt/typings/style.js";
|
|
67
|
-
import "../../../shared-utils/
|
|
118
|
+
import "../../../shared-utils/tag.js";
|
|
119
|
+
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
120
|
+
import "../../../Sculpt/utils/removeAllTag.js";
|
|
68
121
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
69
122
|
import "../../../shared-utils/isTouchDevice.js";
|
|
70
123
|
import "../../../shared-utils/five/getPosition.js";
|
|
71
124
|
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
72
|
-
import "
|
|
125
|
+
import "../../utils/isIntersecting.js";
|
|
73
126
|
import "../DeleteDom/index.js";
|
|
74
127
|
import "../DeleteDom/_Assets/delete.svg.js";
|
|
75
128
|
import "../DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -80,59 +133,59 @@ import "../../Components/Common/Switcher1.js";
|
|
|
80
133
|
import "../../Components/Common/CircleButton.js";
|
|
81
134
|
import "../../../vendor/svelte/transition/index.js";
|
|
82
135
|
import "../../../vendor/svelte/easing/index.js";
|
|
83
|
-
class
|
|
84
|
-
constructor(
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
const
|
|
95
|
-
if (!t || !
|
|
136
|
+
class Yo {
|
|
137
|
+
constructor(o, t) {
|
|
138
|
+
i(this, "revoke");
|
|
139
|
+
i(this, "container");
|
|
140
|
+
i(this, "mainController");
|
|
141
|
+
i(this, "disposers", []);
|
|
142
|
+
i(this, "measureController");
|
|
143
|
+
i(this, "mode");
|
|
144
|
+
i(this, "svelteDom");
|
|
145
|
+
i(this, "_params");
|
|
146
|
+
i(this, "handleExit", () => {
|
|
147
|
+
const o = this.container.querySelector(".fpm__exit-icon"), t = this.container.querySelector(".fpm__exit");
|
|
148
|
+
if (!t || !o)
|
|
96
149
|
throw new Error("cannot find dom");
|
|
97
|
-
this.mode === "pc" && (Object.assign(t.style, E), Object.assign(
|
|
98
|
-
const
|
|
150
|
+
this.mode === "pc" && (Object.assign(t.style, E), Object.assign(o == null ? void 0 : o.style, x));
|
|
151
|
+
const r = () => {
|
|
99
152
|
t.style.opacity = "1";
|
|
100
|
-
},
|
|
153
|
+
}, m = () => {
|
|
101
154
|
t.style.opacity = "0.85";
|
|
102
|
-
},
|
|
155
|
+
}, p = () => {
|
|
103
156
|
this.measureController.disable();
|
|
104
157
|
};
|
|
105
|
-
return t.addEventListener("click",
|
|
106
|
-
t.removeEventListener("click",
|
|
158
|
+
return t.addEventListener("click", p), t.addEventListener("mouseenter", r), t.addEventListener("mouseleave", m), () => {
|
|
159
|
+
t.removeEventListener("click", p), t.removeEventListener("mouseenter", r), t.removeEventListener("mouseleave", m);
|
|
107
160
|
};
|
|
108
161
|
});
|
|
109
|
-
var
|
|
110
|
-
this._params = t, this.measureController =
|
|
111
|
-
const
|
|
112
|
-
if (
|
|
162
|
+
var m, p;
|
|
163
|
+
this._params = t, this.measureController = o, this.mode = (m = t.mode) != null ? m : "pc", this.container = document.createElement("div"), this.container.innerHTML = this.mode === "mobile" ? u : d, this.container.classList.add("fpm__ui-controller", this.mode), this.container.style.background = "rgba(0, 0, 0, 0.15)";
|
|
164
|
+
const r = (p = t.useNewUI) != null ? p : !1;
|
|
165
|
+
if (r && (t.pointSelectorMode === "cursor" ? this.svelteDom = new _({
|
|
113
166
|
target: t.container,
|
|
114
167
|
props: { measureController: this.measureController, i18n: t.i18n, showExit: t.showExit }
|
|
115
168
|
}) : t.pointSelectorMode === "fixed" && (this.svelteDom = new b({
|
|
116
169
|
target: t.container,
|
|
117
170
|
props: { measureController: this.measureController, i18n: t.i18n, showExit: t.showExit }
|
|
118
|
-
}))), !
|
|
171
|
+
}))), !r) {
|
|
119
172
|
t.container.appendChild(this.container);
|
|
120
|
-
const l = this.container.querySelectorAll(".fpm__text"),
|
|
121
|
-
Object.assign(
|
|
173
|
+
const l = this.container.querySelectorAll(".fpm__text"), s = this.container.querySelector(".fpm_ui-bg"), n = this.container.querySelector(".fpm_operating-space");
|
|
174
|
+
Object.assign(s == null ? void 0 : s.style, y), Object.assign(n == null ? void 0 : n.style, f), Object.assign(this.container.style, v), l.forEach((c) => Object.assign(c.style, C));
|
|
122
175
|
}
|
|
123
176
|
}
|
|
124
177
|
dispose() {
|
|
125
|
-
var
|
|
126
|
-
this.hide(), (
|
|
178
|
+
var o;
|
|
179
|
+
this.hide(), (o = this.svelteDom) == null || o.$destroy(), this.container.remove();
|
|
127
180
|
}
|
|
128
181
|
show() {
|
|
129
182
|
return this.container.style.display = "block", this.container.style.opacity = "1", this.container.style.transform = "translate(0, 0)", this.mode === "pc" ? (this.revoke = new w(this.measureController, this.container), this.mainController = new S(this.measureController, this.container, this._params)) : this.mainController = new g(this.measureController, this.container, this._params), this.disposers.push(this.handleExit()), this;
|
|
130
183
|
}
|
|
131
184
|
hide() {
|
|
132
|
-
var
|
|
133
|
-
return this.container.style.display = "none", this.container.style.opacity = "0", this.container.style.transform = "translate(0, 10px)", this.mode === "pc" && ((
|
|
185
|
+
var o, t;
|
|
186
|
+
return this.container.style.display = "none", this.container.style.opacity = "0", this.container.style.transform = "translate(0, 10px)", this.mode === "pc" && ((o = this.revoke) == null || o.dispose()), (t = this.mainController) == null || t.dispose(), this.disposers.forEach((r) => r()), this.disposers = [], this;
|
|
134
187
|
}
|
|
135
188
|
}
|
|
136
189
|
export {
|
|
137
|
-
|
|
190
|
+
Yo as UIController
|
|
138
191
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import t from "./Controller/index.js";
|
|
2
2
|
import "three";
|
|
3
|
-
import { Magnifier as
|
|
3
|
+
import { Magnifier as Vr } from "../shared-utils/three/Magnifier.js";
|
|
4
4
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
5
5
|
import "@realsee/five/line";
|
|
6
|
+
import "../Sculpt/utils/Modules/Global.js";
|
|
6
7
|
import "../shared-utils/three/THREESphere.js";
|
|
7
8
|
import "animejs";
|
|
8
9
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
9
|
-
import { Model as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { Polyline as
|
|
10
|
+
import { Model as Xr } from "./Model/index.js";
|
|
11
|
+
import { default as Zr } from "./Model/point.js";
|
|
12
|
+
import { default as $r } from "./Model/line.js";
|
|
13
|
+
import { Polyline as rt } from "./Model/polyline.js";
|
|
13
14
|
import "./Controller/EditController.js";
|
|
14
15
|
import "../shared-utils/throttle.js";
|
|
15
16
|
import "./Controller/BaseController.js";
|
|
@@ -34,30 +35,82 @@ import "./utils/dom/areaDom.js";
|
|
|
34
35
|
import "../shared-utils/three/geometryUtil.js";
|
|
35
36
|
import "hammerjs";
|
|
36
37
|
import "../shared-utils/isNil.js";
|
|
37
|
-
import "
|
|
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";
|
|
48
|
+
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
49
|
+
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
50
|
+
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
51
|
+
import "../shared-utils/three/boundingBox.js";
|
|
52
|
+
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
53
|
+
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
54
|
+
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
55
|
+
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
56
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
57
|
+
import "../shared-utils/positionToVector3.js";
|
|
58
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
59
|
+
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
60
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
61
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
62
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
63
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
64
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
65
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
66
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
67
|
+
import "../shared-utils/util.js";
|
|
68
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
69
|
+
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
70
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
71
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
72
|
+
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
73
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
74
|
+
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
75
|
+
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
76
|
+
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
77
|
+
import "../shared-utils/threex/domevents/index.js";
|
|
78
|
+
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
79
|
+
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
80
|
+
import "../Sculpt/utils/three/rayOnLine.js";
|
|
81
|
+
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
82
|
+
import "../shared-utils/Object3DHelper/index.js";
|
|
83
|
+
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
84
|
+
import "../shared-utils/math/rad2Deg.js";
|
|
85
|
+
import "../shared-utils/math/deg2Rad.js";
|
|
86
|
+
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
87
|
+
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
88
|
+
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
89
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
90
|
+
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
91
|
+
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
92
|
+
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
93
|
+
import "../shared-utils/five/fiveModelLoad.js";
|
|
94
|
+
import "../shared-utils/five/FiveDomEvents.js";
|
|
95
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
96
|
+
import "../shared-utils/three/THREERaycaster.js";
|
|
38
97
|
import "../shared-utils/three/PointSelector/index.js";
|
|
39
98
|
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
40
99
|
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
41
100
|
import "../shared-utils/three/Assets/index.js";
|
|
42
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
43
|
-
import "../CSS3DRenderPlugin/utils/even.js";
|
|
44
|
-
import "../shared-utils/Subscribe.js";
|
|
45
|
-
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
46
|
-
import "../shared-utils/three/getObjectVisible.js";
|
|
47
101
|
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
48
102
|
import "../shared-utils/five/initialCSS3DRender.js";
|
|
49
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
50
|
-
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
51
|
-
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
52
103
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
53
104
|
import "../Sculpt/Meshes/Line.js";
|
|
54
105
|
import "../Sculpt/typings/style.js";
|
|
55
|
-
import "../shared-utils/
|
|
106
|
+
import "../shared-utils/tag.js";
|
|
107
|
+
import "../shared-utils/five/vector3ToScreen.js";
|
|
108
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
56
109
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
57
110
|
import "../shared-utils/isTouchDevice.js";
|
|
58
111
|
import "../shared-utils/five/getPosition.js";
|
|
59
112
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
60
|
-
import "
|
|
113
|
+
import "./utils/isIntersecting.js";
|
|
61
114
|
import "./Modules/DeleteDom/index.js";
|
|
62
115
|
import "./Modules/DeleteDom/_Assets/delete.svg.js";
|
|
63
116
|
import "./Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -73,7 +126,6 @@ import "./Modules/rangePiece/index.js";
|
|
|
73
126
|
import "../shared-utils/animationFrame/index.js";
|
|
74
127
|
import "../shared-utils/noop.js";
|
|
75
128
|
import "./utils/mouseGroup.js";
|
|
76
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
77
129
|
import "../shared-utils/filter.js";
|
|
78
130
|
import "../shared-utils/tap.js";
|
|
79
131
|
import "./Modules/UIController/index.js";
|
|
@@ -98,21 +150,15 @@ import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
|
98
150
|
import "./Components/Tip.js";
|
|
99
151
|
import "./Controller/ShortcutKeyController.js";
|
|
100
152
|
import "../shared-utils/safeObj.js";
|
|
101
|
-
|
|
102
|
-
import "../shared-utils/Utils/FiveUtil.js";
|
|
103
|
-
import "../shared-utils/Utils/BaseUtil.js";
|
|
104
|
-
import "../shared-utils/Utils/WorkUtil.js";
|
|
105
|
-
import "../shared-utils/five/transformPosition.js";
|
|
106
|
-
import "../shared-utils/url/absoluteUrl.js";
|
|
107
|
-
const _o = function(o, r) {
|
|
153
|
+
const Sr = function(o, r) {
|
|
108
154
|
return new t(o, r);
|
|
109
155
|
};
|
|
110
156
|
export {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
157
|
+
Vr as Magnifier,
|
|
158
|
+
Sr as PanoMeasurePlugin,
|
|
159
|
+
$r as PanoMeasurePluginLine,
|
|
160
|
+
Xr as PanoMeasurePluginModel,
|
|
161
|
+
Zr as PanoMeasurePluginPoint,
|
|
162
|
+
rt as PanoMeasurePluginPolyline,
|
|
163
|
+
Sr as default
|
|
118
164
|
};
|
|
@@ -2,32 +2,111 @@ var u = Object.defineProperty, D = Object.defineProperties;
|
|
|
2
2
|
var f = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var h = Object.getOwnPropertySymbols;
|
|
4
4
|
var A = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
6
|
-
for (var t in
|
|
7
|
-
A.call(
|
|
5
|
+
var e = (i, o, t) => o in i ? u(i, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[o] = t, n = (i, o) => {
|
|
6
|
+
for (var t in o || (o = {}))
|
|
7
|
+
A.call(o, t) && e(i, t, o[t]);
|
|
8
8
|
if (h)
|
|
9
|
-
for (var t of h(
|
|
10
|
-
T.call(
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var l = (
|
|
9
|
+
for (var t of h(o))
|
|
10
|
+
T.call(o, t) && e(i, t, o[t]);
|
|
11
|
+
return i;
|
|
12
|
+
}, s = (i, o) => D(i, f(o));
|
|
13
|
+
var l = (i, o, t) => (e(i, typeof o != "symbol" ? o + "" : o, t), t);
|
|
14
14
|
import { ItemDom as y } from "./base.js";
|
|
15
15
|
import { getGeometryInfo as I } from "../../../shared-utils/three/geometryUtil.js";
|
|
16
16
|
import "three";
|
|
17
17
|
import "hammerjs";
|
|
18
18
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
19
19
|
import "@realsee/five/line";
|
|
20
|
+
import "../../../Sculpt/utils/Modules/Global.js";
|
|
20
21
|
import "../../../shared-utils/three/THREESphere.js";
|
|
21
22
|
import "animejs";
|
|
22
23
|
import { isNil as P } from "../../../shared-utils/isNil.js";
|
|
23
24
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
24
25
|
import "../isNDCPointInScreen.js";
|
|
25
26
|
import "../../../shared-utils/three/centerPoint.js";
|
|
26
|
-
|
|
27
|
+
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
28
|
+
import "../../../Object3DHelperPlugin/Controller.js";
|
|
29
|
+
import "../../../base/BasePlugin.js";
|
|
30
|
+
import "../../../shared-utils/Subscribe.js";
|
|
31
|
+
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
32
|
+
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
33
|
+
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
34
|
+
import "../../../shared-utils/five/transformPosition.js";
|
|
35
|
+
import "../../../shared-utils/five/getFiveModel.js";
|
|
36
|
+
import "../../../shared-utils/url/absoluteUrl.js";
|
|
37
|
+
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
38
|
+
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
39
|
+
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
40
|
+
import "../../../shared-utils/three/IObject3D.js";
|
|
41
|
+
import "../../../shared-utils/three/boundingBox.js";
|
|
42
|
+
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
43
|
+
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
44
|
+
import "../../../shared-utils/Object3DHelper/Constants/color.js";
|
|
45
|
+
import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
46
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
47
|
+
import "../../../shared-utils/positionToVector3.js";
|
|
48
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
49
|
+
import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
50
|
+
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
51
|
+
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
52
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
53
|
+
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
54
|
+
import "../../../shared-utils/three/getObjectVisible.js";
|
|
55
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
56
|
+
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
57
|
+
import "../../../shared-utils/util.js";
|
|
58
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
59
|
+
import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
60
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
61
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
62
|
+
import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
63
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
64
|
+
import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
65
|
+
import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
66
|
+
import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
67
|
+
import "../../../shared-utils/threex/domevents/index.js";
|
|
68
|
+
import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
69
|
+
import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
70
|
+
import "../../../Sculpt/utils/three/rayOnLine.js";
|
|
71
|
+
import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
72
|
+
import "../../../shared-utils/Object3DHelper/index.js";
|
|
73
|
+
import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
74
|
+
import "../../../shared-utils/math/rad2Deg.js";
|
|
75
|
+
import "../../../shared-utils/math/deg2Rad.js";
|
|
76
|
+
import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
77
|
+
import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
78
|
+
import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
79
|
+
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
80
|
+
import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
81
|
+
import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
82
|
+
import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
83
|
+
import "../../../shared-utils/five/fiveModelLoad.js";
|
|
84
|
+
import "../../../shared-utils/five/FiveDomEvents.js";
|
|
85
|
+
import "../../../shared-utils/five/calculateThreeMouse.js";
|
|
86
|
+
import "../../../shared-utils/three/THREERaycaster.js";
|
|
87
|
+
import "../../../shared-utils/three/PointSelector/index.js";
|
|
88
|
+
import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
89
|
+
import "../../../shared-utils/three/Magnifier.js";
|
|
90
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
91
|
+
import "../../../shared-utils/three/Assets/index.js";
|
|
92
|
+
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
93
|
+
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
94
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
95
|
+
import "../../../Sculpt/Meshes/Line.js";
|
|
96
|
+
import "../../../Sculpt/typings/style.js";
|
|
97
|
+
import "../../../shared-utils/five/FiveLine.js";
|
|
98
|
+
import "../../../shared-utils/tag.js";
|
|
99
|
+
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
100
|
+
import "../../../Sculpt/utils/removeAllTag.js";
|
|
101
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
102
|
+
import "../../../shared-utils/isTouchDevice.js";
|
|
103
|
+
import "../../../shared-utils/five/getPosition.js";
|
|
104
|
+
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
105
|
+
class no extends y {
|
|
27
106
|
constructor(t) {
|
|
28
|
-
t.containerStyle =
|
|
107
|
+
t.containerStyle = s(n({}, t.containerStyle), {
|
|
29
108
|
zIndex: "1"
|
|
30
|
-
}), t.contentStyle =
|
|
109
|
+
}), t.contentStyle = s(n({}, t.contentStyle), {
|
|
31
110
|
background: "#6386FF",
|
|
32
111
|
borderRadius: "2px"
|
|
33
112
|
});
|
|
@@ -38,21 +117,21 @@ class w extends y {
|
|
|
38
117
|
/**
|
|
39
118
|
* @description: dom 依赖的多边形的顶点的位置更新时,更新 dom 的位置和面积
|
|
40
119
|
*/
|
|
41
|
-
updateArea(t,
|
|
120
|
+
updateArea(t, r) {
|
|
42
121
|
var c, d;
|
|
43
|
-
const
|
|
44
|
-
if (!
|
|
122
|
+
const p = r != null ? r : this.area.polygon.geometry, m = I(p);
|
|
123
|
+
if (!m) {
|
|
45
124
|
this.ndcPosition = null, this.updateDomPosition(t);
|
|
46
125
|
return;
|
|
47
126
|
}
|
|
48
|
-
const { area:
|
|
49
|
-
this.ndcPosition = x, this.updateDomPosition(t), (d = (c = this.area.model) == null ? void 0 : c.config) != null && d.getAreaText ? this.contentDom.innerText = this.area.model.config.getAreaText(
|
|
127
|
+
const { area: a, center: x } = m;
|
|
128
|
+
this.ndcPosition = x, this.updateDomPosition(t), (d = (c = this.area.model) == null ? void 0 : c.config) != null && d.getAreaText ? this.contentDom.innerText = this.area.model.config.getAreaText(a) : this.updateAreaText(a, { fix: 2 });
|
|
50
129
|
}
|
|
51
|
-
updateAreaText(t,
|
|
52
|
-
const { unit:
|
|
53
|
-
this.contentDom.innerText = `${P(
|
|
130
|
+
updateAreaText(t, r) {
|
|
131
|
+
const { unit: p = "m²", fix: m } = r != null ? r : {};
|
|
132
|
+
this.contentDom.innerText = `${P(m) ? t : t.toFixed(m)}${p}`;
|
|
54
133
|
}
|
|
55
134
|
}
|
|
56
135
|
export {
|
|
57
|
-
|
|
136
|
+
no as AreaItem
|
|
58
137
|
};
|