UNPKG

diagram-js

Version:

A toolbox for displaying and modifying diagrams on the web

38 lines (36 loc) 1.04 kB
/** * A layout component for connections that retrieves waypoint information. * */ export default class ConnectionDocking { /** * Return the actual waypoints of the connection (visually). * * @param connection * @param source * @param target * * @return */ getCroppedWaypoints(connection: Connection, source?: Element, target?: Element): Point[]; /** * Return the connection docking point on the specified shape * * @param connection * @param shape * @param dockStart * * @return */ getDockingPoint(connection: Connection, shape: Shape, dockStart?: boolean): DockingPointDescriptor; } type Element = import("../core/Types.js").ElementLike; type Connection = import("../core/Types.js").ConnectionLike; type Shape = import("../core/Types.js").ShapeLike; type Point = import("../util/Types.js").Point; export type DockingPointDescriptor = { point: Point; actual: Point; idx: number; }; //# sourceMappingURL=ConnectionDocking.d.ts.map