ngx-relationship-visualiser
Version:
A D3 force-directed-graph, implemented in Typescript for Angular, generates a visualisation graph with customisable link lengths and multiple labels between nodes. The graph can handle new data that will update lines, nodes, links, and path labels. Whenev
29 lines (28 loc) • 1.02 kB
TypeScript
import { ReplaySubject } from 'rxjs';
import { DexieService } from '../../db/graphDatabase';
import * as i0 from "@angular/core";
export declare class VisualiserGraphService {
private dexieService;
constructor(dexieService: DexieService);
links: any[];
nodes: any[];
gBrush: any;
brushMode: boolean;
brushing: boolean;
shiftKey: any;
extent: any;
zoom: boolean;
zoomToFit: boolean;
saveGraphData: ReplaySubject<unknown>;
update(data: any, element: any, zoom: any, zoomToFit: any): Promise<void>;
private ticked;
private initDefinitions;
private forceSimulation;
private compareAndMarkNodesNew;
private removeNewItem;
private randomiseNodePositions;
_update(_d3: any, svg: any, data: any): Promise<void>;
resetGraph(initialData: any, element: any, zoom: any, zoomToFit: any): void;
static ɵfac: i0.ɵɵFactoryDeclaration<VisualiserGraphService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<VisualiserGraphService>;
}