UNPKG

@gravity-ui/graph

Version:

Modern graph editor component

13 lines (12 loc) 492 B
import React from "react"; import { TAnchor } from "../components/canvas/anchors"; import { Graph } from "../graph"; import { AnchorState } from "../store/anchor/Anchor"; import "./Anchor.css"; export declare function GraphBlockAnchor({ graph, anchor, position, children, className, }: { graph: Graph; anchor: TAnchor; position: "absolute" | "fixed"; className?: string; children?: React.ReactNode | ((anchorState: AnchorState) => React.ReactNode); }): React.JSX.Element;