position([x], [y])

Class: Polyline. Method inherited from Shape.

Description:

Sets or gets location of the shape relative to top-left corner of its parent component.

Parameters:

Name Type Description

[x]

number | Point

X position integer or a Point position object (e.g., {x:10,y:40}).

[y]

number

Y position integer.

Returns:

If called without arguments, current position object is returned; otherwise this shape is returned for method chaining.

Type: Point | this

Also See: