UNPKG

@gravity-ui/graph

Version:

Modern graph editor component

10 lines (9 loc) 503 B
import { TConnection } from "../../../../store/connection/ConnectionState"; import { Path2DRenderInstance, Path2DRenderStyleResult } from "../BatchPath2D"; import { BlockConnection } from "../BlockConnection"; export declare class ConnectionArrow<T extends TConnection> implements Path2DRenderInstance { protected connection: BlockConnection<T>; constructor(connection: BlockConnection<T>); getPath(): Path2D; style(ctx: CanvasRenderingContext2D): Path2DRenderStyleResult | undefined; }