@hpcc-js/react
Version:
hpcc-js - Viz React
24 lines (23 loc) • 634 B
TypeScript
import * as PReact from "./preact-shim.ts";
import { VertexProps } from "./vertex.tsx";
type Point = [number, number];
export interface EdgeProps<V extends VertexProps = VertexProps> {
id: string | number;
origData?: any;
source: V;
target: V;
label?: string;
labelPos?: Point;
weight?: number;
strokeDasharray?: string;
strokeWidth?: number;
stroke?: string;
fontFamily?: string;
labelFill?: string;
labelHeight?: number;
path?: string;
points?: Array<[number, number]>;
curveDepth?: number;
}
export declare const Edge: PReact.FunctionComponent<EdgeProps>;
export {};