Skip to content

Offset

A 2D floating-point offset.

Properties

  • x(Number) –

    The horizontal offset.

  • y(Number) –

    The vertical offset.

Methods

  • copy

    Returns a copy of this object with the specified properties overridden.

Properties#

x #

x: Number = 0

The horizontal offset.

y #

y: Number = 0

The vertical offset.

Methods#

copy #

copy(
    *, x: Number | None = None, y: Number | None = None
) -> Offset

Returns a copy of this object with the specified properties overridden.