Foblex Flow
Introduction
Overview
Nodes
Custom Nodes
Drag Handle
Node Selection
Resize Handle
Rotate Handle
Grouping
Updated
Drag to Group
Updated
Stress Test
Stress Test with Connections
Connectors
Node as Connector
Connector Inside Node
Connector Outlet
Limiting Connections
Connection Rules
New
Connectable Side
Updated
Connections
Drag to Connect
Drag to Reassign
Updated
Create Node on Connection Drop
Remove Connection on Drop
Assign Node to Connection on Drop
Auto Snap
Connection Types (Straight, Segment, Bezier, Adaptive Curve)
Updated
Custom Connection Type
Connection Behaviours
Connection Markers
Connection Text
Deprecated
Connection Center
Deprecated
Connection Content
New
Custom Connections
Connection Connectable Side
New
Extensions
Add Node from Palette
Selection Area
Help in Positioning
Grid System
Minimap
Zoom
Background
Advanced
Cut/Copy/Paste
New
Undo/Redo
Undo/Redo V2
New
Dagre Layout (Directed Graph)
ELKJS Layout (Directed Graph)
Drag Start/End Events
Custom Event Triggers
Pro Examples
Visual Programming
DB Management
UML Diagram
Tournament Bracket
Foblex Flow

Connection Types

Description

This example demonstrates how to use different connection types between nodes in foblex flow. Each type defines how the link between connectors is drawn — from a simple straight line to a smooth adaptive curve.

The example includes four built-in connection types:

  • Straight — a direct straight line between nodes.
  • Segment — an orthogonal connection composed of straight segments. You can configure:
    • fOffset — the distance from the node to the first/last segment.
    • fRadius — the corner-rounding radius for bends between segments.
  • Bezier — a smooth cubic Bézier curve. Supports additional parameters:
    • fOffset — the distance from the connection point to where the curve begins.
    • fRadius — a factor controlling the curvature intensity.
  • Adaptive Curve — a smart, context-aware curve that automatically adjusts its shape based on the direction and distance between nodes, creating a more natural flow.

You can select the connection style using the fType attribute on the element.

If the built-in types are not enough, you can also create a custom connection type. See the example and full guide here: 👉 Creating a Custom Connection Type.

Example

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

Edit this page on GitHub
In this article