@vitessce/scatterplot-embedding 3.7.1 → 3.8.1

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-SxljTded.js";
2
- import { B as BaseDecoder } from "./index-FjD__8Hd.js";
2
+ import { B as BaseDecoder } from "./index-CAZiCmfU.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -9558,6 +9558,7 @@ const ViewType$1 = {
9558
9558
  SCATTERPLOT: "scatterplot",
9559
9559
  SPATIAL: "spatial",
9560
9560
  SPATIAL_BETA: "spatialBeta",
9561
+ // SPATIAL_ACCELERATED: 'spatialAccelerated',
9561
9562
  HEATMAP: "heatmap",
9562
9563
  LAYER_CONTROLLER: "layerController",
9563
9564
  LAYER_CONTROLLER_BETA: "layerControllerBeta",
@@ -9851,6 +9852,8 @@ const CoordinationType$1 = {
9851
9852
  // Could be per-image-layer
9852
9853
  SPATIAL_TARGET_RESOLUTION: "spatialTargetResolution",
9853
9854
  // Per-spatial-layer
9855
+ SPATIAL_MAX_RESOLUTION: "spatialMaxResolution",
9856
+ // Per-image-channel (for spatial-accelerated)
9854
9857
  // For clipping plane sliders
9855
9858
  SPATIAL_SLICE_X: "spatialSliceX",
9856
9859
  SPATIAL_SLICE_Y: "spatialSliceY",
@@ -10399,6 +10402,7 @@ const COMPONENT_COORDINATION_TYPES = {
10399
10402
  CoordinationType$1.SPATIAL_RENDERING_MODE,
10400
10403
  CoordinationType$1.VOLUMETRIC_RENDERING_ALGORITHM,
10401
10404
  CoordinationType$1.SPATIAL_TARGET_RESOLUTION,
10405
+ CoordinationType$1.SPATIAL_MAX_RESOLUTION,
10402
10406
  CoordinationType$1.SPATIAL_SLICE_X,
10403
10407
  CoordinationType$1.SPATIAL_SLICE_Y,
10404
10408
  CoordinationType$1.SPATIAL_SLICE_Z,
@@ -10572,6 +10576,7 @@ const COMPONENT_COORDINATION_TYPES = {
10572
10576
  CoordinationType$1.SPATIAL_RENDERING_MODE,
10573
10577
  CoordinationType$1.VOLUMETRIC_RENDERING_ALGORITHM,
10574
10578
  CoordinationType$1.SPATIAL_TARGET_RESOLUTION,
10579
+ CoordinationType$1.SPATIAL_MAX_RESOLUTION,
10575
10580
  CoordinationType$1.SPATIAL_SLICE_X,
10576
10581
  CoordinationType$1.SPATIAL_SLICE_Y,
10577
10582
  CoordinationType$1.SPATIAL_SLICE_Z,
@@ -123323,22 +123328,22 @@ function addDecoder(cases, importFn) {
123323
123328
  }
123324
123329
  cases.forEach((c2) => registry$1.set(c2, importFn));
123325
123330
  }
123326
- addDecoder([void 0, 1], () => import("./raw-DY_w4Euo.js").then((m2) => m2.default));
123327
- addDecoder(5, () => import("./lzw-BlBBDcB3.js").then((m2) => m2.default));
123331
+ addDecoder([void 0, 1], () => import("./raw-C7Mr1wKf.js").then((m2) => m2.default));
123332
+ addDecoder(5, () => import("./lzw-D4jJ825w.js").then((m2) => m2.default));
123328
123333
  addDecoder(6, () => {
123329
123334
  throw new Error("old style JPEG compression is not supported.");
123330
123335
  });
123331
- addDecoder(7, () => import("./jpeg-YYASIY-4.js").then((m2) => m2.default));
123332
- addDecoder([8, 32946], () => import("./deflate-BgSunY3u.js").then((m2) => m2.default));
123333
- addDecoder(32773, () => import("./packbits-uyBfUErz.js").then((m2) => m2.default));
123336
+ addDecoder(7, () => import("./jpeg-CZjNfHTa.js").then((m2) => m2.default));
123337
+ addDecoder([8, 32946], () => import("./deflate-BaP7Va-9.js").then((m2) => m2.default));
123338
+ addDecoder(32773, () => import("./packbits-fITVevsL.js").then((m2) => m2.default));
123334
123339
  addDecoder(
123335
123340
  34887,
123336
- () => import("./lerc-DNPCSfFo.js").then(async (m2) => {
123341
+ () => import("./lerc-B731iHgp.js").then(async (m2) => {
123337
123342
  await m2.zstd.init();
123338
123343
  return m2;
123339
123344
  }).then((m2) => m2.default)
123340
123345
  );
123341
- addDecoder(50001, () => import("./webimage-Prgh99Ac.js").then((m2) => m2.default));
123346
+ addDecoder(50001, () => import("./webimage-SEug2Cmk.js").then((m2) => m2.default));
123342
123347
  function decodeRowAcc(row, stride) {
123343
123348
  let length2 = row.length - stride;
123344
123349
  let offset2 = 0;
@@ -150044,13 +150049,13 @@ function IconButton(props) {
150044
150049
  function ToolMenu(props) {
150045
150050
  const pointerIconAltText = "Pointer tool";
150046
150051
  const lassoIconAltText = "Select lasso";
150047
- const { setActiveTool, activeTool, visibleTools = { pan: true, selectLasso: true }, recenterOnClick = () => {
150052
+ const { setActiveTool, activeTool, visibleTools = { pan: true, selectLasso: true, recenter: true }, recenterOnClick = () => {
150048
150053
  } } = props;
150049
150054
  const { classes } = useStyles$3();
150050
150055
  const onRecenterButtonCLick = () => {
150051
150056
  recenterOnClick();
150052
150057
  };
150053
- return jsxRuntimeExports.jsxs("div", { className: classes.tool, children: [visibleTools.pan && jsxRuntimeExports.jsx(IconTool, { alt: pointerIconAltText, onClick: () => setActiveTool(null), isActive: activeTool === null, children: jsxRuntimeExports.jsx(SvgNearMe, {}) }), visibleTools.selectLasso ? jsxRuntimeExports.jsx(IconTool, { alt: lassoIconAltText, onClick: () => setActiveTool(distEs6Exports$2.SELECTION_TYPE.POLYGON), isActive: activeTool === distEs6Exports$2.SELECTION_TYPE.POLYGON, children: jsxRuntimeExports.jsx(SvgSelectionLasso, {}) }) : null, jsxRuntimeExports.jsx(IconButton, { alt: "click to recenter", onClick: () => onRecenterButtonCLick(), "aria-label": "Recenter scatterplot view", children: jsxRuntimeExports.jsx(CenterFocusStrong, {}) })] });
150058
+ return jsxRuntimeExports.jsxs("div", { className: classes.tool, children: [visibleTools.pan && jsxRuntimeExports.jsx(IconTool, { alt: pointerIconAltText, onClick: () => setActiveTool(null), isActive: activeTool === null, children: jsxRuntimeExports.jsx(SvgNearMe, {}) }), visibleTools.selectLasso ? jsxRuntimeExports.jsx(IconTool, { alt: lassoIconAltText, onClick: () => setActiveTool(distEs6Exports$2.SELECTION_TYPE.POLYGON), isActive: activeTool === distEs6Exports$2.SELECTION_TYPE.POLYGON, children: jsxRuntimeExports.jsx(SvgSelectionLasso, {}) }) : null, visibleTools.recenter ? jsxRuntimeExports.jsx(IconButton, { alt: "click to recenter", onClick: () => onRecenterButtonCLick(), "aria-label": "Recenter scatterplot view", children: jsxRuntimeExports.jsx(CenterFocusStrong, {}) }) : null] });
150054
150059
  }
150055
150060
  const getCursorWithTool = () => "crosshair";
150056
150061
  const getCursor = (interactionState) => interactionState.isDragging ? "grabbing" : "default";
@@ -150285,7 +150290,7 @@ class AbstractSpatialOrScatterplot extends PureComponent {
150285
150290
  */
150286
150291
  render() {
150287
150292
  var _a3, _b2, _c, _d;
150288
- const { deckRef, viewState, uuid, hideTools, orbitAxis } = this.props;
150293
+ const { deckRef, viewState, uuid, hideTools, hideRecenter, orbitAxis } = this.props;
150289
150294
  const { gl, tool } = this.state;
150290
150295
  const layers = this.getLayers();
150291
150296
  const use3d = this.use3d();
@@ -150294,7 +150299,8 @@ class AbstractSpatialOrScatterplot extends PureComponent {
150294
150299
  const useDevicePixels = !use3d && (((_b2 = (_a3 = this.obsSegmentationsData) == null ? void 0 : _a3.shape) == null ? void 0 : _b2[0]) < 1e5 || ((_d = (_c = this.obsLocationsData) == null ? void 0 : _c.shape) == null ? void 0 : _d[1]) < 1e5);
150295
150300
  return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(ToolMenu, { activeTool: tool, setActiveTool: this.onToolChange, visibleTools: {
150296
150301
  pan: showPanTool && !hideTools,
150297
- selectLasso: showCellSelectionTools && !hideTools
150302
+ selectLasso: showCellSelectionTools && !hideTools,
150303
+ recenter: !hideRecenter
150298
150304
  }, recenterOnClick: this.recenter }), jsxRuntimeExports.jsx(DeckGL, { id: `deckgl-overlay-${uuid}`, ref: deckRef, views: [
150299
150305
  use3d ? new OrbitView({ id: "orbit", controller: true, orbitAxis }) : new OrthographicView({
150300
150306
  id: "ortho"
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D, E } from "./index-FjD__8Hd.js";
1
+ import { D, E } from "./index-CAZiCmfU.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-FjD__8Hd.js";
1
+ import { B as BaseDecoder } from "./index-CAZiCmfU.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-FjD__8Hd.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-CAZiCmfU.js";
3
3
  const LercParameters = {
4
4
  AddCompression: 1
5
5
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-FjD__8Hd.js";
1
+ import { B as BaseDecoder } from "./index-CAZiCmfU.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-FjD__8Hd.js";
1
+ import { B as BaseDecoder } from "./index-CAZiCmfU.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-FjD__8Hd.js";
1
+ import { B as BaseDecoder } from "./index-CAZiCmfU.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-FjD__8Hd.js";
1
+ import { B as BaseDecoder } from "./index-CAZiCmfU.js";
2
2
  class WebImageDecoder extends BaseDecoder {
3
3
  constructor() {
4
4
  super();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/scatterplot-embedding",
3
- "version": "3.7.1",
3
+ "version": "3.8.1",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -20,17 +20,17 @@
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.7.1",
24
- "@vitessce/constants-internal": "3.7.1",
25
- "@vitessce/legend": "3.7.1",
26
- "@vitessce/scatterplot": "3.7.1",
27
- "@vitessce/sets-utils": "3.7.1",
28
- "@vitessce/utils": "3.7.1",
29
- "@vitessce/vit-s": "3.7.1"
23
+ "@vitessce/styles": "3.8.1",
24
+ "@vitessce/constants-internal": "3.8.1",
25
+ "@vitessce/legend": "3.8.1",
26
+ "@vitessce/scatterplot": "3.8.1",
27
+ "@vitessce/sets-utils": "3.8.1",
28
+ "@vitessce/utils": "3.8.1",
29
+ "@vitessce/vit-s": "3.8.1"
30
30
  },
31
31
  "devDependencies": {
32
- "react": "^18.0.0",
33
- "react-dom": "^18.0.0",
32
+ "react": "18.3.1",
33
+ "react-dom": "18.3.1",
34
34
  "vite": "^7.0.0",
35
35
  "vitest": "^3.1.4"
36
36
  },