@realsee/dnalogel 3.0.1 → 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.
Files changed (34) hide show
  1. package/dist/floorplan/Components/MissingFloor.svelte.d.ts +1 -0
  2. package/dist/floorplan/MapviewFloorplanPlugin/Controller.d.ts +1 -0
  3. package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +1 -0
  4. package/dist/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +2 -0
  5. package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +1 -0
  6. package/dist/floorplan/typings/index.d.ts +15 -0
  7. package/dist/index.cjs.js +62 -62
  8. package/dist/index.js +6654 -6294
  9. package/dist/index.umd.js +48 -48
  10. package/dist/shared-utils/filter.d.ts +1 -1
  11. package/libs/base/BasePlugin.js +1 -1
  12. package/libs/floorplan/Components/CurrentFloor.js +423 -214
  13. package/libs/floorplan/Components/Main.js +205 -271
  14. package/libs/floorplan/Components/MissingFloor.js +99 -0
  15. package/libs/floorplan/Components/MissingFloor.svelte.d.ts +1 -0
  16. package/libs/floorplan/MapviewFloorplanPlugin/Controller.d.ts +1 -0
  17. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +74 -66
  18. package/libs/floorplan/MapviewFloorplanPlugin/index.js +9 -8
  19. package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +1 -0
  20. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +108 -101
  21. package/libs/floorplan/ModelFloorplanPlugin/index.js +9 -8
  22. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +88 -68
  23. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +199 -127
  24. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +110 -100
  25. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +15 -14
  26. package/libs/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +2 -0
  27. package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +1 -0
  28. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +118 -110
  29. package/libs/floorplan/TopviewFloorplanPlugin/index.js +9 -8
  30. package/libs/floorplan/typings/index.d.ts +15 -0
  31. package/libs/index.js +122 -121
  32. package/libs/shared-utils/filter.d.ts +1 -1
  33. package/libs/shared-utils/logger.js +1 -1
  34. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { SvelteComponent as K, init as L, safe_not_equal as Q, append_styles as T, empty as V, insert as y, transition_in as u, transition_out as p, check_outros as N, detach as I, onMount as X, element as P, attr as R, action_destroyer as Y, listen as H, group_outros as B, run_all as Z, assign as W, create_component as z, space as x, set_style as q, mount_component as C, append as $, get_spread_update as S, destroy_component as A } from "../../../vendor/svelte/internal/index.js";
2
- import ee from "./Camera.js";
3
- import te from "./CurrentFloor/CurrentFloor.js";
4
- import { svelteResizeObserver as ne } from "../../../shared-utils/svelte/resizeObserver.js";
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 re(i) {
16
- T(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}");
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, l, n, o, r = (
19
+ let e, r, l, a, n = (
20
20
  /*clientWidth*/
21
- i[7] !== 0 && F(i)
21
+ i[8] !== 0 && N(i)
22
22
  );
23
23
  return {
24
24
  c() {
25
- e = P("div"), r && r.c(), R(e, "class", "plugin-floorplan-radar svelte-1mvqyqq");
25
+ e = R("div"), n && n.c(), B(e, "class", "plugin-floorplan-radar svelte-1mvqyqq");
26
26
  },
27
27
  m(f, m) {
28
- y(f, e, m), r && r.m(e, null), l = !0, n || (o = [
29
- Y(ne.call(null, e)),
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[13]
34
+ i[14]
35
35
  ),
36
36
  H(
37
37
  e,
38
38
  "clientHeight",
39
39
  /*clientHeight_handler*/
40
- i[14]
40
+ i[15]
41
41
  )
42
- ], n = !0);
42
+ ], l = !0);
43
43
  },
44
44
  p(f, m) {
45
45
  /*clientWidth*/
46
- f[7] !== 0 ? r ? (r.p(f, m), m & /*clientWidth*/
47
- 128 && u(r, 1)) : (r = F(f), r.c(), u(r, 1), r.m(e, null)) : r && (B(), p(r, 1, 1, () => {
48
- r = null;
49
- }), N());
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
- l || (u(r), l = !0);
52
+ r || (u(n), r = !0);
53
53
  },
54
54
  o(f) {
55
- p(r), l = !1;
55
+ _(n), r = !1;
56
56
  },
57
57
  d(f) {
58
- f && I(e), r && r.d(), n = !1, Z(o);
58
+ f && y(e), n && n.d(), l = !1, x(a);
59
59
  }
60
60
  };
61
61
  }
62
- function F(i) {
63
- let e, l, n, o, r = `${/*contentWidth*/
64
- i[9]}px`, f = `${/*contentHeight*/
65
- i[12]}px`, m;
66
- const c = [
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[10]
74
+ i[11]
75
75
  ),
76
76
  floorIndex: (
77
77
  /*floorIndex*/
78
- i[11]
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 h = {};
99
- for (let t = 0; t < c.length; t += 1)
100
- h = W(h, c[t]);
101
- l = new te({ props: h });
102
- const g = [
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[10]
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 < g.length; t += 1)
124
- d = W(d, g[t]);
125
- return o = new ee({ props: d }), {
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 = P("div"), z(l.$$.fragment), n = x(), z(o.$$.fragment), R(e, "class", "plugin-floorplan-radar-container svelte-1mvqyqq"), q(e, "width", r), q(e, "height", f);
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
- y(t, e, s), C(l, e, null), $(e, n), C(o, e, null), m = !0;
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 _ = s & /*five, pxmm, floorIndex, floorplanData, hoverEnable, extraObjects, highlightData*/
134
- 3181 ? S(c, [
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[10]
146
+ t[11]
143
147
  ),
144
148
  floorIndex: (
145
149
  /*floorIndex*/
146
- t[11]
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
- l.$set(_);
174
+ r.$set(p);
167
175
  const v = s & /*pxmm, five, floorplanData, cameraImageUrl*/
168
- 1049 ? S(g, [
176
+ 2073 ? S(h, [
169
177
  {
170
178
  pxmm: (
171
179
  /*pxmm*/
172
- t[10]
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
- o.$set(v), s & /*contentWidth*/
189
- 512 && r !== (r = `${/*contentWidth*/
190
- t[9]}px`) && q(e, "width", r), s & /*contentHeight*/
191
- 4096 && f !== (f = `${/*contentHeight*/
192
- t[12]}px`) && q(e, "height", f);
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(l.$$.fragment, t), u(o.$$.fragment, t), m = !0);
203
+ m || (u(r.$$.fragment, t), u(a.$$.fragment, t), m = !0);
196
204
  },
197
205
  o(t) {
198
- p(l.$$.fragment, t), p(o.$$.fragment, t), m = !1;
206
+ _(r.$$.fragment, t), _(a.$$.fragment, t), m = !1;
199
207
  },
200
208
  d(t) {
201
- t && I(e), A(l), A(o);
209
+ t && y(e), A(r), A(a);
202
210
  }
203
211
  };
204
212
  }
205
- function le(i) {
206
- let e, l, n = (
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
- n && n.c(), e = V();
220
+ l && l.c(), e = X();
213
221
  },
214
- m(o, r) {
215
- n && n.m(o, r), y(o, e, r), l = !0;
222
+ m(a, n) {
223
+ l && l.m(a, n), D(a, e, n), r = !0;
216
224
  },
217
- p(o, [r]) {
225
+ p(a, [n]) {
218
226
  /*visible*/
219
- o[1] ? n ? (n.p(o, r), r & /*visible*/
220
- 2 && u(n, 1)) : (n = M(o), n.c(), u(n, 1), n.m(e.parentNode, e)) : n && (B(), p(n, 1, 1, () => {
221
- n = null;
222
- }), N());
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(o) {
225
- l || (u(n), l = !0);
232
+ i(a) {
233
+ r || (u(l), r = !0);
226
234
  },
227
- o(o) {
228
- p(n), l = !1;
235
+ o(a) {
236
+ _(l), r = !1;
229
237
  },
230
- d(o) {
231
- n && n.d(o), o && I(e);
238
+ d(a) {
239
+ l && l.d(a), a && y(e);
232
240
  }
233
241
  };
234
242
  }
235
- function ie(i, e, l) {
243
+ function oe(i, e, r) {
236
244
  var w, j;
237
- let { five: n } = e, { visible: o } = e, { hoverEnable: r } = e, { floorplanData: f } = e, { cameraImageUrl: m } = e, { extraObjects: c = [] } = e, { highlightData: h } = e, g = 0, d = (j = (w = n.work.observers[n.getCurrentState().panoIndex]) == null ? void 0 : w.floorIndex) != null ? j : 0, t = 0, s = 0, _ = 0, v = 0;
238
- function k(a) {
239
- l(11, d = n.work.observers[a].floorIndex);
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
- X(() => (n.on("panoArrived", k), () => {
242
- n.off("panoArrived", k);
249
+ Y(() => (l.on("panoArrived", k), () => {
250
+ l.off("panoArrived", k);
243
251
  }));
244
- const G = (a) => {
245
- l(7, t = a.detail);
246
- }, J = (a) => {
247
- l(8, s = a.detail);
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 = (a) => {
250
- "five" in a && l(0, n = a.five), "visible" in a && l(1, o = a.visible), "hoverEnable" in a && l(2, r = a.hoverEnable), "floorplanData" in a && l(3, f = a.floorplanData), "cameraImageUrl" in a && l(4, m = a.cameraImageUrl), "extraObjects" in a && l(5, c = a.extraObjects), "highlightData" in a && l(6, h = a.highlightData);
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
- 904) {
254
- const a = Math.min(t, s), { max: O, min: E } = f.bounding, b = O.x - E.x, D = O.y - E.y, U = function() {
255
- return b > D ? [a, a / b * D] : [a / D * b, a];
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
- l(9, _ = U[0]), l(12, v = U[1]), l(10, g = _ / b);
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
- G,
274
- J
279
+ d,
280
+ t,
281
+ U,
282
+ J,
283
+ K
275
284
  ];
276
285
  }
277
- class De extends K {
286
+ class De extends L {
278
287
  constructor(e) {
279
- super(), L(
288
+ super(), Q(
280
289
  this,
281
290
  e,
291
+ oe,
282
292
  ie,
283
- le,
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
- re
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 f = Object.getOwnPropertySymbols;
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 (f)
9
- for (var t of f(i))
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
- }, b = (r, i) => w(r, v(i));
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 m, formatExtraObjects as C } from "../utils/formatData.js";
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 mt extends O {
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 m(d), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, n), e && this.updateState(e, s), this.render();
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 = C(t, this.five, this.data), this.render());
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 m(t.data);
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 = b(p({}, this.state.config), {
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
- mt as Controller
215
+ bt as Controller
215
216
  };
@@ -8,6 +8,8 @@ export interface Config {
8
8
  highlightEnable: boolean;
9
9
  /** 自定义「雷达」图标 */
10
10
  cameraImageUrl: string;
11
+ /** 当前楼层图片不存在时,使用的占位图片 */
12
+ missingFloorImageUrl: string;
11
13
  }
12
14
  export interface State extends BasePlugin.State {
13
15
  visible: boolean;
@@ -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 导致的 */