Skip to content

NgDiagramEdgeTemplate

NgDiagramEdgeTemplate is an interface for custom edge components in ng-diagram. It describes the required input signal for edge data and properties.

This interface is used when creating custom edge components to ensure they receive the correct edge input.

@Component({...})
export class MyCustomEdgeComponent implements NgDiagramEdgeTemplate<MyEdgeData> {
edge!: InputSignal<Edge<MyEdgeData>>;
}

Data extends DataObject = DataObject

The type of data associated with the edge

edge: InputSignal<Edge<Data>>

Input signal containing the edge data and properties.