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
,right
andcenter
).vAlign
: The vertical alignment (options aretop
,bottom
andmiddle
).