UNPKG

@plait/graph-viz

Version:

#### Dependence - `@plait/core`

14 lines (13 loc) 647 B
import { EdgeDirection } from '../types'; import { PlaitBoard, Point } from '@plait/core'; import { ForceAtlasNodeElement } from '../../interfaces'; export declare function drawNode(board: PlaitBoard, node: ForceAtlasNodeElement, point: Point, options: { iconG?: SVGGElement; isActive: boolean; opacity?: number; }): SVGGElement; export declare function drawEdge(startPoint: Point, endPoint: Point, direction: EdgeDirection, isMutual: boolean, isTargetSelf?: boolean): { g: SVGGElement; path: SVGPathElement; }; export declare function drawParticle(board: PlaitBoard, startPoint: Point, direction: EdgeDirection): SVGGElement;