Skip to content

Offset

Offset #

A 2D floating-point offset.

x #

x: Number = 0

The horizontal offset.

y #

y: Number = 0

The vertical offset.

copy_with #

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

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