MindFusion.Diagramming for JavaScript Programmer's Guide

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

A rectangle specifying the position and size of the vertex.

owner
Optional.

The owner of the new vertex.

 Return Value

The newly created vertex.

 See Also