@vitessce/scatterplot-gating 3.9.0 → 3.9.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-SxljTded.js";
2
- import { B as BaseDecoder } from "./index-Cw0c_snb.js";
2
+ import { B as BaseDecoder } from "./index-DVfFavh_.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -11104,7 +11104,9 @@ const obsSegmentationsSpatialdataSchema = z.object({
11104
11104
  const obsPointsSpatialdataSchema = z.object({
11105
11105
  path: z.string().describe("The path to the point data."),
11106
11106
  tablePath: z.string().optional().describe("The path to a table which annotates the points. If available but not specified, the spot identifiers may not be aligned with associated tabular data as expected."),
11107
- coordinateSystem: z.string().optional().describe('The name of a coordinate transformation output used to transform the image. If not provided, the "global" coordinate system is assumed.')
11107
+ coordinateSystem: z.string().optional().describe('The name of a coordinate transformation output used to transform the image. If not provided, the "global" coordinate system is assumed.'),
11108
+ featureIndexColumn: z.string().optional().describe("The name of the column in the table which contains the feature (e.g., gene) indices associated with each point (aligned with the table var.index dataframe column)."),
11109
+ mortonCodeColumn: z.string().optional().describe('The name of the column in the table which contains the Morton codes for each point, used for efficient spatial querying. If not provided, Vitessce will assume the default column name "morton_code_2d".')
11108
11110
  });
11109
11111
  z.object({
11110
11112
  path: z.string(),
@@ -123156,22 +123158,22 @@ function addDecoder(cases, importFn) {
123156
123158
  }
123157
123159
  cases.forEach((c2) => registry$1.set(c2, importFn));
123158
123160
  }
123159
- addDecoder([void 0, 1], () => import("./raw-CAGWrnbF.js").then((m2) => m2.default));
123160
- addDecoder(5, () => import("./lzw-BK56vC2q.js").then((m2) => m2.default));
123161
+ addDecoder([void 0, 1], () => import("./raw-BUqgQjTn.js").then((m2) => m2.default));
123162
+ addDecoder(5, () => import("./lzw-TcgFT-gP.js").then((m2) => m2.default));
123161
123163
  addDecoder(6, () => {
123162
123164
  throw new Error("old style JPEG compression is not supported.");
123163
123165
  });
123164
- addDecoder(7, () => import("./jpeg-BLK-iI82.js").then((m2) => m2.default));
123165
- addDecoder([8, 32946], () => import("./deflate-DFvh3sRR.js").then((m2) => m2.default));
123166
- addDecoder(32773, () => import("./packbits-BcOtODLZ.js").then((m2) => m2.default));
123166
+ addDecoder(7, () => import("./jpeg-rVxXlThu.js").then((m2) => m2.default));
123167
+ addDecoder([8, 32946], () => import("./deflate-D9OkgEWJ.js").then((m2) => m2.default));
123168
+ addDecoder(32773, () => import("./packbits-BY5eSCr6.js").then((m2) => m2.default));
123167
123169
  addDecoder(
123168
123170
  34887,
123169
- () => import("./lerc-az5V_idT.js").then(async (m2) => {
123171
+ () => import("./lerc-DzkC6Fdj.js").then(async (m2) => {
123170
123172
  await m2.zstd.init();
123171
123173
  return m2;
123172
123174
  }).then((m2) => m2.default)
123173
123175
  );
123174
- addDecoder(50001, () => import("./webimage-B2OUU2hP.js").then((m2) => m2.default));
123176
+ addDecoder(50001, () => import("./webimage-Bb-l68O4.js").then((m2) => m2.default));
123175
123177
  function decodeRowAcc(row, stride) {
123176
123178
  let length2 = row.length - stride;
123177
123179
  let offset2 = 0;
@@ -157925,21 +157927,20 @@ Popper$1.Utils = (typeof window !== "undefined" ? window : global).PopperUtils;
157925
157927
  Popper$1.placements = placements;
157926
157928
  Popper$1.Defaults = Defaults;
157927
157929
  function createChainedFunction(...funcs) {
157928
- return funcs.reduce((acc, func) => {
157929
- if (func == null) {
157930
- return acc;
157931
- }
157932
- {
157933
- if (typeof func !== "function") {
157934
- console.error("Material-UI: Invalid Argument Type, must only provide functions, undefined, or null.");
157930
+ return funcs.reduce(
157931
+ (acc, func) => {
157932
+ if (func == null) {
157933
+ return acc;
157935
157934
  }
157935
+ return function chainedFunction(...args) {
157936
+ acc.apply(this, args);
157937
+ func.apply(this, args);
157938
+ };
157939
+ },
157940
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
157941
+ () => {
157936
157942
  }
157937
- return function chainedFunction(...args) {
157938
- acc.apply(this, args);
157939
- func.apply(this, args);
157940
- };
157941
- }, () => {
157942
- });
157943
+ );
157943
157944
  }
157944
157945
  function setRef(ref, value) {
157945
157946
  if (typeof ref === "function") {
@@ -157978,7 +157979,7 @@ function flipPlacement(placement, theme) {
157978
157979
  }
157979
157980
  }
157980
157981
  function getAnchorEl(anchorEl) {
157981
- return typeof anchorEl === "function" ? anchorEl() : anchorEl;
157982
+ return typeof anchorEl === "function" ? anchorEl(document.body) : anchorEl;
157982
157983
  }
157983
157984
  const useEnhancedEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
157984
157985
  const defaultPopperOptions = {};
@@ -158008,25 +158009,18 @@ const Popper = React.forwardRef((props, ref) => {
158008
158009
  }
158009
158010
  if (popperRef.current) {
158010
158011
  popperRef.current.destroy();
158011
- handlePopperRefRef.current(null);
158012
+ if (handlePopperRefRef.current) {
158013
+ setRef(handlePopperRefRef.current, null);
158014
+ }
158012
158015
  }
158013
158016
  const handlePopperUpdate = (data) => {
158014
158017
  setPlacement(data.placement);
158015
158018
  };
158016
- const resolvedAnchorEl = getAnchorEl(anchorEl);
158017
- {
158018
- if (resolvedAnchorEl && resolvedAnchorEl.nodeType === 1) {
158019
- const box = resolvedAnchorEl.getBoundingClientRect();
158020
- if (box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
158021
- console.warn([
158022
- "Material-UI: The `anchorEl` prop provided to the component is invalid.",
158023
- "The anchor element should be part of the document layout.",
158024
- "Make sure the element is present in the document or that it's not display none."
158025
- ].join("\n"));
158026
- }
158027
- }
158019
+ const anchorElement = getAnchorEl(anchorEl);
158020
+ if (!anchorElement) {
158021
+ return;
158028
158022
  }
158029
- const popper = new Popper$1(getAnchorEl(anchorEl), tooltipRef.current, {
158023
+ const popper = new Popper$1(anchorElement, tooltipRef.current, {
158030
158024
  placement: rtlPlacement,
158031
158025
  ...popperOptions,
158032
158026
  modifiers: {
@@ -158044,7 +158038,9 @@ const Popper = React.forwardRef((props, ref) => {
158044
158038
  onCreate: createChainedFunction(handlePopperUpdate, popperOptions.onCreate),
158045
158039
  onUpdate: createChainedFunction(handlePopperUpdate, popperOptions.onUpdate)
158046
158040
  });
158047
- handlePopperRefRef.current(popper);
158041
+ if (handlePopperRefRef.current) {
158042
+ setRef(handlePopperRefRef.current, popper);
158043
+ }
158048
158044
  }, [anchorEl, disablePortal, modifiers2, open, rtlPlacement, popperOptions]);
158049
158045
  const handleRef = React.useCallback((node2) => {
158050
158046
  setRef(ownRef, node2);
@@ -158058,7 +158054,9 @@ const Popper = React.forwardRef((props, ref) => {
158058
158054
  return;
158059
158055
  }
158060
158056
  popperRef.current.destroy();
158061
- handlePopperRefRef.current(null);
158057
+ if (handlePopperRefRef.current) {
158058
+ setRef(handlePopperRefRef.current, null);
158059
+ }
158062
158060
  };
158063
158061
  const handleExited = () => {
158064
158062
  setExited(true);
@@ -158089,7 +158087,7 @@ const Popper = React.forwardRef((props, ref) => {
158089
158087
  // Fix Popper.js display issue
158090
158088
  top: 0,
158091
158089
  left: 0,
158092
- display: !open && keepMounted && !transition ? "none" : null,
158090
+ display: !open && keepMounted && !transition ? "none" : void 0,
158093
158091
  ...style2
158094
158092
  }, children: typeof children === "function" ? children(childProps) : children }) });
158095
158093
  });
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { G } from "./index-Cw0c_snb.js";
1
+ import { G } from "./index-DVfFavh_.js";
2
2
  export {
3
3
  G as GatingSubscriber
4
4
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-Cw0c_snb.js";
1
+ import { B as BaseDecoder } from "./index-DVfFavh_.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-Cw0c_snb.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-DVfFavh_.js";
3
3
  const LercParameters = {
4
4
  AddCompression: 1
5
5
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-Cw0c_snb.js";
1
+ import { B as BaseDecoder } from "./index-DVfFavh_.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-Cw0c_snb.js";
1
+ import { B as BaseDecoder } from "./index-DVfFavh_.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-Cw0c_snb.js";
1
+ import { B as BaseDecoder } from "./index-DVfFavh_.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-Cw0c_snb.js";
1
+ import { B as BaseDecoder } from "./index-DVfFavh_.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-gating",
3
- "version": "3.9.0",
3
+ "version": "3.9.2",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -19,12 +19,12 @@
19
19
  "d3-array": "^2.4.0",
20
20
  "lodash-es": "^4.17.21",
21
21
  "react-aria": "^3.28.0",
22
- "@vitessce/styles": "3.9.0",
23
- "@vitessce/constants-internal": "3.9.0",
24
- "@vitessce/scatterplot": "3.9.0",
25
- "@vitessce/sets-utils": "3.9.0",
26
- "@vitessce/utils": "3.9.0",
27
- "@vitessce/vit-s": "3.9.0"
22
+ "@vitessce/styles": "3.9.2",
23
+ "@vitessce/scatterplot": "3.9.2",
24
+ "@vitessce/constants-internal": "3.9.2",
25
+ "@vitessce/sets-utils": "3.9.2",
26
+ "@vitessce/utils": "3.9.2",
27
+ "@vitessce/vit-s": "3.9.2"
28
28
  },
29
29
  "devDependencies": {
30
30
  "react": "18.3.1",