Connectors.StateMachine Class
Provides "state machine" connectors. These are a quadratic bezier curve.
Constructor
Connectors.StateMachine
-
params
Parameters:
-
params
ObjectConstructor parameters.
-
[curviness=10]
Number optionalMeasure of how "curvy" the connectors will be. this is translated as the distance that the Bezier curve's control point is from the midpoint of the straight line connecting the two endpoints, and does not mean that the connector is this wide. The Bezier curve never reaches its control points; they act as gravitational masses.
-
[margin=5]
Integer optionalDistance from element to start and end connectors, in pixels.
-
[proximityLimit=80]
Integer optionalSets the distance beneath which the elements are consider too close together to bother with fancy curves.
-
[loopbackRadius=25]
Integer optionalThe radius of a loopback connector.
-
[showLoopback=true]
Boolean optionalIf set to false this tells the connector that it is ok to paint connections whose source and target is the same element with a connector running through the element. The default value for this is true; the connector always makes a loopback connection loop around the element rather than passing through it.
-
[orientation="clockwise"]
String optionalValid values are
"clockwise"
and"anticlockwise"
. Indicates in which direction a loopback connection should be considered to be travelling.
-