UNPKG

677 BTypeScriptView Raw
1export declare const Position: {
2 BOTTOM: "bottom";
3 BOTTOM_LEFT: "bottom-left";
4 BOTTOM_RIGHT: "bottom-right";
5 LEFT: "left";
6 LEFT_BOTTOM: "left-bottom";
7 LEFT_TOP: "left-top";
8 RIGHT: "right";
9 RIGHT_BOTTOM: "right-bottom";
10 RIGHT_TOP: "right-top";
11 TOP: "top";
12 TOP_LEFT: "top-left";
13 TOP_RIGHT: "top-right";
14};
15export declare type Position = typeof Position[keyof typeof Position];
16export declare function isPositionHorizontal(position: Position): boolean;
17export declare function isPositionVertical(position: Position): boolean;
18export declare function getPositionIgnoreAngles(position: Position): "left" | "right" | "bottom" | "top";