Creates a new ShapeNode instance and adds it to the nodes collection of the underlying diagram.
Namespace: MindFusion.Diagramming
File: Factory.js
JavaScript Copy Code |
---|
function createShapeNode ([bounds, [x, [y, [width, [height]]]]]) |
Number. The x-coordinate of the upper-left corner of the new node.
Number. The y-coordinate of the upper-left corner of the new node.
Number. The width of the new node.
Number. The height of the new node.
The newly created ShapeNode instance.
This method accepts either a single Rect object specifying the bounding rectangle of the new node, or a list of four numbers specifying the location and size.
The method creates a shape node with the specified arguments, if any.
JavaScript Pack Programmer's Guide | © 2024 MindFusion |