@pennsieve-viz/tsviewer 1.1.13 → 1.1.14
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/{BFLibraryButton-DTcYY6VD.js → BFLibraryButton-BdrJAbAA.js} +1 -1
- package/dist/{BFLibraryButton-B_TaDdTw.cjs → BFLibraryButton-aMIzQNqm.cjs} +1 -1
- package/dist/{IconSelection-BocyglLO.js → IconSelection-Cp62OGHb.js} +1 -1
- package/dist/{IconSelection-BPTLv8Go.cjs → IconSelection-Dbkbzy-z.cjs} +1 -1
- package/dist/{TSAnnotationCanvas-DaDdtIB4.cjs → TSAnnotationCanvas-BSi9eRoZ.cjs} +1 -1
- package/dist/{TSAnnotationCanvas-DErBDH0Y.js → TSAnnotationCanvas-CuPDJDPZ.js} +2 -2
- package/dist/{TSAnnotationModal-DevUUWys.cjs → TSAnnotationModal-CynARhTJ.cjs} +1 -1
- package/dist/{TSAnnotationModal-B3OSl05U.js → TSAnnotationModal-MC5DUgE4.js} +3 -3
- package/dist/{TSFilterModal-DHBpbDNp.js → TSFilterModal-CdcLq6ht.js} +3 -3
- package/dist/{TSFilterModal-DoqvKSUT.cjs → TSFilterModal-iriL3r29.cjs} +1 -1
- package/dist/{TSScrubber-E03DDcMn.cjs → TSScrubber-Bvvnb5pX.cjs} +1 -1
- package/dist/{TSScrubber-hN5JY-DA.js → TSScrubber-CIIrys3C.js} +1 -1
- package/dist/{TSViewerCanvas-Dc5cwQzK.cjs → TSViewerCanvas-DcaiQAgo.cjs} +2 -2
- package/dist/{TSViewerCanvas-2Jz9ZgqW.js → TSViewerCanvas-kQweTWCd.js} +2 -2
- package/dist/{TSViewerLayerWindow-PAfR31ZO.cjs → TSViewerLayerWindow-C_Rue8jn.cjs} +1 -1
- package/dist/{TSViewerLayerWindow-CalBmhT6.js → TSViewerLayerWindow-QIF0tGyX.js} +2 -2
- package/dist/{TSViewerToolbar-DL9XKYbV.js → TSViewerToolbar-J8UZ2bRt.js} +1 -1
- package/dist/{TSViewerToolbar-C1wTQDPC.cjs → TSViewerToolbar-uUDRtaur.cjs} +1 -1
- package/dist/{TsAnnotationDeleteDialog-DXgN07Wj.js → TsAnnotationDeleteDialog-BExLHBgZ.js} +2 -2
- package/dist/{TsAnnotationDeleteDialog-Cv3z3dFh.cjs → TsAnnotationDeleteDialog-DtvGUbHY.cjs} +1 -1
- package/dist/index-CycAEA38.cjs +1 -0
- package/dist/{index-BsH36ax4.js → index-wXUOzcuy.js} +132 -130
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/index-yiwCKzNX.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { reactive as Ht, ref as m, computed as H, inject as Zt, onMounted as yt, onBeforeUnmount as gt, defineAsyncComponent as re, provide as Je, watch as
|
|
2
|
-
import { defineStore as Kt, storeToRefs as
|
|
1
|
+
import { reactive as Ht, ref as m, computed as H, inject as Zt, onMounted as yt, onBeforeUnmount as gt, defineAsyncComponent as re, provide as Je, watch as Re, nextTick as fe, createElementBlock as Ne, openBlock as he, normalizeClass as Ue, createVNode as ye, createElementVNode as ge, createBlock as Ye, createCommentVNode as Ke, unref as ae, Fragment as Jt, renderList as Yt, toDisplayString as Qe, readonly as oe } from "vue";
|
|
2
|
+
import { defineStore as Kt, storeToRefs as We } from "pinia";
|
|
3
3
|
import { fetchAuthSession as Qt } from "aws-amplify/auth";
|
|
4
4
|
import { ElMessage as en } from "element-plus";
|
|
5
5
|
function E(t) {
|
|
@@ -37,7 +37,7 @@ function tn(t, e) {
|
|
|
37
37
|
s[s.length] = e[n], n += 1;
|
|
38
38
|
return s;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function qe(t, e) {
|
|
41
41
|
switch (t) {
|
|
42
42
|
case 0:
|
|
43
43
|
return function() {
|
|
@@ -68,19 +68,19 @@ function We(t, e) {
|
|
|
68
68
|
return e.apply(this, arguments);
|
|
69
69
|
};
|
|
70
70
|
case 7:
|
|
71
|
-
return function(n, r, a, s, c, A,
|
|
71
|
+
return function(n, r, a, s, c, A, T) {
|
|
72
72
|
return e.apply(this, arguments);
|
|
73
73
|
};
|
|
74
74
|
case 8:
|
|
75
|
-
return function(n, r, a, s, c, A,
|
|
75
|
+
return function(n, r, a, s, c, A, T, h) {
|
|
76
76
|
return e.apply(this, arguments);
|
|
77
77
|
};
|
|
78
78
|
case 9:
|
|
79
|
-
return function(n, r, a, s, c, A,
|
|
79
|
+
return function(n, r, a, s, c, A, T, h, l) {
|
|
80
80
|
return e.apply(this, arguments);
|
|
81
81
|
};
|
|
82
82
|
case 10:
|
|
83
|
-
return function(n, r, a, s, c, A,
|
|
83
|
+
return function(n, r, a, s, c, A, T, h, l, g) {
|
|
84
84
|
return e.apply(this, arguments);
|
|
85
85
|
};
|
|
86
86
|
default:
|
|
@@ -121,7 +121,7 @@ function Ae(t) {
|
|
|
121
121
|
}
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
-
const
|
|
124
|
+
const Le = Array.isArray || function(e) {
|
|
125
125
|
return e != null && e.length >= 0 && Object.prototype.toString.call(e) === "[object Array]";
|
|
126
126
|
};
|
|
127
127
|
function nn(t) {
|
|
@@ -132,7 +132,7 @@ function rn(t, e, n) {
|
|
|
132
132
|
if (arguments.length === 0)
|
|
133
133
|
return n();
|
|
134
134
|
var r = arguments[arguments.length - 1];
|
|
135
|
-
if (!
|
|
135
|
+
if (!Le(r)) {
|
|
136
136
|
for (var a = 0; a < t.length; ) {
|
|
137
137
|
if (typeof r[t[a]] == "function")
|
|
138
138
|
return r[t[a]].apply(r, Array.prototype.slice.call(arguments, 0, -1));
|
|
@@ -160,11 +160,11 @@ const on = {
|
|
|
160
160
|
return this.xf["@@transducer/result"](t);
|
|
161
161
|
}
|
|
162
162
|
};
|
|
163
|
-
function
|
|
163
|
+
function Ve(t) {
|
|
164
164
|
return Object.prototype.toString.call(t) === "[object String]";
|
|
165
165
|
}
|
|
166
166
|
var sn = /* @__PURE__ */ R(function(e) {
|
|
167
|
-
return
|
|
167
|
+
return Le(e) ? !0 : !e || typeof e != "object" || Ve(e) ? !1 : e.length === 0 ? !0 : e.length > 0 ? e.hasOwnProperty(0) && e.hasOwnProperty(e.length - 1) : !1;
|
|
168
168
|
}), ln = /* @__PURE__ */ (function() {
|
|
169
169
|
function t(e) {
|
|
170
170
|
this.f = e;
|
|
@@ -181,7 +181,7 @@ function un(t) {
|
|
|
181
181
|
return new ln(t);
|
|
182
182
|
}
|
|
183
183
|
var cn = /* @__PURE__ */ D(function(e, n) {
|
|
184
|
-
return
|
|
184
|
+
return qe(e.length, function() {
|
|
185
185
|
return e.apply(n, arguments);
|
|
186
186
|
});
|
|
187
187
|
});
|
|
@@ -222,14 +222,14 @@ function fn(t, e, n) {
|
|
|
222
222
|
return tt(t, e, n, "reduce");
|
|
223
223
|
throw new TypeError("reduce: list must be array or iterable");
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function Oe(t, e) {
|
|
226
226
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
227
227
|
}
|
|
228
228
|
var rt = Object.prototype.toString, wt = /* @__PURE__ */ (function() {
|
|
229
229
|
return rt.call(arguments) === "[object Arguments]" ? function(e) {
|
|
230
230
|
return rt.call(e) === "[object Arguments]";
|
|
231
231
|
} : function(e) {
|
|
232
|
-
return
|
|
232
|
+
return Oe("callee", e);
|
|
233
233
|
};
|
|
234
234
|
})(), vn = !/* @__PURE__ */ {
|
|
235
235
|
toString: null
|
|
@@ -249,10 +249,10 @@ var rt = Object.prototype.toString, wt = /* @__PURE__ */ (function() {
|
|
|
249
249
|
return [];
|
|
250
250
|
var n, r, a = [], s = ot && wt(e);
|
|
251
251
|
for (n in e)
|
|
252
|
-
|
|
252
|
+
Oe(n, e) && (!s || n !== "length") && (a[a.length] = n);
|
|
253
253
|
if (vn)
|
|
254
254
|
for (r = at.length - 1; r >= 0; )
|
|
255
|
-
n = at[r],
|
|
255
|
+
n = at[r], Oe(n, e) && !pn(a, n) && (a[a.length] = n), r -= 1;
|
|
256
256
|
return a;
|
|
257
257
|
});
|
|
258
258
|
const mt = Number.isInteger || function(e) {
|
|
@@ -260,7 +260,7 @@ const mt = Number.isInteger || function(e) {
|
|
|
260
260
|
};
|
|
261
261
|
var At = /* @__PURE__ */ D(function(e, n) {
|
|
262
262
|
var r = e < 0 ? n.length + e : e;
|
|
263
|
-
return
|
|
263
|
+
return Ve(n) ? n.charAt(r) : n[r];
|
|
264
264
|
}), se = /* @__PURE__ */ D(function(e, n) {
|
|
265
265
|
if (n != null)
|
|
266
266
|
return mt(e) ? At(e, n) : n[e];
|
|
@@ -278,7 +278,7 @@ function Ct(t, e) {
|
|
|
278
278
|
if (n === 0)
|
|
279
279
|
return e();
|
|
280
280
|
var r = arguments[n - 1];
|
|
281
|
-
return
|
|
281
|
+
return Le(r) || typeof r[t] != "function" ? e.apply(this, arguments) : r[t].apply(r, Array.prototype.slice.call(arguments, 0, n - 1));
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
284
|
var gn = /* @__PURE__ */ Ae(
|
|
@@ -294,10 +294,10 @@ var gn = /* @__PURE__ */ Ae(
|
|
|
294
294
|
function mn() {
|
|
295
295
|
if (arguments.length === 0)
|
|
296
296
|
throw new Error("pipe requires at least one argument");
|
|
297
|
-
return
|
|
297
|
+
return qe(arguments[0].length, hn(yn, arguments[0], wn(arguments)));
|
|
298
298
|
}
|
|
299
299
|
var An = /* @__PURE__ */ R(function(e) {
|
|
300
|
-
return
|
|
300
|
+
return Ve(e) ? e.split("").reverse().join("") : Array.prototype.slice.call(e, 0).reverse();
|
|
301
301
|
});
|
|
302
302
|
function lt() {
|
|
303
303
|
if (arguments.length === 0)
|
|
@@ -324,18 +324,18 @@ function Cn(t) {
|
|
|
324
324
|
function Sn(t, e) {
|
|
325
325
|
return t === e ? t !== 0 || 1 / t === 1 / e : t !== t && e !== e;
|
|
326
326
|
}
|
|
327
|
-
const
|
|
327
|
+
const xe = typeof Object.is == "function" ? Object.is : Sn;
|
|
328
328
|
function dt(t, e, n, r) {
|
|
329
329
|
var a = ut(t), s = ut(e);
|
|
330
|
-
function c(A,
|
|
331
|
-
return
|
|
330
|
+
function c(A, T) {
|
|
331
|
+
return Be(A, T, n.slice(), r.slice());
|
|
332
332
|
}
|
|
333
|
-
return !ct(function(A,
|
|
334
|
-
return !ct(c,
|
|
333
|
+
return !ct(function(A, T) {
|
|
334
|
+
return !ct(c, T, A);
|
|
335
335
|
}, s, a);
|
|
336
336
|
}
|
|
337
|
-
function
|
|
338
|
-
if (
|
|
337
|
+
function Be(t, e, n, r) {
|
|
338
|
+
if (xe(t, e))
|
|
339
339
|
return !0;
|
|
340
340
|
var a = st(t);
|
|
341
341
|
if (a !== st(e))
|
|
@@ -354,11 +354,11 @@ function qe(t, e, n, r) {
|
|
|
354
354
|
case "Boolean":
|
|
355
355
|
case "Number":
|
|
356
356
|
case "String":
|
|
357
|
-
if (!(typeof t == typeof e &&
|
|
357
|
+
if (!(typeof t == typeof e && xe(t.valueOf(), e.valueOf())))
|
|
358
358
|
return !1;
|
|
359
359
|
break;
|
|
360
360
|
case "Date":
|
|
361
|
-
if (!
|
|
361
|
+
if (!xe(t.valueOf(), e.valueOf()))
|
|
362
362
|
return !1;
|
|
363
363
|
break;
|
|
364
364
|
case "Error":
|
|
@@ -404,17 +404,17 @@ function qe(t, e, n, r) {
|
|
|
404
404
|
var c = it(t);
|
|
405
405
|
if (c.length !== it(e).length)
|
|
406
406
|
return !1;
|
|
407
|
-
var A = n.concat([t]),
|
|
407
|
+
var A = n.concat([t]), T = r.concat([e]);
|
|
408
408
|
for (s = c.length - 1; s >= 0; ) {
|
|
409
409
|
var h = c[s];
|
|
410
|
-
if (!(
|
|
410
|
+
if (!(Oe(h, e) && Be(e[h], t[h], A, T)))
|
|
411
411
|
return !1;
|
|
412
412
|
s -= 1;
|
|
413
413
|
}
|
|
414
414
|
return !0;
|
|
415
415
|
}
|
|
416
416
|
var St = /* @__PURE__ */ D(function(e, n) {
|
|
417
|
-
return
|
|
417
|
+
return Be(e, n, [], []);
|
|
418
418
|
});
|
|
419
419
|
function bn(t) {
|
|
420
420
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
@@ -422,14 +422,14 @@ function bn(t) {
|
|
|
422
422
|
var we = /* @__PURE__ */ D(function(e, n) {
|
|
423
423
|
return n == null || n !== n ? e : n;
|
|
424
424
|
});
|
|
425
|
-
function
|
|
425
|
+
function In(t) {
|
|
426
426
|
var e = Object.prototype.toString.call(t);
|
|
427
427
|
return e === "[object Uint8ClampedArray]" || e === "[object Int8Array]" || e === "[object Uint8Array]" || e === "[object Int16Array]" || e === "[object Uint16Array]" || e === "[object Int32Array]" || e === "[object Uint32Array]" || e === "[object Float32Array]" || e === "[object Float64Array]" || e === "[object BigInt64Array]" || e === "[object BigUint64Array]";
|
|
428
428
|
}
|
|
429
|
-
var
|
|
430
|
-
return e != null && typeof e["fantasy-land/empty"] == "function" ? e["fantasy-land/empty"]() : e != null && e.constructor != null && typeof e.constructor["fantasy-land/empty"] == "function" ? e.constructor["fantasy-land/empty"]() : e != null && typeof e.empty == "function" ? e.empty() : e != null && e.constructor != null && typeof e.constructor.empty == "function" ? e.constructor.empty() :
|
|
429
|
+
var Tn = /* @__PURE__ */ R(function(e) {
|
|
430
|
+
return e != null && typeof e["fantasy-land/empty"] == "function" ? e["fantasy-land/empty"]() : e != null && e.constructor != null && typeof e.constructor["fantasy-land/empty"] == "function" ? e.constructor["fantasy-land/empty"]() : e != null && typeof e.empty == "function" ? e.empty() : e != null && e.constructor != null && typeof e.constructor.empty == "function" ? e.constructor.empty() : Le(e) ? [] : Ve(e) ? "" : bn(e) ? {} : wt(e) ? /* @__PURE__ */ (function() {
|
|
431
431
|
return arguments;
|
|
432
|
-
})() :
|
|
432
|
+
})() : In(e) ? e.constructor.from("") : void 0;
|
|
433
433
|
}), En = /* @__PURE__ */ (function() {
|
|
434
434
|
function t(e, n) {
|
|
435
435
|
this.xf = n, this.f = e, this.idx = -1, this.found = !1;
|
|
@@ -451,7 +451,7 @@ var In = /* @__PURE__ */ R(function(e) {
|
|
|
451
451
|
return -1;
|
|
452
452
|
})
|
|
453
453
|
), On = /* @__PURE__ */ R(function(e) {
|
|
454
|
-
return e != null && St(e,
|
|
454
|
+
return e != null && St(e, Tn(e));
|
|
455
455
|
}), Ln = /* @__PURE__ */ D(function(e, n) {
|
|
456
456
|
return e.map(function(r) {
|
|
457
457
|
for (var a = n, s = 0, c; s < r.length; ) {
|
|
@@ -463,14 +463,14 @@ var In = /* @__PURE__ */ R(function(e) {
|
|
|
463
463
|
});
|
|
464
464
|
}), Vn = /* @__PURE__ */ D(function(e, n) {
|
|
465
465
|
return Ln([e], n)[0];
|
|
466
|
-
}),
|
|
466
|
+
}), Ie = /* @__PURE__ */ Ae(function(e, n, r) {
|
|
467
467
|
return we(e, Vn(n, r));
|
|
468
468
|
}), z = /* @__PURE__ */ Ae(function(e, n, r) {
|
|
469
469
|
return St(n, se(e, r));
|
|
470
470
|
}), me = /* @__PURE__ */ Ae(function(e, n, r) {
|
|
471
471
|
return we(e, se(n, r));
|
|
472
472
|
}), kn = /* @__PURE__ */ D(function(e, n) {
|
|
473
|
-
return
|
|
473
|
+
return qe(e.length, function() {
|
|
474
474
|
try {
|
|
475
475
|
return e.apply(this, arguments);
|
|
476
476
|
} catch (r) {
|
|
@@ -478,7 +478,7 @@ var In = /* @__PURE__ */ R(function(e) {
|
|
|
478
478
|
}
|
|
479
479
|
});
|
|
480
480
|
});
|
|
481
|
-
async function
|
|
481
|
+
async function _e() {
|
|
482
482
|
try {
|
|
483
483
|
return Qt().then(
|
|
484
484
|
(t) => {
|
|
@@ -491,7 +491,7 @@ async function Ee() {
|
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
493
|
const jn = () => ({
|
|
494
|
-
openConnection: async (e, n, r, a = "viewerAsset", s = null) => await new Promise((
|
|
494
|
+
openConnection: async (e, n, r, a = "viewerAsset", s = null) => await new Promise((T, h) => {
|
|
495
495
|
let l = e + "?session=" + r + "&" + a + "=" + n;
|
|
496
496
|
s && a !== "package" && (l += "&package=" + s);
|
|
497
497
|
let g = null;
|
|
@@ -500,7 +500,7 @@ const jn = () => ({
|
|
|
500
500
|
const b = { montage: "NOT_MONTAGED", packageId: n };
|
|
501
501
|
w.send(JSON.stringify(b));
|
|
502
502
|
}, w.onclose = () => {
|
|
503
|
-
g && g.channelDetails ?
|
|
503
|
+
g && g.channelDetails ? T({ res: g.channelDetails, status: "websocket closed" }) : T({ res: null, status: "websocket closed without data" });
|
|
504
504
|
}, w.onmessage = (b) => {
|
|
505
505
|
g = JSON.parse(b.data), w.close();
|
|
506
506
|
}, w.onerror = (b) => {
|
|
@@ -509,13 +509,13 @@ const jn = () => ({
|
|
|
509
509
|
})
|
|
510
510
|
}), K = /* @__PURE__ */ new Map();
|
|
511
511
|
let ft = !1, vt = !1;
|
|
512
|
-
function
|
|
512
|
+
function ke(t = "default") {
|
|
513
513
|
if (t === "default" && !ft && (ft = !0, console.warn(
|
|
514
514
|
'[TSViewer] Using default store instance. For multi-instance support, pass a unique instanceId prop to TSViewer. Example: <TSViewer instance-id="viewer-1" />'
|
|
515
515
|
)), K.has(t))
|
|
516
516
|
return K.get(t)();
|
|
517
517
|
const e = Kt(`tsviewer-${t}`, () => {
|
|
518
|
-
const n = Ht({}), r = m([]), a = m("NOT_MONTAGED"), s = m({}), c = m([]), A = m(null),
|
|
518
|
+
const n = Ht({}), r = m([]), a = m("NOT_MONTAGED"), s = m({}), c = m([]), A = m(null), T = m(null), h = m({}), l = m([]), g = m({}), w = m({}), b = m("pointer"), { openConnection: U } = jn(), x = H(() => (o) => c.value.find((u) => u.name === o)), O = H(() => r.value.filter((o) => o.selected)), k = H(() => () => {
|
|
519
519
|
const o = l.value.find((u) => u.selected);
|
|
520
520
|
return o || (console.warn("No active layer found, available layers:", l.value), l.value.length > 0 ? l.value[0] : null);
|
|
521
521
|
}), L = () => {
|
|
@@ -536,13 +536,15 @@ function Ve(t = "default") {
|
|
|
536
536
|
}, M = (o) => {
|
|
537
537
|
A.value = o;
|
|
538
538
|
}, J = (o) => {
|
|
539
|
-
|
|
539
|
+
T.value = o;
|
|
540
540
|
}, F = (o) => {
|
|
541
541
|
Object.assign(n, o);
|
|
542
542
|
}, W = async (o) => {
|
|
543
|
-
const u = o.viewerAssetId || null, p = o.packageId || null, P = u || p, ce = u ? "viewerAsset" : "package",
|
|
544
|
-
let
|
|
545
|
-
Ce = await U(
|
|
543
|
+
const u = o.viewerAssetId || null, p = o.packageId || null, P = u || p, ce = u ? "viewerAsset" : "package", Me = await _e();
|
|
544
|
+
let Pe = n.timeseriesDiscoverApi, Ce = null;
|
|
545
|
+
Ce = await U(Pe, P, Me, ce, u ? p : null);
|
|
546
|
+
const Se = p || P;
|
|
547
|
+
f({ channels: Ce.res, content: { id: Se, idType: ce } });
|
|
546
548
|
}, Y = () => (o) => {
|
|
547
549
|
var p;
|
|
548
550
|
return ((p = o == null ? void 0 : o.content) == null ? void 0 : p.state) === "READY";
|
|
@@ -618,7 +620,7 @@ function Ve(t = "default") {
|
|
|
618
620
|
const p = l.value[u].annotations, P = G(z("id", o.id), p);
|
|
619
621
|
P >= 0 && p.splice(P, 1);
|
|
620
622
|
}
|
|
621
|
-
},
|
|
623
|
+
}, I = (o, u, p) => {
|
|
622
624
|
const P = r.value.find((ce) => ce.id === o);
|
|
623
625
|
P && (P[u] = p);
|
|
624
626
|
};
|
|
@@ -629,7 +631,7 @@ function Ve(t = "default") {
|
|
|
629
631
|
customMontageMap: s,
|
|
630
632
|
workspaceMontages: c,
|
|
631
633
|
viewerErrors: A,
|
|
632
|
-
needsRerender:
|
|
634
|
+
needsRerender: T,
|
|
633
635
|
viewerAnnotations: l,
|
|
634
636
|
activeAnnotationLayer: g,
|
|
635
637
|
activeAnnotation: w,
|
|
@@ -657,15 +659,15 @@ function Ve(t = "default") {
|
|
|
657
659
|
createAnnotation: te,
|
|
658
660
|
updateAnnotation: ne,
|
|
659
661
|
deleteAnnotation: y,
|
|
660
|
-
updateChannelProperty:
|
|
662
|
+
updateChannelProperty: I,
|
|
661
663
|
updateChannelVisibility: (o, u) => {
|
|
662
|
-
|
|
664
|
+
I(o, "visible", u);
|
|
663
665
|
},
|
|
664
666
|
updateChannelSelection: (o, u) => {
|
|
665
|
-
|
|
667
|
+
I(o, "selected", u);
|
|
666
668
|
},
|
|
667
669
|
updateChannelFilter: (o, u) => {
|
|
668
|
-
|
|
670
|
+
I(o, "filter", u);
|
|
669
671
|
},
|
|
670
672
|
validateAnnotationLayers: L,
|
|
671
673
|
resetViewer: () => {
|
|
@@ -680,7 +682,7 @@ function Ve(t = "default") {
|
|
|
680
682
|
});
|
|
681
683
|
},
|
|
682
684
|
resetRerenderTrigger: () => {
|
|
683
|
-
|
|
685
|
+
T.value = null;
|
|
684
686
|
},
|
|
685
687
|
isTSFileProcessed: Y,
|
|
686
688
|
fetchAndSetActiveViewer: W,
|
|
@@ -701,7 +703,7 @@ function er() {
|
|
|
701
703
|
function tr() {
|
|
702
704
|
return vt || (vt = !0, console.warn(
|
|
703
705
|
"[TSViewer] useViewerStore() is deprecated. Use createViewerStore(instanceId) for multi-instance support."
|
|
704
|
-
)),
|
|
706
|
+
)), ke("default");
|
|
705
707
|
}
|
|
706
708
|
function Mn(t) {
|
|
707
709
|
if (useRoute().name === "docs-login")
|
|
@@ -750,19 +752,19 @@ function Rn() {
|
|
|
750
752
|
}
|
|
751
753
|
}, Te.exports = t, Te.exports.TinyEmitter = t, Te.exports;
|
|
752
754
|
}
|
|
753
|
-
var
|
|
755
|
+
var $e, ht;
|
|
754
756
|
function Nn() {
|
|
755
|
-
if (ht) return
|
|
757
|
+
if (ht) return $e;
|
|
756
758
|
ht = 1;
|
|
757
759
|
var t = Rn();
|
|
758
|
-
return
|
|
760
|
+
return $e = new t(), $e;
|
|
759
761
|
}
|
|
760
762
|
var Un = Nn();
|
|
761
|
-
const
|
|
762
|
-
$emit: (...t) =>
|
|
763
|
-
$on: (...t) =>
|
|
764
|
-
$off: (...t) =>
|
|
765
|
-
$once: (...t) =>
|
|
763
|
+
const Ee = /* @__PURE__ */ Pn(Un), ie = {
|
|
764
|
+
$emit: (...t) => Ee.emit(...t),
|
|
765
|
+
$on: (...t) => Ee.on(...t),
|
|
766
|
+
$off: (...t) => Ee.off(...t),
|
|
767
|
+
$once: (...t) => Ee.once(...t)
|
|
766
768
|
}, xn = (t) => Object.prototype.toString.call(t) === "[object String]", $n = (t) => {
|
|
767
769
|
Object.keys(t).forEach((e) => {
|
|
768
770
|
xn(t[e]) && (t[e] = t[e].trim());
|
|
@@ -780,7 +782,7 @@ function rr(t, e) {
|
|
|
780
782
|
}
|
|
781
783
|
return fetch(t, c).then((A) => A.status >= 400 ? Promise.reject(A) : A.json().catch(() => A));
|
|
782
784
|
}
|
|
783
|
-
function
|
|
785
|
+
function Fe(t) {
|
|
784
786
|
const e = se("status", t);
|
|
785
787
|
let n;
|
|
786
788
|
if (e === void 0) {
|
|
@@ -790,7 +792,7 @@ function $e(t) {
|
|
|
790
792
|
n = t.status;
|
|
791
793
|
if (n === 400 && t.body)
|
|
792
794
|
t.body.getReader().read().then(({ done: r, value: a }) => {
|
|
793
|
-
const s = a instanceof Uint8Array ? String.fromCharCode.apply(null, a) : a, c = lt(we(s), kn(lt(se("message"), JSON.parse), (A,
|
|
795
|
+
const s = a instanceof Uint8Array ? String.fromCharCode.apply(null, a) : a, c = lt(we(s), kn(lt(se("message"), JSON.parse), (A, T) => T))(s);
|
|
794
796
|
ie.$emit("ajaxError", {
|
|
795
797
|
detail: {
|
|
796
798
|
type: "error",
|
|
@@ -821,7 +823,7 @@ function $e(t) {
|
|
|
821
823
|
}
|
|
822
824
|
}
|
|
823
825
|
function Fn(t = null) {
|
|
824
|
-
const e = t || Zt("viewerStore", null) ||
|
|
826
|
+
const e = t || Zt("viewerStore", null) || ke("default"), { viewerChannels: n, viewerAnnotations: r } = We(e), a = (h) => h.id || "", s = (h) => {
|
|
825
827
|
h.sort(function(g, w) {
|
|
826
828
|
return g.start < w.start ? -1 : g.start > w.start ? 1 : 0;
|
|
827
829
|
});
|
|
@@ -872,7 +874,7 @@ function Fn(t = null) {
|
|
|
872
874
|
channelIds: O
|
|
873
875
|
}, L = e.activeViewer.content.id, q = `${e.config.apiUrl}/timeseries/${L}/layers/${x}/annotations`;
|
|
874
876
|
try {
|
|
875
|
-
const f = await
|
|
877
|
+
const f = await _e(), V = await fetch(`${q}?api_key=${f}`, {
|
|
876
878
|
method: "POST",
|
|
877
879
|
headers: {
|
|
878
880
|
"Content-Type": "application/json",
|
|
@@ -910,7 +912,7 @@ function Fn(t = null) {
|
|
|
910
912
|
}
|
|
911
913
|
return e.createAnnotation(j), r.value[N] && r.value[N].annotations && s(r.value[N].annotations), j;
|
|
912
914
|
} catch (f) {
|
|
913
|
-
throw console.error("🔧 useTsAnnotation: Error creating annotation:", f),
|
|
915
|
+
throw console.error("🔧 useTsAnnotation: Error creating annotation:", f), Fe(f), f;
|
|
914
916
|
}
|
|
915
917
|
},
|
|
916
918
|
updateAnnotation: async (h = null) => {
|
|
@@ -930,7 +932,7 @@ function Fn(t = null) {
|
|
|
930
932
|
channelIds: l.channelIds || []
|
|
931
933
|
}, U = e.activeViewer.content.id, x = `${e.config.apiUrl}/timeseries/${U}/layers/${l.layer_id}/annotations/${l.id}`;
|
|
932
934
|
try {
|
|
933
|
-
const O = await
|
|
935
|
+
const O = await _e(), k = await fetch(`${x}?api_key=${O}`, {
|
|
934
936
|
method: "PUT",
|
|
935
937
|
headers: {
|
|
936
938
|
"Content-Type": "application/json",
|
|
@@ -949,7 +951,7 @@ function Fn(t = null) {
|
|
|
949
951
|
};
|
|
950
952
|
return e.updateAnnotation(q), L;
|
|
951
953
|
} catch (O) {
|
|
952
|
-
throw console.error("🔧 useTsAnnotation: Error updating annotation:", O),
|
|
954
|
+
throw console.error("🔧 useTsAnnotation: Error updating annotation:", O), Fe(O), O;
|
|
953
955
|
}
|
|
954
956
|
},
|
|
955
957
|
removeAnnotation: async (h) => {
|
|
@@ -960,7 +962,7 @@ function Fn(t = null) {
|
|
|
960
962
|
throw new TypeError("Missing layer_id for annotation deletion", h);
|
|
961
963
|
const g = e.activeViewer.content.id, w = `${e.config.apiUrl}/timeseries/${g}/layers/${l}/annotations/${h.id}`;
|
|
962
964
|
try {
|
|
963
|
-
const b = await
|
|
965
|
+
const b = await _e(), U = await fetch(`${w}?api_key=${b}`, {
|
|
964
966
|
method: "DELETE",
|
|
965
967
|
headers: {
|
|
966
968
|
Accept: "application/json"
|
|
@@ -972,7 +974,7 @@ function Fn(t = null) {
|
|
|
972
974
|
}
|
|
973
975
|
return e.deleteAnnotation(h), !0;
|
|
974
976
|
} catch (b) {
|
|
975
|
-
throw console.error("🔧 useTsAnnotation: Error deleting annotation:", b),
|
|
977
|
+
throw console.error("🔧 useTsAnnotation: Error deleting annotation:", b), Fe(b), b;
|
|
976
978
|
}
|
|
977
979
|
},
|
|
978
980
|
sortAnns: s,
|
|
@@ -981,7 +983,7 @@ function Fn(t = null) {
|
|
|
981
983
|
}
|
|
982
984
|
function Wn() {
|
|
983
985
|
const t = (e) => {
|
|
984
|
-
const n =
|
|
986
|
+
const n = Ie("", ["detail", "msg"], e), r = me(n, "msg", e), a = Ie("info", ["detail", "type"], e).toLowerCase(), s = Ie(!1, ["detail", "showClose"], e), c = Ie(3e3, ["detail", "duration"], e);
|
|
985
987
|
r && en({
|
|
986
988
|
message: r,
|
|
987
989
|
type: a,
|
|
@@ -1029,7 +1031,7 @@ const qn = (t, e) => {
|
|
|
1029
1031
|
}
|
|
1030
1032
|
},
|
|
1031
1033
|
setup(t, { expose: e }) {
|
|
1032
|
-
const n = re(() => import("./TSScrubber-
|
|
1034
|
+
const n = re(() => import("./TSScrubber-CIIrys3C.js")), r = re(() => import("./TSViewerCanvas-kQweTWCd.js").then((i) => i.T)), a = re(() => import("./TSViewerToolbar-J8UZ2bRt.js")), s = re(() => import("./TSFilterModal-CdcLq6ht.js")), c = re(() => import("./TSAnnotationModal-MC5DUgE4.js")), A = re(() => import("./TsAnnotationDeleteDialog-BExLHBgZ.js")), T = re(() => import("./TSViewerLayerWindow-QIF0tGyX.js")), h = {
|
|
1033
1035
|
TIMEUNIT: "microSeconds",
|
|
1034
1036
|
// Basis for time
|
|
1035
1037
|
XOFFSET: 0,
|
|
@@ -1066,19 +1068,19 @@ const qn = (t, e) => {
|
|
|
1066
1068
|
// Maximum duration window (5min)
|
|
1067
1069
|
INITDURATION: 15e6
|
|
1068
1070
|
// Initial duration window (15sec)
|
|
1069
|
-
}, l = t, g =
|
|
1071
|
+
}, l = t, g = ke(l.instanceId), { viewerChannels: w, needsRerender: b } = We(g);
|
|
1070
1072
|
Je("viewerStore", g), Je("viewerInstanceId", l.instanceId), Wn();
|
|
1071
1073
|
const {
|
|
1072
1074
|
addAnnotation: U,
|
|
1073
1075
|
updateAnnotation: x,
|
|
1074
1076
|
removeAnnotation: O
|
|
1075
|
-
} = Fn(g), k = m(null), L = m(null), q = m(null), f = m(null), V = m(null), _ = m(null), j = m(null), N = m(null), M = m(0), J = m(0), F = m(0), W = m(0), Y = m(0), Q = m(0), le = m(0), $ = m(1), ee = m(1 / 10), B = m(!1), ue = m(!1), ve = m(null), te = m(!1), ne = m(!1), y = H(() => g.activeViewer),
|
|
1077
|
+
} = Fn(g), k = m(null), L = m(null), q = m(null), f = m(null), V = m(null), _ = m(null), j = m(null), N = m(null), M = m(0), J = m(0), F = m(0), W = m(0), Y = m(0), Q = m(0), le = m(0), $ = m(1), ee = m(1 / 10), B = m(!1), ue = m(!1), ve = m(null), te = m(!1), ne = m(!1), y = H(() => g.activeViewer), I = H(() => w.value.map((i) => ({
|
|
1076
1078
|
...i,
|
|
1077
1079
|
selected: !!i.selected
|
|
1078
|
-
}))), X = H(() =>
|
|
1080
|
+
}))), X = H(() => I.value.filter((i) => i.visible)), Z = H(() => {
|
|
1079
1081
|
let i = !1;
|
|
1080
|
-
return Q.value /
|
|
1081
|
-
}),
|
|
1082
|
+
return Q.value / je.value < 30 && (i = !0), i;
|
|
1083
|
+
}), je = H(() => X.value.length), pe = async () => {
|
|
1082
1084
|
if (!k.value)
|
|
1083
1085
|
return;
|
|
1084
1086
|
const i = document.getElementById("ts_viewer");
|
|
@@ -1089,19 +1091,19 @@ const qn = (t, e) => {
|
|
|
1089
1091
|
const S = q.value;
|
|
1090
1092
|
S && (le.value = S.clientWidth, Y.value = J.value - S.clientWidth - 16, Q.value = M.value - 40);
|
|
1091
1093
|
};
|
|
1092
|
-
|
|
1094
|
+
Re(() => y.value, async (i, d) => {
|
|
1093
1095
|
var v, C, S;
|
|
1094
1096
|
(v = L.value) != null && v.resetComponentState && L.value.resetComponentState(), i && i.channels && i.channels.length > 0 && He(), Ze(), await fe(), (C = L.value) != null && C.initSegmentSpans && L.value.initSegmentSpans(), (S = L.value) != null && S.getAnnotations && L.value.getAnnotations();
|
|
1095
|
-
}, { immediate: !1, deep: !0 }),
|
|
1097
|
+
}, { immediate: !1, deep: !0 }), Re(je, (i, d) => {
|
|
1096
1098
|
d !== void 0 && i !== d && setTimeout(() => {
|
|
1097
1099
|
var v;
|
|
1098
1100
|
pe(), (v = f.value) != null && v.renderAll && f.value.renderAll();
|
|
1099
1101
|
}, 20);
|
|
1100
1102
|
});
|
|
1101
|
-
const
|
|
1103
|
+
const De = (i) => {
|
|
1102
1104
|
g.setActiveAnnotation(i), f.value.renderAnnotationCanvas(), B.value = !0;
|
|
1103
1105
|
};
|
|
1104
|
-
|
|
1106
|
+
Re(b, (i) => {
|
|
1105
1107
|
i && (fe(() => {
|
|
1106
1108
|
var d;
|
|
1107
1109
|
i.cause === "channel-visibility" ? setTimeout(() => {
|
|
@@ -1110,8 +1112,8 @@ const qn = (t, e) => {
|
|
|
1110
1112
|
}, 10) : (d = f.value) != null && d.renderAll && f.value.renderAll();
|
|
1111
1113
|
}), g.resetRerenderTrigger(null));
|
|
1112
1114
|
}, { deep: !0 });
|
|
1113
|
-
const
|
|
1114
|
-
|
|
1115
|
+
const Xe = (i) => {
|
|
1116
|
+
De(i);
|
|
1115
1117
|
}, o = async (i) => {
|
|
1116
1118
|
if (!i || Object.keys(i).length === 0) {
|
|
1117
1119
|
console.error("TSViewer: Received empty annotation!");
|
|
@@ -1123,7 +1125,7 @@ const qn = (t, e) => {
|
|
|
1123
1125
|
}
|
|
1124
1126
|
B.value = !1;
|
|
1125
1127
|
try {
|
|
1126
|
-
i.id ? (await x(i), u()) : (await U(i),
|
|
1128
|
+
i.id ? (await x(i), u()) : (await U(i), Pe());
|
|
1127
1129
|
} catch (d) {
|
|
1128
1130
|
console.error("TSViewer: Error creating/updating annotation:", d), B.value = !0;
|
|
1129
1131
|
}
|
|
@@ -1140,9 +1142,9 @@ const qn = (t, e) => {
|
|
|
1140
1142
|
}
|
|
1141
1143
|
}, ce = () => {
|
|
1142
1144
|
f.value.renderAnnotationCanvas();
|
|
1143
|
-
},
|
|
1144
|
-
if (!
|
|
1145
|
-
console.error("Invalid layer provided to onAddAnnotation:",
|
|
1145
|
+
}, Me = (i, d, v, C, S, be) => {
|
|
1146
|
+
if (!be || !be.id) {
|
|
1147
|
+
console.error("Invalid layer provided to onAddAnnotation:", be);
|
|
1146
1148
|
return;
|
|
1147
1149
|
}
|
|
1148
1150
|
const Bt = g.viewerSelectedChannels || [], Xt = v ? [] : Bt.map((zt) => zt.id), Gt = {
|
|
@@ -1154,22 +1156,22 @@ const qn = (t, e) => {
|
|
|
1154
1156
|
duration: Math.floor(d),
|
|
1155
1157
|
channelIds: Xt,
|
|
1156
1158
|
allChannels: v,
|
|
1157
|
-
layer_id:
|
|
1159
|
+
layer_id: be.id,
|
|
1158
1160
|
selected: !0,
|
|
1159
1161
|
userId: null
|
|
1160
1162
|
};
|
|
1161
1163
|
g.setActiveAnnotation(Gt), B.value = !0;
|
|
1162
|
-
},
|
|
1164
|
+
}, Pe = () => {
|
|
1163
1165
|
f.value.renderAnnotationCanvas();
|
|
1164
1166
|
}, Ce = (i) => {
|
|
1165
1167
|
f.value.createAnnotationLayer(i);
|
|
1166
|
-
},
|
|
1168
|
+
}, Se = () => {
|
|
1167
1169
|
ue.value = !1;
|
|
1168
1170
|
}, bt = () => {
|
|
1169
1171
|
f.value.resetFocusedAnnotation(), f.value.renderAnnotationCanvas(), B.value = !1;
|
|
1170
|
-
},
|
|
1172
|
+
}, It = () => {
|
|
1171
1173
|
ne.value = !1;
|
|
1172
|
-
},
|
|
1174
|
+
}, Tt = (i) => {
|
|
1173
1175
|
i.stopPropagation(), i.preventDefault();
|
|
1174
1176
|
const d = i.detail.sourceEvent.metaKey;
|
|
1175
1177
|
Ge({ channelId: i.currentTarget.dataset.id, append: d }), f.value.renderAll();
|
|
@@ -1264,7 +1266,7 @@ const qn = (t, e) => {
|
|
|
1264
1266
|
}), gt(() => {
|
|
1265
1267
|
window.removeEventListener("resize", pe), Dn(l.instanceId);
|
|
1266
1268
|
}), e({
|
|
1267
|
-
openEditAnnotationDialog:
|
|
1269
|
+
openEditAnnotationDialog: De,
|
|
1268
1270
|
confirmDeleteAnnotation: p,
|
|
1269
1271
|
selectAnnotation: Pt,
|
|
1270
1272
|
selectChannel: Ge,
|
|
@@ -1274,11 +1276,11 @@ const qn = (t, e) => {
|
|
|
1274
1276
|
setTimeseriesFilters: qt
|
|
1275
1277
|
}), (i, d) => {
|
|
1276
1278
|
var v, C;
|
|
1277
|
-
return he(),
|
|
1279
|
+
return he(), Ne("div", {
|
|
1278
1280
|
id: "ts_viewer",
|
|
1279
1281
|
ref_key: "ts_viewer",
|
|
1280
1282
|
ref: k,
|
|
1281
|
-
class:
|
|
1283
|
+
class: Ue([t.isPreview ? "timeseries-viewer preview" : "timeseries-viewer"])
|
|
1282
1284
|
}, [
|
|
1283
1285
|
ye(ae(n), {
|
|
1284
1286
|
ref_key: "scrubber",
|
|
@@ -1300,17 +1302,17 @@ const qn = (t, e) => {
|
|
|
1300
1302
|
ref_key: "channelLabels",
|
|
1301
1303
|
ref: q
|
|
1302
1304
|
}, [
|
|
1303
|
-
(he(!0),
|
|
1305
|
+
(he(!0), Ne(Jt, null, Yt(X.value, (S) => (he(), Ne("div", {
|
|
1304
1306
|
key: S.displayName,
|
|
1305
1307
|
class: "chLabelWrap",
|
|
1306
1308
|
"data-id": S.id,
|
|
1307
|
-
onTap:
|
|
1309
|
+
onTap: Tt
|
|
1308
1310
|
}, [
|
|
1309
1311
|
ge("div", {
|
|
1310
|
-
class:
|
|
1312
|
+
class: Ue([S.selected ? "labelDiv selected" : "labelDiv"])
|
|
1311
1313
|
}, Qe(S.displayName), 3),
|
|
1312
1314
|
ge("div", {
|
|
1313
|
-
class:
|
|
1315
|
+
class: Ue(["chLabelIndWrap", [S.selected ? "selected" : ""]]),
|
|
1314
1316
|
hidden: Z.value
|
|
1315
1317
|
}, [
|
|
1316
1318
|
ge("div", {
|
|
@@ -1342,9 +1344,9 @@ const qn = (t, e) => {
|
|
|
1342
1344
|
onSetDuration: ze,
|
|
1343
1345
|
onChannelsInitialized: jt,
|
|
1344
1346
|
onAnnLayersInitialized: kt,
|
|
1345
|
-
onCloseAnnotationLayerWindow:
|
|
1346
|
-
onAddAnnotation:
|
|
1347
|
-
onUpdateAnnotation:
|
|
1347
|
+
onCloseAnnotationLayerWindow: Se,
|
|
1348
|
+
onAddAnnotation: Me,
|
|
1349
|
+
onUpdateAnnotation: Xe
|
|
1348
1350
|
}, null, 8, ["window_height", "window_width", "duration", "start", "c-width", "c-height", "ts-start", "ts-end", "cursor-loc", "global-zoom-mult", "active-viewer"])) : Ke("", !0)
|
|
1349
1351
|
]),
|
|
1350
1352
|
t.isPreview ? Ke("", !0) : (he(), Ye(ae(a), {
|
|
@@ -1368,7 +1370,7 @@ const qn = (t, e) => {
|
|
|
1368
1370
|
ref: V,
|
|
1369
1371
|
visible: ne.value,
|
|
1370
1372
|
"onUpdate:visible": d[1] || (d[1] = (S) => ne.value = S),
|
|
1371
|
-
onCloseWindow:
|
|
1373
|
+
onCloseWindow: It
|
|
1372
1374
|
}, null, 8, ["visible"]),
|
|
1373
1375
|
ye(ae(c), {
|
|
1374
1376
|
ref_key: "annotationModal",
|
|
@@ -1384,9 +1386,9 @@ const qn = (t, e) => {
|
|
|
1384
1386
|
"onUpdate:visible": d[3] || (d[3] = (S) => te.value = S),
|
|
1385
1387
|
onDelete: P
|
|
1386
1388
|
}, null, 8, ["visible", "delete-annotation"]),
|
|
1387
|
-
ye(ae(
|
|
1389
|
+
ye(ae(T), {
|
|
1388
1390
|
visible: ue.value,
|
|
1389
|
-
onCloseWindow:
|
|
1391
|
+
onCloseWindow: Se,
|
|
1390
1392
|
onCreateLayer: Ce
|
|
1391
1393
|
}, null, 8, ["visible"])
|
|
1392
1394
|
], 2);
|
|
@@ -1394,18 +1396,18 @@ const qn = (t, e) => {
|
|
|
1394
1396
|
}
|
|
1395
1397
|
}, Zn = /* @__PURE__ */ qn(Hn, [["__scopeId", "data-v-4fa75a6c"]]);
|
|
1396
1398
|
function ar(t = "default") {
|
|
1397
|
-
const e =
|
|
1399
|
+
const e = ke(t), {
|
|
1398
1400
|
viewerChannels: n,
|
|
1399
1401
|
viewerAnnotations: r,
|
|
1400
1402
|
viewerActiveTool: a,
|
|
1401
1403
|
viewerSelectedChannels: s,
|
|
1402
1404
|
activeAnnotation: c,
|
|
1403
1405
|
activeAnnotationLayer: A,
|
|
1404
|
-
viewerMontageScheme:
|
|
1406
|
+
viewerMontageScheme: T,
|
|
1405
1407
|
viewerErrors: h,
|
|
1406
1408
|
config: l,
|
|
1407
1409
|
activeViewer: g
|
|
1408
|
-
} =
|
|
1410
|
+
} = We(e), w = oe(n), b = H(() => s.value), U = oe(r), x = oe(a), O = oe(T), k = oe(h), L = oe(l), q = oe(g);
|
|
1409
1411
|
return {
|
|
1410
1412
|
// Readonly state
|
|
1411
1413
|
channels: w,
|
|
@@ -1417,7 +1419,7 @@ function ar(t = "default") {
|
|
|
1417
1419
|
viewerConfig: L,
|
|
1418
1420
|
viewer: q,
|
|
1419
1421
|
// State queries
|
|
1420
|
-
getChannel: (y) => n.value.find((
|
|
1422
|
+
getChannel: (y) => n.value.find((I) => I.id === y),
|
|
1421
1423
|
getAnnotation: (y) => e.getAnnotationById(y),
|
|
1422
1424
|
getActiveLayer: () => e.getViewerActiveLayer(),
|
|
1423
1425
|
getVisibleChannels: () => n.value.filter((y) => y.visible),
|
|
@@ -1427,32 +1429,32 @@ function ar(t = "default") {
|
|
|
1427
1429
|
annotations: r.value,
|
|
1428
1430
|
activeLayer: e.getViewerActiveLayer(),
|
|
1429
1431
|
activeTool: a.value,
|
|
1430
|
-
montageScheme:
|
|
1432
|
+
montageScheme: T.value,
|
|
1431
1433
|
errors: h.value
|
|
1432
1434
|
}),
|
|
1433
1435
|
// Channel controls
|
|
1434
|
-
selectChannels: (y,
|
|
1436
|
+
selectChannels: (y, I = !1) => {
|
|
1435
1437
|
const X = n.value.map((Z) => ({
|
|
1436
1438
|
...Z,
|
|
1437
|
-
selected:
|
|
1439
|
+
selected: I ? Z.selected : !1
|
|
1438
1440
|
}));
|
|
1439
1441
|
X.forEach((Z) => {
|
|
1440
1442
|
y.includes(Z.id) && (Z.selected = !0);
|
|
1441
1443
|
}), e.setChannels(X);
|
|
1442
1444
|
},
|
|
1443
1445
|
clearChannelSelection: () => {
|
|
1444
|
-
const y = n.value.map((
|
|
1445
|
-
...
|
|
1446
|
+
const y = n.value.map((I) => ({
|
|
1447
|
+
...I,
|
|
1446
1448
|
selected: !1
|
|
1447
1449
|
}));
|
|
1448
1450
|
e.setChannels(y);
|
|
1449
1451
|
},
|
|
1450
1452
|
toggleChannelVisibility: (y) => {
|
|
1451
|
-
const
|
|
1452
|
-
|
|
1453
|
+
const I = n.value.find((X) => X.id === y);
|
|
1454
|
+
I && (e.updateChannelVisibility(y, !I.visible), e.triggerRerender("channel-visibility"));
|
|
1453
1455
|
},
|
|
1454
|
-
setChannelVisibility: (y,
|
|
1455
|
-
e.updateChannelVisibility(y,
|
|
1456
|
+
setChannelVisibility: (y, I) => {
|
|
1457
|
+
e.updateChannelVisibility(y, I), e.triggerRerender("channel-visibility");
|
|
1456
1458
|
},
|
|
1457
1459
|
showAllChannels: () => {
|
|
1458
1460
|
n.value.forEach((y) => {
|
|
@@ -1466,15 +1468,15 @@ function ar(t = "default") {
|
|
|
1466
1468
|
},
|
|
1467
1469
|
// Annotation controls
|
|
1468
1470
|
selectAnnotation: (y) => {
|
|
1469
|
-
const
|
|
1470
|
-
|
|
1471
|
+
const I = e.getAnnotationById(y);
|
|
1472
|
+
I && e.setActiveAnnotation(I);
|
|
1471
1473
|
},
|
|
1472
1474
|
setActiveLayer: (y) => {
|
|
1473
1475
|
e.setActiveAnnotationLayer(y);
|
|
1474
1476
|
},
|
|
1475
1477
|
toggleLayerVisibility: (y) => {
|
|
1476
|
-
const
|
|
1477
|
-
|
|
1478
|
+
const I = r.value.find((X) => X.id === y);
|
|
1479
|
+
I && (I.visible = !I.visible, e.updateLayer(I), e.triggerRerender("layer-visibility"));
|
|
1478
1480
|
},
|
|
1479
1481
|
// Tool controls
|
|
1480
1482
|
setActiveTool: (y) => {
|
|
@@ -1506,16 +1508,16 @@ export {
|
|
|
1506
1508
|
ie as E,
|
|
1507
1509
|
Zn as T,
|
|
1508
1510
|
E as _,
|
|
1509
|
-
|
|
1511
|
+
qe as a,
|
|
1510
1512
|
D as b,
|
|
1511
1513
|
R as c,
|
|
1512
1514
|
on as d,
|
|
1513
1515
|
rn as e,
|
|
1514
1516
|
fn as f,
|
|
1515
1517
|
qn as g,
|
|
1516
|
-
|
|
1518
|
+
ke as h,
|
|
1517
1519
|
rr as i,
|
|
1518
|
-
|
|
1520
|
+
Fe as j,
|
|
1519
1521
|
it as k,
|
|
1520
1522
|
an as l,
|
|
1521
1523
|
nr as m,
|
|
@@ -1524,9 +1526,9 @@ export {
|
|
|
1524
1526
|
me as p,
|
|
1525
1527
|
z as q,
|
|
1526
1528
|
we as r,
|
|
1527
|
-
|
|
1529
|
+
Ie as s,
|
|
1528
1530
|
Dn as t,
|
|
1529
|
-
|
|
1531
|
+
_e as u,
|
|
1530
1532
|
er as v,
|
|
1531
1533
|
ar as w,
|
|
1532
1534
|
tr as x,
|