Creates a new SvgNode instance and adds it to the nodes collection of the underlying diagram.
Namespace: MindFusion.Diagramming
File: Factory.js
JavaScript
![]() |
---|
function createSvgNode ([bounds] | [x, y, width, height]) |
Sets the bounds of the shape to create.
The x-coordinate of the upper-left corner of the new node.
The y-coordinate of the upper-left corner of the new node.
The width of the new node.
The height of the new node.
The newly created SvgNode instance.