From 1c62f2e3d030e68c635c76ebc22af6d0606729fe Mon Sep 17 00:00:00 2001 From: noah Date: Wed, 4 Dec 2024 11:44:33 -0800 Subject: [PATCH] fix surprisingly few spelling mistakes --- examples/src/omezarr/sliceview.tsx | 2 +- packages/dzi/src/loader.ts | 2 +- packages/omezarr/src/sliceview/loader.ts | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/src/omezarr/sliceview.tsx b/examples/src/omezarr/sliceview.tsx index d0c2040..c662665 100644 --- a/examples/src/omezarr/sliceview.tsx +++ b/examples/src/omezarr/sliceview.tsx @@ -25,7 +25,7 @@ const settings: RenderSettings = { plane: 'xy', planeIndex: 3, camera: { - // the OMEZARR renderer expects a box in whatever space is given by the omezarr file itself in its + // the omezarr renderer expects a box in whatever space is given by the omezarr file itself in its // axes metadata = for example, millimeters. if you load a volume that says its 30mm X 30mm X 10mm, // and you want to view XY slices and have them fit perfectly on your screen, then a box // like [0,0],[30,30] would be appropriate! diff --git a/packages/dzi/src/loader.ts b/packages/dzi/src/loader.ts index 995730a..46bd883 100644 --- a/packages/dzi/src/loader.ts +++ b/packages/dzi/src/loader.ts @@ -30,7 +30,7 @@ export type DziTile = { function tileUrl(dzi: DziImage, level: number, tile: TileIndex): string { return `${dzi.imagesUrl}${level.toFixed(0)}/${tile.col.toFixed(0)}_${tile.row.toFixed(0)}.${dzi.format}`; } -// some quick notes on this deepzoom image format: +// some quick notes on this deep zoom image format: // 1. image / tile names are given by {column}_{row}.{format} // 2. a layer (which may contain multiple tiles) is a folder // 2.1 that folder contains all the tiles for that layer. diff --git a/packages/omezarr/src/sliceview/loader.ts b/packages/omezarr/src/sliceview/loader.ts index ab58e23..34e6e71 100644 --- a/packages/omezarr/src/sliceview/loader.ts +++ b/packages/omezarr/src/sliceview/loader.ts @@ -8,7 +8,7 @@ export type VoxelTile = { plane: AxisAlignedPlane; // the plane in which the tile sits realBounds: box2D; // in the space given by the axis descriptions of the omezarr dataset bounds: box2D; // in voxels, in the plane - planeIndex: number; // the index of this slice along the axis being sliced (orthoganal to plane) + planeIndex: number; // the index of this slice along the axis being sliced (orthogonal to plane) layerIndex: number; // the index in the resolution pyramid of the omezarr dataset }; @@ -68,16 +68,16 @@ function getVisibleTilesInLayer( return visibleTiles; } /** - * get tiles of the omezarr image which are visible (intersect with @param camera.veiw). + * get tiles of the omezarr image which are visible (intersect with @param camera.view). * @param camera an object describing the current view: the region of the omezarr, and the resolution at which it * will be displayed. * @param plane the plane (eg. 'xy') from which to draw tiles - * @param planeIndex the index of the plane along the orthagonal axis (if plane is xy, then the planes are slices along the Z axis) + * @param planeIndex the index of the plane along the orthogonal axis (if plane is xy, then the planes are slices along the Z axis) * note that not all ome-zarr LOD layers can be expected to have the same number of slices! an index which exists at a high LOD may not * exist at a low LOD. - * @param dataset the omezarr iamge to pull tiles from + * @param dataset the omezarr image to pull tiles from * @param tileSize the size of the tiles, in pixels. it is recommended to use a size that agrees with the chunking used in the dataset, however, - * other utilities in this library will stitch togeather chunks to satisfy the requested tile size. + * other utilities in this library will stitch together chunks to satisfy the requested tile size. * @returns an array of objects representing tiles (bounding information, etc) which are visible from the given dataset. */ export function getVisibleTiles(