--- layout: apidoc title: "Connectors.Straight - jsplumb API documentation" date: 2014-01-01 00:00:00 yuiGridsUrl: http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css yuiSeedUrl: http://yui.yahooapis.com/combo?3.9.1/build/yui/yui-min.js projectAssets: ../assets base: "../.." ---
Show:

Connectors.Straight Class

The Straight connector draws a simple straight line between the two anchor points.

Constructor

Connectors.Straight

(
  • params
)

Parameters:

  • params Object

    Constructor parameters.

    • [stub=0] Integer optional

      Optional distance to travel from each endpoint before making the connection between the two.

    • [sourceStub] Integer optional

      Optional stub for the source endpoint only.

    • [targetStub] Integer optional

      Optional stub for the target endpoint only.

    • [gap=0] Integer optional

      Optional gap to leave between the endpoints and the start of the connector.

    • [sourceGap] Integer optional

      Optional gap for the source endpoint only.

    • [targetGap] Integer optional

      Optional gap for the target endpoint only.

Item Index