deploy: v0.12 fix 存档key名

This commit is contained in:
2026-06-24 03:09:02 +00:00
parent 7a08d49fe3
commit e0a5281119
58743 changed files with 7297269 additions and 39505 deletions
+45
View File
@@ -0,0 +1,45 @@
/**
* 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 {};