Search
Shape Constructor
See Also
 






Initializes a new instance of the Shape class.

Namespace: MindFusion.Diagramming
File: Shape.js

 Syntax

JavaScript  Copy Code

function Shape ([params])

 Parameters

params.outline
Optional.

String. A string defining the shape's outline.

params.decoration
Optional.

String. A string defining the shape's decoration.

params.shapeDecorations
Optional.

Array. An array containing shapeDecoration objects defining additional shape decoration.

params.id
Optional.

String. The string identifier of the shape.

params.fillMode
Optional.

String. A string specifying the fill mode;

params.outlinePen
Optional.

String. A string specifying the stroke of the shape's outline.

params.outlineBrush
Optional.

String. A string specifying the fill of the shape's outline.

params.decorationPen
Optional.

String. A string specifying the stroke of the shape's decoration.

params.decorationBrush
Optional.

String. A string specifying the fill of the shape's decoration.

 See Also