@realsee/dnalogel 3.77.5 → 3.77.7
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 +17 -11
- package/dist/PanoTagPlugin/controller/Tag/BaseTag.d.ts +5 -1
- package/dist/PanoTagPlugin/controller/Tag/BoxTag.d.ts +119 -0
- package/dist/PanoTagPlugin/controller/Tag/MaskTag.d.ts +257 -0
- package/dist/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +10 -0
- package/dist/PanoTagPlugin/controller/Tag/PolygonTag.d.ts +112 -0
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/index.d.ts +55 -2
- package/dist/PanoTagPlugin/typings/controller.d.ts +10 -0
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +8 -3
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +50 -1
- package/dist/PanoTagPlugin/utils/sculptDataToBoxPosition.d.ts +6 -0
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +6 -0
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +12 -3
- package/dist/Sculpt/Meshes/Line.d.ts +4 -0
- package/dist/index.cjs.js +178 -95
- package/dist/index.js +11378 -9801
- package/dist/index.umd.js +173 -90
- package/dist/shared-utils/five/getFiveFromParentChain.d.ts +7 -0
- package/libs/AreaMakerPlugin/Controller.js +3 -2
- package/libs/AreaMakerPlugin/index.js +3 -2
- package/libs/AreaMakerPlugin/utils/Item.js +3 -2
- package/libs/CSS3DRenderPlugin/Controller.js +3 -2
- package/libs/CSS3DRenderPlugin/index.js +6 -5
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +39 -38
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +10 -9
- package/libs/CruisePlugin/BaseController.js +5 -4
- package/libs/CruisePlugin/Move.js +8 -2
- package/libs/CruisePlugin/Work.js +8 -2
- package/libs/CruisePlugin/index.js +12 -6
- package/libs/CurrentPanoImagePlugin/Controller.js +15 -14
- package/libs/CurrentPanoImagePlugin/index.js +4 -3
- package/libs/GuideLinePlugin/Controller.js +10 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +8 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +8 -2
- package/libs/GuideLinePlugin/index.js +12 -6
- package/libs/MeasurePlugin/Controller.js +11 -10
- package/libs/MeasurePlugin/index.js +5 -4
- package/libs/MeasurePlugin/utils/MeasureMesh.js +3 -2
- package/libs/ModelChassisCompassPlugin/Plugin.js +4 -3
- package/libs/ModelChassisCompassPlugin/index.js +1 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +6 -5
- package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
- package/libs/ModelMakerPlugin/Controller.js +3 -2
- package/libs/ModelMakerPlugin/index.js +3 -2
- package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
- package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
- package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
- package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
- package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
- package/libs/ModelTVVideoPlugin/index.js +3 -2
- package/libs/ModelViewPlugin/Plugin.js +20 -19
- package/libs/ModelViewPlugin/index.js +1 -0
- package/libs/Object3DHelperPlugin/Controller.js +3 -2
- package/libs/Object3DHelperPlugin/index.js +6 -5
- package/libs/PanoCompassPlugin/Controller.js +3 -2
- package/libs/PanoCompassPlugin/index.js +4 -3
- package/libs/PanoDoorLabelPlugin/Controller.js +24 -23
- package/libs/PanoDoorLabelPlugin/index.js +4 -3
- package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
- package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/index.js +3 -2
- package/libs/PanoMeasurePlugin/Model/area.js +3 -2
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +16 -15
- package/libs/PanoMeasurePlugin/index.js +14 -13
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
- package/libs/PanoRulerProPlugin/Controller.js +3 -2
- package/libs/PanoRulerProPlugin/RulerItems.js +42 -41
- package/libs/PanoRulerProPlugin/index.js +4 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +34 -33
- package/libs/PanoSpatialTagPlugin/index.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/index.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
- package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
- package/libs/PanoTagPlugin/Components/TagItem.js +125 -124
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +5 -1
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +321 -289
- package/libs/PanoTagPlugin/controller/Tag/BoxTag.d.ts +119 -0
- package/libs/PanoTagPlugin/controller/Tag/BoxTag.js +516 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.d.ts +257 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.js +816 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +10 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.js +94 -0
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PolygonTag.d.ts +112 -0
- package/libs/PanoTagPlugin/controller/Tag/PolygonTag.js +479 -0
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +22 -19
- package/libs/PanoTagPlugin/controller/index.d.ts +55 -2
- package/libs/PanoTagPlugin/controller/index.js +243 -129
- package/libs/PanoTagPlugin/index.js +17 -11
- package/libs/PanoTagPlugin/typings/controller.d.ts +10 -0
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +8 -3
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +50 -1
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +27 -13
- package/libs/PanoTagPlugin/utils/index.js +29 -26
- package/libs/PanoTagPlugin/utils/sculptDataToBoxPosition.d.ts +6 -0
- package/libs/PanoTagPlugin/utils/sculptDataToBoxPosition.js +18 -0
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
- package/libs/PanoTagPlugin/utils/tag/format.js +3 -2
- package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +6 -0
- package/libs/PanoTagPlugin/utils/tag/tagCheck.js +26 -14
- package/libs/PanoTagPlugin/utils/tagPosition.d.ts +12 -3
- package/libs/PanoTagPlugin/utils/tagPosition.js +49 -16
- package/libs/PanoVideoPlugin/Controller.js +9 -8
- package/libs/PanoVideoPlugin/VideoMeshController.js +3 -2
- package/libs/PanoVideoPlugin/index.js +6 -5
- package/libs/PipelinePlugin/Controller.js +3 -2
- package/libs/PipelinePlugin/index.js +4 -3
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -2
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -2
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +1 -0
- package/libs/Sculpt/Meshes/Line.d.ts +4 -0
- package/libs/Sculpt/Meshes/Line.js +85 -76
- package/libs/Sculpt/Meshes/Point.js +28 -28
- package/libs/Sculpt/Meshes/Polygon.js +43 -43
- package/libs/Sculpt/index.js +1 -1
- package/libs/Sculpt/utils/Modules/Cursor.js +7 -7
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/FloorplanGuidePlugin/Controller.js +3 -2
- package/libs/floorplan/FloorplanGuidePlugin/index.js +4 -3
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -3
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -3
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -3
- package/libs/index.js +164 -158
- package/libs/shared-utils/five/getFiveFromParentChain.d.ts +7 -0
- package/libs/shared-utils/five/getFiveFromParentChain.js +15 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/utils/PointHelper2.js +1 -0
- package/package.json +1 -1
|
@@ -85,6 +85,7 @@ import "../Sculpt/typings/style.js";
|
|
|
85
85
|
import "../shared-utils/three/IObject3D.js";
|
|
86
86
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
87
87
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
88
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
88
89
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
89
90
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
90
91
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -103,7 +104,7 @@ import "./Assets/roomInfoIcon.js";
|
|
|
103
104
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
104
105
|
import "../shared-utils/animationFrame/index.js";
|
|
105
106
|
const M = { userAction: !0 };
|
|
106
|
-
class
|
|
107
|
+
class ot extends F {
|
|
107
108
|
constructor(e, t) {
|
|
108
109
|
super(e, t);
|
|
109
110
|
/**
|
|
@@ -358,5 +359,5 @@ class tt extends F {
|
|
|
358
359
|
}
|
|
359
360
|
}
|
|
360
361
|
export {
|
|
361
|
-
|
|
362
|
+
ot as PanoCompassController
|
|
362
363
|
};
|
|
@@ -53,6 +53,7 @@ import "../Sculpt/typings/style.js";
|
|
|
53
53
|
import "../shared-utils/three/IObject3D.js";
|
|
54
54
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
55
55
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
56
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
56
57
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
57
58
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
58
59
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -75,8 +76,8 @@ import "../CSS3DRenderPlugin/index.js";
|
|
|
75
76
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
76
77
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
77
78
|
import "../shared-utils/animationFrame/index.js";
|
|
78
|
-
const
|
|
79
|
+
const Ao = (o, r) => new t(o, r);
|
|
79
80
|
export {
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
Ao as PanoCompassPlugin,
|
|
82
|
+
Ao as default
|
|
82
83
|
};
|
|
@@ -75,6 +75,7 @@ import "../shared-utils/three/IObject3D.js";
|
|
|
75
75
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
76
76
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
77
77
|
import "../shared-utils/util.js";
|
|
78
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
78
79
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
79
80
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
80
81
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -93,7 +94,7 @@ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
|
93
94
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
94
95
|
import "@realsee/five";
|
|
95
96
|
const ot = { userAction: !0 };
|
|
96
|
-
class
|
|
97
|
+
class Ai extends Y {
|
|
97
98
|
constructor(t) {
|
|
98
99
|
super(t);
|
|
99
100
|
p(this, "state", { enabled: !0, visible: !0 });
|
|
@@ -127,7 +128,7 @@ class wi extends Y {
|
|
|
127
128
|
const t = this.floorplanServerData.computed_data.floor_datas || [], r = (((n = (e = this.five) == null ? void 0 : e.work) == null ? void 0 : n.observers) || []).map((s) => {
|
|
128
129
|
const o = s.panoIndex, v = s.floorIndex, c = t == null ? void 0 : t.find((h) => h.floor_index === v);
|
|
129
130
|
if (c) {
|
|
130
|
-
const h = c.rooms.find((
|
|
131
|
+
const h = c.rooms.find((f) => f.observer_indexs.includes(o));
|
|
131
132
|
if (h)
|
|
132
133
|
return { panoIndex: o, floorIndex: v, name: h.name };
|
|
133
134
|
}
|
|
@@ -155,9 +156,9 @@ class wi extends Y {
|
|
|
155
156
|
const c = o.position.clone(), h = c.distanceTo(e);
|
|
156
157
|
if (h < this.MinVisibledistance || h > this.MaxVisibledistance)
|
|
157
158
|
return;
|
|
158
|
-
const
|
|
159
|
-
|
|
160
|
-
const [b] = this.five.model.intersectRaycaster(
|
|
159
|
+
const f = new q(), d = c.clone().sub(e).normalize();
|
|
160
|
+
f.set(e, d);
|
|
161
|
+
const [b] = this.five.model.intersectRaycaster(f);
|
|
161
162
|
b && b.distance + 0.1 < h || s.push(v);
|
|
162
163
|
}), this.visibleLabelMap.set(t, s), s;
|
|
163
164
|
}
|
|
@@ -167,7 +168,7 @@ class wi extends Y {
|
|
|
167
168
|
}), this.fixDoorPosition();
|
|
168
169
|
});
|
|
169
170
|
p(this, "fixDoorPosition", () => {
|
|
170
|
-
var v, c, h,
|
|
171
|
+
var v, c, h, f, d, b, x, _, k, H, W, $;
|
|
171
172
|
if (!this.state.enabled || !this.state.visible)
|
|
172
173
|
return;
|
|
173
174
|
const { panoIndex: t, camera: i } = this.five;
|
|
@@ -176,17 +177,17 @@ class wi extends Y {
|
|
|
176
177
|
if (this.five.currentMode !== "Panorama")
|
|
177
178
|
return this.hideAllLabels();
|
|
178
179
|
const r = this.five.getElement(), e = r.clientWidth, n = r.clientHeight, s = i.getWorldDirection(new A()), o = [];
|
|
179
|
-
if (this.labelItems.forEach((
|
|
180
|
+
if (this.labelItems.forEach((m, u) => {
|
|
180
181
|
var I;
|
|
181
|
-
if (
|
|
182
|
-
const g = i.position.distanceTo(
|
|
183
|
-
|
|
182
|
+
if (m.visible) {
|
|
183
|
+
const g = i.position.distanceTo(m.position), M = m.position.clone().add(new A(0, this.OffsetHeight, 0)), w = M.clone().sub(i.position).normalize().angleTo(s), V = M.clone().project(i), P = (V.x + 1) / 2.2 * 100, T = (-V.y + 1) / 2.2 * 100, z = P >= 0 && P <= 100 && T >= 0 && T <= 100 && g > this.MinVisibledistance && g <= this.MaxVisibledistance;
|
|
184
|
+
m.left = P, m.top = T, m.inSight = z && w < Math.PI / 2, m.cameraToward = J(this.five), z ? o.push({ disFromCameraToLabel: g, left: P, top: T, index: u }) : m.transform = "translate(-50%, -50%)";
|
|
184
185
|
} else
|
|
185
|
-
|
|
186
|
-
const y =
|
|
187
|
-
(I =
|
|
186
|
+
m.inSight = !1;
|
|
187
|
+
const y = m, { svelteApp: D } = y, C = B(y, ["svelteApp"]);
|
|
188
|
+
(I = m.svelteApp) == null || I.$set({ props: C });
|
|
188
189
|
}), o.length > 1) {
|
|
189
|
-
let
|
|
190
|
+
let m = 0;
|
|
190
191
|
o.sort((u, D) => D.disFromCameraToLabel - u.disFromCameraToLabel);
|
|
191
192
|
for (let u = 1; u < o.length; u++) {
|
|
192
193
|
const { index: D, left: C, top: y } = o[u - 1], { index: I, left: g, top: M } = o[u], S = this.container.children[D], w = this.container.children[I];
|
|
@@ -196,14 +197,14 @@ class wi extends Y {
|
|
|
196
197
|
left: e * C / 100,
|
|
197
198
|
top: n * y / 100,
|
|
198
199
|
width: (h = (c = (v = S.children) == null ? void 0 : v[0]) == null ? void 0 : c.clientWidth) != null ? h : 0,
|
|
199
|
-
height: (b = (d = (
|
|
200
|
+
height: (b = (d = (f = S.children) == null ? void 0 : f[0]) == null ? void 0 : d.clientHeight) != null ? b : 0
|
|
200
201
|
}, P = {
|
|
201
202
|
left: e * g / 100,
|
|
202
203
|
top: n * M / 100,
|
|
203
204
|
width: (k = (_ = (x = w.children) == null ? void 0 : x[0]) == null ? void 0 : _.clientWidth) != null ? k : 0,
|
|
204
205
|
height: ($ = (W = (H = w.children) == null ? void 0 : H[0]) == null ? void 0 : W.clientHeight) != null ? $ : 0
|
|
205
206
|
};
|
|
206
|
-
K(V, P) && (
|
|
207
|
+
K(V, P) && (m++, this.labelItems[D].transform = `translate(-50%, ${(m - 1) * 100 - 50}%)`, this.labelItems[I].transform = `translate(-50%, ${m * 100 - 50}%)`);
|
|
207
208
|
}
|
|
208
209
|
}
|
|
209
210
|
});
|
|
@@ -220,10 +221,10 @@ class wi extends Y {
|
|
|
220
221
|
if (n !== void 0 && e !== void 0) {
|
|
221
222
|
const o = {};
|
|
222
223
|
if (s > 0) {
|
|
223
|
-
const c = new A(0, 0, -1), h = n.clone(),
|
|
224
|
-
|
|
224
|
+
const c = new A(0, 0, -1), h = n.clone(), f = new X();
|
|
225
|
+
f.setFromUnitVectors(c, h);
|
|
225
226
|
const d = new G();
|
|
226
|
-
d.setFromQuaternion(
|
|
227
|
+
d.setFromQuaternion(f, "YXZ"), o.longitude = d.y;
|
|
227
228
|
}
|
|
228
229
|
this.five.emit("wantsToMoveToPano", e, {}, !0) || this.five.moveToPano(e, { longitude: o.longitude });
|
|
229
230
|
}
|
|
@@ -236,13 +237,13 @@ class wi extends Y {
|
|
|
236
237
|
}), this.labelItems = [];
|
|
237
238
|
const t = this.five.panoIndex, i = this.floorplanServerData.computed_data.observers[t].floor_index, r = this.floorplanServerData.computed_data.floor_datas[i];
|
|
238
239
|
(e = this.floorplanServerData.computed_data.doors) == null || e.forEach((n) => {
|
|
239
|
-
const s = this.five.work.observers.filter((
|
|
240
|
+
const s = this.five.work.observers.filter((f, d) => {
|
|
240
241
|
var b;
|
|
241
242
|
return !!((b = r == null ? void 0 : r.rooms) != null && b.find((x) => x.observer_indexs.includes(d)));
|
|
242
243
|
}), o = n.position;
|
|
243
244
|
let v = 1 / 0, c;
|
|
244
|
-
s.forEach((
|
|
245
|
-
const d =
|
|
245
|
+
s.forEach((f) => {
|
|
246
|
+
const d = f.standingPosition, b = {
|
|
246
247
|
x: d.x,
|
|
247
248
|
y: d.y,
|
|
248
249
|
z: d.z
|
|
@@ -318,5 +319,5 @@ class wi extends Y {
|
|
|
318
319
|
}
|
|
319
320
|
}
|
|
320
321
|
export {
|
|
321
|
-
|
|
322
|
+
Ai as PanoDoorLabelPluginController
|
|
322
323
|
};
|
|
@@ -51,6 +51,7 @@ import "../Sculpt/typings/style.js";
|
|
|
51
51
|
import "../shared-utils/three/IObject3D.js";
|
|
52
52
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
53
53
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
54
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
54
55
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
55
56
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
56
57
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -71,8 +72,8 @@ import "./DoorLabelItem.js";
|
|
|
71
72
|
import "../vendor/svelte/internal/index.js";
|
|
72
73
|
import "../vendor/classnames/index.js";
|
|
73
74
|
import "./utils.js";
|
|
74
|
-
const
|
|
75
|
+
const ho = (o) => new r(o);
|
|
75
76
|
export {
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
ho as PanoDoorLabelPlugin,
|
|
78
|
+
ho as default
|
|
78
79
|
};
|
|
@@ -76,6 +76,7 @@ import "../../Sculpt/Meshes/Line.js";
|
|
|
76
76
|
import "../../Sculpt/typings/style.js";
|
|
77
77
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
78
78
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
79
|
+
import "../../shared-utils/five/getFiveFromParentChain.js";
|
|
79
80
|
import "../../shared-utils/three/core/LineGeometry.js";
|
|
80
81
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
81
82
|
import "../../shared-utils/three/core/Line2.js";
|
|
@@ -303,7 +304,7 @@ function re(n, o, i) {
|
|
|
303
304
|
u
|
|
304
305
|
];
|
|
305
306
|
}
|
|
306
|
-
class
|
|
307
|
+
class Qt extends j {
|
|
307
308
|
constructor(o) {
|
|
308
309
|
super(), x(
|
|
309
310
|
this,
|
|
@@ -321,5 +322,5 @@ class Nt extends j {
|
|
|
321
322
|
}
|
|
322
323
|
}
|
|
323
324
|
export {
|
|
324
|
-
|
|
325
|
+
Qt as default
|
|
325
326
|
};
|
|
@@ -80,6 +80,7 @@ import "../../Sculpt/Meshes/Line.js";
|
|
|
80
80
|
import "../../Sculpt/typings/style.js";
|
|
81
81
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
82
82
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
83
|
+
import "../../shared-utils/five/getFiveFromParentChain.js";
|
|
83
84
|
import "../../shared-utils/three/core/LineGeometry.js";
|
|
84
85
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
85
86
|
import "../../shared-utils/three/core/Line2.js";
|
|
@@ -453,7 +454,7 @@ function de(o, t, i) {
|
|
|
453
454
|
x
|
|
454
455
|
];
|
|
455
456
|
}
|
|
456
|
-
class
|
|
457
|
+
class so extends ee {
|
|
457
458
|
constructor(t) {
|
|
458
459
|
super(), te(
|
|
459
460
|
this,
|
|
@@ -471,5 +472,5 @@ class no extends ee {
|
|
|
471
472
|
}
|
|
472
473
|
}
|
|
473
474
|
export {
|
|
474
|
-
|
|
475
|
+
so as default
|
|
475
476
|
};
|
|
@@ -84,6 +84,7 @@ import "../../Sculpt/typings/style.js";
|
|
|
84
84
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
85
85
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
86
86
|
import "../../shared-utils/util.js";
|
|
87
|
+
import "../../shared-utils/five/getFiveFromParentChain.js";
|
|
87
88
|
import "../../shared-utils/three/core/LineGeometry.js";
|
|
88
89
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
89
90
|
import "../../shared-utils/three/core/Line2.js";
|
|
@@ -104,7 +105,7 @@ import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
|
104
105
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
105
106
|
import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
106
107
|
const U = () => !1;
|
|
107
|
-
class
|
|
108
|
+
class Vt extends z {
|
|
108
109
|
constructor(e) {
|
|
109
110
|
super(e);
|
|
110
111
|
o(this, "type", "edit");
|
|
@@ -384,5 +385,5 @@ class Ut extends z {
|
|
|
384
385
|
}
|
|
385
386
|
}
|
|
386
387
|
export {
|
|
387
|
-
|
|
388
|
+
Vt as default
|
|
388
389
|
};
|
|
@@ -77,6 +77,7 @@ import "../../Sculpt/typings/style.js";
|
|
|
77
77
|
import "../../shared-utils/three/IObject3D.js";
|
|
78
78
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
79
79
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
80
|
+
import "../../shared-utils/five/getFiveFromParentChain.js";
|
|
80
81
|
import "../../shared-utils/three/core/LineGeometry.js";
|
|
81
82
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
82
83
|
import "../../shared-utils/three/core/Line2.js";
|
|
@@ -96,7 +97,7 @@ import "../../shared-utils/three/earcut3D.js";
|
|
|
96
97
|
import "../../shared-utils/three/getNormal.js";
|
|
97
98
|
import "../utils/isIntersecting.js";
|
|
98
99
|
const D = () => !1;
|
|
99
|
-
class
|
|
100
|
+
class ke extends U {
|
|
100
101
|
constructor(t) {
|
|
101
102
|
super(t);
|
|
102
103
|
o(this, "type", "watch");
|
|
@@ -269,5 +270,5 @@ class He extends U {
|
|
|
269
270
|
}
|
|
270
271
|
}
|
|
271
272
|
export {
|
|
272
|
-
|
|
273
|
+
ke as default
|
|
273
274
|
};
|
|
@@ -99,6 +99,7 @@ import "../../Sculpt/typings/style.js";
|
|
|
99
99
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
100
100
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
101
101
|
import "../../shared-utils/util.js";
|
|
102
|
+
import "../../shared-utils/five/getFiveFromParentChain.js";
|
|
102
103
|
import "../../shared-utils/three/core/LineGeometry.js";
|
|
103
104
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
104
105
|
import "../../shared-utils/three/core/Line2.js";
|
|
@@ -141,7 +142,7 @@ import "../../vendor/svelte/easing/index.js";
|
|
|
141
142
|
import "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
142
143
|
import "../Components/Tip.js";
|
|
143
144
|
import "../../shared-utils/url/defaultUrls.js";
|
|
144
|
-
class
|
|
145
|
+
class di extends J {
|
|
145
146
|
constructor(t, e) {
|
|
146
147
|
var l, m, h, a, g, y, C, M, w, P, v, b;
|
|
147
148
|
super(t);
|
|
@@ -358,5 +359,5 @@ class ui extends J {
|
|
|
358
359
|
}
|
|
359
360
|
}
|
|
360
361
|
export {
|
|
361
|
-
|
|
362
|
+
di as default
|
|
362
363
|
};
|
|
@@ -71,6 +71,7 @@ import "../../Sculpt/Meshes/Line.js";
|
|
|
71
71
|
import "../../Sculpt/typings/style.js";
|
|
72
72
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
73
73
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
74
|
+
import "../../shared-utils/five/getFiveFromParentChain.js";
|
|
74
75
|
import "../../shared-utils/three/core/LineGeometry.js";
|
|
75
76
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
76
77
|
import "../../shared-utils/three/core/Line2.js";
|
|
@@ -84,7 +85,7 @@ import "../../shared-utils/five/getPosition.js";
|
|
|
84
85
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
85
86
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
86
87
|
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
87
|
-
class
|
|
88
|
+
class Qt {
|
|
88
89
|
constructor(t, o) {
|
|
89
90
|
i(this, "id", f());
|
|
90
91
|
i(this, "selected", !1);
|
|
@@ -183,5 +184,5 @@ class Kt {
|
|
|
183
184
|
}
|
|
184
185
|
}
|
|
185
186
|
export {
|
|
186
|
-
|
|
187
|
+
Qt as default
|
|
187
188
|
};
|
|
@@ -47,6 +47,7 @@ import "../../shared-utils/three/IObject3D.js";
|
|
|
47
47
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
48
48
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
49
49
|
import "../../shared-utils/util.js";
|
|
50
|
+
import "../../shared-utils/five/getFiveFromParentChain.js";
|
|
50
51
|
import "../../shared-utils/three/core/LineGeometry.js";
|
|
51
52
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
52
53
|
import "../../shared-utils/three/core/Line2.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var h = Object.defineProperty;
|
|
2
|
-
var c = (
|
|
3
|
-
var o = (
|
|
2
|
+
var c = (e, i, t) => i in e ? h(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t;
|
|
3
|
+
var o = (e, i, t) => (c(e, typeof i != "symbol" ? i + "" : i, 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 w, exitItemStyle as C, exitIconStyle as E } from "./style.js";
|
|
@@ -86,6 +86,7 @@ import "../../../Sculpt/Meshes/Line.js";
|
|
|
86
86
|
import "../../../Sculpt/typings/style.js";
|
|
87
87
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
88
88
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
89
|
+
import "../../../shared-utils/five/getFiveFromParentChain.js";
|
|
89
90
|
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
90
91
|
import "../../../shared-utils/three/core/LineMaterial.js";
|
|
91
92
|
import "../../../shared-utils/three/core/Line2.js";
|
|
@@ -109,7 +110,7 @@ import "../../Components/Common/Switcher1.js";
|
|
|
109
110
|
import "../../Components/Common/CircleButton.js";
|
|
110
111
|
import "../../../vendor/svelte/transition/index.js";
|
|
111
112
|
import "../../../vendor/svelte/easing/index.js";
|
|
112
|
-
class
|
|
113
|
+
class Ii {
|
|
113
114
|
constructor(i, t) {
|
|
114
115
|
o(this, "revoke");
|
|
115
116
|
o(this, "container");
|
|
@@ -126,30 +127,30 @@ class Li {
|
|
|
126
127
|
if (!t || !i)
|
|
127
128
|
throw new Error("cannot find dom");
|
|
128
129
|
this.mode === "pc" && (Object.assign(t.style, C), Object.assign(i == null ? void 0 : i.style, E));
|
|
129
|
-
const
|
|
130
|
+
const r = () => {
|
|
130
131
|
t.style.opacity = "1";
|
|
131
132
|
}, s = () => {
|
|
132
133
|
t.style.opacity = "0.85";
|
|
133
|
-
},
|
|
134
|
+
}, m = () => {
|
|
134
135
|
this.measureController.disable();
|
|
135
136
|
};
|
|
136
|
-
return t.addEventListener("click",
|
|
137
|
-
t.removeEventListener("click",
|
|
137
|
+
return t.addEventListener("click", m), t.addEventListener("mouseenter", r), t.addEventListener("mouseleave", s), () => {
|
|
138
|
+
t.removeEventListener("click", m), t.removeEventListener("mouseenter", r), t.removeEventListener("mouseleave", s);
|
|
138
139
|
};
|
|
139
140
|
});
|
|
140
|
-
var s,
|
|
141
|
+
var s, m;
|
|
141
142
|
this._params = t, this.measureController = i, this.mode = (s = t.mode) != null ? s : "pc", this.wrapper = t.container, this.container = document.createElement("div"), this.wrapper.appendChild(this.container);
|
|
142
|
-
const
|
|
143
|
-
if (this.useNewUI =
|
|
143
|
+
const r = (m = t.useNewUI) != null ? m : !1;
|
|
144
|
+
if (this.useNewUI = r, r && (this.container.style.position = "absolute", this.container.style.top = "0", this.container.style.left = "0", this.container.style.width = "100%", this.container.style.height = "100%", t.pointSelectorMode === "cursor" ? this.svelteDom = new b({
|
|
144
145
|
target: this.container,
|
|
145
146
|
props: { measureController: this.measureController, i18n: t.i18n, showExit: t.showExit }
|
|
146
147
|
}) : t.pointSelectorMode === "fixed" && (this.svelteDom = new _({
|
|
147
148
|
target: this.container,
|
|
148
149
|
props: { measureController: this.measureController, i18n: t.i18n, showExit: t.showExit }
|
|
149
|
-
}))), !
|
|
150
|
+
}))), !r) {
|
|
150
151
|
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)";
|
|
151
|
-
const l = this.container.querySelectorAll(".fpm__text"),
|
|
152
|
-
Object.assign(
|
|
152
|
+
const l = this.container.querySelectorAll(".fpm__text"), n = this.container.querySelector(".fpm_ui-bg"), p = this.container.querySelector(".fpm_operating-space");
|
|
153
|
+
Object.assign(n == null ? void 0 : n.style, y), Object.assign(p == null ? void 0 : p.style, f), Object.assign(this.container.style, v), l.forEach((a) => Object.assign(a.style, w));
|
|
153
154
|
}
|
|
154
155
|
}
|
|
155
156
|
dispose() {
|
|
@@ -161,9 +162,9 @@ class Li {
|
|
|
161
162
|
}
|
|
162
163
|
hide() {
|
|
163
164
|
var i, t;
|
|
164
|
-
return this.container.style.display = "none", this.container.style.opacity = "0", this.container.style.transform = "translate(0, 10px)", this.useNewUI === !1 && this.mode === "pc" && ((i = this.revoke) == null || i.dispose()), (t = this.mainController) == null || t.dispose(), this.disposers.forEach((
|
|
165
|
+
return this.container.style.display = "none", this.container.style.opacity = "0", this.container.style.transform = "translate(0, 10px)", this.useNewUI === !1 && this.mode === "pc" && ((i = this.revoke) == null || i.dispose()), (t = this.mainController) == null || t.dispose(), this.disposers.forEach((r) => r()), this.disposers = [], this;
|
|
165
166
|
}
|
|
166
167
|
}
|
|
167
168
|
export {
|
|
168
|
-
|
|
169
|
+
Ii as UIController
|
|
169
170
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./Controller/index.js";
|
|
2
2
|
import "../shared-utils/tag.js";
|
|
3
3
|
import "three";
|
|
4
|
-
import { Magnifier as
|
|
4
|
+
import { Magnifier as qr } from "../shared-utils/three/Magnifier.js";
|
|
5
5
|
import "../shared-utils/three/PointSelector/index.js";
|
|
6
6
|
import "../shared-utils/three/CSS3DRenderer/index.js";
|
|
7
7
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
@@ -13,10 +13,10 @@ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
13
13
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
14
14
|
import "../vendor/earcut/src/earcut.js";
|
|
15
15
|
import "../shared-utils/five/FivePuppet.js";
|
|
16
|
-
import { Model as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { Polyline as
|
|
16
|
+
import { Model as zr } from "./Model/index.js";
|
|
17
|
+
import { default as Br } from "./Model/point.js";
|
|
18
|
+
import { default as Er } from "./Model/line.js";
|
|
19
|
+
import { Polyline as Gr } from "./Model/polyline.js";
|
|
20
20
|
import "./Controller/EditController.js";
|
|
21
21
|
import "../shared-utils/throttle.js";
|
|
22
22
|
import "./Controller/BaseController.js";
|
|
@@ -71,6 +71,7 @@ import "../Sculpt/typings/style.js";
|
|
|
71
71
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
72
72
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
73
73
|
import "../shared-utils/util.js";
|
|
74
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
74
75
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
75
76
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
76
77
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -129,15 +130,15 @@ import "./Controller/ShortcutKeyController.js";
|
|
|
129
130
|
import "../shared-utils/safeObj.js";
|
|
130
131
|
import "../base/BasePlugin.js";
|
|
131
132
|
import "../shared-utils/url/defaultUrls.js";
|
|
132
|
-
const
|
|
133
|
+
const hr = function(o, r) {
|
|
133
134
|
return new t(o, r);
|
|
134
135
|
};
|
|
135
136
|
export {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
137
|
+
qr as Magnifier,
|
|
138
|
+
hr as PanoMeasurePlugin,
|
|
139
|
+
Er as PanoMeasurePluginLine,
|
|
140
|
+
zr as PanoMeasurePluginModel,
|
|
141
|
+
Br as PanoMeasurePluginPoint,
|
|
142
|
+
Gr as PanoMeasurePluginPolyline,
|
|
143
|
+
hr as default
|
|
143
144
|
};
|
|
@@ -63,6 +63,7 @@ import "../../../shared-utils/three/IObject3D.js";
|
|
|
63
63
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
64
64
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
65
65
|
import "../../../shared-utils/util.js";
|
|
66
|
+
import "../../../shared-utils/five/getFiveFromParentChain.js";
|
|
66
67
|
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
67
68
|
import "../../../shared-utils/three/core/LineMaterial.js";
|
|
68
69
|
import "../../../shared-utils/three/core/Line2.js";
|
|
@@ -80,7 +81,7 @@ import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
80
81
|
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
81
82
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
82
83
|
import "@realsee/five";
|
|
83
|
-
class
|
|
84
|
+
class Jt extends y {
|
|
84
85
|
constructor(t) {
|
|
85
86
|
t.containerStyle = s(n({}, t.containerStyle), {
|
|
86
87
|
zIndex: "1"
|
|
@@ -111,5 +112,5 @@ class Ht extends y {
|
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
114
|
export {
|
|
114
|
-
|
|
115
|
+
Jt as AreaItem
|
|
115
116
|
};
|
|
@@ -81,6 +81,7 @@ import "../Sculpt/typings/style.js";
|
|
|
81
81
|
import "../shared-utils/three/IObject3D.js";
|
|
82
82
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
83
83
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
84
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
84
85
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
85
86
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
86
87
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -99,7 +100,7 @@ import "../shared-utils/equal.js";
|
|
|
99
100
|
import "../shared-utils/isTruelyObject.js";
|
|
100
101
|
import "../shared-utils/math/planimetry.js";
|
|
101
102
|
import "./RulerItem.js";
|
|
102
|
-
class
|
|
103
|
+
class Ht {
|
|
103
104
|
constructor(t, i) {
|
|
104
105
|
e(this, "five");
|
|
105
106
|
e(this, "container", document.createElement("div"));
|
|
@@ -162,5 +163,5 @@ class Gt {
|
|
|
162
163
|
}
|
|
163
164
|
}
|
|
164
165
|
export {
|
|
165
|
-
|
|
166
|
+
Ht as default
|
|
166
167
|
};
|