Skip to content

Commit

Permalink
fix surprisingly few spelling mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
froyo-np committed Dec 4, 2024
1 parent 7421427 commit 1c62f2e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/src/omezarr/sliceview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down
2 changes: 1 addition & 1 deletion packages/dzi/src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 5 additions & 5 deletions packages/omezarr/src/sliceview/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 1c62f2e

Please sign in to comment.