import * as React from "@hpcc-js/preact-shim"; import { VertexProps } from "./vertex"; import { Text } from "./text"; type Point = [number, number]; export interface EdgeProps { 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 const Edge: React.FunctionComponent = ({ label, labelPos, labelFill = "black", labelHeight = 12, path, stroke, strokeWidth, strokeDasharray }) => { return <> { label && labelPos && labelPos.length === 2 ? : undefined } ; };