position([x], [y])
Class: Shape.
Description:
Sets or gets location of the shape relative to top-left corner of its parent component.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
number | Point |
X position integer or a Point position object (e.g., {x:10,y:40}). |
|
|
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
