Skip to main content

Connector Editors

An adaptable connector that consists of a series of segments, with the option to smooth to a set of Bezier splines
Vanilla JS
React
Angular
Vue
Svelte
Typescript
JsPlumb, leading alternative to GoJS, JointJS and ReactFlow

The source code for this demo is available on Github.

Vanilla JS
Angular
React
Svelte
https://github.com/jsplumb-demonstrations/segmented-connectors

If you haven't got a license for JsPlumb, we offer 30 day evaluations.

Start a free trial
Straight connectors

This connector type consists of a set of straight line segments, with the option to smooth the segments into a series of Bezier curves. This type of connector is useful for a wide range of different UIs - flowcharts, process flows, CAD applications - anything where the user wants fine grained control of the path that the edges follow.

This connector was called `SegmentedConnector` in JsPlumb Toolkit 6.x. In 7.x we have merged the previous `StraightConnector` and `SegmentedConnector` into one.

Editing paths

The editor for this connector type supports three operations:

  1. Segment end points can be dragged around
  2. The scissors icon cuts a segment into two.
  3. The trashcan icon deletes a segment. This icon is not shown when the connector has only one segment.

Path smoothing

Straight connectors can be rendered with "smoothing" enabled, in which mode the path is represented as a series of Bezier splines.

Smoothing can be switched on via the `smooth` flag in the connector options. In this demonstration, you can toggle smoothing via the Toggle smoothing button.

Editing smooth paths

When smoothing is switched on, the drag handles mark the control points of the Bezier curves.

Further reading

Read more about straight connectors in the docs on this page: https://docs.jsplumbtoolkit.com/toolkit/7.x/lib/connectors#straight

More Demos
See all demos

Flowchart builder application - JsPlumb - Angular, React, Vue, Svelte diagramming library

Flowchart

Gantt chart builder application - JsPlumb, build diagrams and rich visual UIs fast

Gantt

Chatbot builder application - JsPlumb - Angular, React, Vue, Svelte diagramming library

Chatbot

Callflow builder application - JsPlumb - When you've reached the limit with ReactFlow, we can help!

Call Flow

Kanban application - JsPlumb, leading alternative to GoJS, JointJS and ReactFlow

Kanban

Network topology diagram builder - JsPlumb - Angular, React, Vue, Svelte diagramming library

Network Topology

Database schema builder application - JsPlumb, build diagrams and rich visual UIs fast

Database Schema

Org Chart application - JsPlumb, build diagrams and rich visual UIs fast

Org Chart

Mindmap builder application - JsPlumb, leading alternative to GoJS, JointJS and ReactFlow

Mindmap

Element grouping demonstration - JsPlumb, industry standard diagramming and rich visual UI Javascript library

Nested Groups

Path tracing demonstration - JsPlumb - Angular, React, Vue, Svelte diagramming library

Path Tracing

Hello world demonstration - JsPlumb - Angular, React, Vue, Svelte diagramming library

Hello World

Image processor application - JsPlumb - Angular, React, Vue, Svelte diagramming library

Image Processor

Neighbour views dynamic selections demonstration - JsPlumb - Angular, React, Vue, Svelte diagramming library

Neighbourhood Views

Active filtering demonstration - JsPlumb, industry standard diagramming and rich visual UI Javascript library

Active Filtering

Org chart layout demonstration - JsPlumb, build diagrams and rich visual UIs fast

Hierarchy Layout

CAD Drawing tools demonstration - JsPlumb, leading alternative to GoJS, JointJS and ReactFlow

Connector Editors

Force directed layout demonstration, org chart layout demonstration - JsPlumb, flowcharts, chatbots, bar charts, decision trees, mindmaps, org charts, gantt charts and more

Layouts

Collapsible hierarchy Italic language family demonstration - JsPlumb, flowcharts, chatbots, bar charts, decision trees, mindmaps, org charts, gantt charts and more

Collapsible Hierarchy

Nested instances desktop example - JsPlumb, leading alternative to GoJS, JointJS and ReactFlow

Nested Instances