@vitessce/heatmap 3.2.0 → 3.2.2

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-e4911a2c.js";
2
+ import { B as BaseDecoder } from "./index-99684608.js";
3
3
  import "react";
4
4
  import "@vitessce/vit-s";
5
5
  import "react-dom";
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import React__default, { Children, isValidElement, cloneElement, useRef, useMemo, useEffect, useLayoutEffect, createElement, forwardRef, useState, useImperativeHandle, useReducer, useCallback, useId } from "react";
2
+ import React__default, { Children, isValidElement, cloneElement, useRef, useMemo, useEffect, useLayoutEffect, createElement, forwardRef, useState, useImperativeHandle, useReducer, useCallback, useContext } from "react";
3
3
  import { useVitessceContainer, useComponentHover, useComponentViewInfo, usePlotOptionsStyles, OptionsContainer, OptionSelect, useLoaders, useSetComponentHover, useSetComponentViewInfo, useCoordination, useDeckCanvasSize, useMultiObsLabels, useFeatureLabelsData, useObsFeatureMatrixData, useObsSetsData, useReady, useUrls, useUint8ObsFeatureMatrix, useGetObsInfo, useGetObsMembership, TitleInfo } from "@vitessce/vit-s";
4
4
  import * as ReactDOM from "react-dom";
5
5
  function _mergeNamespaces(n2, m) {
@@ -132521,16 +132521,16 @@ function addDecoder(cases, importFn) {
132521
132521
  }
132522
132522
  cases.forEach((c) => registry$1.set(c, importFn));
132523
132523
  }
132524
- addDecoder([void 0, 1], () => import("./raw-67eae85c.js").then((m) => m.default));
132525
- addDecoder(5, () => import("./lzw-6f9c40ad.js").then((m) => m.default));
132524
+ addDecoder([void 0, 1], () => import("./raw-ed466def.js").then((m) => m.default));
132525
+ addDecoder(5, () => import("./lzw-dcec678f.js").then((m) => m.default));
132526
132526
  addDecoder(6, () => {
132527
132527
  throw new Error("old style JPEG compression is not supported.");
132528
132528
  });
132529
- addDecoder(7, () => import("./jpeg-aa330cdf.js").then((m) => m.default));
132530
- addDecoder([8, 32946], () => import("./deflate-6b41b0a6.js").then((m) => m.default));
132531
- addDecoder(32773, () => import("./packbits-c64561b9.js").then((m) => m.default));
132532
- addDecoder(34887, () => import("./lerc-e665fe72.js").then((m) => m.default));
132533
- addDecoder(50001, () => import("./webimage-8d441440.js").then((m) => m.default));
132529
+ addDecoder(7, () => import("./jpeg-91201fe5.js").then((m) => m.default));
132530
+ addDecoder([8, 32946], () => import("./deflate-54e8a983.js").then((m) => m.default));
132531
+ addDecoder(32773, () => import("./packbits-1f0b4f8a.js").then((m) => m.default));
132532
+ addDecoder(34887, () => import("./lerc-ede29ce8.js").then((m) => m.default));
132533
+ addDecoder(50001, () => import("./webimage-892fe81d.js").then((m) => m.default));
132534
132534
  function decodeRowAcc(row, stride) {
132535
132535
  let length2 = row.length - stride;
132536
132536
  let offset5 = 0;
@@ -141430,6 +141430,67 @@ function makeBoundingBox(viewState) {
141430
141430
  viewport.unproject([0, viewport.height])
141431
141431
  ];
141432
141432
  }
141433
+ const TARGETS = [1, 2, 3, 4, 5, 10, 20, 25, 50, 100, 200, 250, 500, 1e3];
141434
+ const MIN_TARGET = TARGETS[0];
141435
+ const MAX_TARGET = TARGETS[TARGETS.length - 1];
141436
+ const SI_PREFIXES = [
141437
+ { symbol: "Y", exponent: 24 },
141438
+ { symbol: "Z", exponent: 21 },
141439
+ { symbol: "E", exponent: 18 },
141440
+ { symbol: "P", exponent: 15 },
141441
+ { symbol: "T", exponent: 12 },
141442
+ { symbol: "G", exponent: 9 },
141443
+ { symbol: "M", exponent: 6 },
141444
+ { symbol: "k", exponent: 3 },
141445
+ { symbol: "h", exponent: 2 },
141446
+ { symbol: "da", exponent: 1 },
141447
+ { symbol: "", exponent: 0 },
141448
+ { symbol: "d", exponent: -1 },
141449
+ { symbol: "c", exponent: -2 },
141450
+ { symbol: "m", exponent: -3 },
141451
+ { symbol: "µ", exponent: -6 },
141452
+ { symbol: "n", exponent: -9 },
141453
+ { symbol: "p", exponent: -12 },
141454
+ { symbol: "f", exponent: -15 },
141455
+ { symbol: "a", exponent: -18 },
141456
+ { symbol: "z", exponent: -21 },
141457
+ { symbol: "y", exponent: -24 }
141458
+ ];
141459
+ function sizeToMeters(size, unit2) {
141460
+ if (!unit2 || unit2 === "m") {
141461
+ return size;
141462
+ }
141463
+ if (unit2.length > 1) {
141464
+ let unitPrefix = unit2.substring(0, unit2.length - 1);
141465
+ if (unitPrefix === "u") {
141466
+ unitPrefix = "µ";
141467
+ }
141468
+ const unitObj = SI_PREFIXES.find((p) => p.symbol === unitPrefix);
141469
+ if (unitObj) {
141470
+ return size * 10 ** unitObj.exponent;
141471
+ }
141472
+ }
141473
+ throw new Error("Received unknown unit");
141474
+ }
141475
+ function snapValue(value) {
141476
+ let magnitude = 0;
141477
+ if (value < MIN_TARGET || value > MAX_TARGET) {
141478
+ magnitude = Math.floor(Math.log10(value));
141479
+ }
141480
+ let snappedUnit = SI_PREFIXES.find(
141481
+ (p) => p.exponent % 3 === 0 && p.exponent <= magnitude
141482
+ );
141483
+ let adjustedValue = value / 10 ** snappedUnit.exponent;
141484
+ if (adjustedValue > 500 && adjustedValue <= 1e3) {
141485
+ snappedUnit = SI_PREFIXES.find(
141486
+ (p) => p.exponent % 3 === 0 && p.exponent <= magnitude + 3
141487
+ );
141488
+ adjustedValue = value / 10 ** snappedUnit.exponent;
141489
+ }
141490
+ const targetNewUnits = TARGETS.find((t2) => t2 > adjustedValue);
141491
+ const targetOrigUnits = targetNewUnits * 10 ** snappedUnit.exponent;
141492
+ return [targetOrigUnits, targetNewUnits, snappedUnit.symbol];
141493
+ }
141433
141494
  const fs$1$1 = `#define SHADER_NAME xr-layer-fragment-shader
141434
141495
 
141435
141496
  precision highp float;
@@ -142197,26 +142258,27 @@ const OverviewLayer = class extends CompositeLayer {
142197
142258
  OverviewLayer.layerName = "OverviewLayer";
142198
142259
  OverviewLayer.defaultProps = defaultProps$3;
142199
142260
  function getPosition(boundingBox, position, length2) {
142200
- const viewLength = boundingBox[2][0] - boundingBox[0][0];
142261
+ const viewWidth = boundingBox[2][0] - boundingBox[0][0];
142262
+ const viewHeight = boundingBox[2][1] - boundingBox[0][1];
142201
142263
  switch (position) {
142202
142264
  case "bottom-right": {
142203
- const yCoord = boundingBox[2][1] - (boundingBox[2][1] - boundingBox[0][1]) * length2;
142204
- const xLeftCoord = boundingBox[2][0] - viewLength * length2;
142265
+ const yCoord = boundingBox[2][1] - viewHeight * length2;
142266
+ const xLeftCoord = boundingBox[2][0] - viewWidth * length2;
142205
142267
  return [yCoord, xLeftCoord];
142206
142268
  }
142207
142269
  case "top-right": {
142208
- const yCoord = (boundingBox[2][1] - boundingBox[0][1]) * length2;
142209
- const xLeftCoord = boundingBox[2][0] - viewLength * length2;
142270
+ const yCoord = boundingBox[0][1] + viewHeight * length2;
142271
+ const xLeftCoord = boundingBox[2][0] - viewWidth * length2;
142210
142272
  return [yCoord, xLeftCoord];
142211
142273
  }
142212
142274
  case "top-left": {
142213
- const yCoord = (boundingBox[2][1] - boundingBox[0][1]) * length2;
142214
- const xLeftCoord = viewLength * length2;
142275
+ const yCoord = boundingBox[0][1] + viewHeight * length2;
142276
+ const xLeftCoord = boundingBox[0][0] + viewWidth * length2;
142215
142277
  return [yCoord, xLeftCoord];
142216
142278
  }
142217
142279
  case "bottom-left": {
142218
- const yCoord = boundingBox[2][1] - (boundingBox[2][1] - boundingBox[0][1]) * length2;
142219
- const xLeftCoord = viewLength * length2;
142280
+ const yCoord = boundingBox[2][1] - viewHeight * length2;
142281
+ const xLeftCoord = boundingBox[0][0] + viewWidth * length2;
142220
142282
  return [yCoord, xLeftCoord];
142221
142283
  }
142222
142284
  default: {
@@ -142234,11 +142296,12 @@ const defaultProps$2 = {
142234
142296
  unit: { type: "string", value: "", compare: true },
142235
142297
  size: { type: "number", value: 1, compare: true },
142236
142298
  position: { type: "string", value: "bottom-right", compare: true },
142237
- length: { type: "number", value: 0.085, compare: true }
142299
+ length: { type: "number", value: 0.085, compare: true },
142300
+ snap: { type: "boolean", value: false, compare: true }
142238
142301
  };
142239
142302
  const ScaleBarLayer = class extends CompositeLayer {
142240
142303
  renderLayers() {
142241
- const { id, unit: unit2, size, position, viewState, length: length2 } = this.props;
142304
+ const { id, unit: unit2, size, position, viewState, length: length2, snap } = this.props;
142242
142305
  const boundingBox = makeBoundingBox(viewState);
142243
142306
  const { zoom } = viewState;
142244
142307
  const viewLength = boundingBox[2][0] - boundingBox[0][0];
@@ -142247,15 +142310,27 @@ const ScaleBarLayer = class extends CompositeLayer {
142247
142310
  2 ** (-zoom + 1.5),
142248
142311
  (boundingBox[2][1] - boundingBox[0][1]) * 7e-3
142249
142312
  );
142250
- const numUnits = barLength * size;
142313
+ let adjustedBarLength = barLength;
142314
+ let displayNumber = (barLength * size).toPrecision(5);
142315
+ let displayUnit = unit2;
142316
+ if (snap) {
142317
+ const meterSize = sizeToMeters(size, unit2);
142318
+ const numUnits = barLength * meterSize;
142319
+ const [snappedOrigUnits, snappedNewUnits, snappedUnitPrefix] = snapValue(numUnits);
142320
+ adjustedBarLength = snappedOrigUnits / meterSize;
142321
+ displayNumber = snappedNewUnits;
142322
+ displayUnit = `${snappedUnitPrefix}m`;
142323
+ }
142251
142324
  const [yCoord, xLeftCoord] = getPosition(boundingBox, position, length2);
142325
+ const xRightCoord = xLeftCoord + barLength;
142326
+ const isLeft = position.endsWith("-left");
142252
142327
  const lengthBar = new LineLayer({
142253
142328
  id: `scale-bar-length-${id}`,
142254
142329
  coordinateSystem: COORDINATE_SYSTEM.CARTESIAN,
142255
142330
  data: [
142256
142331
  [
142257
- [xLeftCoord, yCoord],
142258
- [xLeftCoord + barLength, yCoord]
142332
+ [isLeft ? xLeftCoord : xRightCoord - adjustedBarLength, yCoord],
142333
+ [isLeft ? xLeftCoord + adjustedBarLength : xRightCoord, yCoord]
142259
142334
  ]
142260
142335
  ],
142261
142336
  getSourcePosition: (d) => d[0],
@@ -142268,8 +142343,14 @@ const ScaleBarLayer = class extends CompositeLayer {
142268
142343
  coordinateSystem: COORDINATE_SYSTEM.CARTESIAN,
142269
142344
  data: [
142270
142345
  [
142271
- [xLeftCoord, yCoord - barHeight],
142272
- [xLeftCoord, yCoord + barHeight]
142346
+ [
142347
+ isLeft ? xLeftCoord : xRightCoord - adjustedBarLength,
142348
+ yCoord - barHeight
142349
+ ],
142350
+ [
142351
+ isLeft ? xLeftCoord : xRightCoord - adjustedBarLength,
142352
+ yCoord + barHeight
142353
+ ]
142273
142354
  ]
142274
142355
  ],
142275
142356
  getSourcePosition: (d) => d[0],
@@ -142282,8 +142363,14 @@ const ScaleBarLayer = class extends CompositeLayer {
142282
142363
  coordinateSystem: COORDINATE_SYSTEM.CARTESIAN,
142283
142364
  data: [
142284
142365
  [
142285
- [xLeftCoord + barLength, yCoord - barHeight],
142286
- [xLeftCoord + barLength, yCoord + barHeight]
142366
+ [
142367
+ isLeft ? xLeftCoord + adjustedBarLength : xRightCoord,
142368
+ yCoord - barHeight
142369
+ ],
142370
+ [
142371
+ isLeft ? xLeftCoord + adjustedBarLength : xRightCoord,
142372
+ yCoord + barHeight
142373
+ ]
142287
142374
  ]
142288
142375
  ],
142289
142376
  getSourcePosition: (d) => d[0],
@@ -142296,8 +142383,11 @@ const ScaleBarLayer = class extends CompositeLayer {
142296
142383
  coordinateSystem: COORDINATE_SYSTEM.CARTESIAN,
142297
142384
  data: [
142298
142385
  {
142299
- text: numUnits.toPrecision(5) + unit2,
142300
- position: [xLeftCoord + barLength * 0.5, yCoord + barHeight * 4]
142386
+ text: `${displayNumber}${displayUnit}`,
142387
+ position: [
142388
+ isLeft ? xLeftCoord + barLength * 0.5 : xRightCoord - barLength * 0.5,
142389
+ yCoord + barHeight * 4
142390
+ ]
142301
142391
  }
142302
142392
  ],
142303
142393
  getColor: [220, 220, 220, 255],
@@ -142306,7 +142396,7 @@ const ScaleBarLayer = class extends CompositeLayer {
142306
142396
  sizeUnits: "meters",
142307
142397
  sizeScale: 2 ** -zoom,
142308
142398
  characterSet: [
142309
- ...unit2.split(""),
142399
+ ...displayUnit.split(""),
142310
142400
  ...range(10).map((i2) => String(i2)),
142311
142401
  ".",
142312
142402
  "e",
@@ -144839,6 +144929,132 @@ function HeatmapTooltipSubscriber(props2) {
144839
144929
  }
144840
144930
  ) : null;
144841
144931
  }
144932
+ const $b5e257d569688ac6$var$defaultContext = {
144933
+ prefix: String(Math.round(Math.random() * 1e10)),
144934
+ current: 0
144935
+ };
144936
+ const $b5e257d569688ac6$var$SSRContext = /* @__PURE__ */ React__default.createContext($b5e257d569688ac6$var$defaultContext);
144937
+ const $b5e257d569688ac6$var$IsSSRContext = /* @__PURE__ */ React__default.createContext(false);
144938
+ let $b5e257d569688ac6$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
144939
+ let $b5e257d569688ac6$var$componentIds = /* @__PURE__ */ new WeakMap();
144940
+ function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
144941
+ let ctx = useContext($b5e257d569688ac6$var$SSRContext);
144942
+ let ref = useRef(null);
144943
+ if (ref.current === null && !isDisabled) {
144944
+ var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner;
144945
+ let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = React__default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 ? void 0 : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;
144946
+ if (currentOwner) {
144947
+ let prevComponentValue = $b5e257d569688ac6$var$componentIds.get(currentOwner);
144948
+ if (prevComponentValue == null)
144949
+ $b5e257d569688ac6$var$componentIds.set(currentOwner, {
144950
+ id: ctx.current,
144951
+ state: currentOwner.memoizedState
144952
+ });
144953
+ else if (currentOwner.memoizedState !== prevComponentValue.state) {
144954
+ ctx.current = prevComponentValue.id;
144955
+ $b5e257d569688ac6$var$componentIds.delete(currentOwner);
144956
+ }
144957
+ }
144958
+ ref.current = ++ctx.current;
144959
+ }
144960
+ return ref.current;
144961
+ }
144962
+ function $b5e257d569688ac6$var$useLegacySSRSafeId(defaultId) {
144963
+ let ctx = useContext($b5e257d569688ac6$var$SSRContext);
144964
+ if (ctx === $b5e257d569688ac6$var$defaultContext && !$b5e257d569688ac6$var$canUseDOM)
144965
+ console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
144966
+ let counter2 = $b5e257d569688ac6$var$useCounter(!!defaultId);
144967
+ let prefix2 = ctx === $b5e257d569688ac6$var$defaultContext && false ? "react-aria" : `react-aria${ctx.prefix}`;
144968
+ return defaultId || `${prefix2}-${counter2}`;
144969
+ }
144970
+ function $b5e257d569688ac6$var$useModernSSRSafeId(defaultId) {
144971
+ let id = React__default.useId();
144972
+ let [didSSR] = useState($b5e257d569688ac6$export$535bd6ca7f90a273());
144973
+ let prefix2 = didSSR || false ? "react-aria" : `react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`;
144974
+ return defaultId || `${prefix2}-${id}`;
144975
+ }
144976
+ const $b5e257d569688ac6$export$619500959fc48b26 = typeof React__default["useId"] === "function" ? $b5e257d569688ac6$var$useModernSSRSafeId : $b5e257d569688ac6$var$useLegacySSRSafeId;
144977
+ function $b5e257d569688ac6$var$getSnapshot() {
144978
+ return false;
144979
+ }
144980
+ function $b5e257d569688ac6$var$getServerSnapshot() {
144981
+ return true;
144982
+ }
144983
+ function $b5e257d569688ac6$var$subscribe(onStoreChange) {
144984
+ return () => {
144985
+ };
144986
+ }
144987
+ function $b5e257d569688ac6$export$535bd6ca7f90a273() {
144988
+ if (typeof React__default["useSyncExternalStore"] === "function")
144989
+ return React__default["useSyncExternalStore"]($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot);
144990
+ return useContext($b5e257d569688ac6$var$IsSSRContext);
144991
+ }
144992
+ const $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = typeof document !== "undefined" ? React__default.useLayoutEffect : () => {
144993
+ };
144994
+ let $bdb11010cef70236$var$idsUpdaterMap = /* @__PURE__ */ new Map();
144995
+ function $bdb11010cef70236$export$f680877a34711e37(defaultId) {
144996
+ let [value, setValue] = useState(defaultId);
144997
+ let nextId = useRef(null);
144998
+ let res = $b5e257d569688ac6$export$619500959fc48b26(value);
144999
+ let updateValue = useCallback((val) => {
145000
+ nextId.current = val;
145001
+ }, []);
145002
+ $bdb11010cef70236$var$idsUpdaterMap.set(res, updateValue);
145003
+ $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
145004
+ let r2 = res;
145005
+ return () => {
145006
+ $bdb11010cef70236$var$idsUpdaterMap.delete(r2);
145007
+ };
145008
+ }, [
145009
+ res
145010
+ ]);
145011
+ useEffect(() => {
145012
+ let newId = nextId.current;
145013
+ if (newId) {
145014
+ nextId.current = null;
145015
+ setValue(newId);
145016
+ }
145017
+ });
145018
+ return res;
145019
+ }
145020
+ let $bbed8b41f857bcc0$var$transitionsByElement = /* @__PURE__ */ new Map();
145021
+ let $bbed8b41f857bcc0$var$transitionCallbacks = /* @__PURE__ */ new Set();
145022
+ function $bbed8b41f857bcc0$var$setupGlobalEvents() {
145023
+ if (typeof window === "undefined")
145024
+ return;
145025
+ let onTransitionStart = (e3) => {
145026
+ let transitions2 = $bbed8b41f857bcc0$var$transitionsByElement.get(e3.target);
145027
+ if (!transitions2) {
145028
+ transitions2 = /* @__PURE__ */ new Set();
145029
+ $bbed8b41f857bcc0$var$transitionsByElement.set(e3.target, transitions2);
145030
+ e3.target.addEventListener("transitioncancel", onTransitionEnd);
145031
+ }
145032
+ transitions2.add(e3.propertyName);
145033
+ };
145034
+ let onTransitionEnd = (e3) => {
145035
+ let properties = $bbed8b41f857bcc0$var$transitionsByElement.get(e3.target);
145036
+ if (!properties)
145037
+ return;
145038
+ properties.delete(e3.propertyName);
145039
+ if (properties.size === 0) {
145040
+ e3.target.removeEventListener("transitioncancel", onTransitionEnd);
145041
+ $bbed8b41f857bcc0$var$transitionsByElement.delete(e3.target);
145042
+ }
145043
+ if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) {
145044
+ for (let cb of $bbed8b41f857bcc0$var$transitionCallbacks)
145045
+ cb();
145046
+ $bbed8b41f857bcc0$var$transitionCallbacks.clear();
145047
+ }
145048
+ };
145049
+ document.body.addEventListener("transitionrun", onTransitionStart);
145050
+ document.body.addEventListener("transitionend", onTransitionEnd);
145051
+ }
145052
+ if (typeof document !== "undefined") {
145053
+ if (document.readyState !== "loading")
145054
+ $bbed8b41f857bcc0$var$setupGlobalEvents();
145055
+ else
145056
+ document.addEventListener("DOMContentLoaded", $bbed8b41f857bcc0$var$setupGlobalEvents);
145057
+ }
144842
145058
  function HeatmapOptions(props2) {
144843
145059
  const {
144844
145060
  geneExpressionColormap,
@@ -144849,7 +145065,7 @@ function HeatmapOptions(props2) {
144849
145065
  setTooltipsVisible
144850
145066
  } = props2;
144851
145067
  const classes = usePlotOptionsStyles();
144852
- const heatmapOptionsId = useId();
145068
+ const heatmapOptionsId = $bdb11010cef70236$export$f680877a34711e37();
144853
145069
  function handleGeneExpressionColormapChange(event) {
144854
145070
  setGeneExpressionColormap(event.target.value);
144855
145071
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a, H } from "./index-e4911a2c.js";
1
+ import { a, H } from "./index-99684608.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-e4911a2c.js";
1
+ import { B as BaseDecoder } from "./index-99684608.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-e4911a2c.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-99684608.js";
3
3
  import "react";
4
4
  import "@vitessce/vit-s";
5
5
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-e4911a2c.js";
1
+ import { B as BaseDecoder } from "./index-99684608.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-e4911a2c.js";
1
+ import { B as BaseDecoder } from "./index-99684608.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-e4911a2c.js";
1
+ import { B as BaseDecoder } from "./index-99684608.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-e4911a2c.js";
1
+ import { B as BaseDecoder } from "./index-99684608.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1 +1 @@
1
- {"version":3,"file":"HeatmapOptions.d.ts","sourceRoot":"","sources":["../src/HeatmapOptions.js"],"names":[],"mappings":"AAMA,gEAsGC"}
1
+ {"version":3,"file":"HeatmapOptions.d.ts","sourceRoot":"","sources":["../src/HeatmapOptions.js"],"names":[],"mappings":"AAOA,gEAsGC"}
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import React, { useCallback, useId } from 'react';
2
+ import React, { useCallback } from 'react';
3
+ import { useId } from 'react-aria';
3
4
  import { debounce } from 'lodash-es';
4
5
  import { Checkbox, Slider, TableCell, TableRow } from '@material-ui/core';
5
6
  import { usePlotOptionsStyles, OptionsContainer, OptionSelect } from '@vitessce/vit-s';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/heatmap",
3
- "version": "3.2.0",
3
+ "version": "3.2.2",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -19,14 +19,15 @@
19
19
  "@material-ui/core": "~4.12.3",
20
20
  "lodash-es": "^4.17.21",
21
21
  "uuid": "^9.0.0",
22
- "@vitessce/constants-internal": "3.2.0",
23
- "@vitessce/gl": "3.2.0",
24
- "@vitessce/legend": "3.2.0",
25
- "@vitessce/sets-utils": "3.2.0",
26
- "@vitessce/tooltip": "3.2.0",
27
- "@vitessce/utils": "3.2.0",
28
- "@vitessce/vit-s": "3.2.0",
29
- "@vitessce/workers": "3.2.0"
22
+ "react-aria": "^3.28.0",
23
+ "@vitessce/constants-internal": "3.2.2",
24
+ "@vitessce/gl": "3.2.2",
25
+ "@vitessce/legend": "3.2.2",
26
+ "@vitessce/sets-utils": "3.2.2",
27
+ "@vitessce/tooltip": "3.2.2",
28
+ "@vitessce/utils": "3.2.2",
29
+ "@vitessce/vit-s": "3.2.2",
30
+ "@vitessce/workers": "3.2.2"
30
31
  },
31
32
  "devDependencies": {
32
33
  "@testing-library/jest-dom": "^5.16.4",
@@ -1,4 +1,5 @@
1
- import React, { useCallback, useId } from 'react';
1
+ import React, { useCallback } from 'react';
2
+ import { useId } from 'react-aria';
2
3
  import { debounce } from 'lodash-es';
3
4
  import { Checkbox, Slider, TableCell, TableRow } from '@material-ui/core';
4
5
  import { usePlotOptionsStyles, OptionsContainer, OptionSelect } from '@vitessce/vit-s';