@realsee/dnalogel 3.0.0 → 3.1.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/dist/floorplan/Components/MissingFloor.svelte.d.ts +1 -0
- package/dist/floorplan/MapviewFloorplanPlugin/Controller.d.ts +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +1 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +2 -0
- package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +1 -0
- package/dist/floorplan/typings/index.d.ts +15 -0
- package/dist/index.cjs.js +62 -62
- package/dist/index.js +6658 -6298
- package/dist/index.umd.js +48 -48
- package/dist/shared-utils/filter.d.ts +1 -1
- package/libs/PanoTagPlugin/Components/TagItem.js +50 -50
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/Components/CurrentFloor.js +423 -214
- package/libs/floorplan/Components/Main.js +205 -271
- package/libs/floorplan/Components/MissingFloor.js +99 -0
- package/libs/floorplan/Components/MissingFloor.svelte.d.ts +1 -0
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.d.ts +1 -0
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +74 -66
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +9 -8
- package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +108 -101
- package/libs/floorplan/ModelFloorplanPlugin/index.js +9 -8
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +88 -68
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +199 -127
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +110 -100
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +15 -14
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +2 -0
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +118 -110
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +9 -8
- package/libs/floorplan/typings/index.d.ts +15 -0
- package/libs/index.js +122 -121
- package/libs/shared-utils/filter.d.ts +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { svelteResizeObserver as
|
|
1
|
+
import { SvelteComponent as L, init as Q, safe_not_equal as T, append_styles as V, empty as X, insert as D, transition_in as u, transition_out as _, check_outros as P, detach as y, onMount as Y, element as R, attr as B, action_destroyer as Z, listen as H, group_outros as G, run_all as x, assign as W, create_component as z, space as $, set_style as I, mount_component as C, append as ee, get_spread_update as S, destroy_component as A } from "../../../vendor/svelte/internal/index.js";
|
|
2
|
+
import te from "./Camera.js";
|
|
3
|
+
import le from "./CurrentFloor/CurrentFloor.js";
|
|
4
|
+
import { svelteResizeObserver as re } from "../../../shared-utils/svelte/resizeObserver.js";
|
|
5
5
|
import "../../Assets/camera.js";
|
|
6
6
|
import "../../../shared-utils/throttle.js";
|
|
7
7
|
import "./CurrentFloor/ExtraObjects.js";
|
|
@@ -12,58 +12,58 @@ import "../../Components/RoomHighlight/RoomHighlight.js";
|
|
|
12
12
|
import "../../Components/RoomHighlight/Room.js";
|
|
13
13
|
import "../../utils/formatPosition.js";
|
|
14
14
|
import "../../../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
15
|
-
function
|
|
16
|
-
|
|
15
|
+
function ne(i) {
|
|
16
|
+
V(i, "svelte-1mvqyqq", ".plugin-floorplan-radar.svelte-1mvqyqq{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.plugin-floorplan-radar-container.svelte-1mvqyqq{position:relative}");
|
|
17
17
|
}
|
|
18
18
|
function M(i) {
|
|
19
|
-
let e,
|
|
19
|
+
let e, r, l, a, n = (
|
|
20
20
|
/*clientWidth*/
|
|
21
|
-
i[
|
|
21
|
+
i[8] !== 0 && N(i)
|
|
22
22
|
);
|
|
23
23
|
return {
|
|
24
24
|
c() {
|
|
25
|
-
e =
|
|
25
|
+
e = R("div"), n && n.c(), B(e, "class", "plugin-floorplan-radar svelte-1mvqyqq");
|
|
26
26
|
},
|
|
27
27
|
m(f, m) {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
D(f, e, m), n && n.m(e, null), r = !0, l || (a = [
|
|
29
|
+
Z(re.call(null, e)),
|
|
30
30
|
H(
|
|
31
31
|
e,
|
|
32
32
|
"clientWidth",
|
|
33
33
|
/*clientWidth_handler*/
|
|
34
|
-
i[
|
|
34
|
+
i[14]
|
|
35
35
|
),
|
|
36
36
|
H(
|
|
37
37
|
e,
|
|
38
38
|
"clientHeight",
|
|
39
39
|
/*clientHeight_handler*/
|
|
40
|
-
i[
|
|
40
|
+
i[15]
|
|
41
41
|
)
|
|
42
|
-
],
|
|
42
|
+
], l = !0);
|
|
43
43
|
},
|
|
44
44
|
p(f, m) {
|
|
45
45
|
/*clientWidth*/
|
|
46
|
-
f[
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}),
|
|
46
|
+
f[8] !== 0 ? n ? (n.p(f, m), m & /*clientWidth*/
|
|
47
|
+
256 && u(n, 1)) : (n = N(f), n.c(), u(n, 1), n.m(e, null)) : n && (G(), _(n, 1, 1, () => {
|
|
48
|
+
n = null;
|
|
49
|
+
}), P());
|
|
50
50
|
},
|
|
51
51
|
i(f) {
|
|
52
|
-
|
|
52
|
+
r || (u(n), r = !0);
|
|
53
53
|
},
|
|
54
54
|
o(f) {
|
|
55
|
-
|
|
55
|
+
_(n), r = !1;
|
|
56
56
|
},
|
|
57
57
|
d(f) {
|
|
58
|
-
f &&
|
|
58
|
+
f && y(e), n && n.d(), l = !1, x(a);
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
let e,
|
|
64
|
-
i[
|
|
65
|
-
i[
|
|
66
|
-
const
|
|
62
|
+
function N(i) {
|
|
63
|
+
let e, r, l, a, n = `${/*contentWidth*/
|
|
64
|
+
i[10]}px`, f = `${/*contentHeight*/
|
|
65
|
+
i[13]}px`, m;
|
|
66
|
+
const g = [
|
|
67
67
|
{
|
|
68
68
|
five: (
|
|
69
69
|
/*five*/
|
|
@@ -71,11 +71,11 @@ function F(i) {
|
|
|
71
71
|
),
|
|
72
72
|
pxmm: (
|
|
73
73
|
/*pxmm*/
|
|
74
|
-
i[
|
|
74
|
+
i[11]
|
|
75
75
|
),
|
|
76
76
|
floorIndex: (
|
|
77
77
|
/*floorIndex*/
|
|
78
|
-
i[
|
|
78
|
+
i[12]
|
|
79
79
|
),
|
|
80
80
|
floorplanData: (
|
|
81
81
|
/*floorplanData*/
|
|
@@ -92,18 +92,22 @@ function F(i) {
|
|
|
92
92
|
highlightData: (
|
|
93
93
|
/*highlightData*/
|
|
94
94
|
i[6]
|
|
95
|
+
),
|
|
96
|
+
missingFloorImageUrl: (
|
|
97
|
+
/*missingFloorImageUrl*/
|
|
98
|
+
i[7]
|
|
95
99
|
)
|
|
96
100
|
}
|
|
97
101
|
];
|
|
98
|
-
let
|
|
99
|
-
for (let t = 0; t <
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
const
|
|
102
|
+
let c = {};
|
|
103
|
+
for (let t = 0; t < g.length; t += 1)
|
|
104
|
+
c = W(c, g[t]);
|
|
105
|
+
r = new le({ props: c });
|
|
106
|
+
const h = [
|
|
103
107
|
{
|
|
104
108
|
pxmm: (
|
|
105
109
|
/*pxmm*/
|
|
106
|
-
i[
|
|
110
|
+
i[11]
|
|
107
111
|
),
|
|
108
112
|
five: (
|
|
109
113
|
/*five*/
|
|
@@ -120,18 +124,18 @@ function F(i) {
|
|
|
120
124
|
}
|
|
121
125
|
];
|
|
122
126
|
let d = {};
|
|
123
|
-
for (let t = 0; t <
|
|
124
|
-
d = W(d,
|
|
125
|
-
return
|
|
127
|
+
for (let t = 0; t < h.length; t += 1)
|
|
128
|
+
d = W(d, h[t]);
|
|
129
|
+
return a = new te({ props: d }), {
|
|
126
130
|
c() {
|
|
127
|
-
e =
|
|
131
|
+
e = R("div"), z(r.$$.fragment), l = $(), z(a.$$.fragment), B(e, "class", "plugin-floorplan-radar-container svelte-1mvqyqq"), I(e, "width", n), I(e, "height", f);
|
|
128
132
|
},
|
|
129
133
|
m(t, s) {
|
|
130
|
-
|
|
134
|
+
D(t, e, s), C(r, e, null), ee(e, l), C(a, e, null), m = !0;
|
|
131
135
|
},
|
|
132
136
|
p(t, s) {
|
|
133
|
-
const
|
|
134
|
-
|
|
137
|
+
const p = s & /*five, pxmm, floorIndex, floorplanData, hoverEnable, extraObjects, highlightData, missingFloorImageUrl*/
|
|
138
|
+
6381 ? S(g, [
|
|
135
139
|
{
|
|
136
140
|
five: (
|
|
137
141
|
/*five*/
|
|
@@ -139,11 +143,11 @@ function F(i) {
|
|
|
139
143
|
),
|
|
140
144
|
pxmm: (
|
|
141
145
|
/*pxmm*/
|
|
142
|
-
t[
|
|
146
|
+
t[11]
|
|
143
147
|
),
|
|
144
148
|
floorIndex: (
|
|
145
149
|
/*floorIndex*/
|
|
146
|
-
t[
|
|
150
|
+
t[12]
|
|
147
151
|
),
|
|
148
152
|
floorplanData: (
|
|
149
153
|
/*floorplanData*/
|
|
@@ -160,16 +164,20 @@ function F(i) {
|
|
|
160
164
|
highlightData: (
|
|
161
165
|
/*highlightData*/
|
|
162
166
|
t[6]
|
|
167
|
+
),
|
|
168
|
+
missingFloorImageUrl: (
|
|
169
|
+
/*missingFloorImageUrl*/
|
|
170
|
+
t[7]
|
|
163
171
|
)
|
|
164
172
|
}
|
|
165
173
|
]) : {};
|
|
166
|
-
|
|
174
|
+
r.$set(p);
|
|
167
175
|
const v = s & /*pxmm, five, floorplanData, cameraImageUrl*/
|
|
168
|
-
|
|
176
|
+
2073 ? S(h, [
|
|
169
177
|
{
|
|
170
178
|
pxmm: (
|
|
171
179
|
/*pxmm*/
|
|
172
|
-
t[
|
|
180
|
+
t[11]
|
|
173
181
|
),
|
|
174
182
|
five: (
|
|
175
183
|
/*five*/
|
|
@@ -185,103 +193,104 @@ function F(i) {
|
|
|
185
193
|
)
|
|
186
194
|
}
|
|
187
195
|
]) : {};
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
t[
|
|
191
|
-
|
|
192
|
-
t[
|
|
196
|
+
a.$set(v), s & /*contentWidth*/
|
|
197
|
+
1024 && n !== (n = `${/*contentWidth*/
|
|
198
|
+
t[10]}px`) && I(e, "width", n), s & /*contentHeight*/
|
|
199
|
+
8192 && f !== (f = `${/*contentHeight*/
|
|
200
|
+
t[13]}px`) && I(e, "height", f);
|
|
193
201
|
},
|
|
194
202
|
i(t) {
|
|
195
|
-
m || (u(
|
|
203
|
+
m || (u(r.$$.fragment, t), u(a.$$.fragment, t), m = !0);
|
|
196
204
|
},
|
|
197
205
|
o(t) {
|
|
198
|
-
|
|
206
|
+
_(r.$$.fragment, t), _(a.$$.fragment, t), m = !1;
|
|
199
207
|
},
|
|
200
208
|
d(t) {
|
|
201
|
-
t &&
|
|
209
|
+
t && y(e), A(r), A(a);
|
|
202
210
|
}
|
|
203
211
|
};
|
|
204
212
|
}
|
|
205
|
-
function
|
|
206
|
-
let e,
|
|
213
|
+
function ie(i) {
|
|
214
|
+
let e, r, l = (
|
|
207
215
|
/*visible*/
|
|
208
216
|
i[1] && M(i)
|
|
209
217
|
);
|
|
210
218
|
return {
|
|
211
219
|
c() {
|
|
212
|
-
|
|
220
|
+
l && l.c(), e = X();
|
|
213
221
|
},
|
|
214
|
-
m(
|
|
215
|
-
|
|
222
|
+
m(a, n) {
|
|
223
|
+
l && l.m(a, n), D(a, e, n), r = !0;
|
|
216
224
|
},
|
|
217
|
-
p(
|
|
225
|
+
p(a, [n]) {
|
|
218
226
|
/*visible*/
|
|
219
|
-
|
|
220
|
-
2 && u(
|
|
221
|
-
|
|
222
|
-
}),
|
|
227
|
+
a[1] ? l ? (l.p(a, n), n & /*visible*/
|
|
228
|
+
2 && u(l, 1)) : (l = M(a), l.c(), u(l, 1), l.m(e.parentNode, e)) : l && (G(), _(l, 1, 1, () => {
|
|
229
|
+
l = null;
|
|
230
|
+
}), P());
|
|
223
231
|
},
|
|
224
|
-
i(
|
|
225
|
-
|
|
232
|
+
i(a) {
|
|
233
|
+
r || (u(l), r = !0);
|
|
226
234
|
},
|
|
227
|
-
o(
|
|
228
|
-
|
|
235
|
+
o(a) {
|
|
236
|
+
_(l), r = !1;
|
|
229
237
|
},
|
|
230
|
-
d(
|
|
231
|
-
|
|
238
|
+
d(a) {
|
|
239
|
+
l && l.d(a), a && y(e);
|
|
232
240
|
}
|
|
233
241
|
};
|
|
234
242
|
}
|
|
235
|
-
function
|
|
243
|
+
function oe(i, e, r) {
|
|
236
244
|
var w, j;
|
|
237
|
-
let { five:
|
|
238
|
-
function k(
|
|
239
|
-
|
|
245
|
+
let { five: l } = e, { visible: a } = e, { hoverEnable: n } = e, { floorplanData: f } = e, { cameraImageUrl: m } = e, { extraObjects: g = [] } = e, { highlightData: c } = e, { missingFloorImageUrl: h } = e, d = 0, t = (j = (w = l.work.observers[l.getCurrentState().panoIndex]) == null ? void 0 : w.floorIndex) != null ? j : 0, s = 0, p = 0, v = 0, U = 0;
|
|
246
|
+
function k(o) {
|
|
247
|
+
r(12, t = l.work.observers[o].floorIndex);
|
|
240
248
|
}
|
|
241
|
-
|
|
242
|
-
|
|
249
|
+
Y(() => (l.on("panoArrived", k), () => {
|
|
250
|
+
l.off("panoArrived", k);
|
|
243
251
|
}));
|
|
244
|
-
const
|
|
245
|
-
|
|
246
|
-
},
|
|
247
|
-
|
|
252
|
+
const J = (o) => {
|
|
253
|
+
r(8, s = o.detail);
|
|
254
|
+
}, K = (o) => {
|
|
255
|
+
r(9, p = o.detail);
|
|
248
256
|
};
|
|
249
|
-
return i.$$set = (
|
|
250
|
-
"five" in
|
|
257
|
+
return i.$$set = (o) => {
|
|
258
|
+
"five" in o && r(0, l = o.five), "visible" in o && r(1, a = o.visible), "hoverEnable" in o && r(2, n = o.hoverEnable), "floorplanData" in o && r(3, f = o.floorplanData), "cameraImageUrl" in o && r(4, m = o.cameraImageUrl), "extraObjects" in o && r(5, g = o.extraObjects), "highlightData" in o && r(6, c = o.highlightData), "missingFloorImageUrl" in o && r(7, h = o.missingFloorImageUrl);
|
|
251
259
|
}, i.$$.update = () => {
|
|
252
260
|
if (i.$$.dirty & /*clientWidth, clientHeight, floorplanData, contentWidth*/
|
|
253
|
-
|
|
254
|
-
const
|
|
255
|
-
return b >
|
|
261
|
+
1800) {
|
|
262
|
+
const o = Math.min(s, p), { max: F, min: O } = f.bounding, b = F.x - O.x, q = F.y - O.y, E = function() {
|
|
263
|
+
return b > q ? [o, o / b * q] : [o / q * b, o];
|
|
256
264
|
}();
|
|
257
|
-
|
|
265
|
+
r(10, v = E[0]), r(13, U = E[1]), r(11, d = v / b);
|
|
258
266
|
}
|
|
259
267
|
}, [
|
|
268
|
+
l,
|
|
269
|
+
a,
|
|
260
270
|
n,
|
|
261
|
-
o,
|
|
262
|
-
r,
|
|
263
271
|
f,
|
|
264
272
|
m,
|
|
273
|
+
g,
|
|
265
274
|
c,
|
|
266
275
|
h,
|
|
267
|
-
t,
|
|
268
276
|
s,
|
|
269
|
-
|
|
270
|
-
g,
|
|
271
|
-
d,
|
|
277
|
+
p,
|
|
272
278
|
v,
|
|
273
|
-
|
|
274
|
-
|
|
279
|
+
d,
|
|
280
|
+
t,
|
|
281
|
+
U,
|
|
282
|
+
J,
|
|
283
|
+
K
|
|
275
284
|
];
|
|
276
285
|
}
|
|
277
|
-
class De extends
|
|
286
|
+
class De extends L {
|
|
278
287
|
constructor(e) {
|
|
279
|
-
super(),
|
|
288
|
+
super(), Q(
|
|
280
289
|
this,
|
|
281
290
|
e,
|
|
291
|
+
oe,
|
|
282
292
|
ie,
|
|
283
|
-
|
|
284
|
-
Q,
|
|
293
|
+
T,
|
|
285
294
|
{
|
|
286
295
|
five: 0,
|
|
287
296
|
visible: 1,
|
|
@@ -289,9 +298,10 @@ class De extends K {
|
|
|
289
298
|
floorplanData: 3,
|
|
290
299
|
cameraImageUrl: 4,
|
|
291
300
|
extraObjects: 5,
|
|
292
|
-
highlightData: 6
|
|
301
|
+
highlightData: 6,
|
|
302
|
+
missingFloorImageUrl: 7
|
|
293
303
|
},
|
|
294
|
-
|
|
304
|
+
ne
|
|
295
305
|
);
|
|
296
306
|
}
|
|
297
307
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var g = Object.defineProperty, w = Object.defineProperties;
|
|
2
2
|
var v = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var m = Object.getOwnPropertySymbols;
|
|
4
4
|
var A = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var u = (r, i, t) => i in r ? g(r, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[i] = t, p = (r, i) => {
|
|
6
6
|
for (var t in i || (i = {}))
|
|
7
7
|
A.call(i, t) && u(r, t, i[t]);
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
8
|
+
if (m)
|
|
9
|
+
for (var t of m(i))
|
|
10
10
|
S.call(i, t) && u(r, t, i[t]);
|
|
11
11
|
return r;
|
|
12
|
-
},
|
|
12
|
+
}, f = (r, i) => w(r, v(i));
|
|
13
13
|
var o = (r, i, t) => (u(r, typeof i != "symbol" ? i + "" : i, t), t);
|
|
14
14
|
var c = (r, i, t) => new Promise((e, s) => {
|
|
15
15
|
var h = (n) => {
|
|
@@ -31,7 +31,7 @@ import _ from "./Components/Main.js";
|
|
|
31
31
|
import { equal as y } from "../../shared-utils/equal.js";
|
|
32
32
|
import { CAMERA_IMAGE as D } from "../Assets/camera.js";
|
|
33
33
|
import { Controller as O } from "../../base/BasePluginWithData.js";
|
|
34
|
-
import { formatData as
|
|
34
|
+
import { formatData as b, formatExtraObjects as x } from "../utils/formatData.js";
|
|
35
35
|
import "../../vendor/svelte/internal/index.js";
|
|
36
36
|
import "./Components/Camera.js";
|
|
37
37
|
import "../../shared-utils/throttle.js";
|
|
@@ -69,7 +69,7 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
|
69
69
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
70
70
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
71
71
|
import "../Assets/floorplanExtraObject.js";
|
|
72
|
-
class
|
|
72
|
+
class bt extends O {
|
|
73
73
|
constructor(t, e) {
|
|
74
74
|
super(t);
|
|
75
75
|
// =============== public properties =================
|
|
@@ -103,7 +103,8 @@ class mt extends O {
|
|
|
103
103
|
const s = {
|
|
104
104
|
hoverEnable: !0,
|
|
105
105
|
highlightEnable: !0,
|
|
106
|
-
cameraImageUrl: D
|
|
106
|
+
cameraImageUrl: D,
|
|
107
|
+
missingFloorImageUrl: e.cameraImageUrl || this.staticPrefix + "/release/web/saas/missing-floor.d687a5ed.png"
|
|
107
108
|
}, h = e != null && e.configs ? e.configs : {}, a = p(p({}, s), h);
|
|
108
109
|
this.state = { enabled: !0, visible: !0, config: a }, e != null && e.wrapper && console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法"), typeof (e == null ? void 0 : e.wrapper) == "string" ? this.wrapperSelector = e.wrapper : (e == null ? void 0 : e.wrapper) instanceof Element && (this.wrapper = e.wrapper), t.once("dispose", this.dispose);
|
|
109
110
|
}
|
|
@@ -113,7 +114,7 @@ class mt extends O {
|
|
|
113
114
|
return Object.prototype.hasOwnProperty.apply(l, ["version"]);
|
|
114
115
|
}
|
|
115
116
|
const a = JSON.parse(JSON.stringify(t)), d = h(a) ? a.data : a, n = this.data;
|
|
116
|
-
this.data = yield
|
|
117
|
+
this.data = yield b(d), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, n), e && this.updateState(e, s), this.render();
|
|
117
118
|
});
|
|
118
119
|
}
|
|
119
120
|
show() {
|
|
@@ -164,11 +165,11 @@ class mt extends O {
|
|
|
164
165
|
this.setState({ config: t }, { userAction: e }), this.render();
|
|
165
166
|
}
|
|
166
167
|
setExtraObjectsWith3DPositions(t) {
|
|
167
|
-
this.data && (this.extraObjects =
|
|
168
|
+
this.data && (this.extraObjects = x(t, this.five, this.data), this.render());
|
|
168
169
|
}
|
|
169
170
|
formatData(t) {
|
|
170
171
|
return c(this, null, function* () {
|
|
171
|
-
return yield
|
|
172
|
+
return yield b(t.data);
|
|
172
173
|
});
|
|
173
174
|
}
|
|
174
175
|
_enable(t) {
|
|
@@ -188,8 +189,8 @@ class mt extends O {
|
|
|
188
189
|
this.hooks.emit("hide", { userAction: e }), this.render();
|
|
189
190
|
}
|
|
190
191
|
updateState(t, e) {
|
|
191
|
-
const s = this.state;
|
|
192
|
-
this.state = p(p({}, this.state), t), !y(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: e });
|
|
192
|
+
const s = this.state, h = t.config ? p(p({}, s.config), t.config) : s.config;
|
|
193
|
+
this.state = f(p(p({}, this.state), t), { config: h }), !y(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: e });
|
|
193
194
|
}
|
|
194
195
|
render() {
|
|
195
196
|
if (this.disposed || !this.state.enabled)
|
|
@@ -200,7 +201,7 @@ class mt extends O {
|
|
|
200
201
|
}
|
|
201
202
|
if (!this.data || !this.wrapper)
|
|
202
203
|
return;
|
|
203
|
-
const t =
|
|
204
|
+
const t = f(p({}, this.state.config), {
|
|
204
205
|
five: this.five,
|
|
205
206
|
floorplanData: this.data,
|
|
206
207
|
visible: this.state.visible,
|
|
@@ -211,5 +212,5 @@ class mt extends O {
|
|
|
211
212
|
}
|
|
212
213
|
}
|
|
213
214
|
export {
|
|
214
|
-
|
|
215
|
+
bt as Controller
|
|
215
216
|
};
|
|
@@ -20,6 +20,7 @@ export declare class Controller extends BasePlugin.Controller<State, EventMap, P
|
|
|
20
20
|
private lastPanoramaLongitude;
|
|
21
21
|
/** 户型图大小 */
|
|
22
22
|
private size;
|
|
23
|
+
private defaultMissingFloorConfig;
|
|
23
24
|
/** 是否已经执行过事件监听 */
|
|
24
25
|
private hasAddedEventListener;
|
|
25
26
|
/** 上一次隐藏是否是用户调用了 hide 导致的 */
|