align
Align a shape in relation to the origin.
var e = g.ellipse(0, 0, 50, 50);
g.align(e, g.Point.ZERO, 'left', 'top');
Parameters
shape: The input shape.position: The alignment point.hAlign: The horizontal alignment (options areleft,rightandcenter).vAlign: The vertical alignment (options aretop,bottomandmiddle).