MindFusion.Diagramming for JavaScript Programmer's Guide
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.

A string defining the shape's outline.

params.decoration
Optional.

A string defining the shape's decoration.

params.shapeDecoration
Optional.

A string defining additional shape decoration.

params.id
Optional.

The string identifier of the shape.

params.outlinePen
Optional.

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

params.outlineBrush
Optional.

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

params.decorationPen
Optional.

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

params.decorationBrush
Optional.

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

params.shapeDecorationPen
Optional.

A string specifying the stroke of the additional shape decoration.

params.shapeDecorationBrush
Optional.

A string specifying the fill of the additional shape decoration.

 Remarks

The id argument should match an identifier passed to a constructor of the existing shape templates.

 See Also

Shape Class
MindFusion.Diagramming Namespace