@realsee/dnalogel 3.45.0 → 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 +3 -0
- package/dist/Sculpt/Meshes/Line.d.ts +6 -1
- package/dist/index.cjs.js +53 -53
- package/dist/index.js +29609 -29576
- package/dist/index.umd.js +49 -49
- 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 +139 -82
- 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 +140 -88
- package/libs/PanoMeasurePlugin/Components/Controller1.js +178 -126
- package/libs/PanoMeasurePlugin/Controller/EditController.js +124 -72
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +167 -92
- package/libs/PanoMeasurePlugin/Controller/index.js +109 -64
- package/libs/PanoMeasurePlugin/Model/area.js +114 -38
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +78 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +97 -45
- package/libs/PanoMeasurePlugin/index.js +76 -31
- 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/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 +76 -56
- 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/Line/Editor.js +11 -10
- package/libs/Sculpt/utils/three/ColoredMesh.js +14 -13
- package/libs/base/BasePlugin.js +14 -13
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +128 -59
- 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 +67 -67
- 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
|
@@ -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,87 @@ 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";
|
|
68
120
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
69
121
|
import "../../../shared-utils/isTouchDevice.js";
|
|
70
122
|
import "../../../shared-utils/five/getPosition.js";
|
|
71
123
|
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
72
|
-
import "
|
|
124
|
+
import "../../utils/isIntersecting.js";
|
|
73
125
|
import "../DeleteDom/index.js";
|
|
74
126
|
import "../DeleteDom/_Assets/delete.svg.js";
|
|
75
127
|
import "../DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -80,59 +132,59 @@ import "../../Components/Common/Switcher1.js";
|
|
|
80
132
|
import "../../Components/Common/CircleButton.js";
|
|
81
133
|
import "../../../vendor/svelte/transition/index.js";
|
|
82
134
|
import "../../../vendor/svelte/easing/index.js";
|
|
83
|
-
class
|
|
84
|
-
constructor(
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
const
|
|
95
|
-
if (!t || !
|
|
135
|
+
class Xo {
|
|
136
|
+
constructor(o, t) {
|
|
137
|
+
i(this, "revoke");
|
|
138
|
+
i(this, "container");
|
|
139
|
+
i(this, "mainController");
|
|
140
|
+
i(this, "disposers", []);
|
|
141
|
+
i(this, "measureController");
|
|
142
|
+
i(this, "mode");
|
|
143
|
+
i(this, "svelteDom");
|
|
144
|
+
i(this, "_params");
|
|
145
|
+
i(this, "handleExit", () => {
|
|
146
|
+
const o = this.container.querySelector(".fpm__exit-icon"), t = this.container.querySelector(".fpm__exit");
|
|
147
|
+
if (!t || !o)
|
|
96
148
|
throw new Error("cannot find dom");
|
|
97
|
-
this.mode === "pc" && (Object.assign(t.style, E), Object.assign(
|
|
98
|
-
const
|
|
149
|
+
this.mode === "pc" && (Object.assign(t.style, E), Object.assign(o == null ? void 0 : o.style, x));
|
|
150
|
+
const r = () => {
|
|
99
151
|
t.style.opacity = "1";
|
|
100
|
-
},
|
|
152
|
+
}, m = () => {
|
|
101
153
|
t.style.opacity = "0.85";
|
|
102
|
-
},
|
|
154
|
+
}, p = () => {
|
|
103
155
|
this.measureController.disable();
|
|
104
156
|
};
|
|
105
|
-
return t.addEventListener("click",
|
|
106
|
-
t.removeEventListener("click",
|
|
157
|
+
return t.addEventListener("click", p), t.addEventListener("mouseenter", r), t.addEventListener("mouseleave", m), () => {
|
|
158
|
+
t.removeEventListener("click", p), t.removeEventListener("mouseenter", r), t.removeEventListener("mouseleave", m);
|
|
107
159
|
};
|
|
108
160
|
});
|
|
109
|
-
var
|
|
110
|
-
this._params = t, this.measureController =
|
|
111
|
-
const
|
|
112
|
-
if (
|
|
161
|
+
var m, p;
|
|
162
|
+
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)";
|
|
163
|
+
const r = (p = t.useNewUI) != null ? p : !1;
|
|
164
|
+
if (r && (t.pointSelectorMode === "cursor" ? this.svelteDom = new _({
|
|
113
165
|
target: t.container,
|
|
114
166
|
props: { measureController: this.measureController, i18n: t.i18n, showExit: t.showExit }
|
|
115
167
|
}) : t.pointSelectorMode === "fixed" && (this.svelteDom = new b({
|
|
116
168
|
target: t.container,
|
|
117
169
|
props: { measureController: this.measureController, i18n: t.i18n, showExit: t.showExit }
|
|
118
|
-
}))), !
|
|
170
|
+
}))), !r) {
|
|
119
171
|
t.container.appendChild(this.container);
|
|
120
|
-
const l = this.container.querySelectorAll(".fpm__text"),
|
|
121
|
-
Object.assign(
|
|
172
|
+
const l = this.container.querySelectorAll(".fpm__text"), s = this.container.querySelector(".fpm_ui-bg"), n = this.container.querySelector(".fpm_operating-space");
|
|
173
|
+
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
174
|
}
|
|
123
175
|
}
|
|
124
176
|
dispose() {
|
|
125
|
-
var
|
|
126
|
-
this.hide(), (
|
|
177
|
+
var o;
|
|
178
|
+
this.hide(), (o = this.svelteDom) == null || o.$destroy(), this.container.remove();
|
|
127
179
|
}
|
|
128
180
|
show() {
|
|
129
181
|
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
182
|
}
|
|
131
183
|
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" && ((
|
|
184
|
+
var o, t;
|
|
185
|
+
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
186
|
}
|
|
135
187
|
}
|
|
136
188
|
export {
|
|
137
|
-
|
|
189
|
+
Xo as UIController
|
|
138
190
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import t from "./Controller/index.js";
|
|
2
2
|
import "three";
|
|
3
|
-
import { Magnifier as
|
|
3
|
+
import { Magnifier as Ur } 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 Wr } from "./Model/index.js";
|
|
11
|
+
import { default as Yr } from "./Model/point.js";
|
|
12
|
+
import { default as _r } from "./Model/line.js";
|
|
13
|
+
import { Polyline as ot } 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,81 @@ 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";
|
|
56
108
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
57
109
|
import "../shared-utils/isTouchDevice.js";
|
|
58
110
|
import "../shared-utils/five/getPosition.js";
|
|
59
111
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
60
|
-
import "
|
|
112
|
+
import "./utils/isIntersecting.js";
|
|
61
113
|
import "./Modules/DeleteDom/index.js";
|
|
62
114
|
import "./Modules/DeleteDom/_Assets/delete.svg.js";
|
|
63
115
|
import "./Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -73,7 +125,6 @@ import "./Modules/rangePiece/index.js";
|
|
|
73
125
|
import "../shared-utils/animationFrame/index.js";
|
|
74
126
|
import "../shared-utils/noop.js";
|
|
75
127
|
import "./utils/mouseGroup.js";
|
|
76
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
77
128
|
import "../shared-utils/filter.js";
|
|
78
129
|
import "../shared-utils/tap.js";
|
|
79
130
|
import "./Modules/UIController/index.js";
|
|
@@ -98,21 +149,15 @@ import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
|
98
149
|
import "./Components/Tip.js";
|
|
99
150
|
import "./Controller/ShortcutKeyController.js";
|
|
100
151
|
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) {
|
|
152
|
+
const Rr = function(o, r) {
|
|
108
153
|
return new t(o, r);
|
|
109
154
|
};
|
|
110
155
|
export {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
156
|
+
Ur as Magnifier,
|
|
157
|
+
Rr as PanoMeasurePlugin,
|
|
158
|
+
_r as PanoMeasurePluginLine,
|
|
159
|
+
Wr as PanoMeasurePluginModel,
|
|
160
|
+
Yr as PanoMeasurePluginPoint,
|
|
161
|
+
ot as PanoMeasurePluginPolyline,
|
|
162
|
+
Rr as default
|
|
118
163
|
};
|
|
@@ -2,32 +2,110 @@ 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 "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
101
|
+
import "../../../shared-utils/isTouchDevice.js";
|
|
102
|
+
import "../../../shared-utils/five/getPosition.js";
|
|
103
|
+
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
104
|
+
class eo extends y {
|
|
27
105
|
constructor(t) {
|
|
28
|
-
t.containerStyle =
|
|
106
|
+
t.containerStyle = s(n({}, t.containerStyle), {
|
|
29
107
|
zIndex: "1"
|
|
30
|
-
}), t.contentStyle =
|
|
108
|
+
}), t.contentStyle = s(n({}, t.contentStyle), {
|
|
31
109
|
background: "#6386FF",
|
|
32
110
|
borderRadius: "2px"
|
|
33
111
|
});
|
|
@@ -38,21 +116,21 @@ class w extends y {
|
|
|
38
116
|
/**
|
|
39
117
|
* @description: dom 依赖的多边形的顶点的位置更新时,更新 dom 的位置和面积
|
|
40
118
|
*/
|
|
41
|
-
updateArea(t,
|
|
119
|
+
updateArea(t, r) {
|
|
42
120
|
var c, d;
|
|
43
|
-
const
|
|
44
|
-
if (!
|
|
121
|
+
const p = r != null ? r : this.area.polygon.geometry, m = I(p);
|
|
122
|
+
if (!m) {
|
|
45
123
|
this.ndcPosition = null, this.updateDomPosition(t);
|
|
46
124
|
return;
|
|
47
125
|
}
|
|
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(
|
|
126
|
+
const { area: a, center: x } = m;
|
|
127
|
+
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
128
|
}
|
|
51
|
-
updateAreaText(t,
|
|
52
|
-
const { unit:
|
|
53
|
-
this.contentDom.innerText = `${P(
|
|
129
|
+
updateAreaText(t, r) {
|
|
130
|
+
const { unit: p = "m²", fix: m } = r != null ? r : {};
|
|
131
|
+
this.contentDom.innerText = `${P(m) ? t : t.toFixed(m)}${p}`;
|
|
54
132
|
}
|
|
55
133
|
}
|
|
56
134
|
export {
|
|
57
|
-
|
|
135
|
+
eo as AreaItem
|
|
58
136
|
};
|