public override void Initialize(IModelService modelService, IDiagramService diagramService) { base.Initialize(modelService, diagramService); var layoutCalculator = new IncrementalLayoutCalculator(_layoutPriorityProvider); _incrementalLayoutEngine = new IncrementalLayoutEngine(layoutCalculator, diagramService); DiagramService.DiagramChanged += OnDiagramChanged; }
private IncrementalLayoutEngine CreateLayoutEngine(IDiagramService diagramService) { var layoutCalculator = new IncrementalLayoutCalculator(_layoutPriorityProvider); return(new IncrementalLayoutEngine(layoutCalculator, diagramService)); }