@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,37 +1,37 @@
|
|
|
1
|
-
var
|
|
1
|
+
var g = Object.defineProperty, w = Object.defineProperties;
|
|
2
2
|
var v = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var f = Object.getOwnPropertySymbols;
|
|
4
4
|
var A = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
6
|
-
for (var t in
|
|
7
|
-
A.call(
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
S.call(
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
5
|
+
var c = (o, e, t) => e in o ? g(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, n = (o, e) => {
|
|
6
|
+
for (var t in e || (e = {}))
|
|
7
|
+
A.call(e, t) && c(o, t, e[t]);
|
|
8
|
+
if (f)
|
|
9
|
+
for (var t of f(e))
|
|
10
|
+
S.call(e, t) && c(o, t, e[t]);
|
|
11
|
+
return o;
|
|
12
|
+
}, u = (o, e) => w(o, v(e));
|
|
13
|
+
var s = (o, e, t) => (c(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
|
+
var l = (o, e, t) => new Promise((i, r) => {
|
|
15
|
+
var p = (h) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
17
|
+
m(t.next(h));
|
|
18
|
+
} catch (d) {
|
|
19
|
+
r(d);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, a = (h) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
|
|
23
|
+
m(t.throw(h));
|
|
24
|
+
} catch (d) {
|
|
25
|
+
r(d);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, m = (h) => h.done ? i(h.value) : Promise.resolve(h.value).then(p, a);
|
|
28
|
+
m((t = t.apply(o, e)).next());
|
|
29
29
|
});
|
|
30
30
|
import _ from "./Components/Main.js";
|
|
31
31
|
import { equal as y } from "../../shared-utils/equal.js";
|
|
32
32
|
import { CAMERA_IMAGE as D } from "../Assets/camera.js";
|
|
33
33
|
import { Controller as O } from "../../base/BasePluginWithData.js";
|
|
34
|
-
import { formatData as
|
|
34
|
+
import { formatData as b, formatExtraObjects as x } from "../utils/formatData.js";
|
|
35
35
|
import "../../vendor/svelte/internal/index.js";
|
|
36
36
|
import "./Components/Camera.js";
|
|
37
37
|
import "../../shared-utils/throttle.js";
|
|
@@ -52,149 +52,221 @@ import "three";
|
|
|
52
52
|
import "hammerjs";
|
|
53
53
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
54
54
|
import "@realsee/five/line";
|
|
55
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
56
|
+
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
57
|
+
import "../../Object3DHelperPlugin/Controller.js";
|
|
55
58
|
import "../../shared-utils/three/THREESphere.js";
|
|
59
|
+
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
60
|
+
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
61
|
+
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
62
|
+
import "../../shared-utils/three/IObject3D.js";
|
|
63
|
+
import "../../shared-utils/three/boundingBox.js";
|
|
64
|
+
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
65
|
+
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
66
|
+
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
67
|
+
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
68
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
69
|
+
import "../../shared-utils/positionToVector3.js";
|
|
70
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
71
|
+
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
72
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
73
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
74
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
75
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
76
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
77
|
+
import "../../shared-utils/three/getObjectVisible.js";
|
|
56
78
|
import "animejs";
|
|
79
|
+
import "../../shared-utils/isNil.js";
|
|
80
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
57
81
|
import "../../shared-utils/Utils/FiveUtil.js";
|
|
58
82
|
import "../../shared-utils/Utils/BaseUtil.js";
|
|
59
83
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
60
84
|
import "../../shared-utils/five/transformPosition.js";
|
|
61
85
|
import "../../shared-utils/five/getFiveModel.js";
|
|
62
86
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
63
|
-
import "../../
|
|
87
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
88
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
89
|
+
import "../../shared-utils/util.js";
|
|
90
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
91
|
+
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
92
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
93
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
94
|
+
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
95
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
96
|
+
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
97
|
+
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
98
|
+
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
99
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
100
|
+
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
101
|
+
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
102
|
+
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
103
|
+
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
104
|
+
import "../../shared-utils/Object3DHelper/index.js";
|
|
105
|
+
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
106
|
+
import "../../shared-utils/math/rad2Deg.js";
|
|
107
|
+
import "../../shared-utils/math/deg2Rad.js";
|
|
108
|
+
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
109
|
+
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
110
|
+
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
111
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
112
|
+
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
113
|
+
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
114
|
+
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
115
|
+
import "../../shared-utils/five/fiveModelLoad.js";
|
|
116
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
117
|
+
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
118
|
+
import "../../shared-utils/three/THREERaycaster.js";
|
|
119
|
+
import "../../shared-utils/three/PointSelector/index.js";
|
|
120
|
+
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
121
|
+
import "../../shared-utils/three/Magnifier.js";
|
|
122
|
+
import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
123
|
+
import "../../shared-utils/three/Assets/index.js";
|
|
124
|
+
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
125
|
+
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
126
|
+
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
127
|
+
import "../../Sculpt/Meshes/Line.js";
|
|
128
|
+
import "../../Sculpt/typings/style.js";
|
|
129
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
130
|
+
import "../../shared-utils/tag.js";
|
|
131
|
+
import "../../shared-utils/five/vector3ToScreen.js";
|
|
132
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
133
|
+
import "../../shared-utils/isTouchDevice.js";
|
|
134
|
+
import "../../shared-utils/five/getPosition.js";
|
|
135
|
+
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
64
136
|
import "../Assets/floorplanExtraObject.js";
|
|
65
|
-
class
|
|
66
|
-
constructor(t,
|
|
137
|
+
class ki extends O {
|
|
138
|
+
constructor(t, i) {
|
|
67
139
|
super(t);
|
|
68
140
|
// =============== public properties =================
|
|
69
|
-
|
|
70
|
-
|
|
141
|
+
s(this, "name", "panoFloorplanRadarPlugin");
|
|
142
|
+
s(this, "state");
|
|
71
143
|
// =============== protected properties =================
|
|
72
|
-
|
|
144
|
+
s(this, "data");
|
|
73
145
|
// =============== private properties =================
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
146
|
+
s(this, "app");
|
|
147
|
+
s(this, "wrapperSelector", "");
|
|
148
|
+
s(this, "wrapper", null);
|
|
149
|
+
s(this, "disposed", !1);
|
|
150
|
+
s(this, "extraObjects", []);
|
|
151
|
+
s(this, "highlightData", {});
|
|
152
|
+
s(this, "dispose", () => {
|
|
81
153
|
var t;
|
|
82
154
|
this.disposed = !0, (t = this.app) == null || t.$destroy(), this.wrapper = null, this.wrapperSelector = "", this.hooks.emit("dispose");
|
|
83
155
|
});
|
|
84
|
-
|
|
156
|
+
s(this, "highlight", (t) => {
|
|
85
157
|
this.state.config.highlightEnable && (this.highlightData = t, this.render());
|
|
86
158
|
});
|
|
87
|
-
|
|
159
|
+
s(this, "unhighlight", () => {
|
|
88
160
|
this.highlightData = {}, this.render();
|
|
89
161
|
});
|
|
90
|
-
|
|
91
|
-
var
|
|
92
|
-
const { userAction:
|
|
93
|
-
(
|
|
162
|
+
s(this, "_disable", (t) => {
|
|
163
|
+
var r;
|
|
164
|
+
const { userAction: i } = t;
|
|
165
|
+
(r = this.app) == null || r.$destroy(), this.app = void 0, this.hooks.emit("disable", { userAction: i });
|
|
94
166
|
});
|
|
95
167
|
this.five = t;
|
|
96
|
-
const
|
|
168
|
+
const r = {
|
|
97
169
|
hoverEnable: !0,
|
|
98
170
|
highlightEnable: !0,
|
|
99
171
|
cameraImageUrl: D,
|
|
100
172
|
missingFloorImageUrl: this.staticPrefix + "/release/web/saas/missing-floor.d687a5ed.png"
|
|
101
|
-
},
|
|
102
|
-
this.state = { enabled: !0, visible: !0, config:
|
|
173
|
+
}, p = n(n({}, r), i == null ? void 0 : i.configs);
|
|
174
|
+
this.state = { enabled: !0, visible: !0, config: p }, i != null && i.wrapper && console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法"), typeof (i == null ? void 0 : i.wrapper) == "string" ? this.wrapperSelector = i.wrapper : (i == null ? void 0 : i.wrapper) instanceof Element && (this.wrapper = i.wrapper), t.once("dispose", this.dispose);
|
|
103
175
|
}
|
|
104
|
-
load(t,
|
|
105
|
-
return
|
|
106
|
-
function
|
|
107
|
-
return Object.prototype.hasOwnProperty.apply(
|
|
176
|
+
load(t, i, r = !0) {
|
|
177
|
+
return l(this, null, function* () {
|
|
178
|
+
function p(d) {
|
|
179
|
+
return Object.prototype.hasOwnProperty.apply(d, ["version"]);
|
|
108
180
|
}
|
|
109
|
-
const
|
|
110
|
-
this.data = yield
|
|
181
|
+
const a = JSON.parse(JSON.stringify(t)), m = p(a) ? a.data : a, h = this.data;
|
|
182
|
+
this.data = yield b(m), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, h), i && this.updateState(i, r), this.render();
|
|
111
183
|
});
|
|
112
184
|
}
|
|
113
185
|
show() {
|
|
114
|
-
return
|
|
186
|
+
return l(this, arguments, function* (t = {}) {
|
|
115
187
|
if (this.state.visible)
|
|
116
188
|
return;
|
|
117
|
-
const
|
|
118
|
-
this.updateState({ visible: !0 },
|
|
189
|
+
const i = t.userAction !== void 0 ? t.userAction : !0;
|
|
190
|
+
this.updateState({ visible: !0 }, i), this._show({ userAction: i });
|
|
119
191
|
});
|
|
120
192
|
}
|
|
121
193
|
hide() {
|
|
122
|
-
return
|
|
194
|
+
return l(this, arguments, function* (t = {}) {
|
|
123
195
|
if (!this.state.visible)
|
|
124
196
|
return;
|
|
125
|
-
const
|
|
126
|
-
this.updateState({ visible: !1 },
|
|
197
|
+
const i = t.userAction !== void 0 ? t.userAction : !0;
|
|
198
|
+
this.updateState({ visible: !1 }, i), this._hide({ userAction: i });
|
|
127
199
|
});
|
|
128
200
|
}
|
|
129
201
|
enable(t = {}) {
|
|
130
202
|
if (this.state.enabled)
|
|
131
203
|
return;
|
|
132
|
-
const
|
|
133
|
-
this.updateState({ enabled: !0 }, t.userAction ||
|
|
204
|
+
const i = t.userAction !== void 0 ? t.userAction : !0;
|
|
205
|
+
this.updateState({ enabled: !0 }, t.userAction || i), this._enable({ userAction: i });
|
|
134
206
|
}
|
|
135
207
|
disable(t = {}) {
|
|
136
208
|
if (!this.state.enabled)
|
|
137
209
|
return;
|
|
138
|
-
const
|
|
139
|
-
this.updateState({ enabled: !1 }, t.userAction ||
|
|
210
|
+
const i = t.userAction !== void 0 ? t.userAction : !0;
|
|
211
|
+
this.updateState({ enabled: !1 }, t.userAction || i), this._disable({ userAction: i });
|
|
140
212
|
}
|
|
141
213
|
/** 更改插件 State */
|
|
142
|
-
setState(t,
|
|
143
|
-
const
|
|
144
|
-
if (this.updateState(t,
|
|
145
|
-
const
|
|
146
|
-
t.enabled ? this._enable(
|
|
214
|
+
setState(t, i = {}) {
|
|
215
|
+
const r = this.state, p = i.userAction !== void 0 ? i.userAction : !0;
|
|
216
|
+
if (this.updateState(t, p), t.enabled !== void 0 && r.enabled !== t.enabled) {
|
|
217
|
+
const a = { userAction: p };
|
|
218
|
+
t.enabled ? this._enable(a) : this._disable(a);
|
|
147
219
|
}
|
|
148
|
-
if (t.visible !== void 0 &&
|
|
149
|
-
const
|
|
150
|
-
t.visible ? this._show(
|
|
220
|
+
if (t.visible !== void 0 && r.visible !== t.visible) {
|
|
221
|
+
const a = { userAction: p };
|
|
222
|
+
t.visible ? this._show(a) : this._hide(a);
|
|
151
223
|
}
|
|
152
224
|
}
|
|
153
225
|
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
154
226
|
appendTo(t) {
|
|
155
227
|
this.wrapper !== t && this.app && (this.app.$destroy(), this.app = void 0), this.wrapper = t, this.render();
|
|
156
228
|
}
|
|
157
|
-
changeConfigs(t,
|
|
158
|
-
this.setState({ config: t }, { userAction:
|
|
229
|
+
changeConfigs(t, i = !0) {
|
|
230
|
+
this.setState({ config: t }, { userAction: i }), this.render();
|
|
159
231
|
}
|
|
160
232
|
setExtraObjectsWith3DPositions(t) {
|
|
161
233
|
this.data && (this.extraObjects = x(t, this.five, this.data), this.render());
|
|
162
234
|
}
|
|
163
235
|
formatData(t) {
|
|
164
|
-
return
|
|
165
|
-
return yield
|
|
236
|
+
return l(this, null, function* () {
|
|
237
|
+
return yield b(t.data);
|
|
166
238
|
});
|
|
167
239
|
}
|
|
168
240
|
_enable(t) {
|
|
169
|
-
const { userAction:
|
|
170
|
-
this.hooks.emit("enable", { userAction:
|
|
241
|
+
const { userAction: i } = t;
|
|
242
|
+
this.hooks.emit("enable", { userAction: i }), this.state.visible && this._show({ userAction: i });
|
|
171
243
|
}
|
|
172
244
|
_show(t) {
|
|
173
245
|
if (this.disposed || !this.state.enabled)
|
|
174
246
|
return;
|
|
175
|
-
const { userAction:
|
|
176
|
-
this.hooks.emit("show", { userAction:
|
|
247
|
+
const { userAction: i } = t;
|
|
248
|
+
this.hooks.emit("show", { userAction: i }), this.render();
|
|
177
249
|
}
|
|
178
250
|
_hide(t) {
|
|
179
251
|
if (this.disposed || !this.state.enabled)
|
|
180
252
|
return;
|
|
181
|
-
const { userAction:
|
|
182
|
-
this.hooks.emit("hide", { userAction:
|
|
253
|
+
const { userAction: i } = t;
|
|
254
|
+
this.hooks.emit("hide", { userAction: i }), this.render();
|
|
183
255
|
}
|
|
184
|
-
updateState(t,
|
|
185
|
-
const
|
|
186
|
-
this.state =
|
|
256
|
+
updateState(t, i) {
|
|
257
|
+
const r = this.state, p = t.config ? n(n({}, r.config), t.config) : r.config;
|
|
258
|
+
this.state = u(n(n({}, this.state), t), { config: p }), !y(this.state, r, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: r, userAction: i });
|
|
187
259
|
}
|
|
188
260
|
render() {
|
|
189
261
|
if (this.disposed || !this.state.enabled)
|
|
190
262
|
return;
|
|
191
263
|
if (!this.wrapper && this.wrapperSelector) {
|
|
192
|
-
const
|
|
193
|
-
this.wrapper =
|
|
264
|
+
const i = document.querySelector(this.wrapperSelector);
|
|
265
|
+
this.wrapper = i;
|
|
194
266
|
}
|
|
195
267
|
if (!this.data || !this.wrapper)
|
|
196
268
|
return;
|
|
197
|
-
const t =
|
|
269
|
+
const t = u(n({}, this.state.config), {
|
|
198
270
|
five: this.five,
|
|
199
271
|
floorplanData: this.data,
|
|
200
272
|
visible: this.state.visible,
|
|
@@ -205,5 +277,5 @@ class pt extends O {
|
|
|
205
277
|
}
|
|
206
278
|
}
|
|
207
279
|
export {
|
|
208
|
-
|
|
280
|
+
ki as Controller
|
|
209
281
|
};
|
|
@@ -23,19 +23,91 @@ import "three";
|
|
|
23
23
|
import "hammerjs";
|
|
24
24
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
25
25
|
import "@realsee/five/line";
|
|
26
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
27
|
+
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
28
|
+
import "../../Object3DHelperPlugin/Controller.js";
|
|
26
29
|
import "../../shared-utils/three/THREESphere.js";
|
|
30
|
+
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
31
|
+
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
32
|
+
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
33
|
+
import "../../shared-utils/three/IObject3D.js";
|
|
34
|
+
import "../../shared-utils/three/boundingBox.js";
|
|
35
|
+
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
36
|
+
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
37
|
+
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
38
|
+
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
39
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
40
|
+
import "../../shared-utils/positionToVector3.js";
|
|
41
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
42
|
+
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
43
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
44
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
45
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
46
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
47
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
48
|
+
import "../../shared-utils/three/getObjectVisible.js";
|
|
27
49
|
import "animejs";
|
|
50
|
+
import "../../shared-utils/isNil.js";
|
|
51
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
28
52
|
import "../../shared-utils/Utils/FiveUtil.js";
|
|
29
53
|
import "../../shared-utils/Utils/BaseUtil.js";
|
|
30
54
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
31
55
|
import "../../shared-utils/five/transformPosition.js";
|
|
32
56
|
import "../../shared-utils/five/getFiveModel.js";
|
|
33
57
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
34
|
-
import "../../
|
|
58
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
59
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
60
|
+
import "../../shared-utils/util.js";
|
|
61
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
62
|
+
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
63
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
64
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
65
|
+
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
66
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
67
|
+
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
68
|
+
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
69
|
+
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
70
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
71
|
+
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
72
|
+
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
73
|
+
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
74
|
+
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
75
|
+
import "../../shared-utils/Object3DHelper/index.js";
|
|
76
|
+
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
77
|
+
import "../../shared-utils/math/rad2Deg.js";
|
|
78
|
+
import "../../shared-utils/math/deg2Rad.js";
|
|
79
|
+
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
80
|
+
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
81
|
+
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
82
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
83
|
+
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
84
|
+
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
85
|
+
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
86
|
+
import "../../shared-utils/five/fiveModelLoad.js";
|
|
87
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
88
|
+
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
89
|
+
import "../../shared-utils/three/THREERaycaster.js";
|
|
90
|
+
import "../../shared-utils/three/PointSelector/index.js";
|
|
91
|
+
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
92
|
+
import "../../shared-utils/three/Magnifier.js";
|
|
93
|
+
import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
94
|
+
import "../../shared-utils/three/Assets/index.js";
|
|
95
|
+
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
96
|
+
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
97
|
+
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
98
|
+
import "../../Sculpt/Meshes/Line.js";
|
|
99
|
+
import "../../Sculpt/typings/style.js";
|
|
100
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
101
|
+
import "../../shared-utils/tag.js";
|
|
102
|
+
import "../../shared-utils/five/vector3ToScreen.js";
|
|
103
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
104
|
+
import "../../shared-utils/isTouchDevice.js";
|
|
105
|
+
import "../../shared-utils/five/getPosition.js";
|
|
106
|
+
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
35
107
|
import "../utils/formatData.js";
|
|
36
108
|
import "../Assets/floorplanExtraObject.js";
|
|
37
|
-
const
|
|
109
|
+
const ir = (o, r) => new t(o, r);
|
|
38
110
|
export {
|
|
39
|
-
|
|
40
|
-
|
|
111
|
+
ir as PanoFloorplanRadarPlugin,
|
|
112
|
+
ir as default
|
|
41
113
|
};
|