align.d.ts 556 B

1234567891011
  1. import { BBox, Point } from '../types';
  2. interface OutSides {
  3. left: boolean;
  4. right: boolean;
  5. top: boolean;
  6. bottom: boolean;
  7. }
  8. export declare function getOutSides(x: number, y: number, width: number, height: number, limitBox: BBox): OutSides;
  9. export declare function getPointByPosition(x: number, y: number, offset: number, width: number, height: number, position: string): Point;
  10. export declare function getAlignPoint(x: number, y: number, offset: number, width: number, height: number, position: string, limitBox?: BBox): Point;
  11. export {};