Files
klz-cables.com/.pnpm-store/v10/files/ea/2de7a8644897a99ee7400b2df44a06ec897a2b93e79cdf80de1ad0cc3547ad1b97ebdfea2aeb4cb1ffaef88e9aa73a491824cb1af9542b58897d170067c6e6
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

46 lines
1.5 KiB
Plaintext

/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import { Point } from './point';
type ContainsPointReturn = {
result: boolean;
reason: {
isOnTopSide: boolean;
isOnBottomSide: boolean;
isOnLeftSide: boolean;
isOnRightSide: boolean;
};
};
export declare class Rectangle {
private readonly _left;
private readonly _top;
private readonly _right;
private readonly _bottom;
constructor(left: number, top: number, right: number, bottom: number);
get top(): number;
get right(): number;
get bottom(): number;
get left(): number;
get width(): number;
get height(): number;
equals({ top, left, bottom, right }: Rectangle): boolean;
contains({ x, y }: Point): ContainsPointReturn;
contains({ top, left, bottom, right }: Rectangle): boolean;
intersectsWith(rect: Rectangle): boolean;
generateNewRect({ left, top, right, bottom, }: {
left?: number | undefined;
top?: number | undefined;
right?: number | undefined;
bottom?: number | undefined;
}): Rectangle;
static fromLTRB(left: number, top: number, right: number, bottom: number): Rectangle;
static fromLWTH(left: number, width: number, top: number, height: number): Rectangle;
static fromPoints(startPoint: Point, endPoint: Point): Rectangle;
static fromDOM(dom: HTMLElement): Rectangle;
}
export {};