Gets or sets the default shape assigned to new ShapeNode objects.
Namespace: MindFusion.Diagramming
File: Diagram.js
JavaScript Copy Code |
---|
get defaultShape() {} |
Shape | String
A Shape object or identifier.
The 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.
JavaScript Copy Code |
---|
var shape = new MindFusion.Diagramming.Shape({ diagram.defaultShape = shape; |
JavaScript Pack Programmer's Guide | © 2024 MindFusion |