UNPKG

ngx-vis-network-etsisi

Version:

## Description Final Degree project - Implementation of Angular library using Vis Network. The main goal of this project is get easier the use of Vis Network including an abstraction layer to different edition methods in an Angular project.

62 lines (61 loc) 2.09 kB
import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core'; import { DataSet, Edge, Node, Options } from 'vis-network/standalone'; import { NgxVisNetworkEtsisiService } from './ngx-vis-network-etsisi.service'; /** * @description Using this directive the graph will be dynamically added inside the chosen container. * @export NgxVisNetworkEtsisiDirective */ export declare class NgxVisNetworkEtsisiDirective implements OnInit, OnDestroy { private elementRef; private ngxVisNetworkEtsisiService; /** * @description Graph network id. * @memberOf NgxVisNetworkEtsisiDirective */ etsisiVis: string; /** * @description Graph network nodes. * @memberOf NgxVisNetworkEtsisiDirective */ etsisiVisNodes: DataSet<Node>; /** * @description Graph network edges. * @memberOf NgxVisNetworkEtsisiDirective */ etsisiVisEdges: DataSet<Edge>; /** * @description Graph network id. * @memberOf NgxVisNetworkEtsisiDirective */ etsisiVisOptions: Options; /** * @description This output will be emitted when the graph network is ready. * The output data is the graph network id. * @memberOf NgxVisNetworkEtsisiDirective */ ready: EventEmitter<string>; private readonly container; private isReady; /** * @description It creates a new NgxVisNetworkEtsisiDirective * @param elementRef The HTML element * @param ngxVisNetworkEtsisiService The ngxVisNetworkEtsisiService * @memberOf NgxVisNetworkEtsisiDirective */ constructor(elementRef: ElementRef, ngxVisNetworkEtsisiService: NgxVisNetworkEtsisiService); /** * @description It generates a new graph when the data are available * @memberOf NgxVisNetworkEtsisiDirective */ ngOnInit(): void; /** * @description It generates the graph * @memberOf NgxVisNetworkEtsisiDirective */ private createNetwork; /** * @description It destroys the graph * @memberOf NgxVisNetworkEtsisiDirective */ ngOnDestroy(): void; }