boundary.d.ts 630 B

123456789101112131415161718
  1. import { Rectangle, Segment } from '@antv/x6-geometry';
  2. import { ConnectionPoint } from './index';
  3. export interface BoundaryOptions extends ConnectionPoint.StrokedOptions {
  4. selector?: string | string[];
  5. insideout?: boolean;
  6. precision?: number;
  7. extrapolate?: boolean;
  8. sticky?: boolean;
  9. }
  10. export interface BoundaryCache {
  11. shapeBBox?: Rectangle | null;
  12. segmentSubdivisions?: Segment[][];
  13. }
  14. /**
  15. * Places the connection point at the intersection between the
  16. * edge path end segment and the actual shape of the target magnet.
  17. */
  18. export declare const boundary: ConnectionPoint.Definition<BoundaryOptions>;