Hierarchy

  • IConstraintRender

Properties

anchors: boolean

A Boolean that defines if the constraint's anchor points should be rendered.

Default

true
lineWidth: number

A Number that defines the line width to use when rendering the constraint outline. A value of 0 means no outline will be rendered.

Default

2
strokeStyle: string

A String that defines the stroke style to use when rendering the constraint outline. It is the same as when using a canvas, so it accepts CSS style property values.

Default

random colour
type: string

A String that defines the constraint rendering type. The possible values are 'line', 'pin', 'spring'. An appropriate render type will be automatically chosen unless one is given in options.

Default

'line'
visible: boolean

A flag that indicates if the constraint should be rendered.

Default

true

Generated using TypeDoc