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.
Example usage
Section titled “Example usage”@Component({...})export class MyCustomEdgeComponent implements NgDiagramEdgeTemplate<MyEdgeData> { edge!: InputSignal<Edge<MyEdgeData>>;}
Type Parameters
Section titled “Type Parameters”Data
extends DataObject
= DataObject
The type of data associated with the edge
Properties
Section titled “Properties”edge:
InputSignal
<Edge
<Data
>>
Input signal containing the edge data and properties.