precision-dashwidgets 0.5.0 → 0.5.1
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/basedecoder-PoXbLGBV-BL0bCGZI.mjs +88 -0
- package/dist/core-l0sNRNKZ.mjs +1 -0
- package/dist/deflate-BQVLA3Ul.mjs +10 -0
- package/dist/deflate-DbhbvOaP-D8NSBt31.mjs +10 -0
- package/dist/{duckdb-browser-CI2dpY-v-CoCsU0kJ.mjs → duckdb-browser-CI2dpY-v-D1qQUOov.mjs} +14 -19
- package/dist/index-BHHg5z03.mjs +47215 -0
- package/dist/index-CRAkqt4--8ZLRoGIu.mjs +4 -0
- package/dist/index-GF8k2nCC-DnpFPSAr.mjs +4 -0
- package/dist/index-Hx8PFhs9.mjs +27802 -0
- package/dist/index-Oh_goZGT-H9AAGZr8.mjs +9 -0
- package/dist/index-UOUUzHJY-DJVMXBUa.mjs +61 -0
- package/dist/index-dhOjlnSX-Biz-kopS.mjs +278 -0
- package/dist/index-u1qleOVs-ZJVnnKAV.mjs +8 -0
- package/dist/jpeg-CqPRbuRp-D8jmb2jk.mjs +514 -0
- package/dist/jpeg-l5M1J8Gh.mjs +514 -0
- package/dist/lerc-BipMr5R9.mjs +1034 -0
- package/dist/lerc-XufrP0FH-SNCeY3ab.mjs +1029 -0
- package/dist/lzw-DQ6ibF74-B90aSslP.mjs +84 -0
- package/dist/lzw-u9cBMr9g.mjs +84 -0
- package/dist/packbits-BuzK6gM3-6Um4hupZ.mjs +24 -0
- package/dist/packbits-dQba4PyI.mjs +24 -0
- package/dist/pako.esm-Bx5X36Wo-CzWah3nf.mjs +1053 -0
- package/dist/pako.esm-D_m2s4NW.mjs +1053 -0
- package/dist/precision-dashwidgets.es.js +7 -23222
- package/dist/precision-dashwidgets.umd.js +4801 -63
- package/dist/raw-CaSL8pVO-AR0tnXz4.mjs +9 -0
- package/dist/raw-KFPBw5cQ.mjs +9 -0
- package/dist/style.css +1 -1
- package/dist/webimage--SJddlky-F_hESl4q.mjs +19 -0
- package/dist/webimage-CBOAIeUr.mjs +19 -0
- package/package.json +6 -5
- package/dist/useGetToken-DaxIvkvl-BZdrKpSJ.mjs +0 -18
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
function h(i, e) {
|
|
2
|
+
let t = i.length - e, c = 0;
|
|
3
|
+
do {
|
|
4
|
+
for (let l = e; l > 0; l--)
|
|
5
|
+
i[c + e] += i[c], c++;
|
|
6
|
+
t -= e;
|
|
7
|
+
} while (t > 0);
|
|
8
|
+
}
|
|
9
|
+
function f(i, e, t) {
|
|
10
|
+
let c = 0, l = i.length;
|
|
11
|
+
const n = l / t;
|
|
12
|
+
for (; l > e; ) {
|
|
13
|
+
for (let r = e; r > 0; --r)
|
|
14
|
+
i[c + e] += i[c], ++c;
|
|
15
|
+
l -= e;
|
|
16
|
+
}
|
|
17
|
+
const o = i.slice();
|
|
18
|
+
for (let r = 0; r < n; ++r)
|
|
19
|
+
for (let s = 0; s < t; ++s)
|
|
20
|
+
i[t * r + s] = o[(t - s - 1) * n + r];
|
|
21
|
+
}
|
|
22
|
+
function d(i, e, t, c, l, n) {
|
|
23
|
+
if (e === 1)
|
|
24
|
+
return i;
|
|
25
|
+
for (let s = 0; s < l.length; ++s) {
|
|
26
|
+
if (l[s] % 8 !== 0)
|
|
27
|
+
throw new Error("When decoding with predictor, only multiple of 8 bits are supported.");
|
|
28
|
+
if (l[s] !== l[0])
|
|
29
|
+
throw new Error("When decoding with predictor, all samples must have the same size.");
|
|
30
|
+
}
|
|
31
|
+
const o = l[0] / 8, r = n === 2 ? 1 : l.length;
|
|
32
|
+
for (let s = 0; s < c && !(s * r * t * o >= i.byteLength); ++s) {
|
|
33
|
+
let a;
|
|
34
|
+
if (e === 2) {
|
|
35
|
+
switch (l[0]) {
|
|
36
|
+
case 8:
|
|
37
|
+
a = new Uint8Array(
|
|
38
|
+
i,
|
|
39
|
+
s * r * t * o,
|
|
40
|
+
r * t * o
|
|
41
|
+
);
|
|
42
|
+
break;
|
|
43
|
+
case 16:
|
|
44
|
+
a = new Uint16Array(
|
|
45
|
+
i,
|
|
46
|
+
s * r * t * o,
|
|
47
|
+
r * t * o / 2
|
|
48
|
+
);
|
|
49
|
+
break;
|
|
50
|
+
case 32:
|
|
51
|
+
a = new Uint32Array(
|
|
52
|
+
i,
|
|
53
|
+
s * r * t * o,
|
|
54
|
+
r * t * o / 4
|
|
55
|
+
);
|
|
56
|
+
break;
|
|
57
|
+
default:
|
|
58
|
+
throw new Error(`Predictor 2 not allowed with ${l[0]} bits per sample.`);
|
|
59
|
+
}
|
|
60
|
+
h(a, r);
|
|
61
|
+
} else e === 3 && (a = new Uint8Array(
|
|
62
|
+
i,
|
|
63
|
+
s * r * t * o,
|
|
64
|
+
r * t * o
|
|
65
|
+
), f(a, r, o));
|
|
66
|
+
}
|
|
67
|
+
return i;
|
|
68
|
+
}
|
|
69
|
+
class w {
|
|
70
|
+
async decode(e, t) {
|
|
71
|
+
const c = await this.decodeBlock(t), l = e.Predictor || 1;
|
|
72
|
+
if (l !== 1) {
|
|
73
|
+
const n = !e.StripOffsets, o = n ? e.TileWidth : e.ImageWidth, r = n ? e.TileLength : e.RowsPerStrip || e.ImageLength;
|
|
74
|
+
return d(
|
|
75
|
+
c,
|
|
76
|
+
l,
|
|
77
|
+
o,
|
|
78
|
+
r,
|
|
79
|
+
e.BitsPerSample,
|
|
80
|
+
e.PlanarConfiguration
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
return c;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
export {
|
|
87
|
+
w as g
|
|
88
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -151,12 +151,12 @@ function* Bo(s, t) {
|
|
|
151
151
|
const e = function* (r) {
|
|
152
152
|
yield r;
|
|
153
153
|
}, n = typeof t == "string" || ArrayBuffer.isView(t) || t instanceof ArrayBuffer || t instanceof bn ? e(t) : Ve(t) ? t : e(t);
|
|
154
|
-
return yield* en(
|
|
154
|
+
return yield* en(function* (r) {
|
|
155
155
|
let i = null;
|
|
156
156
|
do
|
|
157
157
|
i = r.next(yield x(s, i));
|
|
158
158
|
while (!i.done);
|
|
159
|
-
}
|
|
159
|
+
}(n[Symbol.iterator]())), new s();
|
|
160
160
|
}
|
|
161
161
|
const No = (s) => Bo(Uint8Array, s);
|
|
162
162
|
function Ir(s, t) {
|
|
@@ -169,24 +169,24 @@ function Ir(s, t) {
|
|
|
169
169
|
});
|
|
170
170
|
}, n = function(i) {
|
|
171
171
|
return Tt(this, arguments, function* () {
|
|
172
|
-
yield E(yield* He(Qt(en(
|
|
172
|
+
yield E(yield* He(Qt(en(function* (o) {
|
|
173
173
|
let a = null;
|
|
174
174
|
do
|
|
175
175
|
a = o.next(yield a == null ? void 0 : a.value);
|
|
176
176
|
while (!a.done);
|
|
177
|
-
}
|
|
177
|
+
}(i[Symbol.iterator]())))));
|
|
178
178
|
});
|
|
179
179
|
}, r = typeof t == "string" || ArrayBuffer.isView(t) || t instanceof ArrayBuffer || t instanceof bn ? e(t) : Ve(t) ? n(t) : we(t) ? t : e(t);
|
|
180
180
|
return yield E(
|
|
181
181
|
// otherwise if AsyncIterable, use it
|
|
182
|
-
yield* He(Qt(en(
|
|
182
|
+
yield* He(Qt(en(function(i) {
|
|
183
183
|
return Tt(this, arguments, function* () {
|
|
184
184
|
let o = null;
|
|
185
185
|
do
|
|
186
186
|
o = yield E(i.next(yield yield E(x(s, o))));
|
|
187
187
|
while (!o.done);
|
|
188
188
|
});
|
|
189
|
-
}
|
|
189
|
+
}(r[Symbol.asyncIterator]()))))
|
|
190
190
|
), yield E(new s());
|
|
191
191
|
});
|
|
192
192
|
}
|
|
@@ -2712,8 +2712,6 @@ function Ft(s) {
|
|
|
2712
2712
|
return s.bitWidth / 32;
|
|
2713
2713
|
case l.Interval:
|
|
2714
2714
|
return 1 + t.unit;
|
|
2715
|
-
// case Type.Int: return 1 + +((t as Int_).bitWidth > 32);
|
|
2716
|
-
// case Type.Time: return 1 + +((t as Time_).bitWidth > 32);
|
|
2717
2715
|
case l.FixedSizeList:
|
|
2718
2716
|
return t.listSize;
|
|
2719
2717
|
case l.FixedSizeBinary:
|
|
@@ -4078,13 +4076,10 @@ function S(s, t, e) {
|
|
|
4078
4076
|
return -1;
|
|
4079
4077
|
if (t === null)
|
|
4080
4078
|
switch (s.typeId) {
|
|
4081
|
-
// Unions don't have a nullBitmap of its own, so compare the `searchElement` to `get()`.
|
|
4082
4079
|
case l.Union:
|
|
4083
4080
|
break;
|
|
4084
|
-
// Dictionaries do have a nullBitmap, but their dictionary could also have null elements.
|
|
4085
4081
|
case l.Dictionary:
|
|
4086
4082
|
break;
|
|
4087
|
-
// All other types can iterate the null bitmap
|
|
4088
4083
|
default:
|
|
4089
4084
|
return Ha(s, e);
|
|
4090
4085
|
}
|
|
@@ -6437,7 +6432,7 @@ class $t {
|
|
|
6437
6432
|
}
|
|
6438
6433
|
}
|
|
6439
6434
|
function vl(s, t) {
|
|
6440
|
-
return (
|
|
6435
|
+
return () => {
|
|
6441
6436
|
switch (t) {
|
|
6442
6437
|
case N.Schema:
|
|
6443
6438
|
return L.fromJSON(s);
|
|
@@ -6447,10 +6442,10 @@ function vl(s, t) {
|
|
|
6447
6442
|
return Rt.fromJSON(s);
|
|
6448
6443
|
}
|
|
6449
6444
|
throw new Error(`Unrecognized Message type: { name: ${N[t]}, type: ${t} }`);
|
|
6450
|
-
}
|
|
6445
|
+
};
|
|
6451
6446
|
}
|
|
6452
6447
|
function Il(s, t) {
|
|
6453
|
-
return (
|
|
6448
|
+
return () => {
|
|
6454
6449
|
switch (t) {
|
|
6455
6450
|
case N.Schema:
|
|
6456
6451
|
return L.decode(s.header(new _t()), /* @__PURE__ */ new Map(), s.version());
|
|
@@ -6460,7 +6455,7 @@ function Il(s, t) {
|
|
|
6460
6455
|
return Rt.decode(s.header(new se()), s.version());
|
|
6461
6456
|
}
|
|
6462
6457
|
throw new Error(`Unrecognized Message type: { name: ${N[t]}, type: ${t} }`);
|
|
6463
|
-
}
|
|
6458
|
+
};
|
|
6464
6459
|
}
|
|
6465
6460
|
V.encode = Fl;
|
|
6466
6461
|
V.decode = Bl;
|
|
@@ -7327,16 +7322,16 @@ function Wl(s) {
|
|
|
7327
7322
|
}
|
|
7328
7323
|
function Gl(s) {
|
|
7329
7324
|
const t = s.peek(We + 7 & -8);
|
|
7330
|
-
return t && t.byteLength >= 4 ? Un(t) ? new fo(new bo(s.read())) : new Fs(new Us(s)) : new Fs(new Us(
|
|
7331
|
-
}
|
|
7325
|
+
return t && t.byteLength >= 4 ? Un(t) ? new fo(new bo(s.read())) : new Fs(new Us(s)) : new Fs(new Us(function* () {
|
|
7326
|
+
}()));
|
|
7332
7327
|
}
|
|
7333
7328
|
function $l(s) {
|
|
7334
7329
|
return T(this, void 0, void 0, function* () {
|
|
7335
7330
|
const t = yield s.peek(We + 7 & -8);
|
|
7336
|
-
return t && t.byteLength >= 4 ? Un(t) ? new fo(new bo(yield s.read())) : new Ls(new Ms(s)) : new Ls(new Ms(
|
|
7331
|
+
return t && t.byteLength >= 4 ? Un(t) ? new fo(new bo(yield s.read())) : new Ls(new Ms(s)) : new Ls(new Ms(function() {
|
|
7337
7332
|
return Tt(this, arguments, function* () {
|
|
7338
7333
|
});
|
|
7339
|
-
}
|
|
7334
|
+
}()));
|
|
7340
7335
|
});
|
|
7341
7336
|
}
|
|
7342
7337
|
function Kl(s) {
|