@vitessce/spatial-utils 3.8.10 → 3.8.13
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/{deflate-BDyupfRB.js → deflate-17wEy8YO.js} +1 -1
- package/dist/{index-Oh20Qhz-.js → index-DNsBrv1H.js} +38 -38
- package/dist/index.js +1 -1
- package/dist/{jpeg-DoxQkEU3.js → jpeg-xJ6Umj-K.js} +1 -1
- package/dist/{lerc-D-H7rmPC.js → lerc-ZPzZ-TED.js} +1 -1
- package/dist/{lzw-kUqfJwFX.js → lzw-DDMDpaDH.js} +1 -1
- package/dist/{packbits-TqVwGMKp.js → packbits-ChA5ROs-.js} +1 -1
- package/dist/{raw-DTWRas0y.js → raw-BSNdYeN5.js} +1 -1
- package/dist/{webimage-BvmXTpRw.js → webimage-DJbgtHMf.js} +1 -1
- package/package.json +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-SxljTded.js";
|
|
2
|
-
import { B as BaseDecoder } from "./index-
|
|
2
|
+
import { B as BaseDecoder } from "./index-DNsBrv1H.js";
|
|
3
3
|
class DeflateDecoder extends BaseDecoder {
|
|
4
4
|
decodeBlock(buffer) {
|
|
5
5
|
return inflate_1(new Uint8Array(buffer)).buffer;
|
|
@@ -19998,6 +19998,34 @@ const VIEWER_PALETTE = [
|
|
|
19998
19998
|
[255, 128, 0],
|
|
19999
19999
|
[255, 0, 0]
|
|
20000
20000
|
];
|
|
20001
|
+
function extent$1(values, valueof) {
|
|
20002
|
+
let min2;
|
|
20003
|
+
let max2;
|
|
20004
|
+
{
|
|
20005
|
+
for (const value of values) {
|
|
20006
|
+
if (value != null) {
|
|
20007
|
+
if (min2 === void 0) {
|
|
20008
|
+
if (value >= value) min2 = max2 = value;
|
|
20009
|
+
} else {
|
|
20010
|
+
if (min2 > value) min2 = value;
|
|
20011
|
+
if (max2 < value) max2 = value;
|
|
20012
|
+
}
|
|
20013
|
+
}
|
|
20014
|
+
}
|
|
20015
|
+
}
|
|
20016
|
+
return [min2, max2];
|
|
20017
|
+
}
|
|
20018
|
+
function max(values, valueof) {
|
|
20019
|
+
let max2;
|
|
20020
|
+
{
|
|
20021
|
+
for (const value of values) {
|
|
20022
|
+
if (value != null && (max2 < value || max2 === void 0 && value >= value)) {
|
|
20023
|
+
max2 = value;
|
|
20024
|
+
}
|
|
20025
|
+
}
|
|
20026
|
+
}
|
|
20027
|
+
return max2;
|
|
20028
|
+
}
|
|
20001
20029
|
function assert$c(condition, message) {
|
|
20002
20030
|
if (!condition) {
|
|
20003
20031
|
throw new Error(message || "loader assertion failed.");
|
|
@@ -95240,7 +95268,7 @@ function clipExtent(x02, y02, x12, y12) {
|
|
|
95240
95268
|
return clipStream;
|
|
95241
95269
|
};
|
|
95242
95270
|
}
|
|
95243
|
-
function extent
|
|
95271
|
+
function extent() {
|
|
95244
95272
|
var x02 = 0, y02 = 0, x12 = 960, y12 = 500, cache2, cacheStream, clip2;
|
|
95245
95273
|
return clip2 = {
|
|
95246
95274
|
stream: function(stream) {
|
|
@@ -96574,7 +96602,7 @@ const d3Geo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
96574
96602
|
geoBounds: bounds,
|
|
96575
96603
|
geoCentroid: centroid,
|
|
96576
96604
|
geoCircle: circle$1,
|
|
96577
|
-
geoClipExtent: extent
|
|
96605
|
+
geoClipExtent: extent,
|
|
96578
96606
|
geoConicConformal: conicConformal,
|
|
96579
96607
|
geoConicConformalRaw: conicConformalRaw,
|
|
96580
96608
|
geoConicEqualArea: conicEqualArea,
|
|
@@ -120352,22 +120380,22 @@ function addDecoder(cases, importFn) {
|
|
|
120352
120380
|
}
|
|
120353
120381
|
cases.forEach((c) => registry$2.set(c, importFn));
|
|
120354
120382
|
}
|
|
120355
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
120356
|
-
addDecoder(5, () => import("./lzw-
|
|
120383
|
+
addDecoder([void 0, 1], () => import("./raw-BSNdYeN5.js").then((m) => m.default));
|
|
120384
|
+
addDecoder(5, () => import("./lzw-DDMDpaDH.js").then((m) => m.default));
|
|
120357
120385
|
addDecoder(6, () => {
|
|
120358
120386
|
throw new Error("old style JPEG compression is not supported.");
|
|
120359
120387
|
});
|
|
120360
|
-
addDecoder(7, () => import("./jpeg-
|
|
120361
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
120362
|
-
addDecoder(32773, () => import("./packbits-
|
|
120388
|
+
addDecoder(7, () => import("./jpeg-xJ6Umj-K.js").then((m) => m.default));
|
|
120389
|
+
addDecoder([8, 32946], () => import("./deflate-17wEy8YO.js").then((m) => m.default));
|
|
120390
|
+
addDecoder(32773, () => import("./packbits-ChA5ROs-.js").then((m) => m.default));
|
|
120363
120391
|
addDecoder(
|
|
120364
120392
|
34887,
|
|
120365
|
-
() => import("./lerc-
|
|
120393
|
+
() => import("./lerc-ZPzZ-TED.js").then(async (m) => {
|
|
120366
120394
|
await m.zstd.init();
|
|
120367
120395
|
return m;
|
|
120368
120396
|
}).then((m) => m.default)
|
|
120369
120397
|
);
|
|
120370
|
-
addDecoder(50001, () => import("./webimage-
|
|
120398
|
+
addDecoder(50001, () => import("./webimage-DJbgtHMf.js").then((m) => m.default));
|
|
120371
120399
|
function decodeRowAcc(row, stride) {
|
|
120372
120400
|
let length2 = row.length - stride;
|
|
120373
120401
|
let offset = 0;
|
|
@@ -134086,36 +134114,8 @@ void main() {
|
|
|
134086
134114
|
DECKGL_FILTER_COLOR(gl_FragColor, geometry);
|
|
134087
134115
|
}
|
|
134088
134116
|
`;
|
|
134089
|
-
function extent(values, valueof) {
|
|
134090
|
-
let min2;
|
|
134091
|
-
let max2;
|
|
134092
|
-
{
|
|
134093
|
-
for (const value of values) {
|
|
134094
|
-
if (value != null) {
|
|
134095
|
-
if (min2 === void 0) {
|
|
134096
|
-
if (value >= value) min2 = max2 = value;
|
|
134097
|
-
} else {
|
|
134098
|
-
if (min2 > value) min2 = value;
|
|
134099
|
-
if (max2 < value) max2 = value;
|
|
134100
|
-
}
|
|
134101
|
-
}
|
|
134102
|
-
}
|
|
134103
|
-
}
|
|
134104
|
-
return [min2, max2];
|
|
134105
|
-
}
|
|
134106
|
-
function max(values, valueof) {
|
|
134107
|
-
let max2;
|
|
134108
|
-
{
|
|
134109
|
-
for (const value of values) {
|
|
134110
|
-
if (value != null && (max2 < value || max2 === void 0 && value >= value)) {
|
|
134111
|
-
max2 = value;
|
|
134112
|
-
}
|
|
134113
|
-
}
|
|
134114
|
-
}
|
|
134115
|
-
return max2;
|
|
134116
|
-
}
|
|
134117
134117
|
function normalize(arr) {
|
|
134118
|
-
const [min2, max2] = extent(arr);
|
|
134118
|
+
const [min2, max2] = extent$1(arr);
|
|
134119
134119
|
const ratio = 255 / (max2 - min2);
|
|
134120
134120
|
const data = new Uint8Array(arr.map((i2) => Math.floor((i2 - min2) * ratio)));
|
|
134121
134121
|
return data;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D, e, a, b, c, d, H, G, Z, E, s, n, o, F, C, z, l, m, A, y, h, r, w, q, i, f, j, k, v, u, t, p, x } from "./index-
|
|
1
|
+
import { D, e, a, b, c, d, H, G, Z, E, s, n, o, F, C, z, l, m, A, y, h, r, w, q, i, f, j, k, v, u, t, p, x } from "./index-DNsBrv1H.js";
|
|
2
2
|
export {
|
|
3
3
|
D as DEFAULT_CELLS_LAYER,
|
|
4
4
|
e as DEFAULT_LAYER_TYPE_ORDERING,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-SxljTded.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-DNsBrv1H.js";
|
|
3
3
|
const LercParameters = {
|
|
4
4
|
AddCompression: 1
|
|
5
5
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/spatial-utils",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.13",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"math.gl": "^3.5.6",
|
|
22
22
|
"mathjs": "^9.2.0",
|
|
23
23
|
"internmap": "^2.0.3",
|
|
24
|
-
"@vitessce/gl": "3.8.
|
|
25
|
-
"@vitessce/utils": "3.8.
|
|
26
|
-
"@vitessce/zarr-utils": "3.8.
|
|
27
|
-
"@vitessce/constants-internal": "3.8.
|
|
28
|
-
"@vitessce/globals": "3.8.
|
|
29
|
-
"@vitessce/error": "3.8.
|
|
24
|
+
"@vitessce/gl": "3.8.13",
|
|
25
|
+
"@vitessce/utils": "3.8.13",
|
|
26
|
+
"@vitessce/zarr-utils": "3.8.13",
|
|
27
|
+
"@vitessce/constants-internal": "3.8.13",
|
|
28
|
+
"@vitessce/globals": "3.8.13",
|
|
29
|
+
"@vitessce/error": "3.8.13"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.mjs",
|