MindFusion.Diagramming for JavaScript Programmer's Guide

Diagram.setDefaultShape Method

See Also
 





Sets the default shape of shape nodes.

Namespace: MindFusion.Diagramming
File: Diagram.js

 Syntax

JavaScript  Copy Code

function setDefaultShape (value)

 Parameters

value
A Shape instance or a string that identifies the Shape.

 Remarks

The Shape property of newly created shape nodes is initialized with the value of this property. It defines a series of lines, arcs and curves composed in a complex shape. There are predefined shapes exposed as static members of the Shapes class. You can also define your own shapes as shown below.

 See Also