@vitessce/scatterplot-gating 3.5.12 → 3.6.0

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,7 +1,4 @@
1
- import { B as BaseDecoder } from "./index-358efa8c.js";
2
- import "react";
3
- import "@vitessce/vit-s";
4
- import "react-dom";
1
+ import { B as BaseDecoder } from "./index-BFhAkzQo.js";
5
2
  class RawDecoder extends BaseDecoder {
6
3
  decodeBlock(buffer) {
7
4
  return buffer;
@@ -1,7 +1,4 @@
1
- import { B as BaseDecoder } from "./index-358efa8c.js";
2
- import "react";
3
- import "@vitessce/vit-s";
4
- import "react-dom";
1
+ import { B as BaseDecoder } from "./index-BFhAkzQo.js";
5
2
  class WebImageDecoder extends BaseDecoder {
6
3
  constructor() {
7
4
  super();
@@ -1 +1 @@
1
- {"version":3,"file":"GatingScatterplotOptions.d.ts","sourceRoot":"","sources":["../src/GatingScatterplotOptions.js"],"names":[],"mappings":"AAMA,0EAsIC"}
1
+ {"version":3,"file":"GatingScatterplotOptions.d.ts","sourceRoot":"","sources":["../src/GatingScatterplotOptions.js"],"names":[],"mappings":"AAMA,0EAoIC"}
@@ -1,13 +1,13 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import { useId } from 'react-aria';
4
- import { TableCell, TableRow, TextField } from '@material-ui/core';
4
+ import { TableCell, TableRow, TextField } from '@vitessce/styles';
5
5
  import { usePlotOptionsStyles, OptionSelect } from '@vitessce/vit-s';
6
6
  import { capitalize, pluralize as plur } from '@vitessce/utils';
7
7
  export default function GatingScatterplotOptions(props) {
8
8
  const { featureType, gatingFeatureSelectionX, setGatingFeatureSelectionX, gatingFeatureSelectionY, setGatingFeatureSelectionY, gatingFeatureValueTransform, setGatingFeatureValueTransform, gatingFeatureValueTransformCoefficient, setGatingFeatureValueTransformCoefficient, geneSelectOptions, transformOptions, } = props;
9
9
  const gatingScatterplotOptionsId = useId();
10
- const classes = usePlotOptionsStyles();
10
+ const { classes } = usePlotOptionsStyles();
11
11
  // Handlers for custom option field changes.
12
12
  const handleGeneSelectChange = (event) => {
13
13
  const { options } = event.target;
@@ -49,7 +49,5 @@ export default function GatingScatterplotOptions(props) {
49
49
  id: `scatterplot-gating-gene-select-${gatingScatterplotOptionsId}`,
50
50
  }, children: geneSelectOptions.map(name => (_jsx("option", { value: name, children: name }, name))) }) })] }), _jsxs(TableRow, { children: [_jsx(TableCell, { className: classes.labelCell, variant: "head", scope: "row", children: _jsx("label", { htmlFor: `scatterplot-gating-transform-select-${gatingScatterplotOptionsId}`, children: "Transform" }) }), _jsx(TableCell, { className: classes.inputCell, variant: "body", children: _jsx(OptionSelect, { className: classes.select, value: gatingFeatureValueTransform === null ? '' : gatingFeatureValueTransform, onChange: handleTransformChange, inputProps: {
51
51
  id: `scatterplot-gating-transform-select-${gatingScatterplotOptionsId}`,
52
- }, children: transformOptions.map(opt => (_jsx("option", { value: opt.value === null ? '' : opt.value, children: opt.name }, opt.name))) }) })] }), _jsxs(TableRow, { children: [_jsx(TableCell, { className: classes.labelCell, variant: "head", scope: "row", children: _jsx("label", { htmlFor: `scatterplot-gating-transform-coefficient-${gatingScatterplotOptionsId}`, children: "Transform Coefficient" }) }), _jsx(TableCell, { className: classes.inputCell, variant: "body", children: _jsx(TextField, { label: "Transform Coefficient", type: "number", onChange: handleTransformCoefficientChange, value: gatingFeatureValueTransformCoefficient, InputLabelProps: {
53
- shrink: true,
54
- }, id: `scatterplot-gating-transform-coefficient-${gatingScatterplotOptionsId}` }) })] })] }));
52
+ }, children: transformOptions.map(opt => (_jsx("option", { value: opt.value === null ? '' : opt.value, children: opt.name }, opt.name))) }) })] }), _jsxs(TableRow, { children: [_jsx(TableCell, { className: classes.labelCell, variant: "head", scope: "row", children: _jsx("label", { htmlFor: `scatterplot-gating-transform-coefficient-${gatingScatterplotOptionsId}`, children: "Transform Coefficient" }) }), _jsx(TableCell, { className: classes.inputCell, variant: "body", children: _jsx(TextField, { label: "Transform Coefficient", type: "number", onChange: handleTransformCoefficientChange, value: gatingFeatureValueTransformCoefficient, slotProps: { input: { shrink: true } }, id: `scatterplot-gating-transform-coefficient-${gatingScatterplotOptionsId}` }) })] })] }));
55
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/scatterplot-gating",
3
- "version": "3.5.12",
3
+ "version": "3.6.0",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -16,23 +16,23 @@
16
16
  "dist-tsc"
17
17
  ],
18
18
  "dependencies": {
19
- "@material-ui/core": "~4.12.3",
20
19
  "d3-array": "^2.4.0",
21
20
  "lodash-es": "^4.17.21",
22
21
  "react-aria": "^3.28.0",
23
- "@vitessce/constants-internal": "3.5.12",
24
- "@vitessce/scatterplot": "3.5.12",
25
- "@vitessce/sets-utils": "3.5.12",
26
- "@vitessce/utils": "3.5.12",
27
- "@vitessce/vit-s": "3.5.12"
22
+ "@vitessce/styles": "3.6.0",
23
+ "@vitessce/constants-internal": "3.6.0",
24
+ "@vitessce/scatterplot": "3.6.0",
25
+ "@vitessce/sets-utils": "3.6.0",
26
+ "@vitessce/utils": "3.6.0",
27
+ "@vitessce/vit-s": "3.6.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "react": "^18.0.0",
31
- "vite": "^4.3.0",
32
- "vitest": "^0.32.2"
31
+ "vite": "^6.3.5",
32
+ "vitest": "^3.1.4"
33
33
  },
34
34
  "peerDependencies": {
35
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
35
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
36
36
  },
37
37
  "scripts": {
38
38
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { useId } from 'react-aria';
3
- import { TableCell, TableRow, TextField } from '@material-ui/core';
3
+ import { TableCell, TableRow, TextField } from '@vitessce/styles';
4
4
  import { usePlotOptionsStyles, OptionSelect } from '@vitessce/vit-s';
5
5
  import { capitalize, pluralize as plur } from '@vitessce/utils';
6
6
 
@@ -21,7 +21,7 @@ export default function GatingScatterplotOptions(props) {
21
21
 
22
22
  const gatingScatterplotOptionsId = useId();
23
23
 
24
- const classes = usePlotOptionsStyles();
24
+ const { classes } = usePlotOptionsStyles();
25
25
 
26
26
  // Handlers for custom option field changes.
27
27
  const handleGeneSelectChange = (event) => {
@@ -129,9 +129,7 @@ export default function GatingScatterplotOptions(props) {
129
129
  type="number"
130
130
  onChange={handleTransformCoefficientChange}
131
131
  value={gatingFeatureValueTransformCoefficient}
132
- InputLabelProps={{
133
- shrink: true,
134
- }}
132
+ slotProps={{ input: { shrink: true } }}
135
133
  id={`scatterplot-gating-transform-coefficient-${gatingScatterplotOptionsId}`}
136
134
  />
137
135
  </TableCell>
@@ -1,13 +0,0 @@
1
- import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { B as BaseDecoder } from "./index-358efa8c.js";
3
- import "react";
4
- import "@vitessce/vit-s";
5
- import "react-dom";
6
- class DeflateDecoder extends BaseDecoder {
7
- decodeBlock(buffer) {
8
- return inflate_1(new Uint8Array(buffer)).buffer;
9
- }
10
- }
11
- export {
12
- DeflateDecoder as default
13
- };