@vitessce/gl 3.3.3 → 3.3.5
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-8259e5d4.js → deflate-ada64e60.js} +1 -1
- package/dist/{index-901cd86d.js → index-57759fcf.js} +5703 -21001
- package/dist/index.js +2 -2
- package/dist/{jpeg-2919bc92.js → jpeg-f4ff4695.js} +1 -1
- package/dist/{lerc-95858d36.js → lerc-4fe5a320.js} +1 -1
- package/dist/{lzw-d020357b.js → lzw-d98cdcf4.js} +1 -1
- package/dist/{packbits-2ad8f627.js → packbits-afd2006e.js} +1 -1
- package/dist/{raw-93e6f264.js → raw-6963b026.js} +1 -1
- package/dist/{webimage-33d58a8b.js → webimage-47480b51.js} +1 -1
- package/dist-tsc/BitmaskLayerBeta.d.ts.map +1 -1
- package/dist-tsc/BitmaskLayerBeta.js +1 -2
- package/dist-tsc/heatmap-constants.d.ts +1 -0
- package/dist-tsc/heatmap-constants.d.ts.map +1 -1
- package/dist-tsc/heatmap-constants.js +1 -0
- package/package.json +2 -2
- package/src/BitmaskLayerBeta.js +1 -2
- package/src/heatmap-constants.js +1 -0
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, v } from "./index-
|
|
1
|
+
import { f as distEs6 } from "./index-57759fcf.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, v } from "./index-57759fcf.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-57759fcf.js";
|
|
3
3
|
import "react";
|
|
4
4
|
var LercDecode = { exports: {} };
|
|
5
5
|
(function(module) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BitmaskLayerBeta.d.ts","sourceRoot":"","sources":["../src/BitmaskLayerBeta.js"],"names":[],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"BitmaskLayerBeta.d.ts","sourceRoot":"","sources":["../src/BitmaskLayerBeta.js"],"names":[],"mappings":";;;;;;;;;;;AAgEA;;;GAGG;AACH;;IAEE;;;;;;;MAYC;IAED;;;;MAIE;IACF,4CA0BC;IAED;;;;aA6CC;IAED,sBAuHC;IAED;;OAEG;IACH,uDAqBC;IAED,8HAuEC;CACF"}
|
|
@@ -3,7 +3,6 @@ import GL from '@luma.gl/constants'; // eslint-disable-line import/no-extraneous
|
|
|
3
3
|
import { project32, picking } from '@deck.gl/core'; // eslint-disable-line import/no-extraneous-dependencies
|
|
4
4
|
import { Texture2D, isWebGL2 } from '@luma.gl/core';
|
|
5
5
|
import { XRLayer } from '@hms-dbmi/viv';
|
|
6
|
-
import { fromEntries } from '@vitessce/utils';
|
|
7
6
|
import { range } from 'lodash-es';
|
|
8
7
|
import { fs, vs } from './bitmask-layer-beta-shaders.js';
|
|
9
8
|
import { GLSL_COLORMAPS, GLSL_COLORMAP_DEFAULT, COLORMAP_SHADER_PLACEHOLDER, } from './constants.js';
|
|
@@ -136,7 +135,7 @@ export default class BitmaskLayer extends XRLayer {
|
|
|
136
135
|
// Render the image
|
|
137
136
|
if (textures && model) {
|
|
138
137
|
const scaleFactor = 1 / (2 ** (maxZoom - zoom));
|
|
139
|
-
const colors = fromEntries(range(MAX_CHANNELS).map(i => ([`color${i}`, getColor(channelColors[i])])));
|
|
138
|
+
const colors = Object.fromEntries(range(MAX_CHANNELS).map(i => ([`color${i}`, getColor(channelColors[i])])));
|
|
140
139
|
model
|
|
141
140
|
.setUniforms(Object.assign({}, uniforms, {
|
|
142
141
|
...colors,
|
|
@@ -12,6 +12,7 @@ export const AXIS_PADDING: 10;
|
|
|
12
12
|
export namespace THEME_TO_TEXT_COLOR {
|
|
13
13
|
const dark: number[];
|
|
14
14
|
const light: number[];
|
|
15
|
+
const light2: number[];
|
|
15
16
|
}
|
|
16
17
|
export const AXIS_FONT_FAMILY: "-apple-system, 'Helvetica Neue', Arial, sans-serif";
|
|
17
18
|
export const PIXELATED_TEXTURE_PARAMETERS: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heatmap-constants.d.ts","sourceRoot":"","sources":["../src/heatmap-constants.js"],"names":[],"mappings":"AAGA,6BAA8B;AAE9B,qCAAsC;AACtC,4BAA6B;AAC7B,6BAA8B;AAE9B,gCAAiC;AACjC,sCAAuC;AACvC,sCAAuC;AACvC,+BAAgC;AAChC,gCAAiC;AACjC,4BAA6B;AAC7B,8BAA+B
|
|
1
|
+
{"version":3,"file":"heatmap-constants.d.ts","sourceRoot":"","sources":["../src/heatmap-constants.js"],"names":[],"mappings":"AAGA,6BAA8B;AAE9B,qCAAsC;AACtC,4BAA6B;AAC7B,6BAA8B;AAE9B,gCAAiC;AACjC,sCAAuC;AACvC,sCAAuC;AACvC,+BAAgC;AAChC,gCAAiC;AACjC,4BAA6B;AAC7B,8BAA+B;;;;;;AAM/B,oFAAqF;AAErF;;EAOE"}
|
|
@@ -15,6 +15,7 @@ export const AXIS_PADDING = 10;
|
|
|
15
15
|
export const THEME_TO_TEXT_COLOR = {
|
|
16
16
|
dark: [224, 224, 224],
|
|
17
17
|
light: [64, 64, 64],
|
|
18
|
+
light2: [64, 64, 64],
|
|
18
19
|
};
|
|
19
20
|
export const AXIS_FONT_FAMILY = "-apple-system, 'Helvetica Neue', Arial, sans-serif";
|
|
20
21
|
export const PIXELATED_TEXTURE_PARAMETERS = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/gl",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.5",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"math.gl": "^3.5.6",
|
|
53
53
|
"mathjs": "^9.2.0",
|
|
54
54
|
"nebula.gl": "0.23.8",
|
|
55
|
-
"@vitessce/utils": "3.3.
|
|
55
|
+
"@vitessce/utils": "3.3.5"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"glsl-colormap": "^1.0.1"
|
package/src/BitmaskLayerBeta.js
CHANGED
|
@@ -3,7 +3,6 @@ import GL from '@luma.gl/constants'; // eslint-disable-line import/no-extraneous
|
|
|
3
3
|
import { project32, picking } from '@deck.gl/core'; // eslint-disable-line import/no-extraneous-dependencies
|
|
4
4
|
import { Texture2D, isWebGL2 } from '@luma.gl/core';
|
|
5
5
|
import { XRLayer } from '@hms-dbmi/viv';
|
|
6
|
-
import { fromEntries } from '@vitessce/utils';
|
|
7
6
|
import { range } from 'lodash-es';
|
|
8
7
|
import { fs, vs } from './bitmask-layer-beta-shaders.js';
|
|
9
8
|
import {
|
|
@@ -200,7 +199,7 @@ export default class BitmaskLayer extends XRLayer {
|
|
|
200
199
|
// Render the image
|
|
201
200
|
if (textures && model) {
|
|
202
201
|
const scaleFactor = 1 / (2 ** (maxZoom - zoom));
|
|
203
|
-
const colors = fromEntries(range(MAX_CHANNELS).map(i => ([`color${i}`, getColor(channelColors[i])])));
|
|
202
|
+
const colors = Object.fromEntries(range(MAX_CHANNELS).map(i => ([`color${i}`, getColor(channelColors[i])])));
|
|
204
203
|
model
|
|
205
204
|
.setUniforms(
|
|
206
205
|
Object.assign({}, uniforms, {
|
package/src/heatmap-constants.js
CHANGED