This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-js/lib/src/util/gravity.d.ts

27 lines
748 B
TypeScript
Raw Normal View History

2020-01-03 14:44:51 +08:00
import { Modeling } from "./types";
export declare const LEFT: number;
export declare const RIGHT: number;
export declare const TOP: number;
export declare const BOTTOM: number;
export declare const CENTER_X: number;
export declare const CENTER_Y: number;
export declare const CENTER: number;
export declare class Gravity implements Modeling {
val: number;
left(): Gravity;
right(): Gravity;
top(): Gravity;
bottom(): Gravity;
center(): Gravity;
centerX(): Gravity;
centerY(): Gravity;
toModel(): number;
private static origin;
static Center: Gravity;
static Left: Gravity;
static Right: Gravity;
static Top: Gravity;
static Bottom: Gravity;
}
export declare function gravity(): Gravity;