Foblex Flow
Introduction
Getting Started
Containers
Flow Canvas
Node
Node Drag Handle
Connectors
Output Input Outlet
Connection
Connection Create Connection Connection Marker
Extends
Drag and Drop Zoom Background Line Alignment Minimap
Layouts & Behaviors
Dagre Tree ELKJS Tree
Pro Examples
Visual Programming Flow DB Management Flow Call Center Flow Scheme Editor
Foblex Flow
v12.6.4

Connection Marker

Selector: [fMarker]

The FMarkerDirective is a directive that represents a start or end marker for a connection.

Inputs

  • type: EFMarkerType; The type of the marker, either start or end. Accepts a value from EFMarkerType enum.

  • height: number; The height of the marker.

  • width: number; The width of the marker.

  • refX: number; The x-coordinate of the marker relative to the connection.

  • refY: number; The y-coordinate of the marker relative to the connection.

Usage

<f-connection [fOutputId]="id1" [fInputId]="id2">
  <svg fMarker type="f-connection-marker-start" 
       [height]="height" [width]="width" [refX]="positionX" [refY]="positionY">
    //svg content
  </svg> 
</f-connection>

Examples

Example of how to create a custom connection marker. The marker is created using an SVG element and fMarker directive. FMarkerDirective requires the following attributes: type, height, width, refX, refY. [type] attribute accepted values are from the EFMarkerType enum.

drag me
drag me

[component.html] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/connection-markers/connection-markers.component.html [component.ts] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/connection-markers/connection-markers.component.ts [component.scss] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/connection-markers/connection-markers.component.scss [common.scss] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/_flow-common.scss