UNPKG

@unlazy/core

Version:

Universal lazy loading library for placeholder images leveraging native browser APIs

20 lines (18 loc) 532 B
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, { ratio, size, }?: BlurHashOptions): string; export { createPngDataUri }; export type { BlurHashOptions };