@realsee/dnalogel 3.46.0 → 3.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/Sculpt/Meshes/Polygon.d.ts +6 -0
- package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +8 -0
- package/dist/Sculpt/Meshes/Polyline.d.ts +7 -0
- package/dist/Sculpt/utils/removeAllTag.d.ts +2 -0
- package/dist/Sculpt/utils/three/ColoredMesh.d.ts +6 -0
- package/dist/index.cjs.js +54 -54
- package/dist/index.js +3645 -3592
- package/dist/index.umd.js +46 -46
- package/dist/shared-utils/five/getPosition.d.ts +2 -0
- package/dist/shared-utils/three/PointSelector/index.d.ts +14 -10
- package/dist/typings/typings.d.ts +2 -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 +3 -2
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +3 -2
- package/libs/CruisePlugin/BaseController.js +5 -4
- package/libs/CruisePlugin/Move.js +3 -2
- package/libs/CruisePlugin/Work.js +3 -2
- package/libs/CruisePlugin/index.js +7 -6
- package/libs/CurrentPanoImagePlugin/Controller.js +3 -2
- package/libs/CurrentPanoImagePlugin/index.js +4 -3
- package/libs/GuideLinePlugin/Controller.js +5 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
- package/libs/GuideLinePlugin/index.js +7 -6
- package/libs/ModelMakerPlugin/Controller.js +3 -2
- package/libs/ModelMakerPlugin/index.js +3 -2
- package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
- package/libs/ModelTVVideoPlugin/index.js +3 -2
- package/libs/Object3DHelperPlugin/Controller.js +19 -18
- package/libs/Object3DHelperPlugin/index.js +6 -5
- package/libs/PanoCompassPlugin/Controller.js +3 -2
- package/libs/PanoCompassPlugin/index.js +4 -3
- package/libs/PanoDoorLabelPlugin/BaseController.js +3 -2
- package/libs/PanoDoorLabelPlugin/Controller.js +21 -20
- 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 +3 -2
- package/libs/PanoMeasurePlugin/index.js +14 -13
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
- package/libs/PanoSpatialTagPlugin/Plugin.js +4 -3
- package/libs/PanoSpatialTagPlugin/index.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +34 -33
- 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 +3 -2
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +62 -61
- 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/TagRender.js +3 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
- package/libs/PanoTagPlugin/controller/index.js +6 -5
- package/libs/PanoTagPlugin/index.js +12 -11
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
- package/libs/PanoVideoPlugin/Controller.js +3 -2
- 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.js +17 -14
- package/libs/Sculpt/Meshes/Polygon.d.ts +6 -0
- package/libs/Sculpt/Meshes/Polygon.js +7 -4
- package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +8 -0
- package/libs/Sculpt/Meshes/PolygonWithEdge.js +38 -24
- package/libs/Sculpt/Meshes/Polyline.d.ts +7 -0
- package/libs/Sculpt/Meshes/Polyline.js +32 -23
- package/libs/Sculpt/Objects/Base/index.js +20 -17
- package/libs/Sculpt/Objects/Line/Editor.js +6 -6
- package/libs/Sculpt/Objects/Line/index.js +16 -16
- package/libs/Sculpt/Objects/Point/Editor.js +10 -10
- package/libs/Sculpt/Objects/Polygon/Editor.js +6 -6
- package/libs/Sculpt/Objects/Polygon/index.js +43 -37
- package/libs/Sculpt/Objects/Polyline/Editor.js +3 -3
- package/libs/Sculpt/Objects/Polyline/index.js +43 -43
- package/libs/Sculpt/utils/removeAllTag.d.ts +2 -0
- package/libs/Sculpt/utils/removeAllTag.js +10 -0
- package/libs/Sculpt/utils/three/ColoredMesh.d.ts +6 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +39 -31
- package/libs/base/BasePlugin.js +1 -1
- 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 +126 -125
- package/libs/shared-utils/five/getPosition.d.ts +2 -0
- package/libs/shared-utils/five/getPosition.js +25 -30
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/index.d.ts +14 -10
- package/libs/shared-utils/three/PointSelector/index.js +74 -57
- package/libs/typings/typings.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
var x = Object.defineProperty;
|
|
2
2
|
var P = Object.getOwnPropertySymbols;
|
|
3
3
|
var I = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var S = (
|
|
4
|
+
var S = (p, o, e) => o in p ? x(p, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[o] = e, n = (p, o) => {
|
|
5
5
|
for (var e in o || (o = {}))
|
|
6
|
-
I.call(o, e) && S(
|
|
6
|
+
I.call(o, e) && S(p, e, o[e]);
|
|
7
7
|
if (P)
|
|
8
8
|
for (var e of P(o))
|
|
9
|
-
W.call(o, e) && S(
|
|
10
|
-
return
|
|
9
|
+
W.call(o, e) && S(p, e, o[e]);
|
|
10
|
+
return p;
|
|
11
11
|
};
|
|
12
|
-
var f = (
|
|
13
|
-
var g = (
|
|
12
|
+
var f = (p, o, e) => (S(p, typeof o != "symbol" ? o + "" : o, e), e);
|
|
13
|
+
var g = (p, o, e) => new Promise((t, r) => {
|
|
14
14
|
var s = (h) => {
|
|
15
15
|
try {
|
|
16
16
|
b(e.next(h));
|
|
17
|
-
} catch (
|
|
18
|
-
r(
|
|
17
|
+
} catch (l) {
|
|
18
|
+
r(l);
|
|
19
19
|
}
|
|
20
20
|
}, d = (h) => {
|
|
21
21
|
try {
|
|
22
22
|
b(e.throw(h));
|
|
23
|
-
} catch (
|
|
24
|
-
r(
|
|
23
|
+
} catch (l) {
|
|
24
|
+
r(l);
|
|
25
25
|
}
|
|
26
26
|
}, b = (h) => h.done ? t(h.value) : Promise.resolve(h.value).then(s, d);
|
|
27
|
-
b((e = e.apply(
|
|
27
|
+
b((e = e.apply(p, o)).next());
|
|
28
28
|
});
|
|
29
29
|
import { Controller as L } from "../base/BasePlugin.js";
|
|
30
30
|
import "three";
|
|
@@ -109,6 +109,7 @@ import "../Sculpt/typings/style.js";
|
|
|
109
109
|
import "../shared-utils/five/FiveLine.js";
|
|
110
110
|
import "../shared-utils/tag.js";
|
|
111
111
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
112
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
112
113
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
113
114
|
import "../shared-utils/isTouchDevice.js";
|
|
114
115
|
import "../shared-utils/five/getPosition.js";
|
|
@@ -120,7 +121,7 @@ const w = "Object3DHelperPlugin", D = w, X = () => {
|
|
|
120
121
|
}, Z = () => {
|
|
121
122
|
console.error(`${D} is disabled`);
|
|
122
123
|
};
|
|
123
|
-
class
|
|
124
|
+
class Wr extends L {
|
|
124
125
|
constructor(e) {
|
|
125
126
|
super(e);
|
|
126
127
|
f(this, "name", w);
|
|
@@ -196,22 +197,22 @@ class Ir extends L {
|
|
|
196
197
|
console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
|
|
197
198
|
return;
|
|
198
199
|
}
|
|
199
|
-
const r = new N(), s = [], d = (M = this.five.getElement()) == null ? void 0 : M.parentElement, b = this.five.camera,
|
|
200
|
+
const r = new N(), s = [], d = (M = this.five.getElement()) == null ? void 0 : M.parentElement, b = this.five.camera, l = n(n({}, {
|
|
200
201
|
moveHelper: !0,
|
|
201
202
|
rotateHelper: !0,
|
|
202
203
|
scaleHelper: !0,
|
|
203
204
|
boundingBoxHelper: !1,
|
|
204
205
|
positionFrom: "objectPosition"
|
|
205
|
-
}), t), { moveHelper: y, rotateHelper: B, scaleHelper: j, boundingBoxHelper: k } =
|
|
206
|
+
}), t), { moveHelper: y, rotateHelper: B, scaleHelper: j, boundingBoxHelper: k } = l, u = new R(), v = new R(), C = (i) => {
|
|
206
207
|
if (i)
|
|
207
208
|
return typeof i == "boolean" ? i : i.enable;
|
|
208
209
|
};
|
|
209
210
|
if (C(y)) {
|
|
210
|
-
const i = n(n({}, this.getConfig(
|
|
211
|
+
const i = n(n({}, this.getConfig(l.moveHelper)), l), m = new _(e, n({}, i)), a = new H(this.five, U, e, m, i, u, v);
|
|
211
212
|
r.addControllers({ moveController: a.helperController }), s.push(() => a.dispose());
|
|
212
213
|
}
|
|
213
214
|
if (C(B)) {
|
|
214
|
-
const i = n(n({}, this.getConfig(
|
|
215
|
+
const i = n(n({}, this.getConfig(l.rotateHelper)), l), m = new $(e, n({ container: d }, i)), a = new H(this.five, V, e, m, i, u, v);
|
|
215
216
|
r.addControllers({ rotateController: a.helperController }), s.push(() => a.dispose());
|
|
216
217
|
}
|
|
217
218
|
if (C(k)) {
|
|
@@ -248,7 +249,7 @@ class Ir extends L {
|
|
|
248
249
|
}
|
|
249
250
|
});
|
|
250
251
|
} else {
|
|
251
|
-
const i = n(n({}, this.getConfig(
|
|
252
|
+
const i = n(n({}, this.getConfig(l.scaleHelper)), l), m = new K(e, i), a = new H(this.five, Q, e, m, i, u, v);
|
|
252
253
|
r.addControllers({ scaleController: a.helperController }), s.push(() => a.dispose());
|
|
253
254
|
}
|
|
254
255
|
return this.objectHelperMap.set(e, { helper: r, disposers: s }), r.controllers;
|
|
@@ -292,6 +293,6 @@ class Ir extends L {
|
|
|
292
293
|
}
|
|
293
294
|
}
|
|
294
295
|
export {
|
|
295
|
-
|
|
296
|
+
Wr as Object3DHelperController,
|
|
296
297
|
D as PLUGIN
|
|
297
298
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Object3DHelperController as o } from "./Controller.js";
|
|
2
|
-
import { PLUGIN as
|
|
2
|
+
import { PLUGIN as Fr } from "./Controller.js";
|
|
3
3
|
import "../base/BasePlugin.js";
|
|
4
4
|
import "../shared-utils/Subscribe.js";
|
|
5
5
|
import "three";
|
|
@@ -82,14 +82,15 @@ import "../Sculpt/typings/style.js";
|
|
|
82
82
|
import "../shared-utils/five/FiveLine.js";
|
|
83
83
|
import "../shared-utils/tag.js";
|
|
84
84
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
85
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
85
86
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
86
87
|
import "../shared-utils/isTouchDevice.js";
|
|
87
88
|
import "../shared-utils/five/getPosition.js";
|
|
88
89
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
89
|
-
const
|
|
90
|
+
const Ar = (r) => new o(r);
|
|
90
91
|
export {
|
|
91
92
|
o as Object3DHelperController,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
Ar as Object3DHelperPlugin,
|
|
94
|
+
Fr as PLUGIN,
|
|
95
|
+
Ar as default
|
|
95
96
|
};
|
|
@@ -115,6 +115,7 @@ import "../Sculpt/typings/style.js";
|
|
|
115
115
|
import "../shared-utils/five/FiveLine.js";
|
|
116
116
|
import "../shared-utils/tag.js";
|
|
117
117
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
118
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
118
119
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
119
120
|
import "../shared-utils/isTouchDevice.js";
|
|
120
121
|
import "../shared-utils/five/getPosition.js";
|
|
@@ -123,7 +124,7 @@ import "./Assets/roomInfoIcon.js";
|
|
|
123
124
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
124
125
|
import "../shared-utils/animationFrame/index.js";
|
|
125
126
|
const g = { userAction: !0 };
|
|
126
|
-
class
|
|
127
|
+
class It extends A {
|
|
127
128
|
constructor(e, t) {
|
|
128
129
|
super(e, t);
|
|
129
130
|
/**
|
|
@@ -378,5 +379,5 @@ class yt extends A {
|
|
|
378
379
|
}
|
|
379
380
|
}
|
|
380
381
|
export {
|
|
381
|
-
|
|
382
|
+
It as PanoCompassController
|
|
382
383
|
};
|
|
@@ -84,6 +84,7 @@ import "../Sculpt/typings/style.js";
|
|
|
84
84
|
import "../shared-utils/five/FiveLine.js";
|
|
85
85
|
import "../shared-utils/tag.js";
|
|
86
86
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
87
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
87
88
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
88
89
|
import "../shared-utils/isTouchDevice.js";
|
|
89
90
|
import "../shared-utils/five/getPosition.js";
|
|
@@ -95,8 +96,8 @@ import "../CSS3DRenderPlugin/index.js";
|
|
|
95
96
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
96
97
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
97
98
|
import "../shared-utils/animationFrame/index.js";
|
|
98
|
-
const
|
|
99
|
+
const Wo = (o, r) => new t(o, r);
|
|
99
100
|
export {
|
|
100
|
-
|
|
101
|
-
|
|
101
|
+
Wo as PanoCompassPlugin,
|
|
102
|
+
Wo as default
|
|
102
103
|
};
|
|
@@ -95,11 +95,12 @@ import "../Sculpt/typings/style.js";
|
|
|
95
95
|
import "../shared-utils/five/FiveLine.js";
|
|
96
96
|
import "../shared-utils/tag.js";
|
|
97
97
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
98
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
98
99
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
99
100
|
import "../shared-utils/isTouchDevice.js";
|
|
100
101
|
import "../shared-utils/five/getPosition.js";
|
|
101
102
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
102
|
-
class
|
|
103
|
+
class _t extends c {
|
|
103
104
|
constructor(t) {
|
|
104
105
|
super(t);
|
|
105
106
|
p(this, "state");
|
|
@@ -168,5 +169,5 @@ class Zt extends c {
|
|
|
168
169
|
}
|
|
169
170
|
}
|
|
170
171
|
export {
|
|
171
|
-
|
|
172
|
+
_t as BasePanoPluginController
|
|
172
173
|
};
|
|
@@ -98,6 +98,7 @@ import "../Sculpt/typings/style.js";
|
|
|
98
98
|
import "../shared-utils/five/FiveLine.js";
|
|
99
99
|
import "../shared-utils/tag.js";
|
|
100
100
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
101
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
101
102
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
102
103
|
import "../shared-utils/isTouchDevice.js";
|
|
103
104
|
import "../shared-utils/five/getPosition.js";
|
|
@@ -105,7 +106,7 @@ import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
|
105
106
|
import "../vendor/svelte/internal/index.js";
|
|
106
107
|
import "../vendor/classnames/index.js";
|
|
107
108
|
const ii = { userAction: !0 };
|
|
108
|
-
class
|
|
109
|
+
class Bt extends q {
|
|
109
110
|
constructor(i) {
|
|
110
111
|
super(i);
|
|
111
112
|
n(this, "MinVisibledistance", 1.8);
|
|
@@ -124,15 +125,15 @@ class $t extends q {
|
|
|
124
125
|
n(this, "doorLabels");
|
|
125
126
|
n(this, "roomObservers");
|
|
126
127
|
n(this, "loadData", (i, r) => {
|
|
127
|
-
r && (this.MaxVisibledistance = r.MaxVisibledistance, this.MinVisibledistance = r.MinVisibledistance, this.OffsetHeight = r.OffsetHeight), this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((
|
|
128
|
-
|
|
128
|
+
r && (this.MaxVisibledistance = r.MaxVisibledistance, this.MinVisibledistance = r.MinVisibledistance, this.OffsetHeight = r.OffsetHeight), this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((p) => {
|
|
129
|
+
p.$destroy();
|
|
129
130
|
}), this.labelItems = [], this.doorLabels = [], this.doorLabelItems = [], this.floorplanServerData = i, typeof this.five.ready == "function" ? this.five.ready().then(() => this.initData()) : this.five.once("panoArrived", () => {
|
|
130
131
|
this.initData();
|
|
131
132
|
});
|
|
132
133
|
});
|
|
133
134
|
n(this, "initRoomObservers", () => {
|
|
134
135
|
var l, m;
|
|
135
|
-
const i = this.floorplanServerData.computed_data.floor_datas || [],
|
|
136
|
+
const i = this.floorplanServerData.computed_data.floor_datas || [], p = (((m = (l = this.five) == null ? void 0 : l.work) == null ? void 0 : m.observers) || []).map((e) => {
|
|
136
137
|
const s = e.panoIndex, c = e.floorIndex, t = i == null ? void 0 : i.find((o) => o.floor_index === c);
|
|
137
138
|
if (t) {
|
|
138
139
|
const o = t.rooms.find((h) => h.observer_indexs.includes(s));
|
|
@@ -140,7 +141,7 @@ class $t extends q {
|
|
|
140
141
|
return { panoIndex: s, floorIndex: c, name: o.name };
|
|
141
142
|
}
|
|
142
143
|
}).filter(Boolean);
|
|
143
|
-
this.roomObservers =
|
|
144
|
+
this.roomObservers = p;
|
|
144
145
|
});
|
|
145
146
|
n(this, "hideAllLabels", () => {
|
|
146
147
|
this.labelItems.forEach((i) => {
|
|
@@ -181,15 +182,15 @@ class $t extends q {
|
|
|
181
182
|
return;
|
|
182
183
|
if (this.five.currentMode !== "Panorama")
|
|
183
184
|
return this.hideAllLabels();
|
|
184
|
-
const
|
|
185
|
-
if (c.forEach((
|
|
186
|
-
if (
|
|
187
|
-
const x = r.position.distanceTo(
|
|
188
|
-
|
|
185
|
+
const p = this.five.getElement(), l = p.clientWidth, m = p.clientHeight, e = r.getWorldDirection(new V()), s = [], c = [...this.labelItems];
|
|
186
|
+
if (c.forEach((f, u) => {
|
|
187
|
+
if (f.visible) {
|
|
188
|
+
const x = r.position.distanceTo(f.position), M = f.position.clone().add(new V(0, this.OffsetHeight, 0)), A = M.clone().sub(r.position).normalize().angleTo(e), 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;
|
|
189
|
+
f.left = P, f.top = I, f.inSight = D && A < Math.PI / 2, f.cameraToward = Y(this.five), D ? s.push({ disFromCameraToLabel: x, left: P, top: I, index: u }) : f.transform = "translate(-50%, -50%)";
|
|
189
190
|
} else
|
|
190
|
-
|
|
191
|
+
f.inSight = !1;
|
|
191
192
|
}), s.length > 1) {
|
|
192
|
-
let
|
|
193
|
+
let f = 0;
|
|
193
194
|
s.sort((u, x) => x.disFromCameraToLabel - u.disFromCameraToLabel);
|
|
194
195
|
for (let u = 1; u < s.length; u++) {
|
|
195
196
|
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];
|
|
@@ -206,7 +207,7 @@ class $t extends q {
|
|
|
206
207
|
width: (L = (w = (g = D.children) == null ? void 0 : g[0]) == null ? void 0 : w.clientWidth) != null ? L : 0,
|
|
207
208
|
height: (S = (_ = (E = D.children) == null ? void 0 : E[0]) == null ? void 0 : _.clientHeight) != null ? S : 0
|
|
208
209
|
};
|
|
209
|
-
Z(R, F) && (
|
|
210
|
+
Z(R, F) && (f++, c[x].transform = `translate(-50%, ${(f - 1) * 100 - 50}%)`, c[A].transform = `translate(-50%, ${f * 100 - 50}%)`);
|
|
210
211
|
}
|
|
211
212
|
}
|
|
212
213
|
this.labelItems = c, this.render();
|
|
@@ -214,9 +215,9 @@ class $t extends q {
|
|
|
214
215
|
n(this, "onClick", (i, r) => {
|
|
215
216
|
if (!this.roomObservers)
|
|
216
217
|
return;
|
|
217
|
-
const { work:
|
|
218
|
+
const { work: p } = this.five;
|
|
218
219
|
let l, m, e = 1 / 0;
|
|
219
|
-
for (const s of
|
|
220
|
+
for (const s of p.observers)
|
|
220
221
|
if (this.roomObservers.find((t) => t.panoIndex === s.panoIndex && t.name === i)) {
|
|
221
222
|
const t = s.standingPosition, o = r.distanceTo(t);
|
|
222
223
|
o < e && (l = s.panoIndex, m = t.clone().sub(r).normalize(), e = o);
|
|
@@ -235,8 +236,8 @@ class $t extends q {
|
|
|
235
236
|
n(this, "initData", () => {
|
|
236
237
|
var l;
|
|
237
238
|
this.doorLabels = [];
|
|
238
|
-
const i = this.five.panoIndex, r = this.floorplanServerData.computed_data.observers[i].floor_index,
|
|
239
|
-
this.rooms =
|
|
239
|
+
const i = this.five.panoIndex, r = this.floorplanServerData.computed_data.observers[i].floor_index, p = r !== void 0 && ((l = this.floorplanServerData.computed_data.floor_datas[r]) == null ? void 0 : l.rooms);
|
|
240
|
+
this.rooms = p, this.rooms && this.rooms.length > 0 && this.rooms.forEach((m) => {
|
|
240
241
|
var c;
|
|
241
242
|
const e = (c = this.floorplanServerData.computed_data.doors) == null ? void 0 : c.filter((t) => !!(t && t.name === m.name)), s = this.five.work.observers.filter((t, o) => !!m.observer_indexs.find((h) => h === o));
|
|
242
243
|
e && e.forEach((t) => {
|
|
@@ -270,12 +271,12 @@ class $t extends q {
|
|
|
270
271
|
}
|
|
271
272
|
stateChangedCallback(i, r) {
|
|
272
273
|
if (this.hooks.hasListener("stateChange")) {
|
|
273
|
-
const
|
|
274
|
+
const p = {
|
|
274
275
|
state: this.state,
|
|
275
276
|
prevState: i,
|
|
276
277
|
userAction: r ? r.userAction : ii.userAction
|
|
277
278
|
};
|
|
278
|
-
this.hooks.emit("stateChange",
|
|
279
|
+
this.hooks.emit("stateChange", p);
|
|
279
280
|
}
|
|
280
281
|
}
|
|
281
282
|
render() {
|
|
@@ -309,5 +310,5 @@ class $t extends q {
|
|
|
309
310
|
}
|
|
310
311
|
}
|
|
311
312
|
export {
|
|
312
|
-
|
|
313
|
+
Bt as PanoDoorLabelPluginController
|
|
313
314
|
};
|
|
@@ -84,6 +84,7 @@ import "../Sculpt/typings/style.js";
|
|
|
84
84
|
import "../shared-utils/five/FiveLine.js";
|
|
85
85
|
import "../shared-utils/tag.js";
|
|
86
86
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
87
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
87
88
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
88
89
|
import "../shared-utils/isTouchDevice.js";
|
|
89
90
|
import "../shared-utils/five/getPosition.js";
|
|
@@ -92,8 +93,8 @@ import "./DoorLabelItem.js";
|
|
|
92
93
|
import "../vendor/svelte/internal/index.js";
|
|
93
94
|
import "../vendor/classnames/index.js";
|
|
94
95
|
import "./utils.js";
|
|
95
|
-
const
|
|
96
|
+
const So = (o) => new r(o);
|
|
96
97
|
export {
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
So as PanoDoorLabelPlugin,
|
|
99
|
+
So as default
|
|
99
100
|
};
|
|
@@ -107,6 +107,7 @@ import "../../Sculpt/Meshes/Line.js";
|
|
|
107
107
|
import "../../Sculpt/typings/style.js";
|
|
108
108
|
import "../../shared-utils/tag.js";
|
|
109
109
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
110
|
+
import "../../Sculpt/utils/removeAllTag.js";
|
|
110
111
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
111
112
|
import "../../shared-utils/isTouchDevice.js";
|
|
112
113
|
import "../../shared-utils/five/getPosition.js";
|
|
@@ -326,7 +327,7 @@ function rt(n, o, i) {
|
|
|
326
327
|
u
|
|
327
328
|
];
|
|
328
329
|
}
|
|
329
|
-
class
|
|
330
|
+
class bo extends j {
|
|
330
331
|
constructor(o) {
|
|
331
332
|
super(), x(
|
|
332
333
|
this,
|
|
@@ -344,5 +345,5 @@ class go extends j {
|
|
|
344
345
|
}
|
|
345
346
|
}
|
|
346
347
|
export {
|
|
347
|
-
|
|
348
|
+
bo as default
|
|
348
349
|
};
|
|
@@ -111,6 +111,7 @@ import "../../Sculpt/Meshes/Line.js";
|
|
|
111
111
|
import "../../Sculpt/typings/style.js";
|
|
112
112
|
import "../../shared-utils/tag.js";
|
|
113
113
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
114
|
+
import "../../Sculpt/utils/removeAllTag.js";
|
|
114
115
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
115
116
|
import "../../shared-utils/isTouchDevice.js";
|
|
116
117
|
import "../../shared-utils/five/getPosition.js";
|
|
@@ -476,7 +477,7 @@ function de(o, t, i) {
|
|
|
476
477
|
x
|
|
477
478
|
];
|
|
478
479
|
}
|
|
479
|
-
class
|
|
480
|
+
class Ao extends ee {
|
|
480
481
|
constructor(t) {
|
|
481
482
|
super(), te(
|
|
482
483
|
this,
|
|
@@ -494,5 +495,5 @@ class zo extends ee {
|
|
|
494
495
|
}
|
|
495
496
|
}
|
|
496
497
|
export {
|
|
497
|
-
|
|
498
|
+
Ao as default
|
|
498
499
|
};
|
|
@@ -119,6 +119,7 @@ import "../../Sculpt/Meshes/Line.js";
|
|
|
119
119
|
import "../../Sculpt/typings/style.js";
|
|
120
120
|
import "../../shared-utils/tag.js";
|
|
121
121
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
122
|
+
import "../../Sculpt/utils/removeAllTag.js";
|
|
122
123
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
123
124
|
import "../../shared-utils/isTouchDevice.js";
|
|
124
125
|
import "../../shared-utils/five/getPosition.js";
|
|
@@ -127,7 +128,7 @@ import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
|
127
128
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
128
129
|
import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
129
130
|
const b = () => !1;
|
|
130
|
-
class
|
|
131
|
+
class oi extends z {
|
|
131
132
|
constructor(e) {
|
|
132
133
|
super(e);
|
|
133
134
|
o(this, "type", "edit");
|
|
@@ -407,5 +408,5 @@ class ii extends z {
|
|
|
407
408
|
}
|
|
408
409
|
}
|
|
409
410
|
export {
|
|
410
|
-
|
|
411
|
+
oi as default
|
|
411
412
|
};
|
|
@@ -108,6 +108,7 @@ import "../../Sculpt/Meshes/Line.js";
|
|
|
108
108
|
import "../../Sculpt/typings/style.js";
|
|
109
109
|
import "../../shared-utils/tag.js";
|
|
110
110
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
111
|
+
import "../../Sculpt/utils/removeAllTag.js";
|
|
111
112
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
112
113
|
import "../../shared-utils/isTouchDevice.js";
|
|
113
114
|
import "../../shared-utils/five/getPosition.js";
|
|
@@ -117,7 +118,7 @@ import "../../shared-utils/three/earcut3D.js";
|
|
|
117
118
|
import "earcut";
|
|
118
119
|
import "../../shared-utils/three/getNormal.js";
|
|
119
120
|
const E = () => !1;
|
|
120
|
-
class
|
|
121
|
+
class Qe extends U {
|
|
121
122
|
constructor(t) {
|
|
122
123
|
super(t);
|
|
123
124
|
o(this, "type", "watch");
|
|
@@ -290,5 +291,5 @@ class Ke extends U {
|
|
|
290
291
|
}
|
|
291
292
|
}
|
|
292
293
|
export {
|
|
293
|
-
|
|
294
|
+
Qe as default
|
|
294
295
|
};
|
|
@@ -127,6 +127,7 @@ import "../../Sculpt/Meshes/Line.js";
|
|
|
127
127
|
import "../../Sculpt/typings/style.js";
|
|
128
128
|
import "../../shared-utils/tag.js";
|
|
129
129
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
130
|
+
import "../../Sculpt/utils/removeAllTag.js";
|
|
130
131
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
131
132
|
import "../../shared-utils/five/getPosition.js";
|
|
132
133
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
@@ -160,7 +161,7 @@ import "../../vendor/svelte/transition/index.js";
|
|
|
160
161
|
import "../../vendor/svelte/easing/index.js";
|
|
161
162
|
import "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
162
163
|
import "../Components/Tip.js";
|
|
163
|
-
class
|
|
164
|
+
class Ge extends H {
|
|
164
165
|
constructor(t, i) {
|
|
165
166
|
var l, u, d, f, g, y, C, M, w, P, b, v;
|
|
166
167
|
super(t);
|
|
@@ -369,5 +370,5 @@ class Ee extends H {
|
|
|
369
370
|
}
|
|
370
371
|
}
|
|
371
372
|
export {
|
|
372
|
-
|
|
373
|
+
Ge as default
|
|
373
374
|
};
|
|
@@ -101,11 +101,12 @@ import "../../Sculpt/Meshes/Line.js";
|
|
|
101
101
|
import "../../Sculpt/typings/style.js";
|
|
102
102
|
import "../../shared-utils/tag.js";
|
|
103
103
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
104
|
+
import "../../Sculpt/utils/removeAllTag.js";
|
|
104
105
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
105
106
|
import "../../shared-utils/isTouchDevice.js";
|
|
106
107
|
import "../../shared-utils/five/getPosition.js";
|
|
107
108
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
108
|
-
class
|
|
109
|
+
class vi {
|
|
109
110
|
constructor(t, o) {
|
|
110
111
|
i(this, "id", f());
|
|
111
112
|
i(this, "selected", !1);
|
|
@@ -204,5 +205,5 @@ class ui {
|
|
|
204
205
|
}
|
|
205
206
|
}
|
|
206
207
|
export {
|
|
207
|
-
|
|
208
|
+
vi as default
|
|
208
209
|
};
|
|
@@ -81,6 +81,7 @@ import "../../Sculpt/typings/style.js";
|
|
|
81
81
|
import "../../shared-utils/five/FiveLine.js";
|
|
82
82
|
import "../../shared-utils/tag.js";
|
|
83
83
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
84
|
+
import "../../Sculpt/utils/removeAllTag.js";
|
|
84
85
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
85
86
|
import "../../shared-utils/isTouchDevice.js";
|
|
86
87
|
import "../../shared-utils/five/getPosition.js";
|
|
@@ -117,6 +117,7 @@ import "../../../Sculpt/Meshes/Line.js";
|
|
|
117
117
|
import "../../../Sculpt/typings/style.js";
|
|
118
118
|
import "../../../shared-utils/tag.js";
|
|
119
119
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
120
|
+
import "../../../Sculpt/utils/removeAllTag.js";
|
|
120
121
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
121
122
|
import "../../../shared-utils/isTouchDevice.js";
|
|
122
123
|
import "../../../shared-utils/five/getPosition.js";
|
|
@@ -132,7 +133,7 @@ import "../../Components/Common/Switcher1.js";
|
|
|
132
133
|
import "../../Components/Common/CircleButton.js";
|
|
133
134
|
import "../../../vendor/svelte/transition/index.js";
|
|
134
135
|
import "../../../vendor/svelte/easing/index.js";
|
|
135
|
-
class
|
|
136
|
+
class Yo {
|
|
136
137
|
constructor(o, t) {
|
|
137
138
|
i(this, "revoke");
|
|
138
139
|
i(this, "container");
|
|
@@ -186,5 +187,5 @@ class Xo {
|
|
|
186
187
|
}
|
|
187
188
|
}
|
|
188
189
|
export {
|
|
189
|
-
|
|
190
|
+
Yo as UIController
|
|
190
191
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import t from "./Controller/index.js";
|
|
2
2
|
import "three";
|
|
3
|
-
import { Magnifier as
|
|
3
|
+
import { Magnifier as Vr } from "../shared-utils/three/Magnifier.js";
|
|
4
4
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
5
5
|
import "@realsee/five/line";
|
|
6
6
|
import "../Sculpt/utils/Modules/Global.js";
|
|
7
7
|
import "../shared-utils/three/THREESphere.js";
|
|
8
8
|
import "animejs";
|
|
9
9
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
10
|
-
import { Model as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { Polyline as
|
|
10
|
+
import { Model as Xr } from "./Model/index.js";
|
|
11
|
+
import { default as Zr } from "./Model/point.js";
|
|
12
|
+
import { default as $r } from "./Model/line.js";
|
|
13
|
+
import { Polyline as rt } from "./Model/polyline.js";
|
|
14
14
|
import "./Controller/EditController.js";
|
|
15
15
|
import "../shared-utils/throttle.js";
|
|
16
16
|
import "./Controller/BaseController.js";
|
|
@@ -105,6 +105,7 @@ import "../Sculpt/Meshes/Line.js";
|
|
|
105
105
|
import "../Sculpt/typings/style.js";
|
|
106
106
|
import "../shared-utils/tag.js";
|
|
107
107
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
108
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
108
109
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
109
110
|
import "../shared-utils/isTouchDevice.js";
|
|
110
111
|
import "../shared-utils/five/getPosition.js";
|
|
@@ -149,15 +150,15 @@ import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
|
149
150
|
import "./Components/Tip.js";
|
|
150
151
|
import "./Controller/ShortcutKeyController.js";
|
|
151
152
|
import "../shared-utils/safeObj.js";
|
|
152
|
-
const
|
|
153
|
+
const Sr = function(o, r) {
|
|
153
154
|
return new t(o, r);
|
|
154
155
|
};
|
|
155
156
|
export {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
157
|
+
Vr as Magnifier,
|
|
158
|
+
Sr as PanoMeasurePlugin,
|
|
159
|
+
$r as PanoMeasurePluginLine,
|
|
160
|
+
Xr as PanoMeasurePluginModel,
|
|
161
|
+
Zr as PanoMeasurePluginPoint,
|
|
162
|
+
rt as PanoMeasurePluginPolyline,
|
|
163
|
+
Sr as default
|
|
163
164
|
};
|
|
@@ -97,11 +97,12 @@ import "../../../Sculpt/typings/style.js";
|
|
|
97
97
|
import "../../../shared-utils/five/FiveLine.js";
|
|
98
98
|
import "../../../shared-utils/tag.js";
|
|
99
99
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
100
|
+
import "../../../Sculpt/utils/removeAllTag.js";
|
|
100
101
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
101
102
|
import "../../../shared-utils/isTouchDevice.js";
|
|
102
103
|
import "../../../shared-utils/five/getPosition.js";
|
|
103
104
|
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
104
|
-
class
|
|
105
|
+
class no extends y {
|
|
105
106
|
constructor(t) {
|
|
106
107
|
t.containerStyle = s(n({}, t.containerStyle), {
|
|
107
108
|
zIndex: "1"
|
|
@@ -132,5 +133,5 @@ class eo extends y {
|
|
|
132
133
|
}
|
|
133
134
|
}
|
|
134
135
|
export {
|
|
135
|
-
|
|
136
|
+
no as AreaItem
|
|
136
137
|
};
|
|
@@ -85,6 +85,7 @@ import "../Sculpt/typings/style.js";
|
|
|
85
85
|
import "../shared-utils/five/FiveLine.js";
|
|
86
86
|
import "../shared-utils/tag.js";
|
|
87
87
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
88
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
88
89
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
89
90
|
import "../shared-utils/isTouchDevice.js";
|
|
90
91
|
import "../shared-utils/five/getPosition.js";
|
|
@@ -95,7 +96,7 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
|
95
96
|
import "../vendor/svelte/internal/index.js";
|
|
96
97
|
import "./store.js";
|
|
97
98
|
import "../vendor/svelte/store/index.js";
|
|
98
|
-
const D = 1e-3, v = 0.01, Io = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png",
|
|
99
|
+
const D = 1e-3, v = 0.01, Io = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png", he = (n, r) => {
|
|
99
100
|
var k, z, q, B, G, J, K, Q;
|
|
100
101
|
let j = r == null ? void 0 : r.container, y = 1.4;
|
|
101
102
|
const oo = (k = r == null ? void 0 : r.wait) != null ? k : 200, to = (z = r == null ? void 0 : r.maxNumberOnScreen) != null ? z : 3, I = (q = r == null ? void 0 : r.minRad) != null ? q : Math.PI / 4, L = (B = r == null ? void 0 : r.nearTolerance) != null ? B : 100, eo = (G = r == null ? void 0 : r.upsideHeight) != null ? G : 1.6, A = (J = r == null ? void 0 : r.minDistance) != null ? J : 1.2, f = (K = r == null ? void 0 : r.maxDistance) != null ? K : 3.5, C = Mo(n), S = document.createElement("div");
|
|
@@ -320,6 +321,6 @@ const D = 1e-3, v = 0.01, Io = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
320
321
|
};
|
|
321
322
|
};
|
|
322
323
|
export {
|
|
323
|
-
|
|
324
|
-
|
|
324
|
+
he as PanoSpatialTagPlugin,
|
|
325
|
+
he as default
|
|
325
326
|
};
|
|
@@ -82,6 +82,7 @@ import "../Sculpt/typings/style.js";
|
|
|
82
82
|
import "../shared-utils/five/FiveLine.js";
|
|
83
83
|
import "../shared-utils/tag.js";
|
|
84
84
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
85
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
85
86
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
86
87
|
import "../shared-utils/isTouchDevice.js";
|
|
87
88
|
import "../shared-utils/five/getPosition.js";
|