@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,200 +1,272 @@
1
- import { SvelteComponent as E, init as O, safe_not_equal as R, assign as k, create_component as d, space as j, empty as C, mount_component as D, insert as b, get_spread_update as x, transition_in as u, transition_out as _, check_outros as H, destroy_component as p, detach as c, group_outros as w } from "../../../../vendor/svelte/internal/index.js";
2
- import F from "./ExtraObjects.js";
3
- import { BaseImage as q } from "../../../Components/BaseImage.js";
4
- import { RoomHighlight as B } from "../../../Components/RoomHighlight/RoomHighlight.js";
1
+ import { SvelteComponent as q, init as N, safe_not_equal as B, append_styles as S, empty as C, insert as d, transition_out as _, check_outros as E, transition_in as c, detach as p, group_outros as O, assign as R, create_component as k, space as j, mount_component as v, get_spread_update as H, destroy_component as I, element as w, attr as b, src_url_equal as x, append as z, noop as y } from "../../../../vendor/svelte/internal/index.js";
2
+ import A from "./ExtraObjects.js";
3
+ import { BaseImage as G } from "../../../Components/BaseImage.js";
4
+ import { RoomHighlight as J } from "../../../Components/RoomHighlight/RoomHighlight.js";
5
5
  import "../../../Components/Normalmage.js";
6
6
  import "../../../Components/SvgImage.js";
7
7
  import "../../../Components/RoomHighlight/Room.js";
8
8
  import "../../../utils/formatPosition.js";
9
- function v(l) {
10
- let o, r;
11
- const f = [
9
+ function K(n) {
10
+ S(n, "svelte-18287ai", ".missing-floor-wrapper.svelte-18287ai{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:flex;justify-content:center;align-items:center}.missing-floor-image.svelte-18287ai{max-width:100%;max-height:100%}");
11
+ }
12
+ function L(n) {
13
+ let e, t, r, a, i, s;
14
+ const u = [
15
+ {
16
+ floorIndex: (
17
+ /*floorIndex*/
18
+ n[2]
19
+ ),
20
+ floorplanData: (
21
+ /*floorplanData*/
22
+ n[4]
23
+ )
24
+ }
25
+ ];
26
+ let f = {};
27
+ for (let o = 0; o < u.length; o += 1)
28
+ f = R(f, u[o]);
29
+ e = new G({ props: f }), r = new A({
30
+ props: {
31
+ extraObjects: (
32
+ /*currentFloorExtraObjects*/
33
+ n[7]
34
+ )
35
+ }
36
+ });
37
+ let l = (
38
+ /*hoverEnable*/
39
+ n[3] && F(n)
40
+ );
41
+ return {
42
+ c() {
43
+ k(e.$$.fragment), t = j(), k(r.$$.fragment), a = j(), l && l.c(), i = C();
44
+ },
45
+ m(o, g) {
46
+ v(e, o, g), d(o, t, g), v(r, o, g), d(o, a, g), l && l.m(o, g), d(o, i, g), s = !0;
47
+ },
48
+ p(o, g) {
49
+ const D = g & /*floorIndex, floorplanData*/
50
+ 20 ? H(u, [
51
+ {
52
+ floorIndex: (
53
+ /*floorIndex*/
54
+ o[2]
55
+ ),
56
+ floorplanData: (
57
+ /*floorplanData*/
58
+ o[4]
59
+ )
60
+ }
61
+ ]) : {};
62
+ e.$set(D);
63
+ const h = {};
64
+ g & /*currentFloorExtraObjects*/
65
+ 128 && (h.extraObjects = /*currentFloorExtraObjects*/
66
+ o[7]), r.$set(h), /*hoverEnable*/
67
+ o[3] ? l ? (l.p(o, g), g & /*hoverEnable*/
68
+ 8 && c(l, 1)) : (l = F(o), l.c(), c(l, 1), l.m(i.parentNode, i)) : l && (O(), _(l, 1, 1, () => {
69
+ l = null;
70
+ }), E());
71
+ },
72
+ i(o) {
73
+ s || (c(e.$$.fragment, o), c(r.$$.fragment, o), c(l), s = !0);
74
+ },
75
+ o(o) {
76
+ _(e.$$.fragment, o), _(r.$$.fragment, o), _(l), s = !1;
77
+ },
78
+ d(o) {
79
+ I(e, o), o && p(t), I(r, o), o && p(a), l && l.d(o), o && p(i);
80
+ }
81
+ };
82
+ }
83
+ function M(n) {
84
+ let e, t, r;
85
+ return {
86
+ c() {
87
+ e = w("div"), t = w("img"), b(t, "class", "missing-floor-image svelte-18287ai"), x(t.src, r = /*missingFloorImageUrl*/
88
+ n[6]) || b(t, "src", r), b(t, "alt", "缺省楼层"), b(e, "class", "missing-floor-wrapper svelte-18287ai");
89
+ },
90
+ m(a, i) {
91
+ d(a, e, i), z(e, t);
92
+ },
93
+ p(a, i) {
94
+ i & /*missingFloorImageUrl*/
95
+ 64 && !x(t.src, r = /*missingFloorImageUrl*/
96
+ a[6]) && b(t, "src", r);
97
+ },
98
+ i: y,
99
+ o: y,
100
+ d(a) {
101
+ a && p(e);
102
+ }
103
+ };
104
+ }
105
+ function F(n) {
106
+ let e, t;
107
+ const r = [
12
108
  {
13
109
  five: (
14
110
  /*five*/
15
- l[0]
111
+ n[0]
16
112
  ),
17
113
  pxmm: (
18
114
  /*pxmm*/
19
- l[1]
115
+ n[1]
20
116
  ),
21
117
  floorIndex: (
22
118
  /*floorIndex*/
23
- l[2]
119
+ n[2]
24
120
  ),
25
121
  floorplanData: (
26
122
  /*floorplanData*/
27
- l[4]
123
+ n[4]
28
124
  ),
29
125
  onRoomHeightClick: (
30
126
  /*onRoomHeightClick*/
31
- l[7]
127
+ n[9]
32
128
  ),
33
129
  highlightData: (
34
130
  /*highlightData*/
35
- l[5]
131
+ n[5]
36
132
  ),
37
133
  hoveredRoom: void 0
38
134
  }
39
135
  ];
40
- let h = {};
41
- for (let t = 0; t < f.length; t += 1)
42
- h = k(h, f[t]);
43
- return o = new B({ props: h }), {
136
+ let a = {};
137
+ for (let i = 0; i < r.length; i += 1)
138
+ a = R(a, r[i]);
139
+ return e = new J({ props: a }), {
44
140
  c() {
45
- d(o.$$.fragment);
141
+ k(e.$$.fragment);
46
142
  },
47
- m(t, m) {
48
- D(o, t, m), r = !0;
143
+ m(i, s) {
144
+ v(e, i, s), t = !0;
49
145
  },
50
- p(t, m) {
51
- const g = m & /*five, pxmm, floorIndex, floorplanData, onRoomHeightClick, highlightData, undefined*/
52
- 183 ? x(f, [
146
+ p(i, s) {
147
+ const u = s & /*five, pxmm, floorIndex, floorplanData, onRoomHeightClick, highlightData, undefined*/
148
+ 567 ? H(r, [
53
149
  {
54
150
  five: (
55
151
  /*five*/
56
- t[0]
152
+ i[0]
57
153
  ),
58
154
  pxmm: (
59
155
  /*pxmm*/
60
- t[1]
156
+ i[1]
61
157
  ),
62
158
  floorIndex: (
63
159
  /*floorIndex*/
64
- t[2]
160
+ i[2]
65
161
  ),
66
162
  floorplanData: (
67
163
  /*floorplanData*/
68
- t[4]
164
+ i[4]
69
165
  ),
70
166
  onRoomHeightClick: (
71
167
  /*onRoomHeightClick*/
72
- t[7]
168
+ i[9]
73
169
  ),
74
170
  highlightData: (
75
171
  /*highlightData*/
76
- t[5]
172
+ i[5]
77
173
  ),
78
174
  hoveredRoom: void 0
79
175
  }
80
176
  ]) : {};
81
- o.$set(g);
177
+ e.$set(u);
82
178
  },
83
- i(t) {
84
- r || (u(o.$$.fragment, t), r = !0);
179
+ i(i) {
180
+ t || (c(e.$$.fragment, i), t = !0);
85
181
  },
86
- o(t) {
87
- _(o.$$.fragment, t), r = !1;
182
+ o(i) {
183
+ _(e.$$.fragment, i), t = !1;
88
184
  },
89
- d(t) {
90
- p(o, t);
185
+ d(i) {
186
+ I(e, i);
91
187
  }
92
188
  };
93
189
  }
94
- function N(l) {
95
- let o, r, f, h, t, m;
96
- const g = [
97
- {
98
- floorIndex: (
99
- /*floorIndex*/
100
- l[2]
101
- ),
102
- floorplanData: (
103
- /*floorplanData*/
104
- l[4]
105
- )
106
- }
107
- ];
108
- let s = {};
109
- for (let e = 0; e < g.length; e += 1)
110
- s = k(s, g[e]);
111
- o = new q({ props: s }), f = new F({
112
- props: {
113
- extraObjects: (
114
- /*currentFloorExtraObjects*/
115
- l[6]
116
- )
117
- }
118
- });
119
- let n = (
120
- /*hoverEnable*/
121
- l[3] && v(l)
122
- );
123
- return {
190
+ function P(n) {
191
+ let e, t, r, a;
192
+ const i = [M, L], s = [];
193
+ function u(f, l) {
194
+ return (
195
+ /*hasCurrentFloorData*/
196
+ f[8] ? 1 : 0
197
+ );
198
+ }
199
+ return e = u(n), t = s[e] = i[e](n), {
124
200
  c() {
125
- d(o.$$.fragment), r = j(), d(f.$$.fragment), h = j(), n && n.c(), t = C();
201
+ t.c(), r = C();
126
202
  },
127
- m(e, a) {
128
- D(o, e, a), b(e, r, a), D(f, e, a), b(e, h, a), n && n.m(e, a), b(e, t, a), m = !0;
203
+ m(f, l) {
204
+ s[e].m(f, l), d(f, r, l), a = !0;
129
205
  },
130
- p(e, [a]) {
131
- const i = a & /*floorIndex, floorplanData*/
132
- 20 ? x(g, [
133
- {
134
- floorIndex: (
135
- /*floorIndex*/
136
- e[2]
137
- ),
138
- floorplanData: (
139
- /*floorplanData*/
140
- e[4]
141
- )
142
- }
143
- ]) : {};
144
- o.$set(i);
145
- const I = {};
146
- a & /*currentFloorExtraObjects*/
147
- 64 && (I.extraObjects = /*currentFloorExtraObjects*/
148
- e[6]), f.$set(I), /*hoverEnable*/
149
- e[3] ? n ? (n.p(e, a), a & /*hoverEnable*/
150
- 8 && u(n, 1)) : (n = v(e), n.c(), u(n, 1), n.m(t.parentNode, t)) : n && (w(), _(n, 1, 1, () => {
151
- n = null;
152
- }), H());
153
- },
154
- i(e) {
155
- m || (u(o.$$.fragment, e), u(f.$$.fragment, e), u(n), m = !0);
156
- },
157
- o(e) {
158
- _(o.$$.fragment, e), _(f.$$.fragment, e), _(n), m = !1;
159
- },
160
- d(e) {
161
- p(o, e), e && c(r), p(f, e), e && c(h), n && n.d(e), e && c(t);
206
+ p(f, [l]) {
207
+ let o = e;
208
+ e = u(f), e === o ? s[e].p(f, l) : (O(), _(s[o], 1, 1, () => {
209
+ s[o] = null;
210
+ }), E(), t = s[e], t ? t.p(f, l) : (t = s[e] = i[e](f), t.c()), c(t, 1), t.m(r.parentNode, r));
211
+ },
212
+ i(f) {
213
+ a || (c(t), a = !0);
214
+ },
215
+ o(f) {
216
+ _(t), a = !1;
217
+ },
218
+ d(f) {
219
+ s[e].d(f), f && p(r);
162
220
  }
163
221
  };
164
222
  }
165
- function S(l, o, r) {
166
- let f, { five: h } = o, { pxmm: t } = o, { floorIndex: m } = o, { hoverEnable: g } = o, { floorplanData: s } = o, { extraObjects: n = [] } = o, { highlightData: e } = o;
167
- const a = void 0;
168
- return l.$$set = (i) => {
169
- "five" in i && r(0, h = i.five), "pxmm" in i && r(1, t = i.pxmm), "floorIndex" in i && r(2, m = i.floorIndex), "hoverEnable" in i && r(3, g = i.hoverEnable), "floorplanData" in i && r(4, s = i.floorplanData), "extraObjects" in i && r(8, n = i.extraObjects), "highlightData" in i && r(5, e = i.highlightData);
170
- }, l.$$.update = () => {
171
- l.$$.dirty & /*extraObjects, floorIndex*/
172
- 260 && r(6, f = n == null ? void 0 : n.filter((i) => i.floorIndex === m));
223
+ function Q(n, e, t) {
224
+ let r, a, i, { five: s } = e, { pxmm: u } = e, { floorIndex: f } = e, { hoverEnable: l } = e, { floorplanData: o } = e, { extraObjects: g = [] } = e, { highlightData: D } = e, { missingFloorImageUrl: h } = e;
225
+ const U = void 0;
226
+ return n.$$set = (m) => {
227
+ "five" in m && t(0, s = m.five), "pxmm" in m && t(1, u = m.pxmm), "floorIndex" in m && t(2, f = m.floorIndex), "hoverEnable" in m && t(3, l = m.hoverEnable), "floorplanData" in m && t(4, o = m.floorplanData), "extraObjects" in m && t(10, g = m.extraObjects), "highlightData" in m && t(5, D = m.highlightData), "missingFloorImageUrl" in m && t(6, h = m.missingFloorImageUrl);
228
+ }, n.$$.update = () => {
229
+ n.$$.dirty & /*floorplanData, floorIndex*/
230
+ 20 && t(11, r = o.floorDatas[f]), n.$$.dirty & /*floorData*/
231
+ 2048 && t(8, a = r.rooms.length > 0), n.$$.dirty & /*extraObjects, floorIndex*/
232
+ 1028 && t(7, i = g == null ? void 0 : g.filter((m) => m.floorIndex === f));
173
233
  }, [
174
- h,
175
- t,
176
- m,
177
- g,
178
234
  s,
179
- e,
235
+ u,
180
236
  f,
237
+ l,
238
+ o,
239
+ D,
240
+ h,
241
+ i,
181
242
  a,
182
- n
243
+ U,
244
+ g,
245
+ r
183
246
  ];
184
247
  }
185
- class P extends E {
186
- constructor(o) {
187
- super(), O(this, o, S, N, R, {
188
- five: 0,
189
- pxmm: 1,
190
- floorIndex: 2,
191
- hoverEnable: 3,
192
- floorplanData: 4,
193
- extraObjects: 8,
194
- highlightData: 5
195
- });
248
+ class te extends q {
249
+ constructor(e) {
250
+ super(), N(
251
+ this,
252
+ e,
253
+ Q,
254
+ P,
255
+ B,
256
+ {
257
+ five: 0,
258
+ pxmm: 1,
259
+ floorIndex: 2,
260
+ hoverEnable: 3,
261
+ floorplanData: 4,
262
+ extraObjects: 10,
263
+ highlightData: 5,
264
+ missingFloorImageUrl: 6
265
+ },
266
+ K
267
+ );
196
268
  }
197
269
  }
198
270
  export {
199
- P as default
271
+ te as default
200
272
  };