Sets the position of the given vertex, snapping it to a grid and applying the magnetizer, if necessary. Other elements may be moved as a result of this method due to the magnetizer. For each moved element, a node moved event is fired. All of the move events are contained within a single transaction on the Toolkit so if you undo this operation, all of the affected elements will return to where they were prior to the move.
setPosition(vertex: string | Node | Group | Element, x: number, y: number): void;
|vertex||string | Node | Group | Element||The vertex to set the position for|
|x||number||X position to set|
|y||number||Y position to set|