Files
klz-cables.com/.pnpm-store/v10/files/17/ff6f48ee03957fe07331dffc2b898d28dccc045e92ea1b18d5f22154d9948661de52d2659b1eb6b13691a4a22845315b7cec69821acce92c3a214ddd00766f
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

25 lines
1.0 KiB
Plaintext

/**
* Takes image sizes and a target range and returns the url of the image within that range.
* If no images fit within the range, it selects the next smallest adequate image, the original,
* or the largest smaller image if no better fit exists.
*
* @param sizes The given FileSizes.
* @param targetSizeMax The ideal image maximum width. Defaults to 180.
* @param targetSizeMin The ideal image minimum width. Defaults to 40.
* @param thumbnailURL The thumbnail url set in config. If passed a url, will return early with it.
* @param url The url of the original file.
* @param width The width of the original file.
* @returns A url of the best fit file.
*/
export declare const getBestFitFromSizes: ({ sizes, targetSizeMax, targetSizeMin, thumbnailURL, url, width, }: {
sizes?: Record<string, {
url?: string;
width?: number;
}>;
targetSizeMax?: number;
targetSizeMin?: number;
thumbnailURL?: string;
url: string;
width?: number;
}) => string;
//# sourceMappingURL=getBestFitFromSizes.d.ts.map