[ type ] Point
Description:
Represents a point in 2D space with X and Y coordinates. Used when setting or getting position of UI component, Shape position, or Shape's anchor.
Type: Object
Properties:
| Name | Type | Description |
|---|---|---|
|
number | The x-coordinate. |
|
number | The y-coordinate. |
Examples:
Example of a Point object:
const point = {x: 300, y: 200};
