UNPKG

@gravity-ui/graph

Version:

Modern graph editor component

18 lines (17 loc) 663 B
import { Graph } from "../../graph"; import { TConnectionId } from "./ConnectionState"; export declare function selectConnectionById(graph: Graph, id: TConnectionId): import("./ConnectionState").ConnectionState<{ id?: TConnectionId; sourceBlockId?: import("../..").TBlockId; targetBlockId?: import("../..").TBlockId; sourceAnchorId?: string; targetAnchorId?: string; sourcePortId?: import("./port/Port").TPortId; targetPortId?: import("./port/Port").TPortId; label?: string; styles?: Partial<import("../../graphConfig").TConnectionColors> & { dashes?: number[]; }; dashed?: boolean; selected?: boolean; }>;