Skip to content

Curved Connectors

ZZzzaaKK edited this page May 15, 2023 · 3 revisions

Showcase

Curved Connectors

Functional Description

Connectors between elements were previously drawn straight. The Curved Connectors feature allows those relations to be drawn curved instead. The purpose of this feature is to increase the clarity of the visualization.

Technical Description

A new file ui/scripts/Relation/RelationCurvedConnectionHelper.js defines a function object named createCurvedRelationConnectionHelper. This function object takes a controllerConfig as input and contains all necessary logic for drawing curved connectors. Based on configuration, either straight or curved connectors will be created in the activate() function in ui/scripts/Relation/RelationController.js.

Configuration

The Curved Connectors feature can be enabled or disabled as part of the controllerConfig in a setup. It is enabled by default in the example setup ui/setups/relations.js.

Clone this wiki locally