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.
- FlowConfig – for the full list of available configuration options
- NgDiagramComponent
- NgDiagramService
Examples
Section titled “Examples”// define configuration in a componentconst config: NgDiagramConfig = { zoom: { max: 3 }, edgeRouting: { defaultRouting: 'orthogonal' },};<!-- use configuration in your template with ngDiagram --><ng-diagram [config]="config"></ng-diagram>