@realsee/dnalogel 3.47.13 → 3.47.15
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 +8 -0
- package/dist/PanoTagPlugin/utils/requestIdleCallback.d.ts +1 -1
- package/dist/Sculpt/Meshes/Line.d.ts +1 -0
- package/dist/Sculpt/Meshes/Polygon.d.ts +2 -1
- package/dist/index.cjs.js +53 -53
- package/dist/index.js +18650 -18640
- package/dist/index.umd.js +47 -47
- package/libs/AreaMakerPlugin/Controller.js +78 -150
- package/libs/AreaMakerPlugin/index.js +3 -75
- package/libs/AreaMakerPlugin/utils/Item.js +111 -185
- package/libs/CSS3DRenderPlugin/Controller.js +29 -86
- package/libs/CSS3DRenderPlugin/index.js +12 -69
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +58 -127
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +113 -174
- package/libs/CruisePlugin/BaseController.js +50 -122
- package/libs/CruisePlugin/Move.js +21 -74
- package/libs/CruisePlugin/Work.js +46 -99
- package/libs/CruisePlugin/index.js +26 -79
- package/libs/CurrentPanoImagePlugin/Controller.js +104 -176
- package/libs/CurrentPanoImagePlugin/index.js +4 -76
- package/libs/GuideLinePlugin/Controller.js +26 -79
- package/libs/GuideLinePlugin/GuideLineItem.js +24 -77
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +2 -3
- package/libs/GuideLinePlugin/GuideLineModeItem.js +22 -75
- package/libs/GuideLinePlugin/index.js +26 -79
- package/libs/ModelMakerPlugin/Controller.js +83 -139
- package/libs/ModelMakerPlugin/index.js +16 -72
- package/libs/ModelTVVideoPlugin/Plugin.js +48 -105
- package/libs/ModelTVVideoPlugin/index.js +7 -64
- package/libs/Object3DHelperPlugin/Controller.js +32 -56
- package/libs/Object3DHelperPlugin/index.js +12 -35
- package/libs/PanoCompassPlugin/Controller.js +37 -93
- package/libs/PanoCompassPlugin/index.js +11 -67
- package/libs/PanoDoorLabelPlugin/BaseController.js +25 -97
- package/libs/PanoDoorLabelPlugin/Controller.js +115 -187
- package/libs/PanoDoorLabelPlugin/index.js +4 -76
- package/libs/PanoMeasurePlugin/Components/Controller0.js +83 -128
- package/libs/PanoMeasurePlugin/Components/Controller1.js +96 -141
- package/libs/PanoMeasurePlugin/Controller/EditController.js +66 -111
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +51 -121
- package/libs/PanoMeasurePlugin/Controller/index.js +59 -101
- package/libs/PanoMeasurePlugin/Model/area.js +21 -91
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +0 -73
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +27 -72
- package/libs/PanoMeasurePlugin/index.js +25 -67
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +17 -89
- package/libs/PanoSpatialTagPlugin/Plugin.js +106 -163
- package/libs/PanoSpatialTagPlugin/index.js +5 -62
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +67 -141
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +208 -281
- package/libs/PanoTagPlugin/Components/Tag/index.js +180 -251
- package/libs/PanoTagPlugin/Components/TagContainer.js +80 -151
- package/libs/PanoTagPlugin/Components/TagItem.js +67 -138
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +61 -132
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +28 -99
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +30 -101
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +36 -107
- package/libs/PanoTagPlugin/controller/TagRender.js +68 -121
- package/libs/PanoTagPlugin/controller/TagUtil.js +79 -132
- package/libs/PanoTagPlugin/controller/index.js +55 -108
- package/libs/PanoTagPlugin/index.js +31 -84
- package/libs/PanoTagPlugin/utils/requestIdleCallback.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/requestIdleCallback.js +5 -13
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +30 -104
- package/libs/PanoVideoPlugin/Controller.js +64 -136
- package/libs/PanoVideoPlugin/VideoMeshController.js +74 -148
- package/libs/PanoVideoPlugin/index.js +8 -80
- package/libs/PipelinePlugin/Controller.js +128 -199
- package/libs/PipelinePlugin/index.js +5 -76
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +17 -91
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +14 -88
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +56 -130
- package/libs/Sculpt/Meshes/Box.js +5 -6
- package/libs/Sculpt/Meshes/Cylinder.js +2 -3
- package/libs/Sculpt/Meshes/Line.d.ts +1 -0
- package/libs/Sculpt/Meshes/Line.js +50 -41
- package/libs/Sculpt/Meshes/Point.js +9 -10
- package/libs/Sculpt/Meshes/Polygon.d.ts +2 -1
- package/libs/Sculpt/Meshes/Polygon.js +47 -37
- package/libs/Sculpt/Meshes/Polyline.js +18 -16
- package/libs/Sculpt/Meshes/Rectangle.js +3 -4
- package/libs/Sculpt/Objects/Line/Editor.js +2 -3
- package/libs/Sculpt/Objects/Rectangle/index.js +1 -1
- package/libs/Sculpt/utils/removeAllTag.js +4 -4
- package/libs/Sculpt/utils/three/ColoredMesh.js +3 -4
- package/libs/base/BasePlugin.js +3 -4
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +59 -128
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -75
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +59 -129
- package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -75
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +62 -134
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -76
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +81 -151
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -75
- package/libs/floorplan/index.js +0 -1
- package/libs/index.js +62 -62
- package/libs/shared-utils/five/index.js +2 -3
- package/libs/shared-utils/five/lookObject.js +17 -18
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/index.js +0 -1
- package/package.json +1 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
var H = Object.defineProperty;
|
|
2
2
|
var P = Object.getOwnPropertySymbols;
|
|
3
3
|
var L = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var w = (
|
|
5
|
-
for (var
|
|
6
|
-
L.call(o,
|
|
4
|
+
var w = (h, o, e) => o in h ? H(h, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[o] = e, E = (h, o) => {
|
|
5
|
+
for (var e in o || (o = {}))
|
|
6
|
+
L.call(o, e) && w(h, e, o[e]);
|
|
7
7
|
if (P)
|
|
8
|
-
for (var
|
|
9
|
-
S.call(o,
|
|
10
|
-
return
|
|
8
|
+
for (var e of P(o))
|
|
9
|
+
S.call(o, e) && w(h, e, o[e]);
|
|
10
|
+
return h;
|
|
11
11
|
};
|
|
12
|
-
var n = (
|
|
13
|
-
var F = (
|
|
14
|
-
var
|
|
12
|
+
var n = (h, o, e) => (w(h, typeof o != "symbol" ? o + "" : o, e), e);
|
|
13
|
+
var F = (h, o, e) => new Promise((t, r) => {
|
|
14
|
+
var p = (l) => {
|
|
15
15
|
try {
|
|
16
|
-
i(
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
16
|
+
i(e.next(l));
|
|
17
|
+
} catch (m) {
|
|
18
|
+
r(m);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, a = (l) => {
|
|
21
21
|
try {
|
|
22
|
-
i(
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
22
|
+
i(e.throw(l));
|
|
23
|
+
} catch (m) {
|
|
24
|
+
r(m);
|
|
25
25
|
}
|
|
26
|
-
}, i = (
|
|
27
|
-
i((
|
|
26
|
+
}, i = (l) => l.done ? t(l.value) : Promise.resolve(l.value).then(p, a);
|
|
27
|
+
i((e = e.apply(h, o)).next());
|
|
28
28
|
});
|
|
29
29
|
import { Controller as z } from "../base/BasePluginWithData.js";
|
|
30
|
-
import * as
|
|
30
|
+
import * as c from "three";
|
|
31
31
|
import { ModelMakerBoxItem as B } from "./item/boxItem.js";
|
|
32
32
|
import { PrismMesh as A } from "../Sculpt/Meshes/Prism.js";
|
|
33
33
|
import { anyPositionToVector3 as O } from "../shared-utils/positionToVector3.js";
|
|
@@ -36,7 +36,6 @@ import "hammerjs";
|
|
|
36
36
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
37
37
|
import "@realsee/five/line";
|
|
38
38
|
import "../shared-utils/tag.js";
|
|
39
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
40
39
|
import { boxVertex as g } from "../shared-utils/three/boundingBox.js";
|
|
41
40
|
import "animejs";
|
|
42
41
|
import { notNil as I } from "../shared-utils/isNil.js";
|
|
@@ -78,77 +77,22 @@ import "../Sculpt/Meshes/Point.js";
|
|
|
78
77
|
import "../shared-utils/three/closeVectors.js";
|
|
79
78
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
80
79
|
import "../shared-utils/three/temp.js";
|
|
81
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
82
|
-
import "../Object3DHelperPlugin/Controller.js";
|
|
83
|
-
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
84
|
-
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
85
|
-
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
86
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
87
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
88
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
89
|
-
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
90
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
91
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
92
|
-
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
93
|
-
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
94
|
-
import "../CSS3DRenderPlugin/utils/even.js";
|
|
95
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
96
|
-
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
97
|
-
import "../shared-utils/three/getObjectVisible.js";
|
|
98
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
99
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
100
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
101
|
-
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
102
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
103
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
104
|
-
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
105
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
106
|
-
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
107
|
-
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
108
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
109
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
110
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
111
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
112
|
-
import "../Sculpt/utils/three/rayOnLine.js";
|
|
113
|
-
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
114
|
-
import "../shared-utils/Object3DHelper/index.js";
|
|
115
|
-
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
116
|
-
import "../shared-utils/math/rad2Deg.js";
|
|
117
|
-
import "../shared-utils/math/deg2Rad.js";
|
|
118
|
-
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
119
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
120
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
121
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
122
|
-
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
123
|
-
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
124
|
-
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
125
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
126
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
127
|
-
import "../shared-utils/three/PointSelector/index.js";
|
|
128
|
-
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
129
|
-
import "../shared-utils/three/Magnifier.js";
|
|
130
|
-
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
131
|
-
import "../shared-utils/three/Assets/index.js";
|
|
132
|
-
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
133
|
-
import "../shared-utils/five/initialCSS3DRender.js";
|
|
134
|
-
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
135
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
136
|
-
import "../shared-utils/isTouchDevice.js";
|
|
137
|
-
import "../shared-utils/five/getPosition.js";
|
|
138
|
-
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
139
80
|
import "./utils/Text.js";
|
|
140
81
|
import "../vendor/svelte/internal/index.js";
|
|
141
82
|
import "../components/AreaLabel/LabelItem.js";
|
|
142
83
|
import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
143
84
|
import "./item/baseItem.js";
|
|
144
85
|
import "../shared-utils/three/addIfNotExists.js";
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
86
|
+
import "../shared-utils/five/FiveDomEvents.js";
|
|
87
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
88
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
89
|
+
class tt extends z {
|
|
90
|
+
constructor(e, t) {
|
|
91
|
+
var r, p;
|
|
92
|
+
super(e);
|
|
149
93
|
n(this, "state");
|
|
150
94
|
n(this, "items", []);
|
|
151
|
-
n(this, "group", new
|
|
95
|
+
n(this, "group", new c.Group());
|
|
152
96
|
n(this, "data");
|
|
153
97
|
n(this, "tagRendererMap", {});
|
|
154
98
|
n(this, "fiveDomEvents");
|
|
@@ -156,123 +100,123 @@ class oi extends z {
|
|
|
156
100
|
n(this, "tagWrapper");
|
|
157
101
|
n(this, "occlusionVisibility");
|
|
158
102
|
n(this, "occlusionMode");
|
|
159
|
-
n(this, "onFiveModeChange", (
|
|
160
|
-
const
|
|
161
|
-
Array.isArray(
|
|
162
|
-
|
|
103
|
+
n(this, "onFiveModeChange", (e) => {
|
|
104
|
+
const t = this.occlusionVisibility;
|
|
105
|
+
Array.isArray(t) && this.items.forEach((r) => {
|
|
106
|
+
r.model.setStyle instanceof Function && r.model.setStyle({ occlusionVisibility: t.includes(e) });
|
|
163
107
|
});
|
|
164
108
|
});
|
|
165
109
|
n(this, "handleEnable", () => {
|
|
166
|
-
var
|
|
167
|
-
this.five.scene.add(this.group), (
|
|
110
|
+
var e, t;
|
|
111
|
+
this.five.scene.add(this.group), (t = (e = this.five.getElement()) == null ? void 0 : e.parentElement) == null || t.appendChild(this.tagWrapper), this.five.needsRender = !0, this.onFiveModeChange(this.five.getCurrentState().mode), this.five.on("modeChange", this.onFiveModeChange);
|
|
168
112
|
});
|
|
169
113
|
n(this, "handleDisable", () => {
|
|
170
114
|
this.five.scene.remove(this.group), this.tagWrapper.remove(), this.five.needsRender = !0, this.five.off("modeChange", this.onFiveModeChange);
|
|
171
115
|
});
|
|
172
116
|
n(this, "updateTagRenderer", () => {
|
|
173
|
-
this.items.forEach((
|
|
174
|
-
var
|
|
175
|
-
const
|
|
176
|
-
|
|
117
|
+
this.items.forEach((e) => {
|
|
118
|
+
var r;
|
|
119
|
+
const t = (r = this.tagRendererMap[e.type]) != null ? r : q[e.type];
|
|
120
|
+
t && e.__renderer !== t && (e.__renderer = t, typeof e.__disposeRenderer == "function" && e.__disposeRenderer(), e.tag.container.innerHTML = "", e.__disposeRenderer = t(e.tag.container, e));
|
|
177
121
|
});
|
|
178
122
|
});
|
|
179
|
-
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.occlusionVisibility = (
|
|
123
|
+
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.occlusionVisibility = (r = t == null ? void 0 : t.occlusionVisibility) != null ? r : !1, this.occlusionMode = (p = t == null ? void 0 : t.occlusionMode) != null ? p : "translucence", this.fiveDomEvents = Y(e), this.tagWrapper = (() => {
|
|
180
124
|
var i;
|
|
181
|
-
const
|
|
182
|
-
return
|
|
183
|
-
})(),
|
|
125
|
+
const a = document.createElement("div");
|
|
126
|
+
return a.style.position = "absolute", a.style.top = "0", a.style.left = "0", a.style.width = "100%", a.style.height = "100%", a.style.pointerEvents = "none", a.style.zIndex = `${(i = t == null ? void 0 : t.tagContainerZIndex) != null ? i : ""}`, a;
|
|
127
|
+
})(), e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
|
|
184
128
|
}
|
|
185
|
-
load(
|
|
129
|
+
load(e) {
|
|
186
130
|
return F(this, null, function* () {
|
|
187
|
-
var
|
|
188
|
-
if (this.clear(), this.data =
|
|
131
|
+
var a;
|
|
132
|
+
if (this.clear(), this.data = e, yield $(this.five), this.data !== e)
|
|
189
133
|
return;
|
|
190
134
|
this.clear();
|
|
191
|
-
const
|
|
192
|
-
(
|
|
193
|
-
var
|
|
135
|
+
const t = typeof this.occlusionVisibility == "boolean" ? this.occlusionVisibility : !1, r = this.occlusionMode, p = 1.6;
|
|
136
|
+
(a = e == null ? void 0 : e.list) == null || a.forEach((i) => {
|
|
137
|
+
var l, m, _;
|
|
194
138
|
if (i.type === "triangles") {
|
|
195
|
-
const
|
|
196
|
-
|
|
139
|
+
const s = new Q();
|
|
140
|
+
s.setPoints(i.object_data.points), s.setStyle({
|
|
197
141
|
color: i.object_data.color,
|
|
198
|
-
opacity: ((
|
|
142
|
+
opacity: ((l = i.object_data.opacity) != null ? l : 0.4) / 2,
|
|
199
143
|
lineColor: i.object_data.color,
|
|
200
|
-
lineWidth:
|
|
201
|
-
occlusionVisibility:
|
|
202
|
-
occlusionMode:
|
|
203
|
-
}), this.fiveDomEvents.addEventListener(
|
|
204
|
-
const
|
|
144
|
+
lineWidth: p,
|
|
145
|
+
occlusionVisibility: t,
|
|
146
|
+
occlusionMode: r
|
|
147
|
+
}), this.fiveDomEvents.addEventListener(s, "hover", () => s.highlight()), this.fiveDomEvents.addEventListener(s, "unHover", () => s.unhighlight());
|
|
148
|
+
const d = new U({
|
|
205
149
|
five: this.five,
|
|
206
150
|
tagWrapper: this.tagWrapper,
|
|
207
|
-
model:
|
|
151
|
+
model: s,
|
|
208
152
|
group: this.group,
|
|
209
153
|
type: i.type,
|
|
210
154
|
rawData: i
|
|
211
155
|
});
|
|
212
|
-
this.items.push(
|
|
156
|
+
this.items.push(d);
|
|
213
157
|
} else if (i.type === "prism") {
|
|
214
|
-
const
|
|
158
|
+
const s = new A();
|
|
215
159
|
this.zFightingOffset += 1e-4;
|
|
216
|
-
const
|
|
160
|
+
const d = i.object_data.points.map((u) => {
|
|
217
161
|
var y;
|
|
218
162
|
return [u[0], u[1] + ((y = i.object_data.fixedY) != null ? y : 0), u[2]];
|
|
219
163
|
});
|
|
220
|
-
|
|
221
|
-
const v = i.object_data.height + ((
|
|
222
|
-
|
|
164
|
+
d.push(d[0]);
|
|
165
|
+
const v = i.object_data.height + ((m = i.object_data.fixedHeight) != null ? m : 0) + this.zFightingOffset, M = O(d[0]).add(new c.Vector3().setY(v));
|
|
166
|
+
s.setPoints({ points: d, heightPoint: M }), s.setStyle({
|
|
223
167
|
color: i.object_data.color,
|
|
224
168
|
opacity: ((_ = i.object_data.opacity) != null ? _ : 0.4) / 2,
|
|
225
169
|
lineColor: i.object_data.color,
|
|
226
|
-
lineWidth:
|
|
227
|
-
occlusionVisibility:
|
|
228
|
-
occlusionMode:
|
|
170
|
+
lineWidth: p,
|
|
171
|
+
occlusionVisibility: t,
|
|
172
|
+
occlusionMode: r
|
|
229
173
|
});
|
|
230
174
|
const f = new G({
|
|
231
175
|
five: this.five,
|
|
232
176
|
tagWrapper: this.tagWrapper,
|
|
233
|
-
model:
|
|
177
|
+
model: s,
|
|
234
178
|
group: this.group,
|
|
235
179
|
type: i.type,
|
|
236
180
|
rawData: i
|
|
237
181
|
});
|
|
238
182
|
this.items.push(f);
|
|
239
183
|
} else if (i.type === "box") {
|
|
240
|
-
const
|
|
241
|
-
|
|
184
|
+
const s = new A(), { start: d, end: v, rotation: M = [0, 0, 0, 0], opacity: f, color: u } = i.object_data, y = new c.Vector3().fromArray(d), R = new c.Vector3().fromArray(v), T = new c.Euler().fromArray(M), x = new c.Quaternion().setFromEuler(T), C = x.clone().inverse(), V = new c.Vector3().lerpVectors(y, R, 0.5), W = V.clone().negate(), j = y.clone().add(W).applyQuaternion(C), k = R.clone().add(W).applyQuaternion(C), b = new c.Box3(j.clone().max(k), j.clone().min(k));
|
|
185
|
+
s.setPoints({
|
|
242
186
|
points: [g(b, 2), g(b, 3), g(b, 7), g(b, 6), g(b, 2)],
|
|
243
187
|
heightPoint: g(b, 0)
|
|
244
|
-
}),
|
|
188
|
+
}), s.position.copy(V), s.quaternion.copy(x), s.setStyle({
|
|
245
189
|
color: u,
|
|
246
190
|
opacity: (f != null ? f : 0.4) / 2,
|
|
247
191
|
lineColor: u,
|
|
248
|
-
lineWidth:
|
|
249
|
-
occlusionVisibility:
|
|
250
|
-
occlusionMode:
|
|
192
|
+
lineWidth: p,
|
|
193
|
+
occlusionVisibility: t,
|
|
194
|
+
occlusionMode: r
|
|
251
195
|
});
|
|
252
196
|
const D = new B({
|
|
253
197
|
five: this.five,
|
|
254
198
|
tagWrapper: this.tagWrapper,
|
|
255
|
-
model:
|
|
199
|
+
model: s,
|
|
256
200
|
group: this.group,
|
|
257
201
|
type: i.type,
|
|
258
202
|
rawData: i
|
|
259
203
|
});
|
|
260
204
|
this.items.push(D);
|
|
261
205
|
}
|
|
262
|
-
}), this.five.needsRender = !0, this.state.enabled ? this.handleEnable() : this.handleDisable(), this.state.visible ? this.handleShow() : this.handleHide(), this.updateTagRenderer(), this.hooks.emit("dataLoaded",
|
|
206
|
+
}), this.five.needsRender = !0, this.state.enabled ? this.handleEnable() : this.handleDisable(), this.state.visible ? this.handleShow() : this.handleHide(), this.updateTagRenderer(), this.hooks.emit("dataLoaded", e);
|
|
263
207
|
});
|
|
264
208
|
}
|
|
265
|
-
setState(
|
|
266
|
-
I(
|
|
209
|
+
setState(e) {
|
|
210
|
+
I(e.enabled) && this.state.enabled !== e.enabled && (this.state.enabled = e.enabled, e.enabled ? this.handleEnable() : this.handleDisable(), this.hooks.emit(e.enabled ? "enable" : "disable", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" })), I(e.visible) && this.state.visible !== e.visible && (this.state.visible = e.visible, e.visible ? this.handleShow() : this.handleHide(), this.hooks.emit(e.visible ? "show" : "hide", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" }));
|
|
267
211
|
}
|
|
268
|
-
getItemById(
|
|
269
|
-
return this.items.find((
|
|
212
|
+
getItemById(e) {
|
|
213
|
+
return this.items.find((t) => t.rawData.id === e);
|
|
270
214
|
}
|
|
271
|
-
registerTagRenderer(
|
|
272
|
-
this.tagRendererMap = E(E({}, this.tagRendererMap),
|
|
215
|
+
registerTagRenderer(e) {
|
|
216
|
+
this.tagRendererMap = E(E({}, this.tagRendererMap), e), this.updateTagRenderer();
|
|
273
217
|
}
|
|
274
|
-
hasCustomTagRenderer(
|
|
275
|
-
return !!this.tagRendererMap[
|
|
218
|
+
hasCustomTagRenderer(e) {
|
|
219
|
+
return !!this.tagRendererMap[e];
|
|
276
220
|
}
|
|
277
221
|
enable() {
|
|
278
222
|
this.setState({ enabled: !0 });
|
|
@@ -303,5 +247,5 @@ class oi extends z {
|
|
|
303
247
|
}
|
|
304
248
|
}
|
|
305
249
|
export {
|
|
306
|
-
|
|
250
|
+
tt as Controller
|
|
307
251
|
};
|
|
@@ -15,88 +15,31 @@ import "../shared-utils/Utils/BaseUtil.js";
|
|
|
15
15
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
16
16
|
import "../shared-utils/five/transformPosition.js";
|
|
17
17
|
import "../shared-utils/three/temp.js";
|
|
18
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
19
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
20
|
-
import "../Object3DHelperPlugin/Controller.js";
|
|
21
18
|
import "../shared-utils/three/THREESphere.js";
|
|
22
|
-
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
23
|
-
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
24
|
-
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
25
|
-
import "../shared-utils/three/IObject3D.js";
|
|
26
|
-
import "../shared-utils/three/boundingBox.js";
|
|
27
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
28
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
29
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
30
|
-
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
31
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
32
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
33
|
-
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
34
|
-
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
35
|
-
import "../CSS3DRenderPlugin/utils/even.js";
|
|
36
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
37
|
-
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
38
|
-
import "../shared-utils/three/centerPoint.js";
|
|
39
|
-
import "../shared-utils/three/getObjectVisible.js";
|
|
40
19
|
import "animejs";
|
|
41
|
-
import "../shared-utils/isNil.js";
|
|
42
|
-
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
43
20
|
import "../shared-utils/url/absoluteUrl.js";
|
|
44
|
-
import "../
|
|
45
|
-
import "
|
|
46
|
-
import "
|
|
47
|
-
import "
|
|
48
|
-
import "../shared-utils/
|
|
49
|
-
import "../shared-utils/
|
|
50
|
-
import "
|
|
51
|
-
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
52
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
53
|
-
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
54
|
-
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
55
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
56
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
57
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
58
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
59
|
-
import "../Sculpt/utils/three/rayOnLine.js";
|
|
60
|
-
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
61
|
-
import "../shared-utils/Object3DHelper/index.js";
|
|
62
|
-
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
63
|
-
import "../shared-utils/math/rad2Deg.js";
|
|
64
|
-
import "../shared-utils/math/deg2Rad.js";
|
|
65
|
-
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
66
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
67
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
68
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
69
|
-
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
70
|
-
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
71
|
-
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
72
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
21
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
22
|
+
import "./item/boxItem.js";
|
|
23
|
+
import "./item/polygonItem.js";
|
|
24
|
+
import "./item/baseItem.js";
|
|
25
|
+
import "../shared-utils/three/addIfNotExists.js";
|
|
26
|
+
import "../shared-utils/three/boundingBox.js";
|
|
27
|
+
import "./utils/getFiveDomEvent.js";
|
|
73
28
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
29
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
74
30
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
75
31
|
import "../shared-utils/three/THREERaycaster.js";
|
|
76
|
-
import "../
|
|
77
|
-
import "../shared-utils/three/
|
|
78
|
-
import "../shared-utils/three/Magnifier.js";
|
|
79
|
-
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
80
|
-
import "../shared-utils/three/Assets/index.js";
|
|
81
|
-
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
82
|
-
import "../shared-utils/five/initialCSS3DRender.js";
|
|
83
|
-
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
32
|
+
import "../Sculpt/Meshes/Prism.js";
|
|
33
|
+
import "../shared-utils/three/IObject3D.js";
|
|
84
34
|
import "../Sculpt/Meshes/Line.js";
|
|
85
35
|
import "../Sculpt/typings/style.js";
|
|
86
36
|
import "../shared-utils/five/FiveLine.js";
|
|
37
|
+
import "../shared-utils/three/centerPoint.js";
|
|
87
38
|
import "../Sculpt/utils/removeAllTag.js";
|
|
88
39
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
89
40
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
90
|
-
import "../
|
|
91
|
-
import "../shared-utils/
|
|
92
|
-
import "../shared-utils/five/getPosition.js";
|
|
93
|
-
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
94
|
-
import "./item/boxItem.js";
|
|
95
|
-
import "./item/polygonItem.js";
|
|
96
|
-
import "./item/baseItem.js";
|
|
97
|
-
import "../shared-utils/three/addIfNotExists.js";
|
|
98
|
-
import "./utils/getFiveDomEvent.js";
|
|
99
|
-
import "../Sculpt/Meshes/Prism.js";
|
|
41
|
+
import "../shared-utils/util.js";
|
|
42
|
+
import "../shared-utils/isNil.js";
|
|
100
43
|
import "../Sculpt/Meshes/Polygon.js";
|
|
101
44
|
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
102
45
|
import "../shared-utils/three/earcut3D.js";
|
|
@@ -115,7 +58,8 @@ import "../vendor/svelte/internal/index.js";
|
|
|
115
58
|
import "../components/AreaLabel/LabelItem.js";
|
|
116
59
|
import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
117
60
|
import "./item/prismItem.js";
|
|
118
|
-
|
|
61
|
+
import "../shared-utils/five/fiveModelLoad.js";
|
|
62
|
+
const Mo = (...o) => new r(...o);
|
|
119
63
|
export {
|
|
120
|
-
|
|
64
|
+
Mo as ModelMakerPlugin
|
|
121
65
|
};
|