Skip to content

NgDiagramConfig

NgDiagramConfig = DeepPartial<FlowConfig>

The recommended configuration type for ng-diagram.

This type allows you to provide only the configuration options you want to override. All properties are optional and correspond to those in FlowConfig.

// define configuration in a component
const config: NgDiagramConfig = {
zoom: { max: 3 },
edgeRouting: { defaultRouting: 'orthogonal' },
};
<!-- use configuration in your template with ngDiagram -->
<ng-diagram [config]="config"></ng-diagram>