UNPKG

@joint/react

Version:

React bindings and hooks for JointJS to build interactive diagrams and graphs.

20 lines (19 loc) 791 B
import type { dia } from '@joint/core'; /** * Get the link id from the given id. * @param id - The id to get the link id from. * @returns The link id or undefined if not found. */ export declare function getLinkId(id: dia.Cell.ID | dia.Link.EndJSON): dia.Cell.ID | undefined; /** * Get the link source id from the given id. * @param id - The id to get the link source id from. * @returns The link source id or undefined if not found. */ export declare function getLinkPortId(id: dia.Cell.ID | dia.Link.EndJSON): string | undefined; /** * Get the link magnet from the given id. * @param id - The id to get the link magnet from. * @returns The link magnet or undefined if not found. */ export declare function getLinkMagnet(id: dia.Cell.ID | dia.Link.EndJSON): string | undefined;