graphic-pixi/lib/utils/index.d.ts
2023-12-14 13:07:43 +08:00

27 lines
802 B
TypeScript

import { Point, Rectangle } from 'pixi.js';
export * from './GraphicUtils';
export * from './IntersectUtils';
export * from './debounce';
export declare const UP: Point;
export declare const DOWN: Point;
export declare const LEFT: Point;
export declare const RIGHT: Point;
/**
* 越界结果
*/
export declare class OutOfBound {
left: boolean;
top: boolean;
right: boolean;
bottom: boolean;
constructor(left: boolean, top: boolean, right: boolean, bottom: boolean);
static check(rect: Rectangle, bound: Rectangle): OutOfBound;
static none(): OutOfBound;
static leftOut(): OutOfBound;
static topOut(): OutOfBound;
static rightOut(): OutOfBound;
static bottomOut(): OutOfBound;
static leftTopOut(): OutOfBound;
static rightBottomOut(): OutOfBound;
}