Foblex Flow
Introduction
Overview
Nodes
Custom Nodes
Drag Handle
Node Selection
Resize Handle
Rotate Handle
Grouping
Drag to Group
Connectors
Node as Connector
Connector Inside Node
Connector Outlet
Limiting Connections
Connection Rules
Connectable Side
Updated
Connections - Editing
Drag to Connect
Drag to Reassign
Create Node on Connection Drop
Remove Connection on Drop
Assign Node to Connection on Drop
Auto Snap
Connections - Appearance
Connection Types (Straight, Segment, Bezier, Adaptive Curve)
Custom Connection Type
Connection Behaviours
Connection Markers
Connection Content
Updated
Connection Gradients
Updated
Connections - Routing
Connection Waypoints
New
Connection Connectable Side
New
Viewport
Minimap
Zoom
Background
Auto Pan
New
Canvas Layer Ordering
New
Editor Helpers
Selection Area
Magnetic Lines
New
Magnetic Rects
New
Grid System
Add Node from Palette
Help in Positioning (Legacy)
Deprecated
Layout Engines
Dagre Layout
New
Dagre Auto Layout
New
ELK.js Layout
New
ELK.js Auto Layout
New
Reflow
Reflow on Resize
New
Editor State
Cut/Copy/Paste
Undo/Redo
Undo/Redo V2
Events
Drag Start/End Events
Custom Event Triggers
Performance
Large Scene Performance
Connection Redraw Performance
Updated
Reference Apps
AI Low-Code Platform
Updated
Schema Designer
Updated
Call Center Flow
Updated
UML Diagram
Updated
Tournament Bracket
Updated
Foblex Flow

Background

Description

The background feature allows you to render an SVG pattern underneath all nodes and connections on the canvas.
It is useful for creating grids, subtle textures, or branded backgrounds that stay fixed while the user interacts with the flow.

To enable a background, place the f-background component inside the f-flow component.
The f-background component is responsible for defining and attaching the SVG pattern that will be used as the canvas background.

Backgrounds can work in three modes:

  • rect – built-in rectangular pattern (useful for grid-like backgrounds);
  • circle – built-in circular pattern;
  • custom – a mode that lets you provide your own SVG pattern, so you can build complex or branded backgrounds (multiple patterns, custom shapes, textures, etc.).

The custom mode is configured via standard SVG <pattern> elements and a custom component.
Detailed instructions and API for creating custom patterns are described in the f-background documentation.

Backgrounds matter more than they seem: they improve spatial orientation, reinforce brand identity, and make dense editor canvases easier to parse.

Example

The example below shows how to:

  • wrap f-canvas with f-flow;
  • add f-background to enable a background;
  • switch between the built-in rect and circle patterns;
  • use the new custom mode with a custom background implementation.

[example.html] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/libs/f-examples/extensions/background-example/example.html [example.ts] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/libs/f-examples/extensions/background-example/example.ts [example.scss] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/libs/f-examples/extensions/background-example/example.scss [custom.html] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/libs/f-examples/extensions/background-example/custom-background-example/custom-background-example.html [custom.ts] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/libs/f-examples/extensions/background-example/custom-background-example/custom-background-example.ts

Edit this page on GitHub