@realsee/dnalogel 3.50.14 → 3.50.15-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +116 -0
- package/dist/Sculpt/Objects/Base/index.d.ts +1 -1
- package/dist/Sculpt/index.d.ts +2 -2
- package/dist/index.cjs.js +255 -255
- package/dist/index.js +2733 -2732
- package/dist/index.umd.js +251 -251
- package/dist/shared-utils/tag.d.ts +1 -1
- package/dist/shared-utils/three/index.d.ts +1 -0
- package/libs/AreaMakerPlugin/Controller.js +104 -74
- package/libs/AreaMakerPlugin/index.js +33 -3
- package/libs/AreaMakerPlugin/utils/Item.js +66 -36
- package/libs/CSS3DRenderPlugin/Controller.js +35 -15
- package/libs/CSS3DRenderPlugin/index.js +34 -14
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +60 -35
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +98 -78
- package/libs/CruisePlugin/BaseController.js +59 -29
- package/libs/CruisePlugin/Move.js +32 -13
- package/libs/CruisePlugin/Work.js +65 -46
- package/libs/CruisePlugin/index.js +37 -18
- package/libs/CurrentPanoImagePlugin/Controller.js +68 -38
- package/libs/CurrentPanoImagePlugin/index.js +34 -4
- package/libs/GuideLinePlugin/Controller.js +59 -40
- package/libs/GuideLinePlugin/GuideLineItem.js +33 -14
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +33 -14
- package/libs/GuideLinePlugin/index.js +37 -18
- package/libs/ModelMakerPlugin/Controller.js +50 -32
- package/libs/ModelMakerPlugin/index.js +33 -15
- package/libs/ModelTVVideoPlugin/Plugin.js +47 -27
- package/libs/ModelTVVideoPlugin/index.js +23 -3
- package/libs/Object3DHelperPlugin/Controller.js +49 -30
- package/libs/Object3DHelperPlugin/index.js +36 -17
- package/libs/PanoCompassPlugin/Controller.js +33 -13
- package/libs/PanoCompassPlugin/index.js +34 -14
- package/libs/PanoDoorLabelPlugin/BaseController.js +55 -25
- package/libs/PanoDoorLabelPlugin/Controller.js +99 -69
- package/libs/PanoDoorLabelPlugin/index.js +34 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +8 -8
- package/libs/PanoMeasurePlugin/Components/Controller1.js +8 -8
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +75 -49
- package/libs/PanoMeasurePlugin/Controller/index.js +15 -15
- package/libs/PanoMeasurePlugin/Model/area.js +41 -15
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +29 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +8 -8
- package/libs/PanoMeasurePlugin/index.js +3 -3
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +43 -15
- package/libs/PanoRulerProPlugin/Controller.js +60 -30
- package/libs/PanoRulerProPlugin/RulerItems.js +85 -55
- package/libs/PanoRulerProPlugin/index.js +33 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +53 -33
- package/libs/PanoSpatialTagPlugin/index.js +21 -1
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +79 -49
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +235 -206
- package/libs/PanoTagPlugin/Components/Tag/index.js +152 -125
- package/libs/PanoTagPlugin/Components/TagContainer.js +97 -70
- package/libs/PanoTagPlugin/Components/TagItem.js +31 -4
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +29 -2
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +55 -28
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +53 -26
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +54 -27
- package/libs/PanoTagPlugin/controller/TagRender.js +47 -28
- package/libs/PanoTagPlugin/controller/TagUtil.js +32 -13
- package/libs/PanoTagPlugin/controller/index.js +45 -26
- package/libs/PanoTagPlugin/index.js +40 -21
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +59 -29
- package/libs/PanoVideoPlugin/Controller.js +91 -61
- package/libs/PanoVideoPlugin/VideoMeshController.js +56 -26
- package/libs/PanoVideoPlugin/index.js +36 -6
- package/libs/PipelinePlugin/Controller.js +80 -51
- package/libs/PipelinePlugin/index.js +34 -5
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +44 -14
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +43 -13
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +61 -31
- package/libs/Sculpt/Meshes/Box.js +3 -2
- package/libs/Sculpt/Meshes/Cylinder.js +3 -2
- package/libs/Sculpt/Meshes/Line.js +9 -8
- package/libs/Sculpt/Meshes/LineWithDots.js +8 -7
- package/libs/Sculpt/Meshes/Point.js +3 -2
- package/libs/Sculpt/Meshes/Polygon.js +3 -2
- package/libs/Sculpt/Meshes/Prism.js +8 -7
- package/libs/Sculpt/Meshes/Rectangle.js +3 -2
- package/libs/Sculpt/Objects/Base/index.d.ts +1 -1
- package/libs/Sculpt/Objects/Line/Editor.js +7 -6
- package/libs/Sculpt/index.d.ts +2 -2
- package/libs/Sculpt/index.js +3 -2
- package/libs/Sculpt/utils/three/ColoredMesh.js +6 -5
- package/libs/base/BasePlugin.js +4 -3
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +88 -59
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +34 -5
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +79 -50
- package/libs/floorplan/ModelFloorplanPlugin/index.js +34 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +68 -38
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +34 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +104 -75
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +34 -5
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +28 -28
- package/libs/shared-utils/five/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/index.js +44 -42
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +1 -1
- package/libs/shared-utils/tag.js +41 -41
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -2
- package/libs/shared-utils/three/index.d.ts +1 -0
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ var T = (p, a, i) => a in p ? $(p, a, { enumerable: !0, configurable: !0, writab
|
|
|
10
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
|
|
13
|
+
var n = (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";
|
|
@@ -29,80 +29,110 @@ import "../shared-utils/five/transformPosition.js";
|
|
|
29
29
|
import "../shared-utils/three/temp.js";
|
|
30
30
|
import "../shared-utils/dom/resizeObserver.js";
|
|
31
31
|
import "hammerjs";
|
|
32
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
33
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
34
|
+
import "../shared-utils/three/Magnifier.js";
|
|
35
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
36
|
+
import "../shared-utils/three/Assets/index.js";
|
|
37
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
32
38
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
39
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
40
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
41
|
+
import "../shared-utils/three/centerPoint.js";
|
|
42
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
33
43
|
import "@realsee/five/line";
|
|
34
44
|
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
35
45
|
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
36
46
|
import "../vendor/three/build/three.module.js";
|
|
37
47
|
import "../shared-utils/three/core/Sphere.js";
|
|
38
48
|
import "animejs";
|
|
39
|
-
import "../shared-utils/
|
|
49
|
+
import "../shared-utils/isNil.js";
|
|
40
50
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
51
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
52
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
53
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
54
|
+
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
55
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
56
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
57
|
+
import "../Sculpt/Meshes/Line.js";
|
|
58
|
+
import "../Sculpt/typings/style.js";
|
|
59
|
+
import "../shared-utils/five/FiveLine.js";
|
|
60
|
+
import "../shared-utils/three/IObject3D.js";
|
|
61
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
62
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
63
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
64
|
+
import "../shared-utils/util.js";
|
|
65
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
66
|
+
import "../shared-utils/isTouchDevice.js";
|
|
67
|
+
import "../shared-utils/five/getPosition.js";
|
|
68
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
69
|
+
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
70
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
41
71
|
import "../vendor/svelte/internal/index.js";
|
|
42
72
|
import "../vendor/classnames/index.js";
|
|
43
73
|
const ii = { userAction: !0 };
|
|
44
|
-
class
|
|
74
|
+
class at extends q {
|
|
45
75
|
constructor(i) {
|
|
46
76
|
super(i);
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
77
|
+
n(this, "MinVisibledistance", 1.8);
|
|
78
|
+
n(this, "MaxVisibledistance", 5);
|
|
79
|
+
n(this, "OffsetHeight", -1.3);
|
|
50
80
|
// 标签页面高度偏移值
|
|
51
|
-
|
|
52
|
-
|
|
81
|
+
n(this, "rooms");
|
|
82
|
+
n(this, "floorplanServerData");
|
|
53
83
|
/** 标签项 */
|
|
54
|
-
|
|
84
|
+
n(this, "doorLabelItems");
|
|
55
85
|
/** 每个点位 visible 标签的缓存 */
|
|
56
|
-
|
|
86
|
+
n(this, "visibleLabelMap", /* @__PURE__ */ new Map());
|
|
57
87
|
/** 标签项Prop值 */
|
|
58
|
-
|
|
88
|
+
n(this, "labelItems", []);
|
|
59
89
|
/** 数据 */
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
90
|
+
n(this, "doorLabels");
|
|
91
|
+
n(this, "roomObservers");
|
|
92
|
+
n(this, "loadData", (i, r) => {
|
|
93
|
+
r && (this.MaxVisibledistance = r.MaxVisibledistance, this.MinVisibledistance = r.MinVisibledistance, this.OffsetHeight = r.OffsetHeight), this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((m) => {
|
|
94
|
+
m.$destroy();
|
|
65
95
|
}), this.labelItems = [], this.doorLabels = [], this.doorLabelItems = [], this.floorplanServerData = i, typeof this.five.ready == "function" ? this.five.ready().then(() => this.initData()) : this.five.once("panoArrived", () => {
|
|
66
96
|
this.initData();
|
|
67
97
|
});
|
|
68
98
|
});
|
|
69
|
-
|
|
99
|
+
n(this, "initRoomObservers", () => {
|
|
70
100
|
var l, h;
|
|
71
|
-
const i = this.floorplanServerData.computed_data.floor_datas || [],
|
|
72
|
-
const s = o.panoIndex, f = o.floorIndex,
|
|
73
|
-
if (
|
|
74
|
-
const
|
|
75
|
-
if (
|
|
76
|
-
return { panoIndex: s, floorIndex: f, name:
|
|
101
|
+
const i = this.floorplanServerData.computed_data.floor_datas || [], m = (((h = (l = this.five) == null ? void 0 : l.work) == null ? void 0 : h.observers) || []).map((o) => {
|
|
102
|
+
const s = o.panoIndex, f = o.floorIndex, t = i == null ? void 0 : i.find((e) => e.floor_index === f);
|
|
103
|
+
if (t) {
|
|
104
|
+
const e = t.rooms.find((c) => c.observer_indexs.includes(s));
|
|
105
|
+
if (e)
|
|
106
|
+
return { panoIndex: s, floorIndex: f, name: e.name };
|
|
77
107
|
}
|
|
78
108
|
}).filter(Boolean);
|
|
79
|
-
this.roomObservers =
|
|
109
|
+
this.roomObservers = m;
|
|
80
110
|
});
|
|
81
|
-
|
|
111
|
+
n(this, "hideAllLabels", () => {
|
|
82
112
|
this.labelItems.forEach((i) => {
|
|
83
113
|
i.visible = !1, i.inSight = !1;
|
|
84
114
|
}), this.render();
|
|
85
115
|
});
|
|
86
|
-
|
|
116
|
+
n(this, "fixDoorVisibleAndPosition", () => {
|
|
87
117
|
this.initRoomObservers();
|
|
88
118
|
const { panoIndex: i } = this.five;
|
|
89
119
|
if (!this.visible || this.five.model.empty || i === null || !this.roomObservers.find((o) => o.panoIndex === i))
|
|
90
120
|
return;
|
|
91
|
-
const
|
|
121
|
+
const r = this.roomObservers.find((o) => o.panoIndex === i), l = this.five.work.observers.find((o) => o.panoIndex === i).position.clone(), h = (() => {
|
|
92
122
|
if (this.visibleLabelMap.has(i))
|
|
93
123
|
return this.visibleLabelMap.get(i);
|
|
94
124
|
{
|
|
95
125
|
const o = [];
|
|
96
126
|
return this.doorLabels.forEach((s, f) => {
|
|
97
|
-
if (s.roomName ===
|
|
127
|
+
if (s.roomName === r.name)
|
|
98
128
|
return;
|
|
99
|
-
const
|
|
100
|
-
if (
|
|
129
|
+
const t = s.position.clone(), e = t.distanceTo(l);
|
|
130
|
+
if (e < this.MinVisibledistance || e > this.MaxVisibledistance)
|
|
101
131
|
return;
|
|
102
|
-
const c = new Q(), v =
|
|
132
|
+
const c = new Q(), v = t.clone().sub(l).normalize();
|
|
103
133
|
c.set(l, v);
|
|
104
134
|
const [b] = this.five.model.intersectRaycaster(c);
|
|
105
|
-
b && b.distance + 0.1 <
|
|
135
|
+
b && b.distance + 0.1 < e || o.push(f);
|
|
106
136
|
}), this.visibleLabelMap.set(i, o), o;
|
|
107
137
|
}
|
|
108
138
|
})();
|
|
@@ -110,22 +140,22 @@ class Ei extends q {
|
|
|
110
140
|
o.visible = h.includes(s);
|
|
111
141
|
}), this.fixDoorPosition();
|
|
112
142
|
});
|
|
113
|
-
|
|
114
|
-
var
|
|
115
|
-
const { panoIndex: i, camera:
|
|
143
|
+
n(this, "fixDoorPosition", () => {
|
|
144
|
+
var t, e, c, v, b, y, g, w, L, E, _, S;
|
|
145
|
+
const { panoIndex: i, camera: r } = this.five;
|
|
116
146
|
if (i === null)
|
|
117
147
|
return;
|
|
118
148
|
if (this.five.currentMode !== "Panorama")
|
|
119
149
|
return this.hideAllLabels();
|
|
120
|
-
const
|
|
121
|
-
if (f.forEach((
|
|
122
|
-
if (
|
|
123
|
-
const x =
|
|
124
|
-
|
|
150
|
+
const m = this.five.getElement(), l = m.clientWidth, h = m.clientHeight, o = r.getWorldDirection(new V()), s = [], f = [...this.labelItems];
|
|
151
|
+
if (f.forEach((d, u) => {
|
|
152
|
+
if (d.visible) {
|
|
153
|
+
const x = r.position.distanceTo(d.position), M = d.position.clone().add(new V(0, this.OffsetHeight, 0)), A = M.clone().sub(r.position).normalize().angleTo(o), O = M.clone().project(r), P = (O.x + 1) / 2.2 * 100, I = (-O.y + 1) / 2.2 * 100, D = P >= 0 && P <= 100 && I >= 0 && I <= 100 && x > this.MinVisibledistance && x <= this.MaxVisibledistance;
|
|
154
|
+
d.left = P, d.top = I, d.inSight = D && A < Math.PI / 2, d.cameraToward = Y(this.five), D ? s.push({ disFromCameraToLabel: x, left: P, top: I, index: u }) : d.transform = "translate(-50%, -50%)";
|
|
125
155
|
} else
|
|
126
|
-
|
|
156
|
+
d.inSight = !1;
|
|
127
157
|
}), s.length > 1) {
|
|
128
|
-
let
|
|
158
|
+
let d = 0;
|
|
129
159
|
s.sort((u, x) => x.disFromCameraToLabel - u.disFromCameraToLabel);
|
|
130
160
|
for (let u = 1; u < s.length; u++) {
|
|
131
161
|
const { index: x, left: M, top: k } = s[u - 1], { index: A, left: O, top: P } = s[u], I = this.container.children[x], D = this.container.children[A];
|
|
@@ -134,7 +164,7 @@ class Ei extends q {
|
|
|
134
164
|
const R = {
|
|
135
165
|
left: l * M / 100,
|
|
136
166
|
top: h * k / 100,
|
|
137
|
-
width: (c = (
|
|
167
|
+
width: (c = (e = (t = I.children) == null ? void 0 : t[0]) == null ? void 0 : e.clientWidth) != null ? c : 0,
|
|
138
168
|
height: (y = (b = (v = I.children) == null ? void 0 : v[0]) == null ? void 0 : b.clientHeight) != null ? y : 0
|
|
139
169
|
}, F = {
|
|
140
170
|
left: l * O / 100,
|
|
@@ -142,56 +172,56 @@ class Ei extends q {
|
|
|
142
172
|
width: (L = (w = (g = D.children) == null ? void 0 : g[0]) == null ? void 0 : w.clientWidth) != null ? L : 0,
|
|
143
173
|
height: (S = (_ = (E = D.children) == null ? void 0 : E[0]) == null ? void 0 : _.clientHeight) != null ? S : 0
|
|
144
174
|
};
|
|
145
|
-
Z(R, F) && (
|
|
175
|
+
Z(R, F) && (d++, f[x].transform = `translate(-50%, ${(d - 1) * 100 - 50}%)`, f[A].transform = `translate(-50%, ${d * 100 - 50}%)`);
|
|
146
176
|
}
|
|
147
177
|
}
|
|
148
178
|
this.labelItems = f, this.render();
|
|
149
179
|
});
|
|
150
|
-
|
|
180
|
+
n(this, "onClick", (i, r) => {
|
|
151
181
|
if (!this.roomObservers)
|
|
152
182
|
return;
|
|
153
|
-
const { work:
|
|
183
|
+
const { work: m } = this.five;
|
|
154
184
|
let l, h, o = 1 / 0;
|
|
155
|
-
for (const s of
|
|
156
|
-
if (this.roomObservers.find((
|
|
157
|
-
const
|
|
158
|
-
|
|
185
|
+
for (const s of m.observers)
|
|
186
|
+
if (this.roomObservers.find((t) => t.panoIndex === s.panoIndex && t.name === i)) {
|
|
187
|
+
const t = s.standingPosition, e = r.distanceTo(t);
|
|
188
|
+
e < o && (l = s.panoIndex, h = t.clone().sub(r).normalize(), o = e);
|
|
159
189
|
}
|
|
160
190
|
if (h !== null && l !== null) {
|
|
161
191
|
const s = {};
|
|
162
192
|
if (o > 0) {
|
|
163
|
-
const
|
|
164
|
-
c.setFromUnitVectors(
|
|
193
|
+
const t = new V(0, 0, -1), e = h.clone(), c = new j();
|
|
194
|
+
c.setFromUnitVectors(t, e);
|
|
165
195
|
const v = new z();
|
|
166
196
|
v.setFromQuaternion(c, "YXZ"), s.longitude = v.y;
|
|
167
197
|
}
|
|
168
198
|
this.five.emit("wantsToMoveToPano", l, {}, !0) || this.five.moveToPano(l, { longitude: s.longitude });
|
|
169
199
|
}
|
|
170
200
|
});
|
|
171
|
-
|
|
201
|
+
n(this, "initData", () => {
|
|
172
202
|
var l;
|
|
173
203
|
this.doorLabels = [];
|
|
174
|
-
const i = this.five.panoIndex,
|
|
175
|
-
this.rooms =
|
|
204
|
+
const i = this.five.panoIndex, r = this.floorplanServerData.computed_data.observers[i].floor_index, m = r !== void 0 && ((l = this.floorplanServerData.computed_data.floor_datas[r]) == null ? void 0 : l.rooms);
|
|
205
|
+
this.rooms = m, this.rooms && this.rooms.length > 0 && this.rooms.forEach((h) => {
|
|
176
206
|
var f;
|
|
177
|
-
const o = (f = this.floorplanServerData.computed_data.doors) == null ? void 0 : f.filter((
|
|
178
|
-
o && o.forEach((
|
|
179
|
-
const
|
|
207
|
+
const o = (f = this.floorplanServerData.computed_data.doors) == null ? void 0 : f.filter((t) => !!(t && t.name === h.name)), s = this.five.work.observers.filter((t, e) => !!h.observer_indexs.find((c) => c === e));
|
|
208
|
+
o && o.forEach((t) => {
|
|
209
|
+
const e = t.position;
|
|
180
210
|
let c = 1 / 0, v;
|
|
181
211
|
s.forEach((y) => {
|
|
182
212
|
const g = y.standingPosition, w = {
|
|
183
213
|
x: g.x,
|
|
184
214
|
y: g.y,
|
|
185
215
|
z: g.z
|
|
186
|
-
}, L = J(
|
|
216
|
+
}, L = J(e, w);
|
|
187
217
|
L < c && (c = L, v = w);
|
|
188
|
-
}), v && (
|
|
189
|
-
const b = new V(
|
|
190
|
-
b.add(new V(-0.2, 1.8, 0).applyEuler(new z(0,
|
|
218
|
+
}), v && (e.y = v.y + 0.01);
|
|
219
|
+
const b = new V(e.x, e.y, e.z);
|
|
220
|
+
b.add(new V(-0.2, 1.8, 0).applyEuler(new z(0, t.rad, 0))), this.doorLabels.push({
|
|
191
221
|
roomName: h.name,
|
|
192
|
-
name:
|
|
222
|
+
name: t.name,
|
|
193
223
|
position: b,
|
|
194
|
-
toward: K(
|
|
224
|
+
toward: K(t.rad)
|
|
195
225
|
});
|
|
196
226
|
});
|
|
197
227
|
}), this.labelItems = this.doorLabels.map((h) => W(H({}, h), {
|
|
@@ -204,14 +234,14 @@ class Ei extends q {
|
|
|
204
234
|
})), 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();
|
|
205
235
|
});
|
|
206
236
|
}
|
|
207
|
-
stateChangedCallback(i,
|
|
237
|
+
stateChangedCallback(i, r) {
|
|
208
238
|
if (this.hooks.hasListener("stateChange")) {
|
|
209
|
-
const
|
|
239
|
+
const m = {
|
|
210
240
|
state: this.state,
|
|
211
241
|
prevState: i,
|
|
212
|
-
userAction:
|
|
242
|
+
userAction: r ? r.userAction : ii.userAction
|
|
213
243
|
};
|
|
214
|
-
this.hooks.emit("stateChange",
|
|
244
|
+
this.hooks.emit("stateChange", m);
|
|
215
245
|
}
|
|
216
246
|
}
|
|
217
247
|
render() {
|
|
@@ -245,5 +275,5 @@ class Ei extends q {
|
|
|
245
275
|
}
|
|
246
276
|
}
|
|
247
277
|
export {
|
|
248
|
-
|
|
278
|
+
at as PanoDoorLabelPluginController
|
|
249
279
|
};
|
|
@@ -15,21 +15,51 @@ import "../shared-utils/five/transformPosition.js";
|
|
|
15
15
|
import "../shared-utils/three/temp.js";
|
|
16
16
|
import "../shared-utils/dom/resizeObserver.js";
|
|
17
17
|
import "hammerjs";
|
|
18
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
19
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
20
|
+
import "../shared-utils/three/Magnifier.js";
|
|
21
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
22
|
+
import "../shared-utils/three/Assets/index.js";
|
|
23
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
18
24
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
25
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
26
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
27
|
+
import "../shared-utils/three/centerPoint.js";
|
|
28
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
19
29
|
import "@realsee/five/line";
|
|
20
30
|
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
21
31
|
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
22
32
|
import "../vendor/three/build/three.module.js";
|
|
23
33
|
import "../shared-utils/three/core/Sphere.js";
|
|
24
34
|
import "animejs";
|
|
25
|
-
import "../shared-utils/
|
|
35
|
+
import "../shared-utils/isNil.js";
|
|
26
36
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
37
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
38
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
39
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
40
|
+
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
41
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
42
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
43
|
+
import "../Sculpt/Meshes/Line.js";
|
|
44
|
+
import "../Sculpt/typings/style.js";
|
|
45
|
+
import "../shared-utils/five/FiveLine.js";
|
|
46
|
+
import "../shared-utils/three/IObject3D.js";
|
|
47
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
48
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
49
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
50
|
+
import "../shared-utils/util.js";
|
|
51
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
52
|
+
import "../shared-utils/isTouchDevice.js";
|
|
53
|
+
import "../shared-utils/five/getPosition.js";
|
|
54
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
55
|
+
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
56
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
27
57
|
import "./DoorLabelItem.js";
|
|
28
58
|
import "../vendor/svelte/internal/index.js";
|
|
29
59
|
import "../vendor/classnames/index.js";
|
|
30
60
|
import "./utils.js";
|
|
31
|
-
const
|
|
61
|
+
const lo = (o) => new r(o);
|
|
32
62
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
63
|
+
lo as PanoDoorLabelPlugin,
|
|
64
|
+
lo as default
|
|
35
65
|
};
|
|
@@ -42,23 +42,23 @@ import "../../shared-utils/five/transformPosition.js";
|
|
|
42
42
|
import "../../shared-utils/three/temp.js";
|
|
43
43
|
import "../../shared-utils/dom/resizeObserver.js";
|
|
44
44
|
import "hammerjs";
|
|
45
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
46
|
-
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
47
|
-
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
48
|
-
import "../../vendor/three/build/three.module.js";
|
|
49
|
-
import "../../shared-utils/three/core/Sphere.js";
|
|
50
|
-
import "animejs";
|
|
51
|
-
import "../../shared-utils/isNil.js";
|
|
52
|
-
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
53
45
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
54
46
|
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
55
47
|
import "../../shared-utils/three/Magnifier.js";
|
|
56
48
|
import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
57
49
|
import "../../shared-utils/three/Assets/index.js";
|
|
58
50
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
51
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
59
52
|
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
60
53
|
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
61
54
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
55
|
+
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
56
|
+
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
57
|
+
import "../../vendor/three/build/three.module.js";
|
|
58
|
+
import "../../shared-utils/three/core/Sphere.js";
|
|
59
|
+
import "animejs";
|
|
60
|
+
import "../../shared-utils/isNil.js";
|
|
61
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
62
62
|
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
63
63
|
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
64
64
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
@@ -46,23 +46,23 @@ import "../../shared-utils/five/transformPosition.js";
|
|
|
46
46
|
import "../../shared-utils/three/temp.js";
|
|
47
47
|
import "../../shared-utils/dom/resizeObserver.js";
|
|
48
48
|
import "hammerjs";
|
|
49
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
50
|
-
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
51
|
-
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
52
|
-
import "../../vendor/three/build/three.module.js";
|
|
53
|
-
import "../../shared-utils/three/core/Sphere.js";
|
|
54
|
-
import "animejs";
|
|
55
|
-
import "../../shared-utils/isNil.js";
|
|
56
|
-
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
57
49
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
58
50
|
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
59
51
|
import "../../shared-utils/three/Magnifier.js";
|
|
60
52
|
import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
61
53
|
import "../../shared-utils/three/Assets/index.js";
|
|
62
54
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
55
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
63
56
|
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
64
57
|
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
65
58
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
59
|
+
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
60
|
+
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
61
|
+
import "../../vendor/three/build/three.module.js";
|
|
62
|
+
import "../../shared-utils/three/core/Sphere.js";
|
|
63
|
+
import "animejs";
|
|
64
|
+
import "../../shared-utils/isNil.js";
|
|
65
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
66
66
|
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
67
67
|
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
68
68
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|