Gets or sets the default shape assigned to new ShapeNode objects.
Namespace: MindFusion.Diagramming
File: Diagram.js
SyntaxJavaScript
Copy Code
|
|---|
get defaultShape() {} |
Shape | String
A Shape object or identifier.
RemarksThe shape property of newly created ShapeNode objects 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.
ExampleJavaScript
Copy Code
|
|---|
var shape = new MindFusion.Diagramming.Shape({ diagram.defaultShape = shape; |
See Also