Skip to content

Scale

Scaling configuration for an object.

Properties

  • alignment(Alignment | None) –

    Gives the origin of scale.

  • filter_quality(FilterQuality | None) –

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

  • origin(Offset | None) –

    The origin of the coordinate system (relative to the upper left corner),

  • scale(Number | None) –

    scale_x and scale_y get the value of scale if scale is provided.

  • scale_x(Number | None) –

    The scalar by which to multiply the x-axis.

  • scale_y(Number | None) –

    The scalar by which to multiply the y-axis.

  • transform_hit_tests(bool) –

    Whether to apply the transformation when performing hit tests.

Methods

  • copy

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

Properties#

alignment class-attribute instance-attribute #

alignment: Alignment | None = None

Gives the origin of scale.

filter_quality class-attribute instance-attribute #

filter_quality: FilterQuality | None = None

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

origin class-attribute instance-attribute #

origin: Offset | None = None

The origin of the coordinate system (relative to the upper left corner), in logical pixels.

scale class-attribute instance-attribute #

scale: Number | None = None

scale_x and scale_y get the value of scale if scale is provided.

scale_x class-attribute instance-attribute #

scale_x: Number | None = None

The scalar by which to multiply the x-axis.

scale_y class-attribute instance-attribute #

scale_y: Number | None = None

The scalar by which to multiply the y-axis.

transform_hit_tests class-attribute instance-attribute #

transform_hit_tests: bool = True

Whether to apply the transformation when performing hit tests.

Methods#

copy #

copy(
    *,
    scale: Number | None = None,
    scale_x: Number | None = None,
    scale_y: Number | None = None,
    alignment: Alignment | None = None,
    origin: Offset | None = None,
    transform_hit_tests: bool | None = None,
    filter_quality: FilterQuality | None = None,
) -> Scale

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