Skip to content

Offset

A 2D floating-point offset.

Properties

Methods

  • copy

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

Properties#

distance property #

distance: float

The magnitude of the offset.

filter_quality class-attribute instance-attribute #

filter_quality: FilterQuality | None = None

The filter quality with which to apply this transform as a bitmap operation.

transform_hit_tests class-attribute instance-attribute #

transform_hit_tests: bool = True

Whether to apply the transformation when performing hit tests.

x class-attribute instance-attribute #

x: Number = 0

The horizontal offset.

y class-attribute instance-attribute #

y: Number = 0

The vertical offset.

Methods#

copy #

copy(
    *,
    x: Number | None = None,
    y: Number | None = None,
    transform_hit_tests: bool | None = None,
    filter_quality: FilterQuality | None = None,
) -> Offset

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