convex-pixel
Version:
The library for creating pseudo 3d interactive scenes based on webgl
19 lines • 693 B
TypeScript
import { IVector2D, Vector4D } from "./geom/vector";
export declare enum RatioFitTypes {
NONE = 0,
FILL = 1,
SHOW_ALL = 2,
O_FILL = 3,
O_SHOW_ALL = 4
}
export declare const getRatio: (width1: number, height1: number, width2: number, height2: number, type?: RatioFitTypes) => number;
export interface IHierarchicalObject extends IVector2D {
parent: IHierarchicalObject;
scale: IVector2D;
width: number;
height: number;
}
export declare const getAbsolutePosition: (object: IHierarchicalObject, options?: {
to?: (new (...args: any) => any) | undefined;
} | undefined, iteration?: number) => Vector4D;
//# sourceMappingURL=display.d.ts.map