UNPKG

@plait/graph-viz

Version:

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

21 lines (20 loc) 727 B
import { PlaitElement } from '@plait/core'; import { NodeIconItem } from '../force-atlas/types'; export interface ForceAtlasNodeElement extends PlaitElement { label: string; icon: string | NodeIconItem; size?: number; isActive?: boolean; } export interface ForceAtlasEdgeElement extends PlaitElement { source: string; target: string; } export interface ForceAtlasElement extends PlaitElement { children: (ForceAtlasNodeElement | ForceAtlasEdgeElement)[]; } export declare const ForceAtlasElement: { isForceAtlas: (value: any) => boolean; isForceAtlasNodeElement: (value: any) => value is ForceAtlasNodeElement; isForceAtlasEdgeElement: (value: any) => value is ForceAtlasEdgeElement; };