Skip to content

Arrowheads ​

Package: vyuh_diagram_extension_connectors. Optional commercial extension; import it alongside vyuh_diagram_flutter in a Flutter application, or alongside core in Dart.

Install ​

ConnectorsExtension() installs the full arrowhead set together with the elbow and curved routes; ConnectorsExtension(arrowheads: false) leaves the arrowheads out. Core draws ArrowheadKind.none and ArrowheadKind.angle without it.

dart
final controller = DiagramController(
  configuration: DiagramConfiguration(
    extensions: [EditorExtension(), ConnectorsExtension()],
  ),
);
controller.edits.setEndArrowhead(connectorId, kind: ArrowheadKind.filledDiamond);

Arrowhead set ​

connectorArrowheads lists the DiagramArrowheadDefinitions the extension installs:

KindLabel
ArrowheadKind.triangleTriangle
ArrowheadKind.filledTriangleFilled triangle
ArrowheadKind.squareSquare
ArrowheadKind.dotCircle
ArrowheadKind.diamondDiamond
ArrowheadKind.invertedTriangleInverted triangle
ArrowheadKind.barBar
ArrowheadKind.filledDiamondFilled diamond
ArrowheadKind.crossCross
ArrowheadKind.capsuleCapsule
ArrowheadKind.halfCapsuleHalf capsule

Each definition supplies headless geometry; shared rendering consumes it.

See connectors API for the shared verbs and configuration.