contain.d.ts 524 B

12345678910
  1. import type { DisplayObject } from '../../../shapes';
  2. import type { Point } from '../../../types';
  3. import type { SeriesAttr } from '../../../util';
  4. import { Bounds } from './bounds';
  5. export declare function isPointInsideRectangle(polygon: Point[], point: Point): boolean;
  6. export declare function isRectangleBInsideA(rectA: Point[], rectB: Point[]): boolean;
  7. /**
  8. * 检测 child 是否完全在 container 内部
  9. */
  10. export declare function contain(container: Bounds, child: DisplayObject<any>, margin?: SeriesAttr): boolean;