@tissuumaps/storage
Official data provider distribution for
TissUUmaps: implementations of the
data provider interfaces of @tissuumaps/core for images, labels, points,
shapes and tables.
Installation
npm install @tissuumaps/storage
Its peer dependencies @tissuumaps/core, openseadragon, ome-zarr.js and
zarrita are installed automatically by npm 7+, pnpm and Bun; with Yarn,
install them yourself.
Entry points
Each format has its own entry point, so that only the providers you use are bundled; the package root exports all of them.
| Entry point | Data providers |
|---|---|
@tissuumaps/storage/csv | CSV tables |
@tissuumaps/storage/geojson | GeoJSON shapes |
@tissuumaps/storage/hdf5 | HDF5 tables |
@tissuumaps/storage/ome-zarr | OME-Zarr images, labels |
@tissuumaps/storage/openseadragon | OpenSeadragon images |
@tissuumaps/storage/parquet | Parquet shapes, tables |
@tissuumaps/storage/table | points from tables |
@tissuumaps/storage/tiff | TIFF images, labels |
@tissuumaps/storage/zarr | Zarr tables |
The CSV, GeoJSON, HDF5 and Parquet providers parse, and the TIFF providers
decode, in web workers loaded from blob: URLs. Under a Content Security Policy,
allow them with worker-src blob:. The HDF5 provider, and the Parquet and TIFF
providers for some compressions, run WebAssembly in these workers; allow it with
script-src 'wasm-unsafe-eval'.
Documentation
Known issues
geotiff needs to be patched
geotiff 3.0.5 misreads deferred tag values of big-endian TIFFs, and corrupts
LZW-compressed tiles that it decodes on the main thread. The fixes are merged
upstream but not yet released. Until they are, apply
geotiff@3.0.5.patch
to geotiff 3.0.5 in your project. This package depends on exactly that
version, so the patch applies as long as your project does not override it.
With pnpm, save it as
patches/geotiff@3.0.5.patch and register it in pnpm-workspace.yaml:
patchedDependencies:
geotiff@3.0.5: patches/geotiff@3.0.5.patch
The patch is a git diff relative to the geotiff package root, so it can also be applied with other package managers' patching mechanisms. See Dependencies for details.
Classes
- CSVTableData
- CSVTableDataProvider
- GeoJSONShapesData
- GeoJSONShapesDataProvider
- HDF5TableData
- HDF5TableDataProvider
- OMEZarrImageData
- OMEZarrImageDataProvider
- OMEZarrLabelsData
- OMEZarrLabelsDataProvider
- OpenSeadragonImageData
- OpenSeadragonImageDataProvider
- ParquetShapesData
- ParquetShapesDataProvider
- ParquetTableData
- ParquetTableDataProvider
- TablePointsData
- TablePointsDataProvider
- TIFFImageData
- TIFFImageDataProvider
- TIFFLabelsData
- TIFFLabelsDataProvider
- ZarrTableData
- ZarrTableDataProvider
Interfaces
- CSVTableDataSource
- GeoJSONShapesDataSource
- HDF5TableDataSource
- OMEZarrImageDataSource
- OMEZarrLabelsDataSource
- OpenSeadragonImageDataSource
- ParquetShapesDataSource
- ParquetTableDataSource
- TablePointsDataSource
- TIFFImageDataSource
- TIFFLabelsDataSource
- ZarrTableDataSource
Type Aliases
- NormalizedCSVTableDataSource
- NormalizedGeoJSONShapesDataSource
- NormalizedHDF5TableDataSource
- NormalizedOMEZarrImageDataSource
- NormalizedOMEZarrLabelsDataSource
- NormalizedOpenSeadragonImageDataSource
- NormalizedParquetShapesDataSource
- NormalizedParquetTableDataSource
- NormalizedTablePointsDataSource
- NormalizedTIFFImageDataSource
- NormalizedTIFFLabelsDataSource
- NormalizedZarrTableDataSource
- ParquetSource
- TIFFChannel
- TIFFChannelMetadata
Variables
- csvTableDataSourceDefaults
- csvTableDataSourceType
- geoJSONShapesDataSourceDefaults
- geoJSONShapesDataSourceType
- hdf5TableDataSourceDefaults
- hdf5TableDataSourceType
- omeZarrImageDataSourceDefaults
- omeZarrImageDataSourceType
- omeZarrLabelsDataSourceDefaults
- omeZarrLabelsDataSourceType
- openSeadragonImageDataSourceDefaults
- openSeadragonImageDataSourceType
- parquetShapesDataSourceDefaults
- parquetShapesDataSourceType
- parquetTableDataSourceDefaults
- parquetTableDataSourceType
- tablePointsDataSourceDefaults
- tablePointsDataSourceType
- tiffImageDataSourceDefaults
- tiffImageDataSourceType
- tiffLabelsDataSourceDefaults
- tiffLabelsDataSourceType
- zarrTableDataSourceDefaults
- zarrTableDataSourceType