--- layout: apidoc title: "Anchors.Perimeter - 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:

Anchors.Perimeter Class

Defined in: doc/api/anchors.js:93

An Anchor that tracks the perimeter of some shape, approximating it with a given number of dynamically positioned locations.

Constructor

Anchors.Perimeter

(
  • params
)

Parameters:

  • params Object

    Constructor parameters

    • [anchorCount=60] Integer optional

      Optional number of anchors to use to approximate the perimeter. default is 60.

    • shape String

      Required. the name of the shape. Valid values are 'rectangle', 'square', 'ellipse', 'circle', 'triangle' and 'diamond'

    • [rotation] Number optional

      Optional rotation, in degrees, to apply.

Item Index