Skip to content

NgDiagramBackgroundComponent

The NgDiagramBackgroundComponent is responsible for rendering the background of the diagram.

<ng-diagram ... >
<!-- Built-in backgrounds -->
<ng-diagram-background type="grid" />
<ng-diagram-background type="dots" />
<ng-diagram-background /> <!-- Defaults to dots -->
<!-- Custom background via content projection -->
<ng-diagram-background>
<!-- Optional: custom SVG, HTML or IMAGE for background -->
</ng-diagram-background>
</ng-diagram>
  • AfterContentInit

type: InputSignal<"grid" | "dots">

The type of background pattern to display.

'dots'