import { injectable } from 'inversify' ; import { LayoutOptions } from 'elkjs/lib/elk-api' ; import { SGraphSchema , SModelIndex , SModelElementSchema } from 'sprotty' ; import { DefaultLayoutConfigurator } from 'sprotty-elk' ; @ injectable ( ) export class DepGraphLayoutConfigurator extends DefaultLayoutConfigurator { protected graphOptions ( sgraph , index ) { return { 'elk.algorithm' : 'layered' , 'elk.direction' : 'LEFT' , 'elk.edgeRouting' : 'POLYLINE' } ; } }