@vitessce/scatterplot-embedding 3.8.9 → 3.8.13

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,4 +1,4 @@
1
- import { D, E } from "./index-DYO3tfis.js";
1
+ import { D, E } from "./index-BK98jzeZ.js";
2
2
  export {
3
3
  D as DualEmbeddingScatterplotSubscriber,
4
4
  E as EmbeddingScatterplotSubscriber
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-DYO3tfis.js";
1
+ import { B as BaseDecoder } from "./index-BK98jzeZ.js";
2
2
  const dctZigZag = new Int32Array([
3
3
  0,
4
4
  1,
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-SxljTded.js";
2
- import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-DYO3tfis.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-BK98jzeZ.js";
3
3
  const LercParameters = {
4
4
  AddCompression: 1
5
5
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-DYO3tfis.js";
1
+ import { B as BaseDecoder } from "./index-BK98jzeZ.js";
2
2
  const MIN_BITS = 9;
3
3
  const CLEAR_CODE = 256;
4
4
  const EOI_CODE = 257;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-DYO3tfis.js";
1
+ import { B as BaseDecoder } from "./index-BK98jzeZ.js";
2
2
  class PackbitsDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  const dataView = new DataView(buffer);
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-DYO3tfis.js";
1
+ import { B as BaseDecoder } from "./index-BK98jzeZ.js";
2
2
  class RawDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  return buffer;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-DYO3tfis.js";
1
+ import { B as BaseDecoder } from "./index-BK98jzeZ.js";
2
2
  class WebImageDecoder extends BaseDecoder {
3
3
  constructor() {
4
4
  super();
@@ -1 +1 @@
1
- {"version":3,"file":"EmbeddingScatterplotSubscriber.d.ts","sourceRoot":"","sources":["../src/EmbeddingScatterplotSubscriber.js"],"names":[],"mappings":"AA6CA;;;;;;;;;;;;GAYG;AACH,sDAVG;IAAsB,IAAI,EAAlB,MAAM;IACQ,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;IAEU,mBAAmB;IAErB,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;CAEhB,eA4mBA"}
1
+ {"version":3,"file":"EmbeddingScatterplotSubscriber.d.ts","sourceRoot":"","sources":["../src/EmbeddingScatterplotSubscriber.js"],"names":[],"mappings":"AA6CA;;;;;;;;;;;;GAYG;AACH,sDAVG;IAAsB,IAAI,EAAlB,MAAM;IACQ,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;IAEU,mBAAmB;IAErB,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;CAEhB,eA6mBA"}
@@ -148,7 +148,7 @@ export function EmbeddingScatterplotSubscriber(props) {
148
148
  // extents of the cell coordinates on the x/y axes.
149
149
  useEffect(() => {
150
150
  if (xRange && yRange && width && height) {
151
- const pointSizeDevicePixels = getPointSizeDevicePixels(window.devicePixelRatio, zoom, xRange, yRange, width, height);
151
+ const pointSizeDevicePixels = getPointSizeDevicePixels(window.devicePixelRatio, zoom, xRange, yRange, width, height, numCells);
152
152
  setDynamicCellRadius(pointSizeDevicePixels);
153
153
  const nextCellOpacityScale = getPointOpacity(zoom, xRange, yRange, width, height, numCells, averageFillDensity);
154
154
  setDynamicCellOpacity(nextCellOpacityScale);
@@ -326,7 +326,7 @@ export function EmbeddingScatterplotSubscriber(props) {
326
326
  }, updateViewInfo: setComponentViewInfo, getExpressionValue: getExpressionValue, getCellIsSelected: getCellIsSelected, obsSetSelection: cellSetSelection, sampleSetSelection: sampleSetSelection,
327
327
  // InternMap data structures where keys are
328
328
  // obsSet -> sampleSet -> arrayKey -> [].
329
- stratifiedData: stratifiedData, obsSetColor: cellSetColor, sampleSetColor: sampleSetColor, contourThresholds: contourThresholds, contourColorEncoding: contourColorEncoding, contourColor: contourColor, contoursFilled: embeddingContoursFilled, embeddingPointsVisible: embeddingPointsVisible, embeddingContoursVisible: embeddingContoursVisible, circleInfo: circleInfo, featureSelection: geneSelection }), tooltipsVisible && width && height ? (_jsx(ScatterplotTooltipSubscriber, { parentUuid: uuid, obsHighlight: cellHighlight, width: width, height: height, getObsInfo: getObsInfo, featureType: featureType, featureLabelsMap: featureLabelsMap })) : null, _jsx(Legend, { visible: true, theme: theme, featureType: featureType, featureValueType: featureValueType, obsColorEncoding: cellColorEncoding, featureSelection: geneSelection, featureLabelsMap: featureLabelsMap, featureValueColormap: geneExpressionColormap, featureValueColormapRange: geneExpressionColormapRange, obsSetSelection: cellSetSelection, extent: expressionExtents, missing: expressionMissing,
329
+ stratifiedData: stratifiedData, obsSetColor: cellSetColor, sampleSetColor: sampleSetColor, contourThresholds: contourThresholds, contourColorEncoding: contourColorEncoding, contourColor: contourColor, contoursFilled: embeddingContoursFilled, embeddingPointsVisible: embeddingPointsVisible, embeddingContoursVisible: embeddingContoursVisible, circleInfo: circleInfo, featureSelection: geneSelection }), tooltipsVisible && width && height ? (_jsx(ScatterplotTooltipSubscriber, { parentUuid: uuid, obsHighlight: cellHighlight, width: width, height: height, getObsInfo: getObsInfo, featureType: featureType, featureLabelsMap: featureLabelsMap })) : null, _jsx(Legend, { visible: true, theme: theme, featureType: featureType, featureValueType: featureValueType, obsColorEncoding: cellColorEncoding, featureSelection: geneSelection, featureLabelsMap: featureLabelsMap, featureValueColormap: geneExpressionColormap, featureValueColormapRange: geneExpressionColormapRange, setFeatureValueColormapRange: setGeneExpressionColormapRange, obsSetSelection: cellSetSelection, extent: expressionExtents, missing: expressionMissing,
330
330
  // Contour percentile legend
331
331
  pointsVisible: embeddingPointsVisible, contoursVisible: embeddingContoursVisible, contoursFilled: embeddingContoursFilled, contourPercentiles: contourPercentiles || DEFAULT_CONTOUR_PERCENTILES, contourThresholds: contourThresholds, featureAggregationStrategy: featureAggregationStrategyToUse })] }));
332
332
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/scatterplot-embedding",
3
- "version": "3.8.9",
3
+ "version": "3.8.13",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -20,13 +20,13 @@
20
20
  "lodash-es": "^4.17.21",
21
21
  "react-aria": "^3.28.0",
22
22
  "@turf/circle": "^7.2.0",
23
- "@vitessce/styles": "3.8.9",
24
- "@vitessce/constants-internal": "3.8.9",
25
- "@vitessce/legend": "3.8.9",
26
- "@vitessce/scatterplot": "3.8.9",
27
- "@vitessce/sets-utils": "3.8.9",
28
- "@vitessce/utils": "3.8.9",
29
- "@vitessce/vit-s": "3.8.9"
23
+ "@vitessce/styles": "3.8.13",
24
+ "@vitessce/constants-internal": "3.8.13",
25
+ "@vitessce/legend": "3.8.13",
26
+ "@vitessce/sets-utils": "3.8.13",
27
+ "@vitessce/utils": "3.8.13",
28
+ "@vitessce/vit-s": "3.8.13",
29
+ "@vitessce/scatterplot": "3.8.13"
30
30
  },
31
31
  "devDependencies": {
32
32
  "react": "18.3.1",
@@ -335,7 +335,7 @@ export function EmbeddingScatterplotSubscriber(props) {
335
335
  useEffect(() => {
336
336
  if (xRange && yRange && width && height) {
337
337
  const pointSizeDevicePixels = getPointSizeDevicePixels(
338
- window.devicePixelRatio, zoom, xRange, yRange, width, height,
338
+ window.devicePixelRatio, zoom, xRange, yRange, width, height, numCells,
339
339
  );
340
340
  setDynamicCellRadius(pointSizeDevicePixels);
341
341
 
@@ -662,6 +662,7 @@ export function EmbeddingScatterplotSubscriber(props) {
662
662
  featureLabelsMap={featureLabelsMap}
663
663
  featureValueColormap={geneExpressionColormap}
664
664
  featureValueColormapRange={geneExpressionColormapRange}
665
+ setFeatureValueColormapRange={setGeneExpressionColormapRange}
665
666
  obsSetSelection={cellSetSelection}
666
667
  extent={expressionExtents}
667
668
  missing={expressionMissing}