Files
klz-cables.com/.pnpm-store/v10/files/f9/e65c4014a0cf013816504bd3383500c4320d6c90293dab396e871d2051e2faac5d701e717ec8003e87f8c10368aff99b59b99920d5413e3df093e07a3889f0
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.2 KiB
Plaintext

import type { ClientRect } from '../../types';
import type { Collision, CollisionDescriptor } from './types';
/**
* Sort collisions from smallest to greatest value
*/
export declare function sortCollisionsAsc({ data: { value: a } }: CollisionDescriptor, { data: { value: b } }: CollisionDescriptor): number;
/**
* Sort collisions from greatest to smallest value
*/
export declare function sortCollisionsDesc({ data: { value: a } }: CollisionDescriptor, { data: { value: b } }: CollisionDescriptor): number;
/**
* Returns the coordinates of the corners of a given rectangle:
* [TopLeft {x, y}, TopRight {x, y}, BottomLeft {x, y}, BottomRight {x, y}]
*/
export declare function cornersOfRectangle({ left, top, height, width }: ClientRect): {
x: number;
y: number;
}[];
/**
* Returns the first collision, or null if there isn't one.
* If a property is specified, returns the specified property of the first collision.
*/
export declare function getFirstCollision(collisions: Collision[] | null | undefined): Collision | null;
export declare function getFirstCollision<T extends keyof Collision>(collisions: Collision[] | null | undefined, property: T): Collision[T] | null;