@vitessce/statistical-plots 3.2.2 → 3.3.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 +40 -8
 - package/package.json +6 -6
 
    
        package/dist/index.js
    CHANGED
    
    | 
         @@ -955,6 +955,7 @@ const DataType$1 = { 
     | 
|
| 
       955 
955 
     | 
    
         
             
            const FileType$1 = {
         
     | 
| 
       956 
956 
     | 
    
         
             
              // Joint file types
         
     | 
| 
       957 
957 
     | 
    
         
             
              ANNDATA_ZARR: "anndata.zarr",
         
     | 
| 
      
 958 
     | 
    
         
            +
              SPATIALDATA_ZARR: "spatialdata.zarr",
         
     | 
| 
       958 
959 
     | 
    
         
             
              // Atomic file types
         
     | 
| 
       959 
960 
     | 
    
         
             
              OBS_EMBEDDING_CSV: "obsEmbedding.csv",
         
     | 
| 
       960 
961 
     | 
    
         
             
              OBS_SPOTS_CSV: "obsSpots.csv",
         
     | 
| 
         @@ -977,6 +978,16 @@ const FileType$1 = { 
     | 
|
| 
       977 
978 
     | 
    
         
             
              OBS_SEGMENTATIONS_ANNDATA_ZARR: "obsSegmentations.anndata.zarr",
         
     | 
| 
       978 
979 
     | 
    
         
             
              OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
         
     | 
| 
       979 
980 
     | 
    
         
             
              FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
         
     | 
| 
      
 981 
     | 
    
         
            +
              // SpatialData
         
     | 
| 
      
 982 
     | 
    
         
            +
              IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
         
     | 
| 
      
 983 
     | 
    
         
            +
              LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
         
     | 
| 
      
 984 
     | 
    
         
            +
              SHAPES_SPATIALDATA_ZARR: "shapes.spatialdata.zarr",
         
     | 
| 
      
 985 
     | 
    
         
            +
              OBS_FEATURE_MATRIX_SPATIALDATA_ZARR: "obsFeatureMatrix.spatialdata.zarr",
         
     | 
| 
      
 986 
     | 
    
         
            +
              OBS_SETS_SPATIALDATA_ZARR: "obsSets.spatialdata.zarr",
         
     | 
| 
      
 987 
     | 
    
         
            +
              OBS_SPOTS_SPATIALDATA_ZARR: "obsSpots.spatialdata.zarr",
         
     | 
| 
      
 988 
     | 
    
         
            +
              // TODO:
         
     | 
| 
      
 989 
     | 
    
         
            +
              // OBS_POINTS_SPATIALDATA_ZARR: 'obsPoints.spatialdata.zarr',
         
     | 
| 
      
 990 
     | 
    
         
            +
              // OBS_LOCATIONS_SPATIALDATA_ZARR: 'obsLocations.spatialdata.zarr',
         
     | 
| 
       980 
991 
     | 
    
         
             
              // MuData
         
     | 
| 
       981 
992 
     | 
    
         
             
              OBS_FEATURE_MATRIX_MUDATA_ZARR: "obsFeatureMatrix.mudata.zarr",
         
     | 
| 
       982 
993 
     | 
    
         
             
              OBS_SETS_MUDATA_ZARR: "obsSets.mudata.zarr",
         
     | 
| 
         @@ -10653,9 +10664,30 @@ z.object({ 
     | 
|
| 
       10653 
10664 
     | 
    
         
             
              offsetsUrl: z.string().optional(),
         
     | 
| 
       10654 
10665 
     | 
    
         
             
              coordinateTransformations: omeCoordinateTransformations.optional()
         
     | 
| 
       10655 
10666 
     | 
    
         
             
            });
         
     | 
| 
       10656 
     | 
    
         
            -
            z.object({
         
     | 
| 
      
 10667 
     | 
    
         
            +
            const imageOmeZarrSchema = z.object({
         
     | 
| 
       10657 
10668 
     | 
    
         
             
              coordinateTransformations: omeCoordinateTransformations.optional()
         
     | 
| 
       10658 
10669 
     | 
    
         
             
            });
         
     | 
| 
      
 10670 
     | 
    
         
            +
            imageOmeZarrSchema.extend({
         
     | 
| 
      
 10671 
     | 
    
         
            +
              path: z.string()
         
     | 
| 
      
 10672 
     | 
    
         
            +
            });
         
     | 
| 
      
 10673 
     | 
    
         
            +
            z.object({
         
     | 
| 
      
 10674 
     | 
    
         
            +
              path: z.string()
         
     | 
| 
      
 10675 
     | 
    
         
            +
            });
         
     | 
| 
      
 10676 
     | 
    
         
            +
            z.object({
         
     | 
| 
      
 10677 
     | 
    
         
            +
              path: z.string()
         
     | 
| 
      
 10678 
     | 
    
         
            +
            });
         
     | 
| 
      
 10679 
     | 
    
         
            +
            z.object({
         
     | 
| 
      
 10680 
     | 
    
         
            +
              path: z.string(),
         
     | 
| 
      
 10681 
     | 
    
         
            +
              tablePath: z.string().optional().describe("The path to a table which annotates the spots. If available but not specified, the spot identifiers may not be aligned with associated tabular data as expected.")
         
     | 
| 
      
 10682 
     | 
    
         
            +
            });
         
     | 
| 
      
 10683 
     | 
    
         
            +
            annDataObsFeatureMatrix.extend({
         
     | 
| 
      
 10684 
     | 
    
         
            +
              region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional()
         
     | 
| 
      
 10685 
     | 
    
         
            +
            });
         
     | 
| 
      
 10686 
     | 
    
         
            +
            z.object({
         
     | 
| 
      
 10687 
     | 
    
         
            +
              region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
         
     | 
| 
      
 10688 
     | 
    
         
            +
              tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
         
     | 
| 
      
 10689 
     | 
    
         
            +
              obsSets: annDataObsSets
         
     | 
| 
      
 10690 
     | 
    
         
            +
            });
         
     | 
| 
       10659 
10691 
     | 
    
         
             
            z.object({
         
     | 
| 
       10660 
10692 
     | 
    
         
             
              obsIndex: z.string(),
         
     | 
| 
       10661 
10693 
     | 
    
         
             
              obsEmbedding: z.array(z.string()).length(2)
         
     | 
| 
         @@ -17465,9 +17497,9 @@ const schemePlasma = [[13, 8, 135], [16, 7, 136], [19, 7, 137], [22, 7, 138], [2 
     | 
|
| 
       17465 
17497 
     | 
    
         
             
            function rgbSpline$1(spline) {
         
     | 
| 
       17466 
17498 
     | 
    
         
             
              return (colors2) => {
         
     | 
| 
       17467 
17499 
     | 
    
         
             
                const n = colors2.length;
         
     | 
| 
       17468 
     | 
    
         
            -
                 
     | 
| 
       17469 
     | 
    
         
            -
                 
     | 
| 
       17470 
     | 
    
         
            -
                 
     | 
| 
      
 17500 
     | 
    
         
            +
                const r3 = new Array(n);
         
     | 
| 
      
 17501 
     | 
    
         
            +
                const g = new Array(n);
         
     | 
| 
      
 17502 
     | 
    
         
            +
                const b2 = new Array(n);
         
     | 
| 
       17471 
17503 
     | 
    
         
             
                let i;
         
     | 
| 
       17472 
17504 
     | 
    
         
             
                let color2;
         
     | 
| 
       17473 
17505 
     | 
    
         
             
                for (i = 0; i < n; ++i) {
         
     | 
| 
         @@ -17476,10 +17508,10 @@ function rgbSpline$1(spline) { 
     | 
|
| 
       17476 
17508 
     | 
    
         
             
                  g[i] = color2[1] || 0;
         
     | 
| 
       17477 
17509 
     | 
    
         
             
                  b2[i] = color2[2] || 0;
         
     | 
| 
       17478 
17510 
     | 
    
         
             
                }
         
     | 
| 
       17479 
     | 
    
         
            -
                 
     | 
| 
       17480 
     | 
    
         
            -
                 
     | 
| 
       17481 
     | 
    
         
            -
                 
     | 
| 
       17482 
     | 
    
         
            -
                return (t4) => [ 
     | 
| 
      
 17511 
     | 
    
         
            +
                const rFunc = spline(r3);
         
     | 
| 
      
 17512 
     | 
    
         
            +
                const gFunc = spline(g);
         
     | 
| 
      
 17513 
     | 
    
         
            +
                const bFunc = spline(b2);
         
     | 
| 
      
 17514 
     | 
    
         
            +
                return (t4) => [rFunc(t4), gFunc(t4), bFunc(t4)];
         
     | 
| 
       17483 
17515 
     | 
    
         
             
              };
         
     | 
| 
       17484 
17516 
     | 
    
         
             
            }
         
     | 
| 
       17485 
17517 
     | 
    
         
             
            function basis$2(values2) {
         
     | 
    
        package/package.json
    CHANGED
    
    | 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            {
         
     | 
| 
       2 
2 
     | 
    
         
             
              "name": "@vitessce/statistical-plots",
         
     | 
| 
       3 
     | 
    
         
            -
              "version": "3. 
     | 
| 
      
 3 
     | 
    
         
            +
              "version": "3.3.1",
         
     | 
| 
       4 
4 
     | 
    
         
             
              "author": "Gehlenborg Lab",
         
     | 
| 
       5 
5 
     | 
    
         
             
              "homepage": "http://vitessce.io",
         
     | 
| 
       6 
6 
     | 
    
         
             
              "repository": {
         
     | 
| 
         @@ -20,11 +20,11 @@ 
     | 
|
| 
       20 
20 
     | 
    
         
             
                "d3-array": "^2.4.0",
         
     | 
| 
       21 
21 
     | 
    
         
             
                "lodash-es": "^4.17.21",
         
     | 
| 
       22 
22 
     | 
    
         
             
                "react-aria": "^3.28.0",
         
     | 
| 
       23 
     | 
    
         
            -
                "@vitessce/ 
     | 
| 
       24 
     | 
    
         
            -
                "@vitessce/utils": "3. 
     | 
| 
       25 
     | 
    
         
            -
                "@vitessce/ 
     | 
| 
       26 
     | 
    
         
            -
                "@vitessce/vega": "3. 
     | 
| 
       27 
     | 
    
         
            -
                "@vitessce/vit-s": "3. 
     | 
| 
      
 23 
     | 
    
         
            +
                "@vitessce/constants-internal": "3.3.1",
         
     | 
| 
      
 24 
     | 
    
         
            +
                "@vitessce/sets-utils": "3.3.1",
         
     | 
| 
      
 25 
     | 
    
         
            +
                "@vitessce/utils": "3.3.1",
         
     | 
| 
      
 26 
     | 
    
         
            +
                "@vitessce/vega": "3.3.1",
         
     | 
| 
      
 27 
     | 
    
         
            +
                "@vitessce/vit-s": "3.3.1"
         
     | 
| 
       28 
28 
     | 
    
         
             
              },
         
     | 
| 
       29 
29 
     | 
    
         
             
              "devDependencies": {
         
     | 
| 
       30 
30 
     | 
    
         
             
                "react": "^18.0.0",
         
     |