Search
ShapeElement Constructor
See Also
 





Initializes a new instance of the ShapeElement class.

Namespace: MindFusion.Diagramming
File: Shape.js

 Syntax

JavaScript  Copy Code

function ShapeElement ([func, [args, [strokeColor, [strokeThickness, [strokeDashStyle]]]]])

 Parameters

func
Optional.

String. One of the moveTo, lineTo, arc, bezierCurveTo, roundRect functions.

args
Optional.

Array. Coordinates to pass to the drawing function.

strokeColor
Optional.

String. Optional color to apply to the element.

strokeThickness
Optional.

Number. Optional thickness to apply to the element.

strokeDashStyle
Optional.

DashStyle. Optional dash style to apply to the element.

 See Also