UNPKG

ngx-cytoscapejs

Version:
33 lines (32 loc) 1.56 kB
import { CxConverter } from '../enum/cx-converter.enum'; import { CxConversion } from '../interface/cx-conversion.interface'; import * as i0 from "@angular/core"; /** * This service handles the conversion from CX to Cytoscape.js graphs. */ export declare class CxService { /** * Tries to convert the incoming CX object into CytoscapeOptions using the list of {@link CxConverter}s in sequence. * * @param {any} cxData CX object * @param {CxConverter[]} converters List of {@link CxConverter}s * @returns {CxConversion | null} On success the resulting CxConversion object is returned, otherwise null is returned. */ convert(cxData: any, converters: CxConverter[]): CxConversion | null; /** * Tries to convert the input CX object using [cx2js]{@link https://github.com/cytoscape/cx2js}. * * @param {any} cxData CX object * @returns {CxConversion | null} On success the converted CytoscapeOptions object as well as the attributeNameMap object is returned, otherwise null is returned. */ private convertWithCx2JS; /** * Tries to convert the input CX object using [cx-viz-converter]{@link https://github.com/cytoscape/cx-viz-converter}. * * @param {any} cxData CX object * @returns {CytoscapeOptions | null} On success the converted CytoscapeOptions object is returned, otherwise null is returned. */ private convertWithCxVizConverter; static ɵfac: i0.ɵɵFactoryDeclaration<CxService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<CxService>; }