Skip to content

NgDiagramConfig

NgDiagramConfig = DeepPartial<FlowConfig>

NgDiagramConfig is the main configuration type for the ngDiagram library. This configuration object allows you to override only the properties you need from the full FlowConfig.

This type is used as the type for the config input in NgDiagramComponent and throughout the public API, such as in NgDiagramService.

Example usage:

// 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>