Skip to content

Commit

Permalink
Update ImageSource.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
reindernijhoff authored May 27, 2024
1 parent 8f75a5a commit e731cfa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/ImageSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ export type ImageSourceType = typeof INPUT_SRC | typeof INPUT_TAR;
* @property {string | undefined} tarURL - The URL of the tar file containing the images for the sequence.
* @property {boolean} useWorker - Whether to use a worker for fetching images.
* @property {number} maxCachedImages - The number of images to cache.
* @property {number} maxConnectionLimit - The maximum number of images to load at once.
* @property {number} maxConnectionLimit - The maximum number of images to load simultaneously.
* @property {((index: number) => boolean) | undefined} available - A callback function that returns if an image is available given its index.
* @property {((index: number) => Promise<CanvasImageSource>) | undefined} image - A callback function that returns the image element given its index.
* @property {number} timeout - Only start loading an image if the same frame is visible for this amount of time (in milliseconds).
* @property {number} timeout - Only start loading an image if the same frame is visible for this time (in milliseconds).
*/
export type ImageSourceOptions = {
imageURL: ((index: number) => string) | undefined,
Expand Down Expand Up @@ -156,4 +156,4 @@ export default class ImageSource {
}
}
}
}
}

0 comments on commit e731cfa

Please sign in to comment.