@realsee/dnalogel 3.50.16 → 3.50.18-alpha.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/README.md +116 -0
- package/dist/ModelMakerPlugin/Controller.d.ts +2 -0
- package/dist/Sculpt/utils/export.d.ts +18 -0
- package/dist/index.cjs.js +207 -207
- package/dist/index.js +34867 -34776
- package/dist/index.umd.js +211 -211
- package/dist/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
- package/dist/shared-utils/index.d.ts +1 -0
- package/dist/shared-utils/tag.d.ts +41 -2
- package/dist/shared-utils/three/temp.d.ts +2 -2
- package/libs/AreaMakerPlugin/Controller.js +100 -46
- package/libs/AreaMakerPlugin/index.js +64 -10
- package/libs/AreaMakerPlugin/utils/Item.js +156 -100
- package/libs/CSS3DRenderPlugin/Controller.js +93 -44
- package/libs/CSS3DRenderPlugin/index.js +62 -13
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +105 -49
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +130 -77
- package/libs/CruisePlugin/BaseController.js +143 -89
- package/libs/CruisePlugin/Move.js +83 -39
- package/libs/CruisePlugin/Work.js +95 -51
- package/libs/CruisePlugin/index.js +66 -22
- package/libs/CurrentPanoImagePlugin/Controller.js +139 -85
- package/libs/CurrentPanoImagePlugin/index.js +63 -9
- package/libs/GuideLinePlugin/Controller.js +57 -13
- package/libs/GuideLinePlugin/GuideLineItem.js +63 -19
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +6 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +58 -14
- package/libs/GuideLinePlugin/index.js +66 -22
- package/libs/ModelMakerPlugin/Controller.d.ts +2 -0
- package/libs/ModelMakerPlugin/Controller.js +190 -129
- package/libs/ModelMakerPlugin/index.js +63 -21
- package/libs/ModelMakerPlugin/item/baseItem.js +4 -2
- package/libs/ModelMakerPlugin/item/boxItem.js +5 -3
- package/libs/ModelMakerPlugin/item/polygonItem.js +9 -7
- package/libs/ModelMakerPlugin/item/prismItem.js +5 -3
- package/libs/ModelTVVideoPlugin/Plugin.js +96 -47
- package/libs/ModelTVVideoPlugin/index.js +55 -6
- package/libs/Object3DHelperPlugin/Controller.js +42 -25
- package/libs/Object3DHelperPlugin/index.js +28 -12
- package/libs/PanoCompassPlugin/Controller.js +92 -44
- package/libs/PanoCompassPlugin/index.js +63 -15
- package/libs/PanoDoorLabelPlugin/BaseController.js +79 -25
- package/libs/PanoDoorLabelPlugin/Controller.js +132 -78
- package/libs/PanoDoorLabelPlugin/index.js +63 -9
- package/libs/PanoMeasurePlugin/Components/Controller0.js +126 -77
- package/libs/PanoMeasurePlugin/Components/Controller1.js +139 -90
- package/libs/PanoMeasurePlugin/Controller/EditController.js +120 -71
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +120 -70
- package/libs/PanoMeasurePlugin/Controller/index.js +132 -86
- package/libs/PanoMeasurePlugin/Model/area.js +72 -22
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +56 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +64 -15
- package/libs/PanoMeasurePlugin/index.js +62 -16
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +57 -2
- package/libs/PanoRulerProPlugin/Controller.js +88 -33
- package/libs/PanoRulerProPlugin/RulerItems.js +146 -91
- package/libs/PanoRulerProPlugin/index.js +64 -9
- package/libs/PanoSpatialTagPlugin/Plugin.js +177 -128
- package/libs/PanoSpatialTagPlugin/index.js +53 -4
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +116 -60
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +192 -136
- package/libs/PanoTagPlugin/Components/Tag/index.js +194 -139
- package/libs/PanoTagPlugin/Components/TagContainer.js +112 -57
- package/libs/PanoTagPlugin/Components/TagItem.js +204 -149
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +157 -101
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +75 -20
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +86 -31
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +93 -37
- package/libs/PanoTagPlugin/controller/TagRender.js +62 -18
- package/libs/PanoTagPlugin/controller/TagUtil.js +123 -79
- package/libs/PanoTagPlugin/controller/index.js +110 -72
- package/libs/PanoTagPlugin/index.js +72 -28
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +77 -21
- package/libs/PanoVideoPlugin/Controller.js +95 -41
- package/libs/PanoVideoPlugin/VideoMeshController.js +119 -63
- package/libs/PanoVideoPlugin/index.js +66 -12
- package/libs/PipelinePlugin/Controller.js +173 -119
- package/libs/PipelinePlugin/index.js +63 -9
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +70 -14
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +58 -2
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +98 -42
- package/libs/Sculpt/Meshes/Box.js +3 -2
- package/libs/Sculpt/Meshes/Cylinder.js +10 -6
- package/libs/Sculpt/Meshes/Line.js +43 -38
- package/libs/Sculpt/Meshes/LineWithDots.js +14 -10
- package/libs/Sculpt/Meshes/Point.js +24 -20
- package/libs/Sculpt/Meshes/Polygon.js +5 -2
- package/libs/Sculpt/Meshes/Prism.js +19 -16
- package/libs/Sculpt/Objects/Line/Editor.js +6 -5
- package/libs/Sculpt/index.js +15 -14
- package/libs/Sculpt/utils/export.d.ts +18 -0
- package/libs/Sculpt/utils/export.js +21 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +26 -22
- package/libs/base/BasePlugin.js +14 -10
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +146 -94
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +62 -10
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +109 -56
- package/libs/floorplan/ModelFloorplanPlugin/index.js +62 -9
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +116 -63
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +62 -9
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +105 -52
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +62 -9
- package/libs/floorplan/index.js +4 -0
- package/libs/index.js +208 -206
- package/libs/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
- package/libs/shared-utils/five/fiveEveryReadyListener.js +15 -0
- package/libs/shared-utils/five/index.js +6 -2
- package/libs/shared-utils/five/lookObject.js +31 -27
- package/libs/shared-utils/index.d.ts +1 -0
- package/libs/shared-utils/index.js +19 -17
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +41 -2
- package/libs/shared-utils/tag.js +139 -86
- package/libs/shared-utils/three/index.js +4 -0
- package/libs/shared-utils/three/temp.d.ts +2 -2
- package/libs/shared-utils/three/temp.js +4 -4
- package/package.json +1 -1
|
@@ -2,30 +2,30 @@ var g = Object.defineProperty, w = Object.defineProperties;
|
|
|
2
2
|
var v = Object.getOwnPropertyDescriptors;
|
|
3
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(
|
|
5
|
+
var c = (o, r, t) => r in o ? g(o, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[r] = t, n = (o, r) => {
|
|
6
|
+
for (var t in r || (r = {}))
|
|
7
|
+
A.call(r, t) && c(o, t, r[t]);
|
|
8
8
|
if (f)
|
|
9
|
-
for (var t of f(
|
|
10
|
-
S.call(
|
|
11
|
-
return
|
|
12
|
-
}, u = (
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
9
|
+
for (var t of f(r))
|
|
10
|
+
S.call(r, t) && c(o, t, r[t]);
|
|
11
|
+
return o;
|
|
12
|
+
}, u = (o, r) => w(o, v(r));
|
|
13
|
+
var s = (o, r, t) => (c(o, typeof r != "symbol" ? r + "" : r, t), t);
|
|
14
|
+
var l = (o, r, t) => new Promise((i, e) => {
|
|
15
|
+
var p = (h) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
17
|
+
m(t.next(h));
|
|
18
|
+
} catch (d) {
|
|
19
|
+
e(d);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, a = (h) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
|
|
23
|
+
m(t.throw(h));
|
|
24
|
+
} catch (d) {
|
|
25
|
+
e(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, r)).next());
|
|
29
29
|
});
|
|
30
30
|
import _ from "./Components/Main.js";
|
|
31
31
|
import { equal as y } from "../../shared-utils/equal.js";
|
|
@@ -58,7 +58,9 @@ import "../../shared-utils/Utils/BaseUtil.js";
|
|
|
58
58
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
59
59
|
import "../../shared-utils/five/transformPosition.js";
|
|
60
60
|
import "../../shared-utils/three/temp.js";
|
|
61
|
+
import "../../shared-utils/three/core/Raycaster.js";
|
|
61
62
|
import "../../shared-utils/dom/resizeObserver.js";
|
|
63
|
+
import "../../shared-utils/five/fiveEveryReadyListener.js";
|
|
62
64
|
import "hammerjs";
|
|
63
65
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
64
66
|
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
@@ -79,77 +81,128 @@ import "../../shared-utils/three/core/Sphere.js";
|
|
|
79
81
|
import "animejs";
|
|
80
82
|
import "../../shared-utils/isNil.js";
|
|
81
83
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
82
|
-
import "../../
|
|
83
|
-
import "../../shared-utils/
|
|
84
|
+
import "../../Sculpt/Meshes/Polygon.js";
|
|
85
|
+
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
86
|
+
import "../../shared-utils/three/earcut3D.js";
|
|
87
|
+
import "earcut";
|
|
88
|
+
import "../../shared-utils/three/getNormal.js";
|
|
89
|
+
import "../../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
90
|
+
import "../../Sculpt/typings/style.js";
|
|
91
|
+
import "../../Sculpt/utils/three/ColoredMesh.js";
|
|
92
|
+
import "../../shared-utils/three/IObject3D.js";
|
|
93
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
94
|
+
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
95
|
+
import "../../Object3DHelperPlugin/Controller.js";
|
|
96
|
+
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
97
|
+
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
98
|
+
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
99
|
+
import "../../shared-utils/three/boundingBox.js";
|
|
100
|
+
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
101
|
+
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
102
|
+
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
103
|
+
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
104
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
84
105
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
85
106
|
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
86
107
|
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
108
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
109
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
110
|
+
import "../../shared-utils/util.js";
|
|
111
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
112
|
+
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
113
|
+
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
87
114
|
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
88
115
|
import "../../Sculpt/Meshes/Line.js";
|
|
89
|
-
import "../../Sculpt/typings/style.js";
|
|
90
116
|
import "../../shared-utils/five/FiveLine.js";
|
|
91
|
-
import "../../shared-utils/three/IObject3D.js";
|
|
92
117
|
import "../../Sculpt/utils/removeAllTag.js";
|
|
93
118
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
94
119
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
95
|
-
import "../../
|
|
120
|
+
import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
121
|
+
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
96
122
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
123
|
+
import "../../shared-utils/url/absoluteUrl.js";
|
|
124
|
+
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
125
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
126
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
127
|
+
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
128
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
129
|
+
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
130
|
+
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
131
|
+
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
132
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
133
|
+
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
134
|
+
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
135
|
+
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
136
|
+
import "../../shared-utils/Object3DHelper/index.js";
|
|
137
|
+
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
138
|
+
import "../../shared-utils/math/rad2Deg.js";
|
|
139
|
+
import "../../shared-utils/math/deg2Rad.js";
|
|
140
|
+
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
141
|
+
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
142
|
+
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
143
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
144
|
+
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
145
|
+
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
146
|
+
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
147
|
+
import "../../shared-utils/five/fiveModelLoad.js";
|
|
148
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
149
|
+
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
97
150
|
import "../../shared-utils/isTouchDevice.js";
|
|
151
|
+
import "../../shared-utils/three/geometryUtil.js";
|
|
98
152
|
import "../../shared-utils/five/getPosition.js";
|
|
99
153
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
100
154
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
101
|
-
import "../../shared-utils/url/absoluteUrl.js";
|
|
102
155
|
import "../Assets/floorplanExtraObject.js";
|
|
103
|
-
class
|
|
156
|
+
class Bi extends O {
|
|
104
157
|
constructor(t, i) {
|
|
105
158
|
super(t);
|
|
106
159
|
// =============== public properties =================
|
|
107
|
-
|
|
108
|
-
|
|
160
|
+
s(this, "name", "panoFloorplanRadarPlugin");
|
|
161
|
+
s(this, "state");
|
|
109
162
|
// =============== protected properties =================
|
|
110
|
-
|
|
163
|
+
s(this, "data");
|
|
111
164
|
// =============== private properties =================
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
165
|
+
s(this, "app");
|
|
166
|
+
s(this, "wrapperSelector", "");
|
|
167
|
+
s(this, "wrapper", null);
|
|
168
|
+
s(this, "disposed", !1);
|
|
169
|
+
s(this, "extraObjects", []);
|
|
170
|
+
s(this, "highlightData", {});
|
|
171
|
+
s(this, "dispose", () => {
|
|
119
172
|
var t;
|
|
120
173
|
this.disposed = !0, (t = this.app) == null || t.$destroy(), this.wrapper = null, this.wrapperSelector = "", this.hooks.emit("dispose");
|
|
121
174
|
});
|
|
122
|
-
|
|
175
|
+
s(this, "highlight", (t) => {
|
|
123
176
|
this.state.config.highlightEnable && (this.highlightData = t, this.render());
|
|
124
177
|
});
|
|
125
|
-
|
|
178
|
+
s(this, "unhighlight", () => {
|
|
126
179
|
this.highlightData = {}, this.render();
|
|
127
180
|
});
|
|
128
|
-
|
|
129
|
-
var
|
|
181
|
+
s(this, "_disable", (t) => {
|
|
182
|
+
var e;
|
|
130
183
|
const { userAction: i } = t;
|
|
131
|
-
(
|
|
184
|
+
(e = this.app) == null || e.$destroy(), this.app = void 0, this.hooks.emit("disable", { userAction: i });
|
|
132
185
|
});
|
|
133
186
|
this.five = t;
|
|
134
|
-
const
|
|
187
|
+
const e = {
|
|
135
188
|
hoverEnable: !0,
|
|
136
189
|
highlightEnable: !0,
|
|
137
190
|
cameraImageUrl: D,
|
|
138
191
|
missingFloorImageUrl: this.staticPrefix + "/release/web/saas/missing-floor.d687a5ed.png"
|
|
139
|
-
},
|
|
140
|
-
this.state = { enabled: !0, visible: !0, config:
|
|
192
|
+
}, p = n(n({}, e), i == null ? void 0 : i.configs);
|
|
193
|
+
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);
|
|
141
194
|
}
|
|
142
|
-
load(t, i,
|
|
143
|
-
return
|
|
144
|
-
function
|
|
145
|
-
return Object.prototype.hasOwnProperty.apply(
|
|
195
|
+
load(t, i, e = !0) {
|
|
196
|
+
return l(this, null, function* () {
|
|
197
|
+
function p(d) {
|
|
198
|
+
return Object.prototype.hasOwnProperty.apply(d, ["version"]);
|
|
146
199
|
}
|
|
147
|
-
const
|
|
148
|
-
this.data = yield b(
|
|
200
|
+
const a = JSON.parse(JSON.stringify(t)), m = p(a) ? a.data : a, h = this.data;
|
|
201
|
+
this.data = yield b(m), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, h), i && this.updateState(i, e), this.render();
|
|
149
202
|
});
|
|
150
203
|
}
|
|
151
204
|
show() {
|
|
152
|
-
return
|
|
205
|
+
return l(this, arguments, function* (t = {}) {
|
|
153
206
|
if (this.state.visible)
|
|
154
207
|
return;
|
|
155
208
|
const i = t.userAction !== void 0 ? t.userAction : !0;
|
|
@@ -157,7 +210,7 @@ class Ht extends O {
|
|
|
157
210
|
});
|
|
158
211
|
}
|
|
159
212
|
hide() {
|
|
160
|
-
return
|
|
213
|
+
return l(this, arguments, function* (t = {}) {
|
|
161
214
|
if (!this.state.visible)
|
|
162
215
|
return;
|
|
163
216
|
const i = t.userAction !== void 0 ? t.userAction : !0;
|
|
@@ -178,14 +231,14 @@ class Ht extends O {
|
|
|
178
231
|
}
|
|
179
232
|
/** 更改插件 State */
|
|
180
233
|
setState(t, i = {}) {
|
|
181
|
-
const
|
|
182
|
-
if (this.updateState(t,
|
|
183
|
-
const
|
|
184
|
-
t.enabled ? this._enable(
|
|
234
|
+
const e = this.state, p = i.userAction !== void 0 ? i.userAction : !0;
|
|
235
|
+
if (this.updateState(t, p), t.enabled !== void 0 && e.enabled !== t.enabled) {
|
|
236
|
+
const a = { userAction: p };
|
|
237
|
+
t.enabled ? this._enable(a) : this._disable(a);
|
|
185
238
|
}
|
|
186
|
-
if (t.visible !== void 0 &&
|
|
187
|
-
const
|
|
188
|
-
t.visible ? this._show(
|
|
239
|
+
if (t.visible !== void 0 && e.visible !== t.visible) {
|
|
240
|
+
const a = { userAction: p };
|
|
241
|
+
t.visible ? this._show(a) : this._hide(a);
|
|
189
242
|
}
|
|
190
243
|
}
|
|
191
244
|
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
@@ -199,7 +252,7 @@ class Ht extends O {
|
|
|
199
252
|
this.data && (this.extraObjects = x(t, this.five, this.data), this.render());
|
|
200
253
|
}
|
|
201
254
|
formatData(t) {
|
|
202
|
-
return
|
|
255
|
+
return l(this, null, function* () {
|
|
203
256
|
return yield b(t.data);
|
|
204
257
|
});
|
|
205
258
|
}
|
|
@@ -220,8 +273,8 @@ class Ht extends O {
|
|
|
220
273
|
this.hooks.emit("hide", { userAction: i }), this.render();
|
|
221
274
|
}
|
|
222
275
|
updateState(t, i) {
|
|
223
|
-
const
|
|
224
|
-
this.state = u(n(n({}, this.state), t), { config:
|
|
276
|
+
const e = this.state, p = t.config ? n(n({}, e.config), t.config) : e.config;
|
|
277
|
+
this.state = u(n(n({}, this.state), t), { config: p }), !y(this.state, e, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: e, userAction: i });
|
|
225
278
|
}
|
|
226
279
|
render() {
|
|
227
280
|
if (this.disposed || !this.state.enabled)
|
|
@@ -243,5 +296,5 @@ class Ht extends O {
|
|
|
243
296
|
}
|
|
244
297
|
}
|
|
245
298
|
export {
|
|
246
|
-
|
|
299
|
+
Bi as Controller
|
|
247
300
|
};
|
|
@@ -29,7 +29,9 @@ import "../../shared-utils/Utils/BaseUtil.js";
|
|
|
29
29
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
30
30
|
import "../../shared-utils/five/transformPosition.js";
|
|
31
31
|
import "../../shared-utils/three/temp.js";
|
|
32
|
+
import "../../shared-utils/three/core/Raycaster.js";
|
|
32
33
|
import "../../shared-utils/dom/resizeObserver.js";
|
|
34
|
+
import "../../shared-utils/five/fiveEveryReadyListener.js";
|
|
33
35
|
import "hammerjs";
|
|
34
36
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
35
37
|
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
@@ -50,30 +52,81 @@ import "../../shared-utils/three/core/Sphere.js";
|
|
|
50
52
|
import "animejs";
|
|
51
53
|
import "../../shared-utils/isNil.js";
|
|
52
54
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
53
|
-
import "../../
|
|
54
|
-
import "../../shared-utils/
|
|
55
|
+
import "../../Sculpt/Meshes/Polygon.js";
|
|
56
|
+
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
57
|
+
import "../../shared-utils/three/earcut3D.js";
|
|
58
|
+
import "earcut";
|
|
59
|
+
import "../../shared-utils/three/getNormal.js";
|
|
60
|
+
import "../../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
61
|
+
import "../../Sculpt/typings/style.js";
|
|
62
|
+
import "../../Sculpt/utils/three/ColoredMesh.js";
|
|
63
|
+
import "../../shared-utils/three/IObject3D.js";
|
|
64
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
65
|
+
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
66
|
+
import "../../Object3DHelperPlugin/Controller.js";
|
|
67
|
+
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
68
|
+
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
69
|
+
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
70
|
+
import "../../shared-utils/three/boundingBox.js";
|
|
71
|
+
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
72
|
+
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
73
|
+
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
74
|
+
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
75
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
55
76
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
56
77
|
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
57
78
|
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
79
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
80
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
81
|
+
import "../../shared-utils/util.js";
|
|
82
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
83
|
+
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
84
|
+
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
58
85
|
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
59
86
|
import "../../Sculpt/Meshes/Line.js";
|
|
60
|
-
import "../../Sculpt/typings/style.js";
|
|
61
87
|
import "../../shared-utils/five/FiveLine.js";
|
|
62
|
-
import "../../shared-utils/three/IObject3D.js";
|
|
63
88
|
import "../../Sculpt/utils/removeAllTag.js";
|
|
64
89
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
65
90
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
66
|
-
import "../../
|
|
91
|
+
import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
92
|
+
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
67
93
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.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 "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
107
|
+
import "../../shared-utils/Object3DHelper/index.js";
|
|
108
|
+
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
109
|
+
import "../../shared-utils/math/rad2Deg.js";
|
|
110
|
+
import "../../shared-utils/math/deg2Rad.js";
|
|
111
|
+
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
112
|
+
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
113
|
+
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
114
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
115
|
+
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
116
|
+
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
117
|
+
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
118
|
+
import "../../shared-utils/five/fiveModelLoad.js";
|
|
119
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
120
|
+
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
68
121
|
import "../../shared-utils/isTouchDevice.js";
|
|
122
|
+
import "../../shared-utils/three/geometryUtil.js";
|
|
69
123
|
import "../../shared-utils/five/getPosition.js";
|
|
70
124
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
71
125
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
72
|
-
import "../../shared-utils/url/absoluteUrl.js";
|
|
73
126
|
import "../utils/formatData.js";
|
|
74
127
|
import "../Assets/floorplanExtraObject.js";
|
|
75
|
-
const
|
|
128
|
+
const hr = (o, r) => new t(o, r);
|
|
76
129
|
export {
|
|
77
|
-
|
|
78
|
-
|
|
130
|
+
hr as PanoFloorplanRadarPlugin,
|
|
131
|
+
hr as default
|
|
79
132
|
};
|