@vitessce/statistical-plots 3.8.13 → 3.9.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-BmYvVUY8.js";
2
+ import { B as BaseDecoder } from "./index-DQNZPvU7.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -279,6 +279,7 @@ const CoordinationType$1 = {
279
279
  OBS_SET_HIGHLIGHT: "obsSetHighlight",
280
280
  OBS_SET_EXPANSION: "obsSetExpansion",
281
281
  OBS_SET_COLOR: "obsSetColor",
282
+ FEATURE_COLOR: "featureColor",
282
283
  FEATURE_HIGHLIGHT: "featureHighlight",
283
284
  FEATURE_SELECTION: "featureSelection",
284
285
  FEATURE_SET_SELECTION: "featureSetSelection",
@@ -865,6 +866,8 @@ const COMPONENT_COORDINATION_TYPES = {
865
866
  CoordinationType$1.OBS_SET_FILTER,
866
867
  CoordinationType$1.OBS_SET_HIGHLIGHT,
867
868
  CoordinationType$1.OBS_SET_COLOR,
869
+ CoordinationType$1.FEATURE_COLOR,
870
+ CoordinationType$1.FEATURE_FILTER_MODE,
868
871
  CoordinationType$1.FEATURE_HIGHLIGHT,
869
872
  CoordinationType$1.FEATURE_SELECTION,
870
873
  CoordinationType$1.FEATURE_VALUE_COLORMAP,
@@ -1079,6 +1082,8 @@ const COMPONENT_COORDINATION_TYPES = {
1079
1082
  CoordinationType$1.SPATIAL_SPOT_STROKE_WIDTH,
1080
1083
  CoordinationType$1.SPATIAL_LAYER_COLOR,
1081
1084
  CoordinationType$1.OBS_COLOR_ENCODING,
1085
+ CoordinationType$1.FEATURE_COLOR,
1086
+ CoordinationType$1.FEATURE_FILTER_MODE,
1082
1087
  CoordinationType$1.FEATURE_VALUE_COLORMAP,
1083
1088
  CoordinationType$1.FEATURE_VALUE_COLORMAP_RANGE,
1084
1089
  CoordinationType$1.FEATURE_SELECTION,
@@ -11474,7 +11479,9 @@ const obsSegmentationsSpatialdataSchema = z.object({
11474
11479
  const obsPointsSpatialdataSchema = z.object({
11475
11480
  path: z.string().describe("The path to the point data."),
11476
11481
  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."),
11477
- 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.')
11482
+ 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.'),
11483
+ 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)."),
11484
+ 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".')
11478
11485
  });
11479
11486
  z.object({
11480
11487
  path: z.string(),
@@ -38725,6 +38732,90 @@ ListItemText.propTypes = {
38725
38732
  */
38726
38733
  sx: _pt.oneOfType([_pt.arrayOf(_pt.oneOfType([_pt.func, _pt.object, _pt.bool])), _pt.func, _pt.object])
38727
38734
  };
38735
+ function getListItemIconUtilityClass(slot) {
38736
+ return generateUtilityClass("MuiListItemIcon", slot);
38737
+ }
38738
+ const listItemIconClasses = generateUtilityClasses("MuiListItemIcon", ["root", "alignItemsFlexStart"]);
38739
+ const useUtilityClasses$10 = (ownerState) => {
38740
+ const {
38741
+ alignItems,
38742
+ classes: classes2
38743
+ } = ownerState;
38744
+ const slots = {
38745
+ root: ["root", alignItems === "flex-start" && "alignItemsFlexStart"]
38746
+ };
38747
+ return composeClasses(slots, getListItemIconUtilityClass, classes2);
38748
+ };
38749
+ const ListItemIconRoot = styled("div", {
38750
+ name: "MuiListItemIcon",
38751
+ slot: "Root",
38752
+ overridesResolver: (props, styles2) => {
38753
+ const {
38754
+ ownerState
38755
+ } = props;
38756
+ return [styles2.root, ownerState.alignItems === "flex-start" && styles2.alignItemsFlexStart];
38757
+ }
38758
+ })(memoTheme(({
38759
+ theme
38760
+ }) => ({
38761
+ minWidth: 56,
38762
+ color: (theme.vars || theme).palette.action.active,
38763
+ flexShrink: 0,
38764
+ display: "inline-flex",
38765
+ variants: [{
38766
+ props: {
38767
+ alignItems: "flex-start"
38768
+ },
38769
+ style: {
38770
+ marginTop: 8
38771
+ }
38772
+ }]
38773
+ })));
38774
+ const ListItemIcon = /* @__PURE__ */ React.forwardRef(function ListItemIcon2(inProps, ref2) {
38775
+ const props = useDefaultProps({
38776
+ props: inProps,
38777
+ name: "MuiListItemIcon"
38778
+ });
38779
+ const {
38780
+ className,
38781
+ ...other
38782
+ } = props;
38783
+ const context2 = React.useContext(ListContext);
38784
+ const ownerState = {
38785
+ ...props,
38786
+ alignItems: context2.alignItems
38787
+ };
38788
+ const classes2 = useUtilityClasses$10(ownerState);
38789
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIconRoot, {
38790
+ className: clsx(classes2.root, className),
38791
+ ownerState,
38792
+ ref: ref2,
38793
+ ...other
38794
+ });
38795
+ });
38796
+ ListItemIcon.propTypes = {
38797
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
38798
+ // │ These PropTypes are generated from the TypeScript type definitions. │
38799
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
38800
+ // └─────────────────────────────────────────────────────────────────────┘
38801
+ /**
38802
+ * The content of the component, normally `Icon`, `SvgIcon`,
38803
+ * or a `@mui/icons-material` SVG icon element.
38804
+ */
38805
+ children: _pt.node,
38806
+ /**
38807
+ * Override or extend the styles applied to the component.
38808
+ */
38809
+ classes: _pt.object,
38810
+ /**
38811
+ * @ignore
38812
+ */
38813
+ className: _pt.string,
38814
+ /**
38815
+ * The system prop that allows defining system overrides as well as additional CSS styles.
38816
+ */
38817
+ sx: _pt.oneOfType([_pt.arrayOf(_pt.oneOfType([_pt.func, _pt.object, _pt.bool])), _pt.func, _pt.object])
38818
+ };
38728
38819
  function getScrollbarSize(win = window) {
38729
38820
  const documentWidth = win.document.documentElement.clientWidth;
38730
38821
  return win.innerWidth - documentWidth;
@@ -38976,7 +39067,7 @@ function getDividerUtilityClass(slot) {
38976
39067
  return generateUtilityClass("MuiDivider", slot);
38977
39068
  }
38978
39069
  const dividerClasses = generateUtilityClasses("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]);
38979
- const useUtilityClasses$10 = (ownerState) => {
39070
+ const useUtilityClasses$$ = (ownerState) => {
38980
39071
  const {
38981
39072
  absolute,
38982
39073
  children: children2,
@@ -39190,7 +39281,7 @@ const Divider$1 = /* @__PURE__ */ React.forwardRef(function Divider2(inProps, re
39190
39281
  textAlign: textAlign2,
39191
39282
  variant
39192
39283
  };
39193
- const classes2 = useUtilityClasses$10(ownerState);
39284
+ const classes2 = useUtilityClasses$$(ownerState);
39194
39285
  return /* @__PURE__ */ jsxRuntimeExports.jsx(DividerRoot, {
39195
39286
  as: component,
39196
39287
  className: clsx(classes2.root, className),
@@ -39272,90 +39363,6 @@ Divider$1.propTypes = {
39272
39363
  */
39273
39364
  variant: _pt.oneOfType([_pt.oneOf(["fullWidth", "inset", "middle"]), _pt.string])
39274
39365
  };
39275
- function getListItemIconUtilityClass(slot) {
39276
- return generateUtilityClass("MuiListItemIcon", slot);
39277
- }
39278
- const listItemIconClasses = generateUtilityClasses("MuiListItemIcon", ["root", "alignItemsFlexStart"]);
39279
- const useUtilityClasses$$ = (ownerState) => {
39280
- const {
39281
- alignItems,
39282
- classes: classes2
39283
- } = ownerState;
39284
- const slots = {
39285
- root: ["root", alignItems === "flex-start" && "alignItemsFlexStart"]
39286
- };
39287
- return composeClasses(slots, getListItemIconUtilityClass, classes2);
39288
- };
39289
- const ListItemIconRoot = styled("div", {
39290
- name: "MuiListItemIcon",
39291
- slot: "Root",
39292
- overridesResolver: (props, styles2) => {
39293
- const {
39294
- ownerState
39295
- } = props;
39296
- return [styles2.root, ownerState.alignItems === "flex-start" && styles2.alignItemsFlexStart];
39297
- }
39298
- })(memoTheme(({
39299
- theme
39300
- }) => ({
39301
- minWidth: 56,
39302
- color: (theme.vars || theme).palette.action.active,
39303
- flexShrink: 0,
39304
- display: "inline-flex",
39305
- variants: [{
39306
- props: {
39307
- alignItems: "flex-start"
39308
- },
39309
- style: {
39310
- marginTop: 8
39311
- }
39312
- }]
39313
- })));
39314
- const ListItemIcon = /* @__PURE__ */ React.forwardRef(function ListItemIcon2(inProps, ref2) {
39315
- const props = useDefaultProps({
39316
- props: inProps,
39317
- name: "MuiListItemIcon"
39318
- });
39319
- const {
39320
- className,
39321
- ...other
39322
- } = props;
39323
- const context2 = React.useContext(ListContext);
39324
- const ownerState = {
39325
- ...props,
39326
- alignItems: context2.alignItems
39327
- };
39328
- const classes2 = useUtilityClasses$$(ownerState);
39329
- return /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIconRoot, {
39330
- className: clsx(classes2.root, className),
39331
- ownerState,
39332
- ref: ref2,
39333
- ...other
39334
- });
39335
- });
39336
- ListItemIcon.propTypes = {
39337
- // ┌────────────────────────────── Warning ──────────────────────────────┐
39338
- // │ These PropTypes are generated from the TypeScript type definitions. │
39339
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
39340
- // └─────────────────────────────────────────────────────────────────────┘
39341
- /**
39342
- * The content of the component, normally `Icon`, `SvgIcon`,
39343
- * or a `@mui/icons-material` SVG icon element.
39344
- */
39345
- children: _pt.node,
39346
- /**
39347
- * Override or extend the styles applied to the component.
39348
- */
39349
- classes: _pt.object,
39350
- /**
39351
- * @ignore
39352
- */
39353
- className: _pt.string,
39354
- /**
39355
- * The system prop that allows defining system overrides as well as additional CSS styles.
39356
- */
39357
- sx: _pt.oneOfType([_pt.arrayOf(_pt.oneOfType([_pt.func, _pt.object, _pt.bool])), _pt.func, _pt.object])
39358
- };
39359
39366
  function getMenuItemUtilityClass(slot) {
39360
39367
  return generateUtilityClass("MuiMenuItem", slot);
39361
39368
  }
@@ -179150,22 +179157,22 @@ function addDecoder(cases2, importFn) {
179150
179157
  }
179151
179158
  cases2.forEach((c2) => registry$1.set(c2, importFn));
179152
179159
  }
179153
- addDecoder([void 0, 1], () => import("./raw-B56udEa5.js").then((m2) => m2.default));
179154
- addDecoder(5, () => import("./lzw-ahoob13H.js").then((m2) => m2.default));
179160
+ addDecoder([void 0, 1], () => import("./raw-D9gtw8Jf.js").then((m2) => m2.default));
179161
+ addDecoder(5, () => import("./lzw-BtWmo4l4.js").then((m2) => m2.default));
179155
179162
  addDecoder(6, () => {
179156
179163
  throw new Error("old style JPEG compression is not supported.");
179157
179164
  });
179158
- addDecoder(7, () => import("./jpeg-CnRvmB8H.js").then((m2) => m2.default));
179159
- addDecoder([8, 32946], () => import("./deflate-BuiHI4Et.js").then((m2) => m2.default));
179160
- addDecoder(32773, () => import("./packbits-Ckd3nQz8.js").then((m2) => m2.default));
179165
+ addDecoder(7, () => import("./jpeg-6eOh2nfm.js").then((m2) => m2.default));
179166
+ addDecoder([8, 32946], () => import("./deflate-SjqVcI9s.js").then((m2) => m2.default));
179167
+ addDecoder(32773, () => import("./packbits-tosASsXM.js").then((m2) => m2.default));
179161
179168
  addDecoder(
179162
179169
  34887,
179163
- () => import("./lerc-DdM66WTL.js").then(async (m2) => {
179170
+ () => import("./lerc-DqyheC4U.js").then(async (m2) => {
179164
179171
  await m2.zstd.init();
179165
179172
  return m2;
179166
179173
  }).then((m2) => m2.default)
179167
179174
  );
179168
- addDecoder(50001, () => import("./webimage-CKIhq6Gi.js").then((m2) => m2.default));
179175
+ addDecoder(50001, () => import("./webimage-DiBGmjKS.js").then((m2) => m2.default));
179169
179176
  function decodeRowAcc(row, stride) {
179170
179177
  let length2 = row.length - stride;
179171
179178
  let offset2 = 0;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b, f, C, e, a, i, D, h, E, F, c, d, T, V } from "./index-BmYvVUY8.js";
1
+ import { b, f, C, e, a, i, D, h, E, F, c, d, T, V } from "./index-DQNZPvU7.js";
2
2
  export {
3
3
  b as CellSetCompositionBarPlotSubscriber,
4
4
  f as CellSetExpressionPlot,
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-BmYvVUY8.js";
1
+ import { B as BaseDecoder } from "./index-DQNZPvU7.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-BmYvVUY8.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-DQNZPvU7.js";
3
3
  const LercParameters = {
4
4
  AddCompression: 1
5
5
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-BmYvVUY8.js";
1
+ import { B as BaseDecoder } from "./index-DQNZPvU7.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-BmYvVUY8.js";
1
+ import { B as BaseDecoder } from "./index-DQNZPvU7.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-BmYvVUY8.js";
1
+ import { B as BaseDecoder } from "./index-DQNZPvU7.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-BmYvVUY8.js";
1
+ import { B as BaseDecoder } from "./index-DQNZPvU7.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/statistical-plots",
3
- "version": "3.8.13",
3
+ "version": "3.9.1",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -28,13 +28,13 @@
28
28
  "react-aria": "^3.28.0",
29
29
  "internmap": "^2.0.3",
30
30
  "uuid": "^9.0.0",
31
- "@vitessce/styles": "3.8.13",
32
- "@vitessce/constants-internal": "3.8.13",
33
- "@vitessce/utils": "3.8.13",
34
- "@vitessce/sets-utils": "3.8.13",
35
- "@vitessce/vega": "3.8.13",
36
- "@vitessce/vit-s": "3.8.13",
37
- "@vitessce/gl": "3.8.13"
31
+ "@vitessce/styles": "3.9.1",
32
+ "@vitessce/constants-internal": "3.9.1",
33
+ "@vitessce/sets-utils": "3.9.1",
34
+ "@vitessce/vega": "3.9.1",
35
+ "@vitessce/utils": "3.9.1",
36
+ "@vitessce/gl": "3.9.1",
37
+ "@vitessce/vit-s": "3.9.1"
38
38
  },
39
39
  "devDependencies": {
40
40
  "react": "18.3.1",