@vitessce/gl 3.5.5 → 3.5.7
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-5f6bf017.js → deflate-85297f1e.js} +1 -1
- package/dist/{index-c65f0da2.js → index-0b0f2f7e.js} +391 -139
- package/dist/index.js +2 -2
- package/dist/{jpeg-7428d0cc.js → jpeg-3517139d.js} +1 -1
- package/dist/{lerc-70c5067b.js → lerc-c7fc99c0.js} +1 -1
- package/dist/{lzw-4c807d51.js → lzw-58768e77.js} +1 -1
- package/dist/{packbits-865e9a4b.js → packbits-aee0956d.js} +1 -1
- package/dist/{raw-3d70ff2e.js → raw-862de075.js} +1 -1
- package/dist/{webimage-baf0ad55.js → webimage-2cb43003.js} +1 -1
- package/dist-tsc/bitmask-utils.d.ts.map +1 -1
- package/dist-tsc/bitmask-utils.js +3 -2
- package/package.json +3 -2
- package/src/bitmask-utils.js +3 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as distEs6 } from "./index-
|
|
2
|
-
import { o, n, A, r, q, p, i, j, C, l, D, G, e, H, c, M, k, m, d, P, S, h, T, t, b, s, u, v } from "./index-
|
|
1
|
+
import { f as distEs6 } from "./index-0b0f2f7e.js";
|
|
2
|
+
import { o, n, A, r, q, p, i, j, C, l, D, G, e, H, c, M, k, m, d, P, S, h, T, t, b, s, u, v } from "./index-0b0f2f7e.js";
|
|
3
3
|
import "react";
|
|
4
4
|
const SELECTION_TYPE = distEs6.SELECTION_TYPE;
|
|
5
5
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-0b0f2f7e.js";
|
|
3
3
|
import "react";
|
|
4
4
|
var LercDecode = { exports: {} };
|
|
5
5
|
(function(module) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bitmask-utils.d.ts","sourceRoot":"","sources":["../src/bitmask-utils.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bitmask-utils.d.ts","sourceRoot":"","sources":["../src/bitmask-utils.js"],"names":[],"mappings":"AAeA;;;;;;;;;GASG;AACH,2DARW,KAAK,EAAE,4CACP,MAAM,EAAE,yBACR,OAAO,EAAE,WAET,MAAM,mCAwHhB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable radix */
|
|
2
2
|
/* eslint-disable-next-line camelcase */
|
|
3
3
|
import { extent, max as d3_max } from 'd3-array';
|
|
4
|
+
import { log } from '@vitessce/globals';
|
|
4
5
|
function normalize(arr) {
|
|
5
6
|
const [min, max] = extent(arr);
|
|
6
7
|
const ratio = 255 / (max - min);
|
|
@@ -42,10 +43,10 @@ export function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex,
|
|
|
42
43
|
const valueTexHeight = Math.max(2, Math.ceil(totalValuesLength / texSize));
|
|
43
44
|
const colorTexHeight = Math.max(2, Math.ceil(totalColorsLength / texSize));
|
|
44
45
|
if (valueTexHeight > texSize) {
|
|
45
|
-
|
|
46
|
+
log.error('Error: length of concatenated quantitative feature values larger than maximum texture size');
|
|
46
47
|
}
|
|
47
48
|
if (colorTexHeight > texSize) {
|
|
48
|
-
|
|
49
|
+
log.error('Error: length of concatenated quantitative feature values larger than maximum texture size');
|
|
49
50
|
}
|
|
50
51
|
// Array for texture containing color indices.
|
|
51
52
|
const totalData = new Uint8Array(texSize * valueTexHeight);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/gl",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.7",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -52,7 +52,8 @@
|
|
|
52
52
|
"math.gl": "^3.5.6",
|
|
53
53
|
"mathjs": "^9.2.0",
|
|
54
54
|
"nebula.gl": "0.23.8",
|
|
55
|
-
"@vitessce/utils": "3.5.
|
|
55
|
+
"@vitessce/utils": "3.5.7",
|
|
56
|
+
"@vitessce/globals": "3.5.7"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|
|
58
59
|
"glsl-colormap": "^1.0.1"
|
package/src/bitmask-utils.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/* eslint-disable-next-line camelcase */
|
|
3
3
|
import { extent, max as d3_max } from 'd3-array';
|
|
4
4
|
|
|
5
|
+
import { log } from '@vitessce/globals';
|
|
5
6
|
|
|
6
7
|
function normalize(arr) {
|
|
7
8
|
const [min, max] = extent(arr);
|
|
@@ -57,10 +58,10 @@ export function multiSetsToTextureData(
|
|
|
57
58
|
const colorTexHeight = Math.max(2, Math.ceil(totalColorsLength / texSize));
|
|
58
59
|
|
|
59
60
|
if (valueTexHeight > texSize) {
|
|
60
|
-
|
|
61
|
+
log.error('Error: length of concatenated quantitative feature values larger than maximum texture size');
|
|
61
62
|
}
|
|
62
63
|
if (colorTexHeight > texSize) {
|
|
63
|
-
|
|
64
|
+
log.error('Error: length of concatenated quantitative feature values larger than maximum texture size');
|
|
64
65
|
}
|
|
65
66
|
// Array for texture containing color indices.
|
|
66
67
|
const totalData = new Uint8Array(texSize * valueTexHeight);
|