@unlazy/core
Version:
Universal lazy loading library for placeholder images leveraging native browser APIs
19 lines • 520 B
text/typescript
//#region src/blurhash.d.ts
interface BlurHashOptions {
/**
* Aspect ratio (width / height) of the BlurHash image to be decoded.
*
* @default 1 (square aspect ratio)
*/
ratio?: number;
/**
* The size of the longer edge (width or height) of the BlurHash image to be
* decoded, depending on the aspect ratio.
*
* @default 32
*/
size?: number;
}
declare function createPngDataUri(hash: string, options?: BlurHashOptions): string;
//#endregion
export { BlurHashOptions, createPngDataUri };