Skip to content

BaseEdgeLabelComponent

The BaseEdgeLabelComponent is responsible for displaying a label at a specific position along an edge.

<ng-diagram-base-edge-label
[id]="labelId"
[positionOnEdge]="0.5"
>
<!-- Any label content here (text, icon, button) -->
</ng-diagram-base-edge-label>
  • OnInit
  • OnDestroy

id: InputSignal<string>

The unique identifier for the edge label.


positionOnEdge: InputSignal<number>

The relative position of the label along the edge (from 0 to 1).