@gravity-ui/graph
Version:
Modern graph editor component
21 lines (20 loc) • 1.04 kB
TypeScript
import { CoreComponentProps } from "lib/CoreComponent";
import { Component, TComponentState } from "../../../lib/Component";
import { ConnectionState } from "../../../store/connection/ConnectionState";
import { TGraphLayerContext } from "../layers/graphLayer/GraphLayer";
import { BatchPath2DRenderer } from "./BatchPath2D";
import { TConnectionProps } from "./BlockConnection";
export type TGraphConnectionsContext = TGraphLayerContext & {
batch: BatchPath2DRenderer;
};
export declare class BlockConnections extends Component<CoreComponentProps, TComponentState, TGraphConnectionsContext> {
get connections(): ConnectionState[];
protected readonly unsubscribe: (() => void)[];
protected batch: BatchPath2DRenderer;
constructor(props: {}, parent: Component);
private scheduleUpdate;
protected subscribe(): (() => void)[];
protected unmount(): void;
protected updateChildren(): import("lib/CoreComponent").ComponentDescriptor<TConnectionProps, TGraphConnectionsContext>[];
protected render(): void;
}