@realsee/dnalogel 3.44.5 → 3.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/Sculpt/Meshes/Area.d.ts +1 -1
- package/dist/Sculpt/Meshes/Box.d.ts +1 -1
- package/dist/Sculpt/Meshes/Circle.d.ts +1 -1
- package/dist/Sculpt/Meshes/CircleWithEdge.d.ts +1 -1
- package/dist/Sculpt/Meshes/Line.d.ts +8 -2
- package/dist/Sculpt/Meshes/LineWithDots.d.ts +1 -1
- package/dist/Sculpt/Meshes/Point.d.ts +1 -1
- package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/dist/Sculpt/Meshes/Prism.d.ts +1 -1
- package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +3 -4
- package/dist/Sculpt/Objects/Line/Editor.d.ts +22 -0
- package/dist/Sculpt/Objects/Line/index.d.ts +33 -0
- package/dist/Sculpt/Objects/Point/index.d.ts +1 -1
- package/dist/Sculpt/Objects/Polygon/Editor.d.ts +2 -2
- package/dist/Sculpt/Objects/Polygon/index.d.ts +3 -2
- package/dist/Sculpt/Objects/Polyline/Editor.d.ts +3 -17
- package/dist/Sculpt/Objects/Polyline/index.d.ts +7 -6
- package/dist/Sculpt/index.d.ts +5 -0
- package/dist/Sculpt/typings/index.d.ts +11 -6
- package/dist/Sculpt/{utils/color.d.ts → typings/style.d.ts} +7 -0
- package/dist/Sculpt/typings/utils.type.d.ts +2 -0
- package/dist/Sculpt/utils/three/ColoredMesh.d.ts +1 -1
- package/dist/Sculpt/utils/three/rayOnLine.d.ts +3 -5
- package/dist/index.cjs.js +56 -56
- package/dist/index.js +29820 -29686
- package/dist/index.umd.js +49 -49
- package/dist/shared-utils/Utils/WorkUtil.d.ts +6 -6
- package/dist/shared-utils/tag.d.ts +6 -3
- package/libs/AreaMakerPlugin/Controller.js +150 -78
- package/libs/AreaMakerPlugin/index.js +76 -4
- package/libs/AreaMakerPlugin/utils/Item.js +190 -111
- package/libs/CSS3DRenderPlugin/Controller.js +89 -29
- package/libs/CSS3DRenderPlugin/index.js +75 -15
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +132 -58
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +181 -116
- package/libs/CruisePlugin/BaseController.js +121 -49
- package/libs/CruisePlugin/Move.js +73 -21
- package/libs/CruisePlugin/Work.js +98 -46
- package/libs/CruisePlugin/index.js +79 -27
- package/libs/CurrentPanoImagePlugin/Controller.js +176 -104
- package/libs/CurrentPanoImagePlugin/index.js +76 -4
- package/libs/GuideLinePlugin/Controller.js +82 -30
- package/libs/GuideLinePlugin/GuideLineItem.js +82 -30
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +81 -29
- package/libs/GuideLinePlugin/index.js +79 -27
- package/libs/ModelMakerPlugin/Controller.js +140 -83
- package/libs/ModelMakerPlugin/index.js +75 -18
- package/libs/ModelTVVideoPlugin/Plugin.js +117 -57
- package/libs/ModelTVVideoPlugin/index.js +68 -8
- package/libs/Object3DHelperPlugin/Controller.js +54 -31
- package/libs/Object3DHelperPlugin/index.js +35 -13
- package/libs/PanoCompassPlugin/Controller.js +97 -42
- package/libs/PanoCompassPlugin/index.js +71 -16
- package/libs/PanoDoorLabelPlugin/BaseController.js +98 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +187 -115
- package/libs/PanoDoorLabelPlugin/index.js +76 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +141 -89
- package/libs/PanoMeasurePlugin/Components/Controller1.js +179 -127
- package/libs/PanoMeasurePlugin/Controller/EditController.js +125 -73
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +167 -92
- package/libs/PanoMeasurePlugin/Controller/index.js +110 -65
- package/libs/PanoMeasurePlugin/Model/area.js +114 -38
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +78 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +98 -46
- package/libs/PanoMeasurePlugin/index.js +77 -32
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +98 -20
- package/libs/PanoSpatialTagPlugin/Plugin.js +210 -150
- package/libs/PanoSpatialTagPlugin/index.js +66 -6
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +133 -53
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +295 -216
- package/libs/PanoTagPlugin/Components/Tag/index.js +257 -187
- package/libs/PanoTagPlugin/Components/TagContainer.js +157 -87
- package/libs/PanoTagPlugin/Components/TagItem.js +144 -74
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +73 -3
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +109 -39
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +105 -35
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +113 -43
- package/libs/PanoTagPlugin/controller/TagRender.js +132 -80
- package/libs/PanoTagPlugin/controller/TagUtil.js +136 -84
- package/libs/PanoTagPlugin/controller/index.js +113 -61
- package/libs/PanoTagPlugin/index.js +89 -37
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +121 -41
- package/libs/PanoVideoPlugin/Controller.js +137 -65
- package/libs/PanoVideoPlugin/VideoMeshController.js +149 -69
- package/libs/PanoVideoPlugin/index.js +82 -10
- package/libs/PipelinePlugin/Controller.js +199 -128
- package/libs/PipelinePlugin/index.js +76 -5
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +102 -22
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +95 -15
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +136 -56
- package/libs/Sculpt/Meshes/Area.d.ts +1 -1
- package/libs/Sculpt/Meshes/Box.d.ts +1 -1
- package/libs/Sculpt/Meshes/Box.js +16 -15
- package/libs/Sculpt/Meshes/Circle.d.ts +1 -1
- package/libs/Sculpt/Meshes/Circle.js +1 -1
- package/libs/Sculpt/Meshes/CircleWithEdge.d.ts +1 -1
- package/libs/Sculpt/Meshes/Cylinder.js +8 -7
- package/libs/Sculpt/Meshes/Line.d.ts +8 -2
- package/libs/Sculpt/Meshes/Line.js +93 -65
- package/libs/Sculpt/Meshes/LineWithDots.d.ts +1 -1
- package/libs/Sculpt/Meshes/LineWithDots.js +26 -26
- package/libs/Sculpt/Meshes/Point.d.ts +1 -1
- package/libs/Sculpt/Meshes/Point.js +7 -6
- package/libs/Sculpt/Meshes/Polygon.js +1 -1
- package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/libs/Sculpt/Meshes/Polyline.js +5 -4
- package/libs/Sculpt/Meshes/Prism.d.ts +1 -1
- package/libs/Sculpt/Meshes/Rectangle.js +3 -2
- package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +3 -4
- package/libs/Sculpt/Objects/Box/index.js +41 -43
- package/libs/Sculpt/Objects/Cylinder/index.js +35 -37
- package/libs/Sculpt/Objects/Line/Editor.d.ts +22 -0
- package/libs/Sculpt/Objects/Line/Editor.js +62 -0
- package/libs/Sculpt/Objects/Line/index.d.ts +33 -0
- package/libs/Sculpt/Objects/Line/index.js +107 -0
- package/libs/Sculpt/Objects/Point/index.d.ts +1 -1
- package/libs/Sculpt/Objects/Polygon/Editor.d.ts +2 -2
- package/libs/Sculpt/Objects/Polygon/Editor.js +5 -5
- package/libs/Sculpt/Objects/Polygon/index.d.ts +3 -2
- package/libs/Sculpt/Objects/Polygon/index.js +80 -80
- package/libs/Sculpt/Objects/Polyline/Editor.d.ts +3 -17
- package/libs/Sculpt/Objects/Polyline/Editor.js +10 -48
- package/libs/Sculpt/Objects/Polyline/index.d.ts +7 -6
- package/libs/Sculpt/Objects/Polyline/index.js +63 -58
- package/libs/Sculpt/Objects/Prism/index.js +56 -58
- package/libs/Sculpt/index.d.ts +5 -0
- package/libs/Sculpt/index.js +58 -48
- package/libs/Sculpt/typings/index.d.ts +11 -6
- package/libs/Sculpt/{utils/color.d.ts → typings/style.d.ts} +7 -0
- package/libs/Sculpt/typings/utils.type.d.ts +2 -0
- package/libs/Sculpt/utils/three/ColoredMesh.d.ts +1 -1
- package/libs/Sculpt/utils/three/ColoredMesh.js +15 -14
- package/libs/Sculpt/utils/three/rayOnLine.d.ts +3 -5
- package/libs/Sculpt/utils/three/rayOnLine.js +15 -14
- package/libs/base/BasePlugin.js +14 -13
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +131 -61
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +75 -6
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +129 -59
- package/libs/floorplan/ModelFloorplanPlugin/index.js +75 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +158 -86
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +76 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +151 -81
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +75 -5
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +194 -192
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +23 -23
- package/libs/shared-utils/Utils/WorkUtil.d.ts +6 -6
- package/libs/shared-utils/Utils/WorkUtil.js +8 -7
- package/libs/shared-utils/five/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +6 -3
- package/libs/shared-utils/tag.js +38 -24
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +15 -15
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +1 -1
- package/dist/Sculpt/typings/SimplifyDeep.d.ts +0 -3
- package/libs/Sculpt/typings/SimplifyDeep.d.ts +0 -3
- /package/libs/Sculpt/{utils/color.js → typings/style.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var x = Object.defineProperty;
|
|
2
2
|
var I = Object.getOwnPropertySymbols;
|
|
3
3
|
var D = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var c = (n, s, t) => s in n ? x(n, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[s] = t,
|
|
4
|
+
var c = (n, s, t) => s in n ? x(n, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[s] = t, h = (n, s) => {
|
|
5
5
|
for (var t in s || (s = {}))
|
|
6
6
|
D.call(s, t) && c(n, t, s[t]);
|
|
7
7
|
if (I)
|
|
@@ -10,10 +10,10 @@ var c = (n, s, t) => s in n ? x(n, s, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
return n;
|
|
11
11
|
};
|
|
12
12
|
var r = (n, s, t) => (c(n, typeof s != "symbol" ? s + "" : s, t), t);
|
|
13
|
-
import
|
|
13
|
+
import m from "./EditController.js";
|
|
14
14
|
import k from "./ViewController.js";
|
|
15
15
|
import T from "./WatchController.js";
|
|
16
|
-
import
|
|
16
|
+
import p from "./MixedController.js";
|
|
17
17
|
import { omit as G } from "../../shared-utils/filter.js";
|
|
18
18
|
import { Group as S } from "three";
|
|
19
19
|
import { Model as L } from "../Model/index.js";
|
|
@@ -25,6 +25,7 @@ import { safeObj as U } from "../../shared-utils/safeObj.js";
|
|
|
25
25
|
import { Magnifier as V } from "../../shared-utils/three/Magnifier.js";
|
|
26
26
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
27
27
|
import "@realsee/five/line";
|
|
28
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
28
29
|
import "../../shared-utils/three/THREESphere.js";
|
|
29
30
|
import "animejs";
|
|
30
31
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -66,19 +67,69 @@ import "../../CSS3DRenderPlugin/utils/even.js";
|
|
|
66
67
|
import "../../shared-utils/Subscribe.js";
|
|
67
68
|
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
68
69
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
69
|
-
import "../../
|
|
70
|
-
import "../../
|
|
70
|
+
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
71
|
+
import "../../Object3DHelperPlugin/Controller.js";
|
|
72
|
+
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
73
|
+
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
74
|
+
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
75
|
+
import "../../shared-utils/three/boundingBox.js";
|
|
76
|
+
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
77
|
+
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
78
|
+
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
79
|
+
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
80
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
81
|
+
import "../../shared-utils/positionToVector3.js";
|
|
71
82
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
72
83
|
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
73
84
|
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
85
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
86
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
87
|
+
import "../../shared-utils/util.js";
|
|
88
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
89
|
+
import "../../shared-utils/Utils/FiveUtil.js";
|
|
90
|
+
import "../../shared-utils/Utils/BaseUtil.js";
|
|
91
|
+
import "../../shared-utils/Utils/WorkUtil.js";
|
|
92
|
+
import "../../shared-utils/five/transformPosition.js";
|
|
93
|
+
import "../../shared-utils/five/getFiveModel.js";
|
|
94
|
+
import "../../shared-utils/url/absoluteUrl.js";
|
|
95
|
+
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
96
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
97
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
98
|
+
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
99
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
100
|
+
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
101
|
+
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
102
|
+
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
103
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
104
|
+
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
105
|
+
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
106
|
+
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
107
|
+
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
108
|
+
import "../../shared-utils/Object3DHelper/index.js";
|
|
109
|
+
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
110
|
+
import "../../shared-utils/math/rad2Deg.js";
|
|
111
|
+
import "../../shared-utils/math/deg2Rad.js";
|
|
112
|
+
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
113
|
+
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
114
|
+
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
115
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
116
|
+
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
117
|
+
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
118
|
+
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
119
|
+
import "../../shared-utils/five/fiveModelLoad.js";
|
|
120
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
121
|
+
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
122
|
+
import "../../shared-utils/three/THREERaycaster.js";
|
|
123
|
+
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
124
|
+
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
74
125
|
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
75
126
|
import "../../Sculpt/Meshes/Line.js";
|
|
76
|
-
import "../../Sculpt/
|
|
77
|
-
import "../../shared-utils/
|
|
127
|
+
import "../../Sculpt/typings/style.js";
|
|
128
|
+
import "../../shared-utils/tag.js";
|
|
129
|
+
import "../../shared-utils/five/vector3ToScreen.js";
|
|
78
130
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
79
131
|
import "../../shared-utils/five/getPosition.js";
|
|
80
132
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
81
|
-
import "../../shared-utils/five/getFiveModel.js";
|
|
82
133
|
import "../Modules/DeleteDom/index.js";
|
|
83
134
|
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
84
135
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -90,7 +141,6 @@ import "../../shared-utils/getPointFromHammerEvent.js";
|
|
|
90
141
|
import "../Modules/rangePiece/index.js";
|
|
91
142
|
import "../../shared-utils/animationFrame/index.js";
|
|
92
143
|
import "../../shared-utils/noop.js";
|
|
93
|
-
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
94
144
|
import "../../shared-utils/tap.js";
|
|
95
145
|
import "../Modules/UIController/HTML.js";
|
|
96
146
|
import "../Modules/UIController/mobileHTML.js";
|
|
@@ -110,13 +160,8 @@ import "../../vendor/svelte/transition/index.js";
|
|
|
110
160
|
import "../../vendor/svelte/easing/index.js";
|
|
111
161
|
import "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
112
162
|
import "../Components/Tip.js";
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
import "../../shared-utils/Utils/WorkUtil.js";
|
|
116
|
-
import "../../shared-utils/five/transformPosition.js";
|
|
117
|
-
import "../../shared-utils/url/absoluteUrl.js";
|
|
118
|
-
class Ke extends H {
|
|
119
|
-
constructor(t, e) {
|
|
163
|
+
class Ee extends H {
|
|
164
|
+
constructor(t, i) {
|
|
120
165
|
var l, u, d, f, g, y, C, M, w, P, b, v;
|
|
121
166
|
super(t);
|
|
122
167
|
r(this, "state", { enabled: !0 });
|
|
@@ -143,10 +188,10 @@ class Ke extends H {
|
|
|
143
188
|
* @description 还原点位展示和默认鼠标 UI
|
|
144
189
|
*/
|
|
145
190
|
r(this, "disable", () => {
|
|
146
|
-
var t,
|
|
147
|
-
this.hasOpen = !1, this.state.enabled = !1, this.container.style.visibility = "hidden", this.container.style.opacity = "0", (t = this.controller) == null || t.dispose(), (
|
|
191
|
+
var t, i, e, o;
|
|
192
|
+
this.hasOpen = !1, this.state.enabled = !1, this.container.style.visibility = "hidden", this.container.style.opacity = "0", (t = this.controller) == null || t.dispose(), (i = this.useUIController) == null || i.hide(), (e = this.useGuideController) == null || e.hide(), (o = this.shortcutKeyController) == null || o.dispose(), this.controller = null, this.five.helperVisible = !0, this.five.scene.remove(this.group), this.five.needsRender = !0, this.hook.emit("disable", !0);
|
|
148
193
|
});
|
|
149
|
-
r(this, "getCurrentMode", () => this.controller instanceof
|
|
194
|
+
r(this, "getCurrentMode", () => this.controller instanceof m ? "Edit" : this.controller instanceof T ? "Watch" : this.controller instanceof p ? "Mixed" : this.controller instanceof k ? "View" : null);
|
|
150
195
|
/** 变更场景
|
|
151
196
|
* @description 如果从编辑场景改变到观看场景,不会自动保存,默认丢弃所有改动
|
|
152
197
|
*/
|
|
@@ -155,16 +200,16 @@ class Ke extends H {
|
|
|
155
200
|
if (!this.hasOpen || this.getCurrentMode() === t)
|
|
156
201
|
return;
|
|
157
202
|
(o = this.controller) == null || o.dispose();
|
|
158
|
-
const
|
|
203
|
+
const i = {
|
|
159
204
|
View: k,
|
|
160
205
|
Watch: T,
|
|
161
|
-
Edit:
|
|
162
|
-
Mixed:
|
|
206
|
+
Edit: m,
|
|
207
|
+
Mixed: p
|
|
163
208
|
};
|
|
164
|
-
if (!
|
|
209
|
+
if (!i[t])
|
|
165
210
|
throw new Error("不存在的 Mode");
|
|
166
|
-
const
|
|
167
|
-
this.controller = new
|
|
211
|
+
const e = this.createControllerParams();
|
|
212
|
+
this.controller = new i[t](e), this.hook.emit("modeChange", t);
|
|
168
213
|
});
|
|
169
214
|
/**
|
|
170
215
|
* @description: 切换测量的类型
|
|
@@ -172,28 +217,28 @@ class Ke extends H {
|
|
|
172
217
|
r(this, "changeMeasureType", (t) => {
|
|
173
218
|
this.currentMeasureType = t, this.hook.emit("measureTypeChange", t);
|
|
174
219
|
});
|
|
175
|
-
this.five = t, this.hook = this.hooks, this.params =
|
|
220
|
+
this.five = t, this.hook = this.hooks, this.params = i, this.config = G(i, ["openParams", "magnifierParams"]), this.model = new L(this.config), this.isMobile = (u = (l = i == null ? void 0 : i.openParams) == null ? void 0 : l.isMobile) != null ? u : !1, this.magnifier = new V(
|
|
176
221
|
t,
|
|
177
|
-
(y = (g =
|
|
178
|
-
), this.allowMeasureType = Array.from(new Set((M = (C =
|
|
179
|
-
const
|
|
222
|
+
(y = (g = i.magnifierParams) != null ? g : (f = (d = i.pointSelectorConfig) == null ? void 0 : d.helper) == null ? void 0 : f.magnifierParams) != null ? y : { width: 190, height: 190, scale: 2 }
|
|
223
|
+
), this.allowMeasureType = Array.from(new Set((M = (C = i.editParams) == null ? void 0 : C.allowMeasureType) != null ? M : ["line"])), this.currentMeasureType = (w = this.allowMeasureType[0]) != null ? w : "line", this.group = new S(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.visibility = "hidden", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
|
|
224
|
+
const e = (b = (P = i.editParams) == null ? void 0 : P.pointSelectorMode) != null ? b : K ? "fixed" : "cursor", o = (v = this.params.openParams) != null ? v : {};
|
|
180
225
|
if (this.params.useUIController !== !1) {
|
|
181
|
-
const
|
|
226
|
+
const a = h({
|
|
182
227
|
container: this.container,
|
|
183
228
|
openParams: o,
|
|
184
|
-
i18n:
|
|
185
|
-
pointSelectorMode:
|
|
229
|
+
i18n: i.i18n,
|
|
230
|
+
pointSelectorMode: e,
|
|
186
231
|
useNewUI: this.allowMeasureType.length > 1
|
|
187
232
|
}, U(this.params.useUIController));
|
|
188
|
-
this.useUIController = new W(this,
|
|
233
|
+
this.useUIController = new W(this, a);
|
|
189
234
|
}
|
|
190
235
|
if (this.params.useGuideController !== !1) {
|
|
191
|
-
const
|
|
236
|
+
const a = h({
|
|
192
237
|
container: this.container,
|
|
193
|
-
pointSelectorMode:
|
|
194
|
-
i18n:
|
|
238
|
+
pointSelectorMode: e,
|
|
239
|
+
i18n: i.i18n
|
|
195
240
|
}, U(this.params.useGuideController));
|
|
196
|
-
this.useGuideController = new A(this,
|
|
241
|
+
this.useGuideController = new A(this, a);
|
|
197
242
|
}
|
|
198
243
|
}
|
|
199
244
|
appendTo(t) {
|
|
@@ -203,8 +248,8 @@ class Ke extends H {
|
|
|
203
248
|
this.model.clear();
|
|
204
249
|
}
|
|
205
250
|
dispose() {
|
|
206
|
-
var t,
|
|
207
|
-
this.disable(), this.clear(), (t = this.useUIController) == null || t.dispose(), (
|
|
251
|
+
var t, i;
|
|
252
|
+
this.disable(), this.clear(), (t = this.useUIController) == null || t.dispose(), (i = this.magnifier) == null || i.dispose(), this.five.needsRender = !0;
|
|
208
253
|
}
|
|
209
254
|
/** 加载数据
|
|
210
255
|
* @description 数据加载时会覆盖当前已保存的数据
|
|
@@ -218,18 +263,18 @@ class Ke extends H {
|
|
|
218
263
|
* @description 会隐藏当前 VR 内的点位展示
|
|
219
264
|
*/
|
|
220
265
|
enable(t) {
|
|
221
|
-
var
|
|
222
|
-
this.hasOpen || (this.state.enabled = !0, this.hasOpen = !0, this.group.matrix.copy(this.workUtil.transform), this.group.matrix.decompose(this.group.position, this.group.quaternion, this.group.scale), this.group.updateMatrixWorld(), this.five.scene.add(this.group), this.container.style.visibility = "visible", this.container.style.opacity = "1", t != null && t.mode ? this.changeMode(t.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (
|
|
266
|
+
var i, e;
|
|
267
|
+
this.hasOpen || (this.state.enabled = !0, this.hasOpen = !0, this.group.matrix.copy(this.workUtil.transform), this.group.matrix.decompose(this.group.position, this.group.quaternion, this.group.scale), this.group.updateMatrixWorld(), this.five.scene.add(this.group), this.container.style.visibility = "visible", this.container.style.opacity = "1", t != null && t.mode ? this.changeMode(t.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (i = this.useUIController) == null || i.show(), (e = this.useGuideController) == null || e.show(), this.shortcutKeyController = new B(this, this.five), this.hook.emit("enable", !0));
|
|
223
268
|
}
|
|
224
269
|
/** 进入编辑模式 */
|
|
225
270
|
edit(t) {
|
|
226
271
|
t && this.changeMeasureType(t);
|
|
227
|
-
const
|
|
228
|
-
this.changeMode(
|
|
272
|
+
const i = this.isMobile ? "Mixed" : "Edit";
|
|
273
|
+
this.changeMode(i);
|
|
229
274
|
}
|
|
230
275
|
/** 撤销编辑 */
|
|
231
276
|
revoke() {
|
|
232
|
-
this.controller instanceof
|
|
277
|
+
this.controller instanceof m && this.controller.revoke();
|
|
233
278
|
}
|
|
234
279
|
removePolyline(t) {
|
|
235
280
|
this.model.removePolyline(t);
|
|
@@ -238,8 +283,8 @@ class Ke extends H {
|
|
|
238
283
|
this.model.removeArea(t);
|
|
239
284
|
}
|
|
240
285
|
removePolylineByID(t) {
|
|
241
|
-
const
|
|
242
|
-
|
|
286
|
+
const i = this.model.getPolylineByID(t);
|
|
287
|
+
i && this.model.removePolyline(i);
|
|
243
288
|
}
|
|
244
289
|
getPolylineByID(t) {
|
|
245
290
|
return this.model.getPolylineByID(t);
|
|
@@ -252,8 +297,8 @@ class Ke extends H {
|
|
|
252
297
|
highlightLine(t) {
|
|
253
298
|
if (this.getCurrentMode() !== "Watch")
|
|
254
299
|
return !1;
|
|
255
|
-
const
|
|
256
|
-
return
|
|
300
|
+
const i = this.model.getLineByID(t);
|
|
301
|
+
return i ? (this.controller.highlightLine(i), !0) : !1;
|
|
257
302
|
}
|
|
258
303
|
clearHighlightLines() {
|
|
259
304
|
return this.getCurrentMode() !== "Watch" ? !1 : (this.controller.clearHighlightLines(), !0);
|
|
@@ -263,20 +308,20 @@ class Ke extends H {
|
|
|
263
308
|
*/
|
|
264
309
|
save(t) {
|
|
265
310
|
var o;
|
|
266
|
-
if (!(this.controller instanceof
|
|
311
|
+
if (!(this.controller instanceof m) && !(this.controller instanceof p))
|
|
267
312
|
return this;
|
|
268
|
-
const
|
|
269
|
-
return this.controller instanceof
|
|
313
|
+
const i = (o = t == null ? void 0 : t.mode) != null ? o : "View", e = this.controller.model.areas;
|
|
314
|
+
return this.controller instanceof m ? this.controller.complete() : e.forEach((l) => {
|
|
270
315
|
l.showArea(), this.model.addArea(l);
|
|
271
|
-
}), this.changeMode(
|
|
316
|
+
}), this.changeMode(i), this;
|
|
272
317
|
}
|
|
273
318
|
/** Mixed 模式才有用,添加起点 */
|
|
274
319
|
addStartPoint() {
|
|
275
|
-
this.controller instanceof
|
|
320
|
+
this.controller instanceof p && this.hook.emit("willChangeState", "watching", "editing");
|
|
276
321
|
}
|
|
277
322
|
/** Mixed 模式才有用,添加终点 */
|
|
278
323
|
addEndPoint() {
|
|
279
|
-
this.controller instanceof
|
|
324
|
+
this.controller instanceof p && this.hook.emit("willChangeState", "editing", "watching");
|
|
280
325
|
}
|
|
281
326
|
/** 导出数据 */
|
|
282
327
|
toJson() {
|
|
@@ -290,20 +335,20 @@ class Ke extends H {
|
|
|
290
335
|
changeIsMobile(t) {
|
|
291
336
|
}
|
|
292
337
|
changeConfigs(t) {
|
|
293
|
-
var
|
|
294
|
-
Object.assign(this.config, t), (
|
|
338
|
+
var i, e;
|
|
339
|
+
Object.assign(this.config, t), (i = this.controller) == null || i.updateDistanceUI(), (e = this.controller) == null || e.updateAreaUI();
|
|
295
340
|
}
|
|
296
341
|
/** 设置线段的文本 */
|
|
297
|
-
setCustomText(t,
|
|
342
|
+
setCustomText(t, i) {
|
|
298
343
|
var o;
|
|
299
|
-
const
|
|
300
|
-
if (!
|
|
344
|
+
const e = this.model.getLineByID(t);
|
|
345
|
+
if (!e)
|
|
301
346
|
throw new Error("不存在的线段");
|
|
302
|
-
|
|
347
|
+
e.setText(i), (o = this.controller) == null || o.updateDistanceUI();
|
|
303
348
|
}
|
|
304
349
|
createControllerParams() {
|
|
305
|
-
var
|
|
306
|
-
const t = (
|
|
350
|
+
var e, o;
|
|
351
|
+
const t = (e = this.params.openParams) != null ? e : {}, i = (o = this.params.editParams) != null ? o : {};
|
|
307
352
|
return t.isMobile = this.isMobile, {
|
|
308
353
|
five: this.five,
|
|
309
354
|
hook: this.hook,
|
|
@@ -314,15 +359,15 @@ class Ke extends H {
|
|
|
314
359
|
container: this.container,
|
|
315
360
|
workUtil: this.workUtil,
|
|
316
361
|
openParams: t,
|
|
317
|
-
editParams:
|
|
362
|
+
editParams: i,
|
|
318
363
|
pointSelectorConfig: this.params.pointSelectorConfig,
|
|
319
364
|
magnifierParams: this.params.magnifierParams,
|
|
320
365
|
getMeasureType: () => this.currentMeasureType,
|
|
321
|
-
mouseGroup: O(
|
|
366
|
+
mouseGroup: O(h({}, t.crossHairParameter)),
|
|
322
367
|
userDistanceItemCreator: this.params.userDistanceItemCreator
|
|
323
368
|
};
|
|
324
369
|
}
|
|
325
370
|
}
|
|
326
371
|
export {
|
|
327
|
-
|
|
372
|
+
Ee as default
|
|
328
373
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var
|
|
2
|
-
var d = (
|
|
3
|
-
var
|
|
4
|
-
import * as
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var d = (e, t, o) => t in e ? l(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
|
+
var i = (e, t, o) => (d(e, typeof t != "symbol" ? t + "" : t, o), o);
|
|
4
|
+
import * as s from "three";
|
|
5
5
|
import { uuid as f } from "../../shared-utils/uuid.js";
|
|
6
6
|
import { Subscribe as c } from "@realsee/five";
|
|
7
7
|
import u from "./line.js";
|
|
8
8
|
import v from "./polygon.js";
|
|
9
9
|
import { Polyline as y } from "./polyline.js";
|
|
10
|
-
import
|
|
10
|
+
import n from "./point.js";
|
|
11
11
|
import { AreaItem as C } from "../utils/dom/areaDom.js";
|
|
12
12
|
import "../utils/line.js";
|
|
13
13
|
import "../../shared-utils/five/FiveLine.js";
|
|
@@ -25,47 +25,123 @@ import "../../shared-utils/three/getNormal.js";
|
|
|
25
25
|
import "../../shared-utils/three/geometryUtil.js";
|
|
26
26
|
import "hammerjs";
|
|
27
27
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
28
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
29
|
+
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
30
|
+
import "../../Object3DHelperPlugin/Controller.js";
|
|
31
|
+
import "../../base/BasePlugin.js";
|
|
32
|
+
import "../../shared-utils/Subscribe.js";
|
|
28
33
|
import "../../shared-utils/three/THREESphere.js";
|
|
29
34
|
import "animejs";
|
|
30
|
-
import "../../shared-utils/
|
|
35
|
+
import "../../shared-utils/Utils/FiveUtil.js";
|
|
36
|
+
import "../../shared-utils/Utils/BaseUtil.js";
|
|
37
|
+
import "../../shared-utils/Utils/WorkUtil.js";
|
|
38
|
+
import "../../shared-utils/five/transformPosition.js";
|
|
39
|
+
import "../../shared-utils/five/getFiveModel.js";
|
|
40
|
+
import "../../shared-utils/url/absoluteUrl.js";
|
|
31
41
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
43
|
+
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
44
|
+
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
45
|
+
import "../../shared-utils/three/boundingBox.js";
|
|
46
|
+
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
47
|
+
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
48
|
+
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
49
|
+
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
50
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
51
|
+
import "../../shared-utils/positionToVector3.js";
|
|
52
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
53
|
+
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
54
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
55
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
56
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
57
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
58
|
+
import "../../shared-utils/three/getObjectVisible.js";
|
|
59
|
+
import "../../shared-utils/isNil.js";
|
|
60
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
61
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
62
|
+
import "../../shared-utils/util.js";
|
|
63
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
64
|
+
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
65
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
66
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
67
|
+
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
68
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
69
|
+
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
70
|
+
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
71
|
+
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
72
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
73
|
+
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
74
|
+
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
75
|
+
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
76
|
+
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
77
|
+
import "../../shared-utils/Object3DHelper/index.js";
|
|
78
|
+
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
79
|
+
import "../../shared-utils/math/rad2Deg.js";
|
|
80
|
+
import "../../shared-utils/math/deg2Rad.js";
|
|
81
|
+
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
82
|
+
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
83
|
+
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
84
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
85
|
+
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
86
|
+
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
87
|
+
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
88
|
+
import "../../shared-utils/five/fiveModelLoad.js";
|
|
89
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
90
|
+
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
91
|
+
import "../../shared-utils/three/THREERaycaster.js";
|
|
92
|
+
import "../../shared-utils/three/PointSelector/index.js";
|
|
93
|
+
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
94
|
+
import "../../shared-utils/three/Magnifier.js";
|
|
95
|
+
import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
96
|
+
import "../../shared-utils/three/Assets/index.js";
|
|
97
|
+
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
98
|
+
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
99
|
+
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
100
|
+
import "../../Sculpt/Meshes/Line.js";
|
|
101
|
+
import "../../Sculpt/typings/style.js";
|
|
102
|
+
import "../../shared-utils/tag.js";
|
|
103
|
+
import "../../shared-utils/five/vector3ToScreen.js";
|
|
104
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
105
|
+
import "../../shared-utils/isTouchDevice.js";
|
|
106
|
+
import "../../shared-utils/five/getPosition.js";
|
|
107
|
+
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
108
|
+
class ui {
|
|
109
|
+
constructor(t, o) {
|
|
110
|
+
i(this, "id", f());
|
|
111
|
+
i(this, "selected", !1);
|
|
112
|
+
i(this, "text");
|
|
113
|
+
i(this, "type", "area");
|
|
114
|
+
i(this, "lightMesh");
|
|
115
|
+
i(this, "areaItem");
|
|
116
|
+
i(this, "hook", new c());
|
|
117
|
+
i(this, "model");
|
|
42
118
|
/** 多边形mesh */
|
|
43
|
-
|
|
119
|
+
i(this, "polygon");
|
|
44
120
|
/** 多边形顶点 */
|
|
45
|
-
|
|
121
|
+
i(this, "points", []);
|
|
46
122
|
/** 多边形前三个点组成的平面,用来使得后面加的点也落在这个平面上 */
|
|
47
|
-
|
|
123
|
+
i(this, "planeHelper");
|
|
48
124
|
/** 多边形边框 */
|
|
49
|
-
|
|
125
|
+
i(this, "polyline");
|
|
50
126
|
/** 多边形mesh容器 */
|
|
51
|
-
|
|
127
|
+
i(this, "meshContainer");
|
|
52
128
|
/** 多边形dom容器 */
|
|
53
|
-
|
|
54
|
-
|
|
129
|
+
i(this, "domContainer");
|
|
130
|
+
i(this, "five");
|
|
55
131
|
/**
|
|
56
132
|
* @description: five camera update 时,更新Dom的位置
|
|
57
133
|
*/
|
|
58
|
-
|
|
134
|
+
i(this, "updateDom", () => {
|
|
59
135
|
this.five && (this.polyline.lines.forEach((t) => t.distanceItem.update(this.five)), this.areaItem.updateDomPosition(this.five));
|
|
60
136
|
});
|
|
61
|
-
var
|
|
62
|
-
t && (this.points = t), this.model =
|
|
137
|
+
var r;
|
|
138
|
+
t && (this.points = t), this.model = o.model, this.polygon = new v(t), this.polyline = new y({ model: o.model }), this.areaItem = new C({
|
|
63
139
|
area: this,
|
|
64
|
-
clickCallback: (
|
|
65
|
-
const
|
|
66
|
-
this.hook.emit("selected", this, { left:
|
|
140
|
+
clickCallback: (m, p) => {
|
|
141
|
+
const a = m.clientX + "px", h = m.clientY + "px";
|
|
142
|
+
this.hook.emit("selected", this, { left: a, top: h });
|
|
67
143
|
}
|
|
68
|
-
}), this.domContainer =
|
|
144
|
+
}), this.domContainer = o.domContainer || null, this.meshContainer = o.meshContainer || null, this.five = o.five || null, this.areaItem.appendTo(this.domContainer), (r = this.five) == null || r.on("cameraUpdate", this.updateDom);
|
|
69
145
|
}
|
|
70
146
|
/**
|
|
71
147
|
* @description: 多边形的端点是否闭合
|
|
@@ -75,14 +151,14 @@ class G {
|
|
|
75
151
|
return this.points.length >= 4 && ((t = this.points.at(0)) == null ? void 0 : t.equals(this.points.at(-1)));
|
|
76
152
|
}
|
|
77
153
|
addPoints(t) {
|
|
78
|
-
var
|
|
154
|
+
var m;
|
|
79
155
|
this.points = this.points.concat(t);
|
|
80
|
-
const
|
|
81
|
-
if (
|
|
82
|
-
const
|
|
83
|
-
this.polyline.addLine(
|
|
156
|
+
const o = this.points.at(-2), r = this.points.at(-1);
|
|
157
|
+
if (o && r) {
|
|
158
|
+
const p = new u(new n(o), new n(r), this.polyline.model);
|
|
159
|
+
this.polyline.addLine(p), this.meshContainer.add(p.mesh), this.five && (p.distanceItem.setCanSelect(!1), p.distanceItem.appendTo(this.domContainer), p.distanceItem.update(this.five));
|
|
84
160
|
}
|
|
85
|
-
(
|
|
161
|
+
(m = this.meshContainer) != null && m.children.includes(this.polygon) || this.meshContainer.add(this.polygon), this.polygon.updatePoints(this.points), this.areaItem.updateArea(this.five), this.points.length === 3 ? this.planeHelper = new s.Plane().setFromCoplanarPoints(this.points[0], this.points[1], this.points[2]) : this.points.length < 3 && (this.planeHelper = null);
|
|
86
162
|
}
|
|
87
163
|
/**
|
|
88
164
|
* @description: 移除最后一个添加的点
|
|
@@ -108,7 +184,7 @@ class G {
|
|
|
108
184
|
* @description: 获取一个点投影在当前平面上的点
|
|
109
185
|
*/
|
|
110
186
|
projectPoint(t) {
|
|
111
|
-
return t && (this.planeHelper ? this.planeHelper.projectPoint(t, new
|
|
187
|
+
return t && (this.planeHelper ? this.planeHelper.projectPoint(t, new s.Vector3()) : t);
|
|
112
188
|
}
|
|
113
189
|
remove() {
|
|
114
190
|
this.polygon.removeFromParent(), this.areaItem.remove(), this.polyline.lines.forEach((t) => t.remove());
|
|
@@ -128,5 +204,5 @@ class G {
|
|
|
128
204
|
}
|
|
129
205
|
}
|
|
130
206
|
export {
|
|
131
|
-
|
|
207
|
+
ui as default
|
|
132
208
|
};
|
|
@@ -2,11 +2,89 @@ 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 "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
85
|
+
import "../../shared-utils/isTouchDevice.js";
|
|
86
|
+
import "../../shared-utils/five/getPosition.js";
|
|
87
|
+
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
10
88
|
export {
|
|
11
89
|
o as default
|
|
12
90
|
};
|