@vitessce/gl 3.3.4 → 3.3.6

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.
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { B as BaseDecoder } from "./index-e5ea8762.js";
2
+ import { B as BaseDecoder } from "./index-57759fcf.js";
3
3
  import "react";
4
4
  class DeflateDecoder extends BaseDecoder {
5
5
  decodeBlock(buffer) {
@@ -102092,7 +102092,8 @@ const AXIS_MARGIN = 3;
102092
102092
  const AXIS_PADDING = 10;
102093
102093
  const THEME_TO_TEXT_COLOR = {
102094
102094
  dark: [224, 224, 224],
102095
- light: [64, 64, 64]
102095
+ light: [64, 64, 64],
102096
+ light2: [64, 64, 64]
102096
102097
  };
102097
102098
  const AXIS_FONT_FAMILY = "-apple-system, 'Helvetica Neue', Arial, sans-serif";
102098
102099
  const PIXELATED_TEXTURE_PARAMETERS = {
@@ -103952,16 +103953,16 @@ async function getDecoder(fileDirectory) {
103952
103953
  const Decoder = await importFn();
103953
103954
  return new Decoder(fileDirectory);
103954
103955
  }
103955
- addDecoder([void 0, 1], () => import("./raw-838605c4.js").then((m) => m.default));
103956
- addDecoder(5, () => import("./lzw-fa664186.js").then((m) => m.default));
103956
+ addDecoder([void 0, 1], () => import("./raw-6963b026.js").then((m) => m.default));
103957
+ addDecoder(5, () => import("./lzw-d98cdcf4.js").then((m) => m.default));
103957
103958
  addDecoder(6, () => {
103958
103959
  throw new Error("old style JPEG compression is not supported.");
103959
103960
  });
103960
- addDecoder(7, () => import("./jpeg-249cead7.js").then((m) => m.default));
103961
- addDecoder([8, 32946], () => import("./deflate-ff9aeae7.js").then((m) => m.default));
103962
- addDecoder(32773, () => import("./packbits-b5db6c80.js").then((m) => m.default));
103963
- addDecoder(34887, () => import("./lerc-bded3bb8.js").then((m) => m.default));
103964
- addDecoder(50001, () => import("./webimage-2ccb1902.js").then((m) => m.default));
103961
+ addDecoder(7, () => import("./jpeg-f4ff4695.js").then((m) => m.default));
103962
+ addDecoder([8, 32946], () => import("./deflate-ada64e60.js").then((m) => m.default));
103963
+ addDecoder(32773, () => import("./packbits-afd2006e.js").then((m) => m.default));
103964
+ addDecoder(34887, () => import("./lerc-4fe5a320.js").then((m) => m.default));
103965
+ addDecoder(50001, () => import("./webimage-47480b51.js").then((m) => m.default));
103965
103966
  function copyNewSize(array, width, height, samplesPerPixel = 1) {
103966
103967
  return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
103967
103968
  }
@@ -118020,363 +118021,6 @@ let BitmaskLayer$1 = class BitmaskLayer extends XRLayer {
118020
118021
  };
118021
118022
  BitmaskLayer$1.layerName = "BitmaskLayer";
118022
118023
  BitmaskLayer$1.defaultProps = defaultProps$1;
118023
- var pluralize = { exports: {} };
118024
- (function(module2, exports) {
118025
- (function(root2, pluralize2) {
118026
- if (typeof commonjsRequire === "function" && true && true) {
118027
- module2.exports = pluralize2();
118028
- } else {
118029
- root2.pluralize = pluralize2();
118030
- }
118031
- })(commonjsGlobal, function() {
118032
- var pluralRules = [];
118033
- var singularRules = [];
118034
- var uncountables = {};
118035
- var irregularPlurals = {};
118036
- var irregularSingles = {};
118037
- function sanitizeRule(rule) {
118038
- if (typeof rule === "string") {
118039
- return new RegExp("^" + rule + "$", "i");
118040
- }
118041
- return rule;
118042
- }
118043
- function restoreCase(word, token) {
118044
- if (word === token)
118045
- return token;
118046
- if (word === word.toLowerCase())
118047
- return token.toLowerCase();
118048
- if (word === word.toUpperCase())
118049
- return token.toUpperCase();
118050
- if (word[0] === word[0].toUpperCase()) {
118051
- return token.charAt(0).toUpperCase() + token.substr(1).toLowerCase();
118052
- }
118053
- return token.toLowerCase();
118054
- }
118055
- function interpolate2(str, args) {
118056
- return str.replace(/\$(\d{1,2})/g, function(match, index2) {
118057
- return args[index2] || "";
118058
- });
118059
- }
118060
- function replace(word, rule) {
118061
- return word.replace(rule[0], function(match, index2) {
118062
- var result = interpolate2(rule[1], arguments);
118063
- if (match === "") {
118064
- return restoreCase(word[index2 - 1], result);
118065
- }
118066
- return restoreCase(match, result);
118067
- });
118068
- }
118069
- function sanitizeWord(token, word, rules) {
118070
- if (!token.length || uncountables.hasOwnProperty(token)) {
118071
- return word;
118072
- }
118073
- var len2 = rules.length;
118074
- while (len2--) {
118075
- var rule = rules[len2];
118076
- if (rule[0].test(word))
118077
- return replace(word, rule);
118078
- }
118079
- return word;
118080
- }
118081
- function replaceWord(replaceMap, keepMap, rules) {
118082
- return function(word) {
118083
- var token = word.toLowerCase();
118084
- if (keepMap.hasOwnProperty(token)) {
118085
- return restoreCase(word, token);
118086
- }
118087
- if (replaceMap.hasOwnProperty(token)) {
118088
- return restoreCase(word, replaceMap[token]);
118089
- }
118090
- return sanitizeWord(token, word, rules);
118091
- };
118092
- }
118093
- function checkWord(replaceMap, keepMap, rules, bool) {
118094
- return function(word) {
118095
- var token = word.toLowerCase();
118096
- if (keepMap.hasOwnProperty(token))
118097
- return true;
118098
- if (replaceMap.hasOwnProperty(token))
118099
- return false;
118100
- return sanitizeWord(token, token, rules) === token;
118101
- };
118102
- }
118103
- function pluralize2(word, count2, inclusive) {
118104
- var pluralized = count2 === 1 ? pluralize2.singular(word) : pluralize2.plural(word);
118105
- return (inclusive ? count2 + " " : "") + pluralized;
118106
- }
118107
- pluralize2.plural = replaceWord(
118108
- irregularSingles,
118109
- irregularPlurals,
118110
- pluralRules
118111
- );
118112
- pluralize2.isPlural = checkWord(
118113
- irregularSingles,
118114
- irregularPlurals,
118115
- pluralRules
118116
- );
118117
- pluralize2.singular = replaceWord(
118118
- irregularPlurals,
118119
- irregularSingles,
118120
- singularRules
118121
- );
118122
- pluralize2.isSingular = checkWord(
118123
- irregularPlurals,
118124
- irregularSingles,
118125
- singularRules
118126
- );
118127
- pluralize2.addPluralRule = function(rule, replacement) {
118128
- pluralRules.push([sanitizeRule(rule), replacement]);
118129
- };
118130
- pluralize2.addSingularRule = function(rule, replacement) {
118131
- singularRules.push([sanitizeRule(rule), replacement]);
118132
- };
118133
- pluralize2.addUncountableRule = function(word) {
118134
- if (typeof word === "string") {
118135
- uncountables[word.toLowerCase()] = true;
118136
- return;
118137
- }
118138
- pluralize2.addPluralRule(word, "$0");
118139
- pluralize2.addSingularRule(word, "$0");
118140
- };
118141
- pluralize2.addIrregularRule = function(single, plural) {
118142
- plural = plural.toLowerCase();
118143
- single = single.toLowerCase();
118144
- irregularSingles[single] = plural;
118145
- irregularPlurals[plural] = single;
118146
- };
118147
- [
118148
- // Pronouns.
118149
- ["I", "we"],
118150
- ["me", "us"],
118151
- ["he", "they"],
118152
- ["she", "they"],
118153
- ["them", "them"],
118154
- ["myself", "ourselves"],
118155
- ["yourself", "yourselves"],
118156
- ["itself", "themselves"],
118157
- ["herself", "themselves"],
118158
- ["himself", "themselves"],
118159
- ["themself", "themselves"],
118160
- ["is", "are"],
118161
- ["was", "were"],
118162
- ["has", "have"],
118163
- ["this", "these"],
118164
- ["that", "those"],
118165
- // Words ending in with a consonant and `o`.
118166
- ["echo", "echoes"],
118167
- ["dingo", "dingoes"],
118168
- ["volcano", "volcanoes"],
118169
- ["tornado", "tornadoes"],
118170
- ["torpedo", "torpedoes"],
118171
- // Ends with `us`.
118172
- ["genus", "genera"],
118173
- ["viscus", "viscera"],
118174
- // Ends with `ma`.
118175
- ["stigma", "stigmata"],
118176
- ["stoma", "stomata"],
118177
- ["dogma", "dogmata"],
118178
- ["lemma", "lemmata"],
118179
- ["schema", "schemata"],
118180
- ["anathema", "anathemata"],
118181
- // Other irregular rules.
118182
- ["ox", "oxen"],
118183
- ["axe", "axes"],
118184
- ["die", "dice"],
118185
- ["yes", "yeses"],
118186
- ["foot", "feet"],
118187
- ["eave", "eaves"],
118188
- ["goose", "geese"],
118189
- ["tooth", "teeth"],
118190
- ["quiz", "quizzes"],
118191
- ["human", "humans"],
118192
- ["proof", "proofs"],
118193
- ["carve", "carves"],
118194
- ["valve", "valves"],
118195
- ["looey", "looies"],
118196
- ["thief", "thieves"],
118197
- ["groove", "grooves"],
118198
- ["pickaxe", "pickaxes"],
118199
- ["passerby", "passersby"]
118200
- ].forEach(function(rule) {
118201
- return pluralize2.addIrregularRule(rule[0], rule[1]);
118202
- });
118203
- [
118204
- [/s?$/i, "s"],
118205
- [/[^\u0000-\u007F]$/i, "$0"],
118206
- [/([^aeiou]ese)$/i, "$1"],
118207
- [/(ax|test)is$/i, "$1es"],
118208
- [/(alias|[^aou]us|t[lm]as|gas|ris)$/i, "$1es"],
118209
- [/(e[mn]u)s?$/i, "$1s"],
118210
- [/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, "$1"],
118211
- [/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1i"],
118212
- [/(alumn|alg|vertebr)(?:a|ae)$/i, "$1ae"],
118213
- [/(seraph|cherub)(?:im)?$/i, "$1im"],
118214
- [/(her|at|gr)o$/i, "$1oes"],
118215
- [/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i, "$1a"],
118216
- [/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i, "$1a"],
118217
- [/sis$/i, "ses"],
118218
- [/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, "$1$2ves"],
118219
- [/([^aeiouy]|qu)y$/i, "$1ies"],
118220
- [/([^ch][ieo][ln])ey$/i, "$1ies"],
118221
- [/(x|ch|ss|sh|zz)$/i, "$1es"],
118222
- [/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, "$1ices"],
118223
- [/\b((?:tit)?m|l)(?:ice|ouse)$/i, "$1ice"],
118224
- [/(pe)(?:rson|ople)$/i, "$1ople"],
118225
- [/(child)(?:ren)?$/i, "$1ren"],
118226
- [/eaux$/i, "$0"],
118227
- [/m[ae]n$/i, "men"],
118228
- ["thou", "you"]
118229
- ].forEach(function(rule) {
118230
- return pluralize2.addPluralRule(rule[0], rule[1]);
118231
- });
118232
- [
118233
- [/s$/i, ""],
118234
- [/(ss)$/i, "$1"],
118235
- [/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, "$1fe"],
118236
- [/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, "$1f"],
118237
- [/ies$/i, "y"],
118238
- [/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i, "$1ie"],
118239
- [/\b(mon|smil)ies$/i, "$1ey"],
118240
- [/\b((?:tit)?m|l)ice$/i, "$1ouse"],
118241
- [/(seraph|cherub)im$/i, "$1"],
118242
- [/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i, "$1"],
118243
- [/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i, "$1sis"],
118244
- [/(movie|twelve|abuse|e[mn]u)s$/i, "$1"],
118245
- [/(test)(?:is|es)$/i, "$1is"],
118246
- [/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1us"],
118247
- [/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i, "$1um"],
118248
- [/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i, "$1on"],
118249
- [/(alumn|alg|vertebr)ae$/i, "$1a"],
118250
- [/(cod|mur|sil|vert|ind)ices$/i, "$1ex"],
118251
- [/(matr|append)ices$/i, "$1ix"],
118252
- [/(pe)(rson|ople)$/i, "$1rson"],
118253
- [/(child)ren$/i, "$1"],
118254
- [/(eau)x?$/i, "$1"],
118255
- [/men$/i, "man"]
118256
- ].forEach(function(rule) {
118257
- return pluralize2.addSingularRule(rule[0], rule[1]);
118258
- });
118259
- [
118260
- // Singular words with no plurals.
118261
- "adulthood",
118262
- "advice",
118263
- "agenda",
118264
- "aid",
118265
- "aircraft",
118266
- "alcohol",
118267
- "ammo",
118268
- "analytics",
118269
- "anime",
118270
- "athletics",
118271
- "audio",
118272
- "bison",
118273
- "blood",
118274
- "bream",
118275
- "buffalo",
118276
- "butter",
118277
- "carp",
118278
- "cash",
118279
- "chassis",
118280
- "chess",
118281
- "clothing",
118282
- "cod",
118283
- "commerce",
118284
- "cooperation",
118285
- "corps",
118286
- "debris",
118287
- "diabetes",
118288
- "digestion",
118289
- "elk",
118290
- "energy",
118291
- "equipment",
118292
- "excretion",
118293
- "expertise",
118294
- "firmware",
118295
- "flounder",
118296
- "fun",
118297
- "gallows",
118298
- "garbage",
118299
- "graffiti",
118300
- "hardware",
118301
- "headquarters",
118302
- "health",
118303
- "herpes",
118304
- "highjinks",
118305
- "homework",
118306
- "housework",
118307
- "information",
118308
- "jeans",
118309
- "justice",
118310
- "kudos",
118311
- "labour",
118312
- "literature",
118313
- "machinery",
118314
- "mackerel",
118315
- "mail",
118316
- "media",
118317
- "mews",
118318
- "moose",
118319
- "music",
118320
- "mud",
118321
- "manga",
118322
- "news",
118323
- "only",
118324
- "personnel",
118325
- "pike",
118326
- "plankton",
118327
- "pliers",
118328
- "police",
118329
- "pollution",
118330
- "premises",
118331
- "rain",
118332
- "research",
118333
- "rice",
118334
- "salmon",
118335
- "scissors",
118336
- "series",
118337
- "sewage",
118338
- "shambles",
118339
- "shrimp",
118340
- "software",
118341
- "species",
118342
- "staff",
118343
- "swine",
118344
- "tennis",
118345
- "traffic",
118346
- "transportation",
118347
- "trout",
118348
- "tuna",
118349
- "wealth",
118350
- "welfare",
118351
- "whiting",
118352
- "wildebeest",
118353
- "wildlife",
118354
- "you",
118355
- /pok[eé]mon$/i,
118356
- // Regexes.
118357
- /[^aeiou]ese$/i,
118358
- // "chinese", "japanese"
118359
- /deer$/i,
118360
- // "deer", "reindeer"
118361
- /fish$/i,
118362
- // "fish", "blowfish", "angelfish"
118363
- /measles$/i,
118364
- /o[iu]s$/i,
118365
- // "carnivorous"
118366
- /pox$/i,
118367
- // "chickpox", "smallpox"
118368
- /sheep$/i
118369
- ].forEach(pluralize2.addUncountableRule);
118370
- return pluralize2;
118371
- });
118372
- })(pluralize);
118373
- var pluralizeExports = pluralize.exports;
118374
- const plur = /* @__PURE__ */ getDefaultExportFromCjs(pluralizeExports);
118375
- plur.addPluralRule("glomerulus", "glomeruli");
118376
- plur.addPluralRule("interstitium", "interstitia");
118377
- function fromEntries(iterable) {
118378
- return [...iterable].reduce((obj, { 0: key, 1: val }) => Object.assign(obj, { [key]: val }), {});
118379
- }
118380
118024
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
118381
118025
  const freeGlobal$1 = freeGlobal;
118382
118026
  var freeSelf = typeof self == "object" && self && self.Object === Object && self;
@@ -119046,7 +118690,7 @@ class BitmaskLayer2 extends XRLayer {
119046
118690
  } = this.state;
119047
118691
  if (textures && model) {
119048
118692
  const scaleFactor = 1 / 2 ** (maxZoom - zoom);
119049
- const colors = fromEntries(range$1(MAX_CHANNELS).map((i2) => [`color${i2}`, getColor(channelColors[i2])]));
118693
+ const colors = Object.fromEntries(range$1(MAX_CHANNELS).map((i2) => [`color${i2}`, getColor(channelColors[i2])]));
119050
118694
  model.setUniforms(
119051
118695
  Object.assign({}, uniforms, {
119052
118696
  ...colors,
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { f as distEs6 } from "./index-e5ea8762.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-e5ea8762.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-e5ea8762.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-e5ea8762.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-e5ea8762.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-e5ea8762.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-e5ea8762.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-e5ea8762.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.4",
3
+ "version": "3.3.6",
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.4"
55
+ "@vitessce/utils": "3.3.6"
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