[ 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

x

number

The x-coordinate.

y

number

The y-coordinate.

Examples:

Example of a Point object:

const point = {x: 300, y: 200};

Also See: