Creates a new vertex with the specified position and size and adds it to the graph.
Namespace: MindFusion.Graphs
Package: Graph.js
JavaScript Copy Code |
---|
function createVertex (layoutRect, [owner]) |
A rectangle specifying the position and size of the vertex.
The owner of the new vertex.
Type: Vertex
The newly created vertex.