Search
Graph.createVertex Method
See Also
 






Creates a new vertex with the specified position and size and adds it to the graph.

Namespace: MindFusion.Graphs
File: Graph.js

 Syntax

JavaScript  Copy Code

function createVertex (layoutRect, [owner])

 Parameters

layoutRect

Rect. A rectangle specifying the position and size of the vertex.

owner
Optional.

Object. The owner of the new vertex.

 Return Value

Vertex. The newly created vertex.

 See Also