@vitessce/scatterplot-embedding 3.8.0 → 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-Bq7XVVZk.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,7 +9558,7 @@ const ViewType$1 = {
9558
9558
  SCATTERPLOT: "scatterplot",
9559
9559
  SPATIAL: "spatial",
9560
9560
  SPATIAL_BETA: "spatialBeta",
9561
- SPATIAL_ACCELERATED: "spatialAccelerated",
9561
+ // SPATIAL_ACCELERATED: 'spatialAccelerated',
9562
9562
  HEATMAP: "heatmap",
9563
9563
  LAYER_CONTROLLER: "layerController",
9564
9564
  LAYER_CONTROLLER_BETA: "layerControllerBeta",
@@ -123328,22 +123328,22 @@ function addDecoder(cases, importFn) {
123328
123328
  }
123329
123329
  cases.forEach((c2) => registry$1.set(c2, importFn));
123330
123330
  }
123331
- addDecoder([void 0, 1], () => import("./raw-vP3CdH6_.js").then((m2) => m2.default));
123332
- addDecoder(5, () => import("./lzw-UC-SuV7m.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));
123333
123333
  addDecoder(6, () => {
123334
123334
  throw new Error("old style JPEG compression is not supported.");
123335
123335
  });
123336
- addDecoder(7, () => import("./jpeg-SiblH6Cu.js").then((m2) => m2.default));
123337
- addDecoder([8, 32946], () => import("./deflate-BVs8YiyO.js").then((m2) => m2.default));
123338
- addDecoder(32773, () => import("./packbits-Bpsmxlv2.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));
123339
123339
  addDecoder(
123340
123340
  34887,
123341
- () => import("./lerc-CAFxbgCZ.js").then(async (m2) => {
123341
+ () => import("./lerc-B731iHgp.js").then(async (m2) => {
123342
123342
  await m2.zstd.init();
123343
123343
  return m2;
123344
123344
  }).then((m2) => m2.default)
123345
123345
  );
123346
- addDecoder(50001, () => import("./webimage-DR1LwE21.js").then((m2) => m2.default));
123346
+ addDecoder(50001, () => import("./webimage-SEug2Cmk.js").then((m2) => m2.default));
123347
123347
  function decodeRowAcc(row, stride) {
123348
123348
  let length2 = row.length - stride;
123349
123349
  let offset2 = 0;
@@ -150049,13 +150049,13 @@ function IconButton(props) {
150049
150049
  function ToolMenu(props) {
150050
150050
  const pointerIconAltText = "Pointer tool";
150051
150051
  const lassoIconAltText = "Select lasso";
150052
- const { setActiveTool, activeTool, visibleTools = { pan: true, selectLasso: true }, recenterOnClick = () => {
150052
+ const { setActiveTool, activeTool, visibleTools = { pan: true, selectLasso: true, recenter: true }, recenterOnClick = () => {
150053
150053
  } } = props;
150054
150054
  const { classes } = useStyles$3();
150055
150055
  const onRecenterButtonCLick = () => {
150056
150056
  recenterOnClick();
150057
150057
  };
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, 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] });
150059
150059
  }
150060
150060
  const getCursorWithTool = () => "crosshair";
150061
150061
  const getCursor = (interactionState) => interactionState.isDragging ? "grabbing" : "default";
@@ -150290,7 +150290,7 @@ class AbstractSpatialOrScatterplot extends PureComponent {
150290
150290
  */
150291
150291
  render() {
150292
150292
  var _a3, _b2, _c, _d;
150293
- const { deckRef, viewState, uuid, hideTools, orbitAxis } = this.props;
150293
+ const { deckRef, viewState, uuid, hideTools, hideRecenter, orbitAxis } = this.props;
150294
150294
  const { gl, tool } = this.state;
150295
150295
  const layers = this.getLayers();
150296
150296
  const use3d = this.use3d();
@@ -150299,7 +150299,8 @@ class AbstractSpatialOrScatterplot extends PureComponent {
150299
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);
150300
150300
  return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(ToolMenu, { activeTool: tool, setActiveTool: this.onToolChange, visibleTools: {
150301
150301
  pan: showPanTool && !hideTools,
150302
- selectLasso: showCellSelectionTools && !hideTools
150302
+ selectLasso: showCellSelectionTools && !hideTools,
150303
+ recenter: !hideRecenter
150303
150304
  }, recenterOnClick: this.recenter }), jsxRuntimeExports.jsx(DeckGL, { id: `deckgl-overlay-${uuid}`, ref: deckRef, views: [
150304
150305
  use3d ? new OrbitView({ id: "orbit", controller: true, orbitAxis }) : new OrthographicView({
150305
150306
  id: "ortho"
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D, E } from "./index-Bq7XVVZk.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-Bq7XVVZk.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-Bq7XVVZk.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-Bq7XVVZk.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-Bq7XVVZk.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-Bq7XVVZk.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-Bq7XVVZk.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.8.0",
3
+ "version": "3.8.1",
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.0",
24
- "@vitessce/constants-internal": "3.8.0",
25
- "@vitessce/legend": "3.8.0",
26
- "@vitessce/scatterplot": "3.8.0",
27
- "@vitessce/sets-utils": "3.8.0",
28
- "@vitessce/utils": "3.8.0",
29
- "@vitessce/vit-s": "3.8.0"
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
32
  "react": "18.3.1",