@plait/graph-viz
Version:
#### Dependence - `@plait/core`
16 lines (15 loc) • 1.13 kB
TypeScript
import { Point } from '@plait/core';
import { ForceAtlasElement, ForceAtlasNodeElement } from '../../interfaces';
import { ForceAtlasNodeGenerator } from '../generators/node.generator';
export declare function getNodes(forceAtlasElement: ForceAtlasElement, andBack?: (edge: ForceAtlasNodeElement) => boolean): ForceAtlasNodeElement[];
export declare function getNodeById(id: string, forceAtlasElement: ForceAtlasElement): ForceAtlasNodeElement;
export declare function getIsNodeActive(id: string, selectElements: ForceAtlasNodeElement[]): boolean;
export declare function isHitNode(node: ForceAtlasNodeElement, point: [Point, Point]): boolean;
export declare function getAssociatedNodesById(id: string, forceAtlasElement: ForceAtlasElement): ForceAtlasNodeElement[];
export declare function getNodeGenerator(node: ForceAtlasNodeElement): ForceAtlasNodeGenerator;
export declare function isFirstDepthNode(currentNodeId: string, activeNodeId: string, forceAtlasElement: ForceAtlasElement): boolean;
export declare function getNodeIcon(node: ForceAtlasNodeElement): {
name: string;
fontSize: number;
color: string;
};