@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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @param {object} object
|
|
5
5
|
* @param {Function} check
|
|
6
6
|
*/
|
|
7
|
-
export declare function filter<T, K extends keyof T>(object: T, check: (key: K, value: T[K]) => boolean): Record<K, T[K]>;
|
|
7
|
+
export declare function filter<T extends Record<string, any>, K extends keyof T>(object: T, check: (key: K, value: T[K]) => boolean): Record<K, T[K]>;
|
|
8
8
|
/**
|
|
9
9
|
* 对象镜子函数。
|
|
10
10
|
* 生成一个"镜子"对象:对象的属性名与其值相同。
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as J, init as K, safe_not_equal as O, append_styles as Q, element as
|
|
1
|
+
import { SvelteComponent as J, init as K, safe_not_equal as O, append_styles as Q, element as C, space as U, attr as c, null_to_empty as R, set_style as P, toggle_class as d, insert as M, append as V, transition_out as k, check_outros as j, transition_in as v, detach as N, getContext as W, group_outros as z, noop as y, create_component as F, mount_component as G, destroy_component as H } from "../../vendor/svelte/internal/index.js";
|
|
2
2
|
import X from "./Tag/index.js";
|
|
3
3
|
import "three";
|
|
4
4
|
import { noTypecheck as B } from "../utils/noTypecheck.js";
|
|
@@ -92,22 +92,22 @@ import "./Common/Icon/Icon.js";
|
|
|
92
92
|
import "../utils/getImageInfo.js";
|
|
93
93
|
import "./Tag/CustomTag.js";
|
|
94
94
|
function Z(o) {
|
|
95
|
-
Q(o, "svelte-
|
|
95
|
+
Q(o, "svelte-t2hepc", ".tag.svelte-t2hepc{will-change:opacity}.tag.withAnimation.svelte-t2hepc{transition:opacity 0.2s linear}.tag.hide.svelte-t2hepc{opacity:0;pointer-events:none}.tag.hide.svelte-t2hepc *{pointer-events:none !important}.tag.unClickable.svelte-t2hepc{pointer-events:none !important}.tag.unClickable.svelte-t2hepc *{pointer-events:none !important}.tag.disable.svelte-t2hepc{display:none}.wrapper.svelte-t2hepc{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto}");
|
|
96
96
|
}
|
|
97
97
|
function x(o) {
|
|
98
98
|
let e;
|
|
99
99
|
return {
|
|
100
100
|
c() {
|
|
101
|
-
e =
|
|
101
|
+
e = C("div"), c(e, "data-info", "tag point is disable");
|
|
102
102
|
},
|
|
103
103
|
m(t, i) {
|
|
104
|
-
|
|
104
|
+
M(t, e, i);
|
|
105
105
|
},
|
|
106
106
|
p: y,
|
|
107
107
|
i: y,
|
|
108
108
|
o: y,
|
|
109
109
|
d(t) {
|
|
110
|
-
t &&
|
|
110
|
+
t && N(e);
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
}
|
|
@@ -133,7 +133,7 @@ function $(o) {
|
|
|
133
133
|
t || (v(e.$$.fragment, i), t = !0);
|
|
134
134
|
},
|
|
135
135
|
o(i) {
|
|
136
|
-
|
|
136
|
+
k(e.$$.fragment, i), t = !1;
|
|
137
137
|
},
|
|
138
138
|
d(i) {
|
|
139
139
|
H(e, i);
|
|
@@ -144,16 +144,16 @@ function tt(o) {
|
|
|
144
144
|
let e;
|
|
145
145
|
return {
|
|
146
146
|
c() {
|
|
147
|
-
e =
|
|
147
|
+
e = C("div"), c(e, "data-info", "tag content is disable");
|
|
148
148
|
},
|
|
149
149
|
m(t, i) {
|
|
150
|
-
|
|
150
|
+
M(t, e, i);
|
|
151
151
|
},
|
|
152
152
|
p: y,
|
|
153
153
|
i: y,
|
|
154
154
|
o: y,
|
|
155
155
|
d(t) {
|
|
156
|
-
t &&
|
|
156
|
+
t && N(e);
|
|
157
157
|
}
|
|
158
158
|
};
|
|
159
159
|
}
|
|
@@ -219,7 +219,7 @@ function et(o) {
|
|
|
219
219
|
t || (v(e.$$.fragment, i), t = !0);
|
|
220
220
|
},
|
|
221
221
|
o(i) {
|
|
222
|
-
|
|
222
|
+
k(e.$$.fragment, i), t = !1;
|
|
223
223
|
},
|
|
224
224
|
d(i) {
|
|
225
225
|
H(e, i);
|
|
@@ -236,42 +236,42 @@ function it(o) {
|
|
|
236
236
|
);
|
|
237
237
|
}
|
|
238
238
|
i = S(o), p = a[i] = w[i](o);
|
|
239
|
-
const T = [et, tt],
|
|
240
|
-
function
|
|
239
|
+
const T = [et, tt], u = [];
|
|
240
|
+
function A(n, r) {
|
|
241
241
|
return (
|
|
242
242
|
/*haveContent*/
|
|
243
243
|
n[12] ? 0 : 1
|
|
244
244
|
);
|
|
245
245
|
}
|
|
246
|
-
return s =
|
|
246
|
+
return s = A(o), f = u[s] = T[s](o), {
|
|
247
247
|
c() {
|
|
248
|
-
e =
|
|
248
|
+
e = C("div"), t = C("div"), p.c(), m = U(), f.c(), c(t, "class", _ = R(E(
|
|
249
249
|
"wrapper",
|
|
250
250
|
/*tag*/
|
|
251
251
|
o[1].className ? `${/*tag*/
|
|
252
252
|
o[1].className}__wrapper` : void 0
|
|
253
|
-
)) + " svelte-
|
|
253
|
+
)) + " svelte-t2hepc"), c(
|
|
254
254
|
t,
|
|
255
255
|
"data-tag-unfolded",
|
|
256
256
|
/*unfolded*/
|
|
257
257
|
o[8]
|
|
258
|
-
),
|
|
258
|
+
), c(
|
|
259
259
|
t,
|
|
260
260
|
"data-tag-id",
|
|
261
261
|
/*id*/
|
|
262
262
|
o[11]
|
|
263
|
-
),
|
|
264
|
-
o[1].contentType),
|
|
263
|
+
), c(t, "data-content-type", g = /*tag*/
|
|
264
|
+
o[1].contentType), P(
|
|
265
265
|
t,
|
|
266
266
|
"left",
|
|
267
267
|
/*left*/
|
|
268
268
|
o[7]
|
|
269
|
-
),
|
|
269
|
+
), P(
|
|
270
270
|
t,
|
|
271
271
|
"top",
|
|
272
272
|
/*top*/
|
|
273
273
|
o[6]
|
|
274
|
-
),
|
|
274
|
+
), c(e, "class", "tag svelte-t2hepc"), c(
|
|
275
275
|
e,
|
|
276
276
|
"data-tag-id",
|
|
277
277
|
/*id*/
|
|
@@ -299,50 +299,50 @@ function it(o) {
|
|
|
299
299
|
);
|
|
300
300
|
},
|
|
301
301
|
m(n, r) {
|
|
302
|
-
|
|
302
|
+
M(n, e, r), V(e, t), a[i].m(t, null), V(t, m), u[s].m(t, null), l = !0;
|
|
303
303
|
},
|
|
304
304
|
p(n, [r]) {
|
|
305
|
-
let
|
|
306
|
-
i = S(n), i ===
|
|
307
|
-
a[
|
|
308
|
-
}),
|
|
309
|
-
let
|
|
310
|
-
s =
|
|
311
|
-
|
|
312
|
-
}),
|
|
313
|
-
2 && _ !== (_ =
|
|
305
|
+
let h = i;
|
|
306
|
+
i = S(n), i === h ? a[i].p(n, r) : (z(), k(a[h], 1, 1, () => {
|
|
307
|
+
a[h] = null;
|
|
308
|
+
}), j(), p = a[i], p ? p.p(n, r) : (p = a[i] = w[i](n), p.c()), v(p, 1), p.m(t, m));
|
|
309
|
+
let b = s;
|
|
310
|
+
s = A(n), s === b ? u[s].p(n, r) : (z(), k(u[b], 1, 1, () => {
|
|
311
|
+
u[b] = null;
|
|
312
|
+
}), j(), f = u[s], f ? f.p(n, r) : (f = u[s] = T[s](n), f.c()), v(f, 1), f.m(t, null)), (!l || r & /*tag*/
|
|
313
|
+
2 && _ !== (_ = R(E(
|
|
314
314
|
"wrapper",
|
|
315
315
|
/*tag*/
|
|
316
316
|
n[1].className ? `${/*tag*/
|
|
317
317
|
n[1].className}__wrapper` : void 0
|
|
318
|
-
)) + " svelte-
|
|
319
|
-
256) &&
|
|
318
|
+
)) + " svelte-t2hepc")) && c(t, "class", _), (!l || r & /*unfolded*/
|
|
319
|
+
256) && c(
|
|
320
320
|
t,
|
|
321
321
|
"data-tag-unfolded",
|
|
322
322
|
/*unfolded*/
|
|
323
323
|
n[8]
|
|
324
324
|
), (!l || r & /*id*/
|
|
325
|
-
2048) &&
|
|
325
|
+
2048) && c(
|
|
326
326
|
t,
|
|
327
327
|
"data-tag-id",
|
|
328
328
|
/*id*/
|
|
329
329
|
n[11]
|
|
330
330
|
), (!l || r & /*tag*/
|
|
331
331
|
2 && g !== (g = /*tag*/
|
|
332
|
-
n[1].contentType)) &&
|
|
333
|
-
128 &&
|
|
332
|
+
n[1].contentType)) && c(t, "data-content-type", g), r & /*left*/
|
|
333
|
+
128 && P(
|
|
334
334
|
t,
|
|
335
335
|
"left",
|
|
336
336
|
/*left*/
|
|
337
337
|
n[7]
|
|
338
338
|
), r & /*top*/
|
|
339
|
-
64 &&
|
|
339
|
+
64 && P(
|
|
340
340
|
t,
|
|
341
341
|
"top",
|
|
342
342
|
/*top*/
|
|
343
343
|
n[6]
|
|
344
344
|
), (!l || r & /*id*/
|
|
345
|
-
2048) &&
|
|
345
|
+
2048) && c(
|
|
346
346
|
e,
|
|
347
347
|
"data-tag-id",
|
|
348
348
|
/*id*/
|
|
@@ -377,39 +377,39 @@ function it(o) {
|
|
|
377
377
|
l || (v(p), v(f), l = !0);
|
|
378
378
|
},
|
|
379
379
|
o(n) {
|
|
380
|
-
|
|
380
|
+
k(p), k(f), l = !1;
|
|
381
381
|
},
|
|
382
382
|
d(n) {
|
|
383
|
-
n &&
|
|
383
|
+
n && N(e), a[i].d(), u[s].d();
|
|
384
384
|
}
|
|
385
385
|
};
|
|
386
386
|
}
|
|
387
387
|
function ot(o, e, t) {
|
|
388
|
-
let i, p, m, s, f, _, g, l, { withAnimation: w = !1 } = e, { tag: a } = e, { mediaStore: S } = e, { renderMap: T = /* @__PURE__ */ new Map() } = e, { state:
|
|
388
|
+
let i, p, m, s, f, _, g, l, { withAnimation: w = !1 } = e, { tag: a } = e, { mediaStore: S } = e, { renderMap: T = /* @__PURE__ */ new Map() } = e, { state: u } = e, { temporaryState: A } = e;
|
|
389
389
|
const n = W("hooks");
|
|
390
390
|
return o.$$set = (r) => {
|
|
391
|
-
"withAnimation" in r && t(0, w = r.withAnimation), "tag" in r && t(1, a = r.tag), "mediaStore" in r && t(2, S = r.mediaStore), "renderMap" in r && t(3, T = r.renderMap), "state" in r && t(4,
|
|
391
|
+
"withAnimation" in r && t(0, w = r.withAnimation), "tag" in r && t(1, a = r.tag), "mediaStore" in r && t(2, S = r.mediaStore), "renderMap" in r && t(3, T = r.renderMap), "state" in r && t(4, u = r.state), "temporaryState" in r && t(5, A = r.temporaryState);
|
|
392
392
|
}, o.$$.update = () => {
|
|
393
|
-
var r,
|
|
393
|
+
var r, h, b, L, q;
|
|
394
394
|
o.$$.dirty & /*tag*/
|
|
395
395
|
2 && t(13, i = (() => {
|
|
396
|
-
var
|
|
397
|
-
return !(((
|
|
396
|
+
var D, I;
|
|
397
|
+
return !(((I = (D = a.style) == null ? void 0 : D.point) == null ? void 0 : I.enabled) === !1 || a.contentType === "Sticker" || a.contentType === "Link" || a.contentType === "VRLink" || a.contentType === "PanoLink" || a.contentType === "Audio" && a.data.appearance === "plane");
|
|
398
398
|
})()), o.$$.dirty & /*tag*/
|
|
399
399
|
2 && t(12, p = (() => a.stickType === "2DPoint")()), o.$$.dirty & /*tag*/
|
|
400
400
|
2 && t(11, m = a.id), o.$$.dirty & /*tag*/
|
|
401
401
|
2 && t(10, s = a.enabled === !1 || !a.state), o.$$.dirty & /*tag*/
|
|
402
|
-
2 && t(9, f = !((r = a.state) != null && r.visible) || ((
|
|
403
|
-
2 && t(8, _ = (
|
|
404
|
-
2 && t(7, g = ((
|
|
405
|
-
2 && t(6, l = ((
|
|
402
|
+
2 && t(9, f = !((r = a.state) != null && r.visible) || ((h = a.temporaryState) == null ? void 0 : h.visible) === !1 || !a.screenPosition), o.$$.dirty & /*tag*/
|
|
403
|
+
2 && t(8, _ = (b = a.state) == null ? void 0 : b.unfolded), o.$$.dirty & /*tag*/
|
|
404
|
+
2 && t(7, g = ((L = a.screenPosition) == null ? void 0 : L.leftPercent) + "%"), o.$$.dirty & /*tag*/
|
|
405
|
+
2 && t(6, l = ((q = a.screenPosition) == null ? void 0 : q.topPercent) + "%");
|
|
406
406
|
}, [
|
|
407
407
|
w,
|
|
408
408
|
a,
|
|
409
409
|
S,
|
|
410
410
|
T,
|
|
411
|
-
|
|
412
|
-
|
|
411
|
+
u,
|
|
412
|
+
A,
|
|
413
413
|
l,
|
|
414
414
|
g,
|
|
415
415
|
_,
|