@realsee/dnalogel 3.49.0 → 3.49.2
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 +9 -1
- package/dist/Sculpt/Meshes/Line.d.ts +2 -1
- package/dist/index.cjs.js +3008 -87
- package/dist/index.js +39458 -20049
- package/dist/index.umd.js +3001 -80
- package/dist/shared-utils/three/index.d.ts +1 -1
- package/libs/AreaMakerPlugin/Controller.js +7 -4
- package/libs/AreaMakerPlugin/index.js +7 -4
- package/libs/AreaMakerPlugin/utils/Item.js +7 -4
- package/libs/CSS3DRenderPlugin/Controller.js +12 -9
- package/libs/CSS3DRenderPlugin/index.js +9 -6
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +21 -18
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +6 -3
- package/libs/CruisePlugin/BaseController.js +12 -9
- package/libs/CruisePlugin/Move.js +7 -4
- package/libs/CruisePlugin/Work.js +7 -4
- package/libs/CruisePlugin/index.js +11 -8
- package/libs/CurrentPanoImagePlugin/Controller.js +6 -3
- package/libs/CurrentPanoImagePlugin/index.js +7 -4
- package/libs/GuideLinePlugin/Controller.js +9 -6
- package/libs/GuideLinePlugin/GuideLineItem.js +7 -4
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +4 -3
- package/libs/GuideLinePlugin/GuideLineModeItem.js +7 -4
- package/libs/GuideLinePlugin/index.js +11 -8
- package/libs/ModelMakerPlugin/Controller.js +7 -4
- package/libs/ModelMakerPlugin/index.js +7 -4
- package/libs/ModelMakerPlugin/item/baseItem.js +2 -2
- package/libs/ModelMakerPlugin/item/boxItem.js +2 -2
- package/libs/ModelMakerPlugin/item/polygonItem.js +2 -2
- package/libs/ModelMakerPlugin/item/prismItem.js +2 -2
- package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +1 -1
- package/libs/ModelTVVideoPlugin/Plugin.js +7 -4
- package/libs/ModelTVVideoPlugin/index.js +6 -3
- package/libs/Object3DHelperPlugin/Controller.js +6 -3
- package/libs/Object3DHelperPlugin/index.js +9 -6
- package/libs/PanoCompassPlugin/Controller.js +6 -3
- package/libs/PanoCompassPlugin/index.js +7 -4
- package/libs/PanoDoorLabelPlugin/BaseController.js +16 -13
- package/libs/PanoDoorLabelPlugin/Controller.js +58 -55
- package/libs/PanoDoorLabelPlugin/index.js +7 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +6 -3
- package/libs/PanoMeasurePlugin/Components/Controller1.js +6 -3
- package/libs/PanoMeasurePlugin/Controller/EditController.js +6 -3
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +6 -3
- package/libs/PanoMeasurePlugin/Controller/index.js +6 -3
- package/libs/PanoMeasurePlugin/Model/area.js +6 -3
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +4 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +6 -3
- package/libs/PanoMeasurePlugin/index.js +17 -14
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +16 -13
- package/libs/PanoSpatialTagPlugin/Plugin.js +7 -4
- package/libs/PanoSpatialTagPlugin/index.js +4 -1
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +24 -21
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +6 -3
- package/libs/PanoTagPlugin/Components/Tag/index.js +6 -3
- package/libs/PanoTagPlugin/Components/TagContainer.js +6 -3
- package/libs/PanoTagPlugin/Components/TagItem.js +6 -3
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +11 -5
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +14 -11
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +12 -9
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +10 -7
- package/libs/PanoTagPlugin/controller/TagRender.js +7 -4
- package/libs/PanoTagPlugin/controller/TagUtil.js +7 -4
- package/libs/PanoTagPlugin/controller/index.js +10 -7
- package/libs/PanoTagPlugin/index.js +16 -13
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +25 -22
- package/libs/PanoVideoPlugin/Controller.js +9 -6
- package/libs/PanoVideoPlugin/VideoMeshController.js +6 -3
- package/libs/PanoVideoPlugin/index.js +9 -6
- package/libs/PipelinePlugin/Controller.js +13 -10
- package/libs/PipelinePlugin/index.js +7 -4
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +6 -3
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +16 -13
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +20 -17
- package/libs/Sculpt/Meshes/Box.js +7 -6
- package/libs/Sculpt/Meshes/Cylinder.js +4 -3
- package/libs/Sculpt/Meshes/Line.d.ts +2 -1
- package/libs/Sculpt/Meshes/Line.js +11 -10
- package/libs/Sculpt/Meshes/LineWithDots.js +1 -1
- package/libs/Sculpt/Meshes/Point.js +11 -10
- package/libs/Sculpt/Meshes/PolygonWithEdge.js +1 -1
- package/libs/Sculpt/Meshes/Polyline.js +31 -31
- package/libs/Sculpt/Meshes/Prism.js +2 -2
- package/libs/Sculpt/Meshes/Rectangle.js +5 -4
- package/libs/Sculpt/Objects/Line/Editor.js +4 -3
- package/libs/Sculpt/index.js +4 -3
- package/libs/Sculpt/utils/three/ColoredMesh.js +5 -4
- package/libs/base/BasePlugin.js +5 -4
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +6 -3
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +7 -4
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +6 -3
- package/libs/floorplan/ModelFloorplanPlugin/index.js +7 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +6 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +7 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +6 -3
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +7 -4
- package/libs/floorplan/index.js +2 -1
- package/libs/index.js +131 -128
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -1
- package/libs/shared-utils/five/FiveDomEvents.js +1 -1
- package/libs/shared-utils/five/FiveLine.js +6 -18
- package/libs/shared-utils/five/index.js +4 -3
- package/libs/shared-utils/five/lookObject.js +18 -17
- package/libs/shared-utils/index.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.js +5 -5
- package/libs/shared-utils/three/PointSelector/index.js +24 -22
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +1 -1
- package/libs/shared-utils/three/boundingBox.js +1 -1
- package/libs/shared-utils/three/index.d.ts +1 -1
- package/libs/shared-utils/three/index.js +2 -1
- package/libs/vendor/three/build/three.module.js +19336 -0
- package/libs/vendor/three/examples/jsm/lines/LineGeometry.js +28 -0
- package/libs/vendor/three/examples/jsm/lines/LineSegmentsGeometry.js +69 -0
- package/package.json +1 -1
- /package/dist/shared-utils/three/{objects → core}/LineSegments.d.ts +0 -0
- /package/dist/shared-utils/three/{THREERaycaster.d.ts → core/Raycaster.d.ts} +0 -0
- /package/dist/shared-utils/three/{THREESphere.d.ts → core/Sphere.d.ts} +0 -0
- /package/libs/shared-utils/three/{objects → core}/LineSegments.d.ts +0 -0
- /package/libs/shared-utils/three/{objects → core}/LineSegments.js +0 -0
- /package/libs/shared-utils/three/{THREERaycaster.d.ts → core/Raycaster.d.ts} +0 -0
- /package/libs/shared-utils/three/{THREERaycaster.js → core/Raycaster.js} +0 -0
- /package/libs/shared-utils/three/{THREESphere.d.ts → core/Sphere.d.ts} +0 -0
- /package/libs/shared-utils/three/{THREESphere.js → core/Sphere.js} +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
1
|
+
var l = Object.defineProperty, m = Object.defineProperties;
|
|
2
2
|
var d = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var h = Object.getOwnPropertySymbols;
|
|
4
4
|
var u = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var a = (i, e, t) => e in i ? l(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, s = (i, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
|
-
u.call(e, t) &&
|
|
7
|
+
u.call(e, t) && a(i, t, e[t]);
|
|
8
8
|
if (h)
|
|
9
9
|
for (var t of h(e))
|
|
10
|
-
b.call(e, t) &&
|
|
10
|
+
b.call(e, t) && a(i, t, e[t]);
|
|
11
11
|
return i;
|
|
12
12
|
}, r = (i, e) => m(i, d(e));
|
|
13
|
-
var
|
|
13
|
+
var o = (i, e, t) => (a(i, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
14
|
import { Five as v } from "@realsee/five";
|
|
15
15
|
import { Controller as c } from "../base/BasePlugin.js";
|
|
16
16
|
import "../shared-utils/Subscribe.js";
|
|
@@ -18,6 +18,9 @@ import "three";
|
|
|
18
18
|
import "hammerjs";
|
|
19
19
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
20
20
|
import "@realsee/five/line";
|
|
21
|
+
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
22
|
+
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
23
|
+
import "../vendor/three/build/three.module.js";
|
|
21
24
|
import "../shared-utils/tag.js";
|
|
22
25
|
import "../shared-utils/positionToVector3.js";
|
|
23
26
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
@@ -27,16 +30,16 @@ import "../shared-utils/Utils/BaseUtil.js";
|
|
|
27
30
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
28
31
|
import "../shared-utils/five/transformPosition.js";
|
|
29
32
|
import "../shared-utils/three/temp.js";
|
|
30
|
-
import "../shared-utils/three/
|
|
33
|
+
import "../shared-utils/three/core/Sphere.js";
|
|
31
34
|
import "animejs";
|
|
32
35
|
import "../shared-utils/url/absoluteUrl.js";
|
|
33
36
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
34
|
-
class
|
|
37
|
+
class K extends c {
|
|
35
38
|
constructor(t) {
|
|
36
39
|
super(t);
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
o(this, "state");
|
|
41
|
+
o(this, "container");
|
|
42
|
+
o(this, "enabled");
|
|
40
43
|
this.five = t, this.five.once("dispose", this.dispose), this.enabled = !0, this.state = this.initState();
|
|
41
44
|
}
|
|
42
45
|
/**
|
|
@@ -86,8 +89,8 @@ class H extends c {
|
|
|
86
89
|
setState(t, n) {
|
|
87
90
|
if (!this.enabled)
|
|
88
91
|
return;
|
|
89
|
-
const
|
|
90
|
-
this.state = s(s(s({}, this.state), t), n), this.stateChangedCallback(
|
|
92
|
+
const p = s({}, this.state);
|
|
93
|
+
this.state = s(s(s({}, this.state), t), n), this.stateChangedCallback(p, n);
|
|
91
94
|
}
|
|
92
95
|
get visible() {
|
|
93
96
|
return this.five.state.mode === v.Mode.Panorama;
|
|
@@ -100,5 +103,5 @@ class H extends c {
|
|
|
100
103
|
}
|
|
101
104
|
}
|
|
102
105
|
export {
|
|
103
|
-
|
|
106
|
+
K as BasePanoPluginController
|
|
104
107
|
};
|
|
@@ -2,15 +2,15 @@ var $ = Object.defineProperty, B = Object.defineProperties;
|
|
|
2
2
|
var U = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var C = Object.getOwnPropertySymbols;
|
|
4
4
|
var G = Object.prototype.hasOwnProperty, N = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var T = (p, a,
|
|
6
|
-
for (var
|
|
7
|
-
G.call(a,
|
|
5
|
+
var T = (p, a, i) => a in p ? $(p, a, { enumerable: !0, configurable: !0, writable: !0, value: i }) : p[a] = i, H = (p, a) => {
|
|
6
|
+
for (var i in a || (a = {}))
|
|
7
|
+
G.call(a, i) && T(p, i, a[i]);
|
|
8
8
|
if (C)
|
|
9
|
-
for (var
|
|
10
|
-
N.call(a,
|
|
9
|
+
for (var i of C(a))
|
|
10
|
+
N.call(a, i) && T(p, i, a[i]);
|
|
11
11
|
return p;
|
|
12
12
|
}, W = (p, a) => B(p, U(a));
|
|
13
|
-
var r = (p, a,
|
|
13
|
+
var r = (p, a, i) => (T(p, typeof a != "symbol" ? a + "" : a, i), i);
|
|
14
14
|
import { Raycaster as Q, Vector3 as V, Quaternion as j, Euler as z } from "three";
|
|
15
15
|
import { BasePanoPluginController as q } from "./BaseController.js";
|
|
16
16
|
import X from "./DoorLabelItem.js";
|
|
@@ -21,6 +21,9 @@ import "../shared-utils/Subscribe.js";
|
|
|
21
21
|
import "hammerjs";
|
|
22
22
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
23
23
|
import "@realsee/five/line";
|
|
24
|
+
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
25
|
+
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
26
|
+
import "../vendor/three/build/three.module.js";
|
|
24
27
|
import "../shared-utils/tag.js";
|
|
25
28
|
import "../shared-utils/positionToVector3.js";
|
|
26
29
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
@@ -30,16 +33,16 @@ import "../shared-utils/Utils/BaseUtil.js";
|
|
|
30
33
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
31
34
|
import "../shared-utils/five/transformPosition.js";
|
|
32
35
|
import "../shared-utils/three/temp.js";
|
|
33
|
-
import "../shared-utils/three/
|
|
36
|
+
import "../shared-utils/three/core/Sphere.js";
|
|
34
37
|
import "animejs";
|
|
35
38
|
import "../shared-utils/url/absoluteUrl.js";
|
|
36
39
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
37
40
|
import "../vendor/svelte/internal/index.js";
|
|
38
41
|
import "../vendor/classnames/index.js";
|
|
39
|
-
const
|
|
40
|
-
class
|
|
41
|
-
constructor(
|
|
42
|
-
super(
|
|
42
|
+
const ii = { userAction: !0 };
|
|
43
|
+
class Ti extends q {
|
|
44
|
+
constructor(i) {
|
|
45
|
+
super(i);
|
|
43
46
|
r(this, "MinVisibledistance", 1.8);
|
|
44
47
|
r(this, "MaxVisibledistance", 5);
|
|
45
48
|
r(this, "OffsetHeight", -1.3);
|
|
@@ -55,19 +58,19 @@ class Me extends q {
|
|
|
55
58
|
/** 数据 */
|
|
56
59
|
r(this, "doorLabels");
|
|
57
60
|
r(this, "roomObservers");
|
|
58
|
-
r(this, "loadData", (
|
|
61
|
+
r(this, "loadData", (i, n) => {
|
|
59
62
|
n && (this.MaxVisibledistance = n.MaxVisibledistance, this.MinVisibledistance = n.MinVisibledistance, this.OffsetHeight = n.OffsetHeight), this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((d) => {
|
|
60
63
|
d.$destroy();
|
|
61
|
-
}), this.labelItems = [], this.doorLabels = [], this.doorLabelItems = [], this.floorplanServerData =
|
|
64
|
+
}), this.labelItems = [], this.doorLabels = [], this.doorLabelItems = [], this.floorplanServerData = i, typeof this.five.ready == "function" ? this.five.ready().then(() => this.initData()) : this.five.once("panoArrived", () => {
|
|
62
65
|
this.initData();
|
|
63
66
|
});
|
|
64
67
|
});
|
|
65
68
|
r(this, "initRoomObservers", () => {
|
|
66
69
|
var l, h;
|
|
67
|
-
const
|
|
68
|
-
const s = o.panoIndex, f = o.floorIndex,
|
|
69
|
-
if (
|
|
70
|
-
const t =
|
|
70
|
+
const i = this.floorplanServerData.computed_data.floor_datas || [], d = (((h = (l = this.five) == null ? void 0 : l.work) == null ? void 0 : h.observers) || []).map((o) => {
|
|
71
|
+
const s = o.panoIndex, f = o.floorIndex, e = i == null ? void 0 : i.find((t) => t.floor_index === f);
|
|
72
|
+
if (e) {
|
|
73
|
+
const t = e.rooms.find((c) => c.observer_indexs.includes(s));
|
|
71
74
|
if (t)
|
|
72
75
|
return { panoIndex: s, floorIndex: f, name: t.name };
|
|
73
76
|
}
|
|
@@ -75,31 +78,31 @@ class Me extends q {
|
|
|
75
78
|
this.roomObservers = d;
|
|
76
79
|
});
|
|
77
80
|
r(this, "hideAllLabels", () => {
|
|
78
|
-
this.labelItems.forEach((
|
|
79
|
-
|
|
81
|
+
this.labelItems.forEach((i) => {
|
|
82
|
+
i.visible = !1, i.inSight = !1;
|
|
80
83
|
}), this.render();
|
|
81
84
|
});
|
|
82
85
|
r(this, "fixDoorVisibleAndPosition", () => {
|
|
83
86
|
this.initRoomObservers();
|
|
84
|
-
const { panoIndex:
|
|
85
|
-
if (!this.visible || this.five.model.empty ||
|
|
87
|
+
const { panoIndex: i } = this.five;
|
|
88
|
+
if (!this.visible || this.five.model.empty || i === null || !this.roomObservers.find((o) => o.panoIndex === i))
|
|
86
89
|
return;
|
|
87
|
-
const n = this.roomObservers.find((o) => o.panoIndex ===
|
|
88
|
-
if (this.visibleLabelMap.has(
|
|
89
|
-
return this.visibleLabelMap.get(
|
|
90
|
+
const n = this.roomObservers.find((o) => o.panoIndex === i), l = this.five.work.observers.find((o) => o.panoIndex === i).position.clone(), h = (() => {
|
|
91
|
+
if (this.visibleLabelMap.has(i))
|
|
92
|
+
return this.visibleLabelMap.get(i);
|
|
90
93
|
{
|
|
91
94
|
const o = [];
|
|
92
95
|
return this.doorLabels.forEach((s, f) => {
|
|
93
96
|
if (s.roomName === n.name)
|
|
94
97
|
return;
|
|
95
|
-
const
|
|
98
|
+
const e = s.position.clone(), t = e.distanceTo(l);
|
|
96
99
|
if (t < this.MinVisibledistance || t > this.MaxVisibledistance)
|
|
97
100
|
return;
|
|
98
|
-
const c = new Q(), v =
|
|
101
|
+
const c = new Q(), v = e.clone().sub(l).normalize();
|
|
99
102
|
c.set(l, v);
|
|
100
103
|
const [b] = this.five.model.intersectRaycaster(c);
|
|
101
104
|
b && b.distance + 0.1 < t || o.push(f);
|
|
102
|
-
}), this.visibleLabelMap.set(
|
|
105
|
+
}), this.visibleLabelMap.set(i, o), o;
|
|
103
106
|
}
|
|
104
107
|
})();
|
|
105
108
|
this.labelItems.forEach((o, s) => {
|
|
@@ -107,9 +110,9 @@ class Me extends q {
|
|
|
107
110
|
}), this.fixDoorPosition();
|
|
108
111
|
});
|
|
109
112
|
r(this, "fixDoorPosition", () => {
|
|
110
|
-
var
|
|
111
|
-
const { panoIndex:
|
|
112
|
-
if (
|
|
113
|
+
var e, t, c, v, b, y, g, w, L, E, _, S;
|
|
114
|
+
const { panoIndex: i, camera: n } = this.five;
|
|
115
|
+
if (i === null)
|
|
113
116
|
return;
|
|
114
117
|
if (this.five.currentMode !== "Panorama")
|
|
115
118
|
return this.hideAllLabels();
|
|
@@ -130,7 +133,7 @@ class Me extends q {
|
|
|
130
133
|
const R = {
|
|
131
134
|
left: l * M / 100,
|
|
132
135
|
top: h * k / 100,
|
|
133
|
-
width: (c = (t = (
|
|
136
|
+
width: (c = (t = (e = I.children) == null ? void 0 : e[0]) == null ? void 0 : t.clientWidth) != null ? c : 0,
|
|
134
137
|
height: (y = (b = (v = I.children) == null ? void 0 : v[0]) == null ? void 0 : b.clientHeight) != null ? y : 0
|
|
135
138
|
}, F = {
|
|
136
139
|
left: l * O / 100,
|
|
@@ -143,21 +146,21 @@ class Me extends q {
|
|
|
143
146
|
}
|
|
144
147
|
this.labelItems = f, this.render();
|
|
145
148
|
});
|
|
146
|
-
r(this, "onClick", (
|
|
149
|
+
r(this, "onClick", (i, n) => {
|
|
147
150
|
if (!this.roomObservers)
|
|
148
151
|
return;
|
|
149
152
|
const { work: d } = this.five;
|
|
150
153
|
let l, h, o = 1 / 0;
|
|
151
154
|
for (const s of d.observers)
|
|
152
|
-
if (this.roomObservers.find((
|
|
153
|
-
const
|
|
154
|
-
t < o && (l = s.panoIndex, h =
|
|
155
|
+
if (this.roomObservers.find((e) => e.panoIndex === s.panoIndex && e.name === i)) {
|
|
156
|
+
const e = s.standingPosition, t = n.distanceTo(e);
|
|
157
|
+
t < o && (l = s.panoIndex, h = e.clone().sub(n).normalize(), o = t);
|
|
155
158
|
}
|
|
156
159
|
if (h !== null && l !== null) {
|
|
157
160
|
const s = {};
|
|
158
161
|
if (o > 0) {
|
|
159
|
-
const
|
|
160
|
-
c.setFromUnitVectors(
|
|
162
|
+
const e = new V(0, 0, -1), t = h.clone(), c = new j();
|
|
163
|
+
c.setFromUnitVectors(e, t);
|
|
161
164
|
const v = new z();
|
|
162
165
|
v.setFromQuaternion(c, "YXZ"), s.longitude = v.y;
|
|
163
166
|
}
|
|
@@ -167,12 +170,12 @@ class Me extends q {
|
|
|
167
170
|
r(this, "initData", () => {
|
|
168
171
|
var l;
|
|
169
172
|
this.doorLabels = [];
|
|
170
|
-
const
|
|
173
|
+
const i = this.five.panoIndex, n = this.floorplanServerData.computed_data.observers[i].floor_index, d = n !== void 0 && ((l = this.floorplanServerData.computed_data.floor_datas[n]) == null ? void 0 : l.rooms);
|
|
171
174
|
this.rooms = d, this.rooms && this.rooms.length > 0 && this.rooms.forEach((h) => {
|
|
172
175
|
var f;
|
|
173
|
-
const o = (f = this.floorplanServerData.computed_data.doors) == null ? void 0 : f.filter((
|
|
174
|
-
o && o.forEach((
|
|
175
|
-
const t =
|
|
176
|
+
const o = (f = this.floorplanServerData.computed_data.doors) == null ? void 0 : f.filter((e) => !!(e && e.name === h.name)), s = this.five.work.observers.filter((e, t) => !!h.observer_indexs.find((c) => c === t));
|
|
177
|
+
o && o.forEach((e) => {
|
|
178
|
+
const t = e.position;
|
|
176
179
|
let c = 1 / 0, v;
|
|
177
180
|
s.forEach((y) => {
|
|
178
181
|
const g = y.standingPosition, w = {
|
|
@@ -183,11 +186,11 @@ class Me extends q {
|
|
|
183
186
|
L < c && (c = L, v = w);
|
|
184
187
|
}), v && (t.y = v.y + 0.01);
|
|
185
188
|
const b = new V(t.x, t.y, t.z);
|
|
186
|
-
b.add(new V(-0.2, 1.8, 0).applyEuler(new z(0,
|
|
189
|
+
b.add(new V(-0.2, 1.8, 0).applyEuler(new z(0, e.rad, 0))), this.doorLabels.push({
|
|
187
190
|
roomName: h.name,
|
|
188
|
-
name:
|
|
191
|
+
name: e.name,
|
|
189
192
|
position: b,
|
|
190
|
-
toward: K(
|
|
193
|
+
toward: K(e.rad)
|
|
191
194
|
});
|
|
192
195
|
});
|
|
193
196
|
}), this.labelItems = this.doorLabels.map((h) => W(H({}, h), {
|
|
@@ -200,33 +203,33 @@ class Me extends q {
|
|
|
200
203
|
})), this.five.on("wantsToMoveToPano", this.hideAllLabels), this.five.on("modelLoaded", this.fixDoorVisibleAndPosition), this.five.on("panoArrived", this.fixDoorVisibleAndPosition), this.five.on("initAnimationEnded", this.fixDoorPosition), this.five.on("cameraUpdate", this.fixDoorPosition), this.five.on("mouseWheel", this.fixDoorPosition), this.five.on("pinchGesture", this.fixDoorPosition), this.fixDoorVisibleAndPosition();
|
|
201
204
|
});
|
|
202
205
|
}
|
|
203
|
-
stateChangedCallback(
|
|
206
|
+
stateChangedCallback(i, n) {
|
|
204
207
|
if (this.hooks.hasListener("stateChange")) {
|
|
205
208
|
const d = {
|
|
206
209
|
state: this.state,
|
|
207
|
-
prevState:
|
|
208
|
-
userAction: n ? n.userAction :
|
|
210
|
+
prevState: i,
|
|
211
|
+
userAction: n ? n.userAction : ii.userAction
|
|
209
212
|
};
|
|
210
213
|
this.hooks.emit("stateChange", d);
|
|
211
214
|
}
|
|
212
215
|
}
|
|
213
216
|
render() {
|
|
214
217
|
if (!this.enabled) {
|
|
215
|
-
this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((
|
|
216
|
-
|
|
218
|
+
this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((i) => {
|
|
219
|
+
i == null || i.$destroy();
|
|
217
220
|
}), this.doorLabels = void 0;
|
|
218
221
|
return;
|
|
219
222
|
}
|
|
220
|
-
this.doorLabelItems && this.doorLabelItems.forEach((
|
|
221
|
-
|
|
222
|
-
}), this.doorLabelItems = [], this.labelItems.forEach((
|
|
223
|
+
this.doorLabelItems && this.doorLabelItems.forEach((i) => {
|
|
224
|
+
i.$destroy();
|
|
225
|
+
}), this.doorLabelItems = [], this.labelItems.forEach((i) => {
|
|
223
226
|
this.doorLabelItems.push(
|
|
224
227
|
new X({
|
|
225
228
|
target: this.container,
|
|
226
229
|
props: {
|
|
227
|
-
props:
|
|
230
|
+
props: i,
|
|
228
231
|
onClick: () => {
|
|
229
|
-
this.onClick(
|
|
232
|
+
this.onClick(i.name, i.position);
|
|
230
233
|
}
|
|
231
234
|
}
|
|
232
235
|
})
|
|
@@ -241,5 +244,5 @@ class Me extends q {
|
|
|
241
244
|
}
|
|
242
245
|
}
|
|
243
246
|
export {
|
|
244
|
-
|
|
247
|
+
Ti as PanoDoorLabelPluginController
|
|
245
248
|
};
|
|
@@ -7,6 +7,9 @@ import "../shared-utils/Subscribe.js";
|
|
|
7
7
|
import "hammerjs";
|
|
8
8
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
9
9
|
import "@realsee/five/line";
|
|
10
|
+
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
11
|
+
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
12
|
+
import "../vendor/three/build/three.module.js";
|
|
10
13
|
import "../shared-utils/tag.js";
|
|
11
14
|
import "../shared-utils/positionToVector3.js";
|
|
12
15
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
@@ -16,7 +19,7 @@ import "../shared-utils/Utils/BaseUtil.js";
|
|
|
16
19
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
17
20
|
import "../shared-utils/five/transformPosition.js";
|
|
18
21
|
import "../shared-utils/three/temp.js";
|
|
19
|
-
import "../shared-utils/three/
|
|
22
|
+
import "../shared-utils/three/core/Sphere.js";
|
|
20
23
|
import "animejs";
|
|
21
24
|
import "../shared-utils/url/absoluteUrl.js";
|
|
22
25
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -24,8 +27,8 @@ import "./DoorLabelItem.js";
|
|
|
24
27
|
import "../vendor/svelte/internal/index.js";
|
|
25
28
|
import "../vendor/classnames/index.js";
|
|
26
29
|
import "./utils.js";
|
|
27
|
-
const
|
|
30
|
+
const B = (o) => new r(o);
|
|
28
31
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
32
|
+
B as PanoDoorLabelPlugin,
|
|
33
|
+
B as default
|
|
31
34
|
};
|
|
@@ -32,6 +32,9 @@ import "../utils/dom/areaDom.js";
|
|
|
32
32
|
import "../../shared-utils/three/geometryUtil.js";
|
|
33
33
|
import "hammerjs";
|
|
34
34
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
35
|
+
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
36
|
+
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
37
|
+
import "../../vendor/three/build/three.module.js";
|
|
35
38
|
import "../../shared-utils/tag.js";
|
|
36
39
|
import "../../shared-utils/positionToVector3.js";
|
|
37
40
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
@@ -42,7 +45,7 @@ import "../../shared-utils/Subscribe.js";
|
|
|
42
45
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
43
46
|
import "../../shared-utils/five/transformPosition.js";
|
|
44
47
|
import "../../shared-utils/three/temp.js";
|
|
45
|
-
import "../../shared-utils/three/
|
|
48
|
+
import "../../shared-utils/three/core/Sphere.js";
|
|
46
49
|
import "animejs";
|
|
47
50
|
import "../../shared-utils/isNil.js";
|
|
48
51
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -286,7 +289,7 @@ function re(n, o, i) {
|
|
|
286
289
|
u
|
|
287
290
|
];
|
|
288
291
|
}
|
|
289
|
-
class
|
|
292
|
+
class Ot extends j {
|
|
290
293
|
constructor(o) {
|
|
291
294
|
super(), x(
|
|
292
295
|
this,
|
|
@@ -304,5 +307,5 @@ class qt extends j {
|
|
|
304
307
|
}
|
|
305
308
|
}
|
|
306
309
|
export {
|
|
307
|
-
|
|
310
|
+
Ot as default
|
|
308
311
|
};
|
|
@@ -36,6 +36,9 @@ import "../utils/dom/areaDom.js";
|
|
|
36
36
|
import "../../shared-utils/three/geometryUtil.js";
|
|
37
37
|
import "hammerjs";
|
|
38
38
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
39
|
+
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
40
|
+
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
41
|
+
import "../../vendor/three/build/three.module.js";
|
|
39
42
|
import "../../shared-utils/tag.js";
|
|
40
43
|
import "../../shared-utils/positionToVector3.js";
|
|
41
44
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
@@ -46,7 +49,7 @@ import "../../shared-utils/Subscribe.js";
|
|
|
46
49
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
47
50
|
import "../../shared-utils/five/transformPosition.js";
|
|
48
51
|
import "../../shared-utils/three/temp.js";
|
|
49
|
-
import "../../shared-utils/three/
|
|
52
|
+
import "../../shared-utils/three/core/Sphere.js";
|
|
50
53
|
import "animejs";
|
|
51
54
|
import "../../shared-utils/isNil.js";
|
|
52
55
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -436,7 +439,7 @@ function de(o, t, i) {
|
|
|
436
439
|
x
|
|
437
440
|
];
|
|
438
441
|
}
|
|
439
|
-
class
|
|
442
|
+
class Qt extends ee {
|
|
440
443
|
constructor(t) {
|
|
441
444
|
super(), te(
|
|
442
445
|
this,
|
|
@@ -454,5 +457,5 @@ class Jt extends ee {
|
|
|
454
457
|
}
|
|
455
458
|
}
|
|
456
459
|
export {
|
|
457
|
-
|
|
460
|
+
Qt as default
|
|
458
461
|
};
|
|
@@ -45,6 +45,9 @@ import "../utils/dom/areaDom.js";
|
|
|
45
45
|
import "../../shared-utils/three/geometryUtil.js";
|
|
46
46
|
import "hammerjs";
|
|
47
47
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
48
|
+
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
49
|
+
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
50
|
+
import "../../vendor/three/build/three.module.js";
|
|
48
51
|
import "../../shared-utils/tag.js";
|
|
49
52
|
import "../../shared-utils/positionToVector3.js";
|
|
50
53
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
@@ -54,7 +57,7 @@ import "../../shared-utils/Subscribe.js";
|
|
|
54
57
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
55
58
|
import "../../shared-utils/five/transformPosition.js";
|
|
56
59
|
import "../../shared-utils/three/temp.js";
|
|
57
|
-
import "../../shared-utils/three/
|
|
60
|
+
import "../../shared-utils/three/core/Sphere.js";
|
|
58
61
|
import "animejs";
|
|
59
62
|
import "../../shared-utils/isNil.js";
|
|
60
63
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -87,7 +90,7 @@ import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
|
87
90
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
88
91
|
import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
89
92
|
const b = () => !1;
|
|
90
|
-
class
|
|
93
|
+
class Pt extends z {
|
|
91
94
|
constructor(e) {
|
|
92
95
|
super(e);
|
|
93
96
|
s(this, "type", "edit");
|
|
@@ -367,5 +370,5 @@ class gt extends z {
|
|
|
367
370
|
}
|
|
368
371
|
}
|
|
369
372
|
export {
|
|
370
|
-
|
|
373
|
+
Pt as default
|
|
371
374
|
};
|
|
@@ -32,6 +32,9 @@ import "../Model/polyline.js";
|
|
|
32
32
|
import "../utils/dom/areaDom.js";
|
|
33
33
|
import "../../shared-utils/three/geometryUtil.js";
|
|
34
34
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
35
|
+
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
36
|
+
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
37
|
+
import "../../vendor/three/build/three.module.js";
|
|
35
38
|
import "../../shared-utils/tag.js";
|
|
36
39
|
import "../../shared-utils/positionToVector3.js";
|
|
37
40
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
@@ -41,7 +44,7 @@ import "../../shared-utils/Subscribe.js";
|
|
|
41
44
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
42
45
|
import "../../shared-utils/five/transformPosition.js";
|
|
43
46
|
import "../../shared-utils/three/temp.js";
|
|
44
|
-
import "../../shared-utils/three/
|
|
47
|
+
import "../../shared-utils/three/core/Sphere.js";
|
|
45
48
|
import "animejs";
|
|
46
49
|
import "../../shared-utils/isNil.js";
|
|
47
50
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -52,7 +55,7 @@ import "earcut";
|
|
|
52
55
|
import "../../shared-utils/three/getNormal.js";
|
|
53
56
|
import "../utils/isIntersecting.js";
|
|
54
57
|
const E = () => !1;
|
|
55
|
-
class
|
|
58
|
+
class Ot extends U {
|
|
56
59
|
constructor(t) {
|
|
57
60
|
super(t);
|
|
58
61
|
s(this, "type", "watch");
|
|
@@ -225,5 +228,5 @@ class xt extends U {
|
|
|
225
228
|
}
|
|
226
229
|
}
|
|
227
230
|
export {
|
|
228
|
-
|
|
231
|
+
Ot as default
|
|
229
232
|
};
|
|
@@ -25,8 +25,9 @@ import { safeObj as U } from "../../shared-utils/safeObj.js";
|
|
|
25
25
|
import { Magnifier as V } from "../../shared-utils/three/Magnifier.js";
|
|
26
26
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
27
27
|
import "@realsee/five/line";
|
|
28
|
+
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
28
29
|
import "../../shared-utils/tag.js";
|
|
29
|
-
import "../../shared-utils/three/
|
|
30
|
+
import "../../shared-utils/three/core/Sphere.js";
|
|
30
31
|
import "animejs";
|
|
31
32
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
32
33
|
import { isTouchDevice as K } from "../../shared-utils/isTouchDevice.js";
|
|
@@ -67,6 +68,8 @@ import "../../CSS3DRenderPlugin/utils/even.js";
|
|
|
67
68
|
import "../../shared-utils/Subscribe.js";
|
|
68
69
|
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
69
70
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
71
|
+
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
72
|
+
import "../../vendor/three/build/three.module.js";
|
|
70
73
|
import "../../shared-utils/positionToVector3.js";
|
|
71
74
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
72
75
|
import "../../shared-utils/five/getFiveModel.js";
|
|
@@ -123,7 +126,7 @@ import "../../vendor/svelte/easing/index.js";
|
|
|
123
126
|
import "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
124
127
|
import "../Components/Tip.js";
|
|
125
128
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
126
|
-
class
|
|
129
|
+
class Xe extends H {
|
|
127
130
|
constructor(t, e) {
|
|
128
131
|
var l, u, d, f, g, y, C, M, w, P, b, v;
|
|
129
132
|
super(t);
|
|
@@ -332,5 +335,5 @@ class ze extends H {
|
|
|
332
335
|
}
|
|
333
336
|
}
|
|
334
337
|
export {
|
|
335
|
-
|
|
338
|
+
Xe as default
|
|
336
339
|
};
|
|
@@ -26,6 +26,9 @@ import "../utils/isIntersecting.js";
|
|
|
26
26
|
import "../../shared-utils/three/geometryUtil.js";
|
|
27
27
|
import "hammerjs";
|
|
28
28
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
29
|
+
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
30
|
+
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
31
|
+
import "../../vendor/three/build/three.module.js";
|
|
29
32
|
import "../../shared-utils/tag.js";
|
|
30
33
|
import "../../shared-utils/positionToVector3.js";
|
|
31
34
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
@@ -36,11 +39,11 @@ import "../../shared-utils/Subscribe.js";
|
|
|
36
39
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
37
40
|
import "../../shared-utils/five/transformPosition.js";
|
|
38
41
|
import "../../shared-utils/three/temp.js";
|
|
39
|
-
import "../../shared-utils/three/
|
|
42
|
+
import "../../shared-utils/three/core/Sphere.js";
|
|
40
43
|
import "animejs";
|
|
41
44
|
import "../../shared-utils/isNil.js";
|
|
42
45
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
43
|
-
class
|
|
46
|
+
class rt {
|
|
44
47
|
constructor(t, e) {
|
|
45
48
|
i(this, "id", f());
|
|
46
49
|
i(this, "selected", !1);
|
|
@@ -139,5 +142,5 @@ class st {
|
|
|
139
142
|
}
|
|
140
143
|
}
|
|
141
144
|
export {
|
|
142
|
-
|
|
145
|
+
rt as default
|
|
143
146
|
};
|
|
@@ -2,12 +2,15 @@ import "three";
|
|
|
2
2
|
import { Magnifier as o } from "../../shared-utils/three/Magnifier.js";
|
|
3
3
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
4
4
|
import "@realsee/five/line";
|
|
5
|
+
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
5
6
|
import "../../shared-utils/tag.js";
|
|
6
|
-
import "../../shared-utils/three/
|
|
7
|
+
import "../../shared-utils/three/core/Sphere.js";
|
|
7
8
|
import "animejs";
|
|
8
9
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
9
10
|
import "hammerjs";
|
|
10
11
|
import "../../shared-utils/Subscribe.js";
|
|
12
|
+
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
13
|
+
import "../../vendor/three/build/three.module.js";
|
|
11
14
|
import "../../shared-utils/positionToVector3.js";
|
|
12
15
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
13
16
|
import "../../shared-utils/five/getFiveModel.js";
|
|
@@ -42,6 +42,9 @@ import "../../utils/dom/areaDom.js";
|
|
|
42
42
|
import "../../../shared-utils/three/geometryUtil.js";
|
|
43
43
|
import "hammerjs";
|
|
44
44
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
45
|
+
import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
46
|
+
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
47
|
+
import "../../../vendor/three/build/three.module.js";
|
|
45
48
|
import "../../../shared-utils/tag.js";
|
|
46
49
|
import "../../../shared-utils/positionToVector3.js";
|
|
47
50
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
@@ -52,7 +55,7 @@ import "../../../shared-utils/Subscribe.js";
|
|
|
52
55
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
53
56
|
import "../../../shared-utils/five/transformPosition.js";
|
|
54
57
|
import "../../../shared-utils/three/temp.js";
|
|
55
|
-
import "../../../shared-utils/three/
|
|
58
|
+
import "../../../shared-utils/three/core/Sphere.js";
|
|
56
59
|
import "animejs";
|
|
57
60
|
import "../../../shared-utils/isNil.js";
|
|
58
61
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -92,7 +95,7 @@ import "../../Components/Common/Switcher1.js";
|
|
|
92
95
|
import "../../Components/Common/CircleButton.js";
|
|
93
96
|
import "../../../vendor/svelte/transition/index.js";
|
|
94
97
|
import "../../../vendor/svelte/easing/index.js";
|
|
95
|
-
class
|
|
98
|
+
class uo {
|
|
96
99
|
constructor(o, t) {
|
|
97
100
|
i(this, "revoke");
|
|
98
101
|
i(this, "container");
|
|
@@ -146,5 +149,5 @@ class co {
|
|
|
146
149
|
}
|
|
147
150
|
}
|
|
148
151
|
export {
|
|
149
|
-
|
|
152
|
+
uo as UIController
|
|
150
153
|
};
|