UNPKG

@antv/x6

Version:

JavaScript diagramming library that uses SVG and HTML for rendering

19 lines (18 loc) 676 B
import { Rectangle, type Segment } from '../../geometry'; import type { ConnectionPointDefinition, ConnectionPointStrokedOptions } from './index'; export interface BoundaryOptions extends ConnectionPointStrokedOptions { selector?: string | string[]; insideout?: boolean; precision?: number; extrapolate?: boolean; sticky?: boolean; } export interface BoundaryCache { shapeBBox?: Rectangle | null; segmentSubdivisions?: Segment[][]; } /** * Places the connection point at the intersection between the * edge path end segment and the actual shape of the target magnet. */ export declare const boundary: ConnectionPointDefinition<BoundaryOptions>;