Skip to main content

Offset

A 2D floating-point offset.

Properties

  • distance - The magnitude of the offset.
  • filter_quality - The filter quality with which to apply this transform as a bitmap operation.
  • transform_hit_tests - Whether to apply the transformation when performing hit tests.
  • x - The horizontal offset.
  • y - The vertical offset.

Methods

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

Properties

distanceproperty

distance: float

The magnitude of the offset.

filter_qualityclass-attributeinstance-attribute

filter_quality: FilterQuality | None = None

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

transform_hit_testsclass-attributeinstance-attribute

transform_hit_tests: bool = True

Whether to apply the transformation when performing hit tests.

xclass-attributeinstance-attribute

x: Number = 0

The horizontal offset.

yclass-attributeinstance-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.