import { Graph } from './graph.model' ; import { Edge } from './edge.model' ; import { Node } from './node.model' ; import { Observable } from 'rxjs' ; export interface Layout { settings ? : any ; run ( graph ) : Graph | Observable < Graph > ; updateEdge ( graph , edge ) : Graph | Observable < Graph > ; onDragStart ? ( draggingNode , $event ) : void ; onDrag ? ( draggingNode , $event ) : void ; onDragEnd ? ( draggingNode , $event ) : void ; }