@plait/core 0.82.0 → 0.83.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,6 +4,8 @@ export declare enum Direction {
|
|
|
4
4
|
right = "right",
|
|
5
5
|
bottom = "bottom"
|
|
6
6
|
}
|
|
7
|
+
export declare const isHorizontalDirection: (direction: Direction) => direction is Direction.left | Direction.right;
|
|
8
|
+
export declare const isVerticalDirection: (direction: Direction) => direction is Direction.top | Direction.bottom;
|
|
7
9
|
export type Vector = [number, number];
|
|
8
10
|
export type DirectionFactor = -1 | 0 | 1;
|
|
9
11
|
export type DirectionFactors = [DirectionFactor, DirectionFactor];
|