@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/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { f as distEs6 } from "./index-901cd86d.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-901cd86d.js";
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,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-901cd86d.js";
1
+ import { B as BaseDecoder } from "./index-57759fcf.js";
2
2
  import "react";
3
3
  const dctZigZag = new Int32Array([
4
4
  0,
@@ -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-901cd86d.js";
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,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-901cd86d.js";
1
+ import { B as BaseDecoder } from "./index-57759fcf.js";
2
2
  import "react";
3
3
  const MIN_BITS = 9;
4
4
  const CLEAR_CODE = 256;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-901cd86d.js";
1
+ import { B as BaseDecoder } from "./index-57759fcf.js";
2
2
  import "react";
3
3
  class PackbitsDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-901cd86d.js";
1
+ import { B as BaseDecoder } from "./index-57759fcf.js";
2
2
  import "react";
3
3
  class RawDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-901cd86d.js";
1
+ import { B as BaseDecoder } from "./index-57759fcf.js";
2
2
  import "react";
3
3
  class WebImageDecoder extends BaseDecoder {
4
4
  constructor() {
@@ -1 +1 @@
1
- {"version":3,"file":"BitmaskLayerBeta.d.ts","sourceRoot":"","sources":["../src/BitmaskLayerBeta.js"],"names":[],"mappings":";;;;;;;;;;;AAiEA;;;GAGG;AACH;;IAEE;;;;;;;MAYC;IAED;;;;MAIE;IACF,4CA0BC;IAED;;;;aA6CC;IAED,sBAuHC;IAED;;OAEG;IACH,uDAqBC;IAED,8HAuEC;CACF"}
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;;;;;AAK/B,oFAAqF;AAErF;;EAOE"}
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",
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.3"
55
+ "@vitessce/utils": "3.3.5"
56
56
  },
57
57
  "devDependencies": {
58
58
  "glsl-colormap": "^1.0.1"
@@ -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, {
@@ -17,6 +17,7 @@ export const AXIS_PADDING = 10;
17
17
  export const THEME_TO_TEXT_COLOR = {
18
18
  dark: [224, 224, 224],
19
19
  light: [64, 64, 64],
20
+ light2: [64, 64, 64],
20
21
  };
21
22
  export const AXIS_FONT_FAMILY = "-apple-system, 'Helvetica Neue', Arial, sans-serif";
22
23