UNPKG

bit-bin

Version:

<a href="https://opensource.org/licenses/Apache-2.0"><img alt="apache" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a> <a href="https://github.com/teambit/bit/blob/master/CONTRIBUTING.md"><img alt="prs" src="https://img.shields.io/b

29 lines (28 loc) 922 B
import { Digraph } from 'graphviz'; import { Graph } from 'graphlib'; import BitId from '../../bit-id/bit-id'; declare type ConfigProps = { layout?: string; fontName?: string; fontSize?: string; backgroundColor?: string; nodeColor?: string; noDependencyColor?: string; edgeColor?: string; graphVizOptions?: Record<string, any>; graphVizPath?: string; highlightColor?: string; }; export default class VisualDependencyGraph { graphlib: Graph; graph: Digraph; config: ConfigProps; constructor(graphlib: Graph, graph: Digraph, config: ConfigProps); static loadFromGraphlib(graphlib: Graph, config?: ConfigProps): Promise<VisualDependencyGraph>; static buildDependenciesGraph(graphlib: Graph, config: ConfigProps): Digraph; getNode(id: BitId): any; highlightId(id: BitId): void; image(imagePath: string): Promise<string>; dot(): any; } export {};