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