DEMOS
DOCS
FEATURES
DOWNLOAD
PURCHASE
CONTACT
BLOG
Show:

Connectors.StateMachine Class

Provides "state machine" connectors. These are a quadratic bezier curve.

Constructor

Connectors.StateMachine

(
  • params
)

Parameters:

  • params Object

    Constructor parameters.

    • [curviness=10] Number optional

      Measure 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 optional

      Distance from element to start and end connectors, in pixels.

    • [proximityLimit=80] Integer optional

      Sets the distance beneath which the elements are consider too close together to bother with fancy curves.

    • [loopbackRadius=25] Integer optional

      The radius of a loopback connector.

    • [showLoopback=true] Boolean optional

      If 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 optional

      Valid values are "clockwise" and "anticlockwise". Indicates in which direction a loopback connection should be considered to be travelling.

Item Index