@vitessce/statistical-plots 3.4.0 → 3.4.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.
    
        package/dist/index.js
    CHANGED
    
    | @@ -91419,9 +91419,10 @@ function FeatureBarPlot(props) { | |
| 91419 91419 | 
             
              } = props;
         | 
| 91420 91420 | 
             
              const setsSave = useMemo(() => {
         | 
| 91421 91421 | 
             
                const result = /* @__PURE__ */ new Map();
         | 
| 91422 | 
            -
                cellSetSelection.forEach((obsSetPath) => {
         | 
| 91422 | 
            +
                cellSetSelection == null ? void 0 : cellSetSelection.forEach((obsSetPath) => {
         | 
| 91423 | 
            +
                  var _a, _b, _c;
         | 
| 91423 91424 | 
             
                  const selectedElement = obsSetPath[1];
         | 
| 91424 | 
            -
                  additionalCellSets.tree[0].children.forEach((child) => {
         | 
| 91425 | 
            +
                  (_c = (_b = (_a = additionalCellSets == null ? void 0 : additionalCellSets.tree) == null ? void 0 : _a[0]) == null ? void 0 : _b.children) == null ? void 0 : _c.forEach((child) => {
         | 
| 91425 91426 | 
             
                    if (child.name === selectedElement) {
         | 
| 91426 91427 | 
             
                      child.set.forEach(([obsId]) => {
         | 
| 91427 91428 | 
             
                        const info2 = { name: "", id: "", color: [] };
         | 
| @@ -91437,6 +91438,7 @@ function FeatureBarPlot(props) { | |
| 91437 91438 | 
             
                    }
         | 
| 91438 91439 | 
             
                  });
         | 
| 91439 91440 | 
             
                });
         | 
| 91441 | 
            +
                return result;
         | 
| 91440 91442 | 
             
              }, [cellSetSelection, additionalCellSets, cellSetColor]);
         | 
| 91441 91443 | 
             
              const svgRef = useRef();
         | 
| 91442 91444 | 
             
              const maxCharactersForLabel = useMemo(() => data2.reduce((acc, val) => {
         | 
| @@ -1 +1 @@ | |
| 1 | 
            -
            {"version":3,"file":"FeatureBarPlot.d.ts","sourceRoot":"","sources":["../src/FeatureBarPlot.js"],"names":[],"mappings":"AAwBA, | 
| 1 | 
            +
            {"version":3,"file":"FeatureBarPlot.d.ts","sourceRoot":"","sources":["../src/FeatureBarPlot.js"],"names":[],"mappings":"AAwBA,gEAyMC"}
         | 
| @@ -23,12 +23,12 @@ export default function FeatureBarPlot(props) { | |
| 23 23 | 
             
                // TODO: use a more descriptive name than setsSave.
         | 
| 24 24 | 
             
                const setsSave = useMemo(() => {
         | 
| 25 25 | 
             
                    const result = new Map();
         | 
| 26 | 
            -
                    cellSetSelection | 
| 26 | 
            +
                    cellSetSelection?.forEach((obsSetPath) => {
         | 
| 27 27 | 
             
                        // TODO: this does not use the full set path for comparison.
         | 
| 28 28 | 
             
                        const selectedElement = obsSetPath[1];
         | 
| 29 29 | 
             
                        // TODO: this is only considering the first set grouping in the tree.
         | 
| 30 30 | 
             
                        // TODO: use sets-utils to traverse sets tree.
         | 
| 31 | 
            -
                        additionalCellSets | 
| 31 | 
            +
                        additionalCellSets?.tree?.[0]?.children?.forEach((child) => {
         | 
| 32 32 | 
             
                            if (child.name === selectedElement) {
         | 
| 33 33 | 
             
                                child.set.forEach(([obsId]) => {
         | 
| 34 34 | 
             
                                    const info = { name: '', id: '', color: [] };
         | 
| @@ -44,6 +44,7 @@ export default function FeatureBarPlot(props) { | |
| 44 44 | 
             
                            }
         | 
| 45 45 | 
             
                        });
         | 
| 46 46 | 
             
                    });
         | 
| 47 | 
            +
                    return result;
         | 
| 47 48 | 
             
                }, [cellSetSelection, additionalCellSets, cellSetColor]);
         | 
| 48 49 | 
             
                const svgRef = useRef();
         | 
| 49 50 | 
             
                // Get the max characters in an axis label for autsizing the bottom margin.
         | 
    
        package/package.json
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            {
         | 
| 2 2 | 
             
              "name": "@vitessce/statistical-plots",
         | 
| 3 | 
            -
              "version": "3.4. | 
| 3 | 
            +
              "version": "3.4.1",
         | 
| 4 4 | 
             
              "author": "Gehlenborg Lab",
         | 
| 5 5 | 
             
              "homepage": "http://vitessce.io",
         | 
| 6 6 | 
             
              "repository": {
         | 
| @@ -26,11 +26,11 @@ | |
| 26 26 | 
             
                "lodash-es": "^4.17.21",
         | 
| 27 27 | 
             
                "react-aria": "^3.28.0",
         | 
| 28 28 | 
             
                "d3-format": "^3.1.0",
         | 
| 29 | 
            -
                "@vitessce/ | 
| 30 | 
            -
                "@vitessce/ | 
| 31 | 
            -
                "@vitessce/utils": "3.4. | 
| 32 | 
            -
                "@vitessce/vega": "3.4. | 
| 33 | 
            -
                "@vitessce/vit-s": "3.4. | 
| 29 | 
            +
                "@vitessce/constants-internal": "3.4.1",
         | 
| 30 | 
            +
                "@vitessce/sets-utils": "3.4.1",
         | 
| 31 | 
            +
                "@vitessce/utils": "3.4.1",
         | 
| 32 | 
            +
                "@vitessce/vega": "3.4.1",
         | 
| 33 | 
            +
                "@vitessce/vit-s": "3.4.1"
         | 
| 34 34 | 
             
              },
         | 
| 35 35 | 
             
              "devDependencies": {
         | 
| 36 36 | 
             
                "react": "^18.0.0",
         | 
    
        package/src/FeatureBarPlot.js
    CHANGED
    
    | @@ -52,12 +52,12 @@ export default function FeatureBarPlot(props) { | |
| 52 52 | 
             
              // TODO: use a more descriptive name than setsSave.
         | 
| 53 53 | 
             
              const setsSave = useMemo(() => {
         | 
| 54 54 | 
             
                const result = new Map();
         | 
| 55 | 
            -
                cellSetSelection | 
| 55 | 
            +
                cellSetSelection?.forEach((obsSetPath) => {
         | 
| 56 56 | 
             
                  // TODO: this does not use the full set path for comparison.
         | 
| 57 57 | 
             
                  const selectedElement = obsSetPath[1];
         | 
| 58 58 | 
             
                  // TODO: this is only considering the first set grouping in the tree.
         | 
| 59 59 | 
             
                  // TODO: use sets-utils to traverse sets tree.
         | 
| 60 | 
            -
                  additionalCellSets | 
| 60 | 
            +
                  additionalCellSets?.tree?.[0]?.children?.forEach((child) => {
         | 
| 61 61 | 
             
                    if (child.name === selectedElement) {
         | 
| 62 62 | 
             
                      child.set.forEach(([obsId]) => {
         | 
| 63 63 | 
             
                        const info = { name: '', id: '', color: [] };
         | 
| @@ -73,6 +73,7 @@ export default function FeatureBarPlot(props) { | |
| 73 73 | 
             
                    }
         | 
| 74 74 | 
             
                  });
         | 
| 75 75 | 
             
                });
         | 
| 76 | 
            +
                return result;
         | 
| 76 77 | 
             
              }, [cellSetSelection, additionalCellSets, cellSetColor]);
         | 
| 77 78 |  | 
| 78 79 | 
             
              const svgRef = useRef();
         |