Skip to content

Scale

Scale #

Scaling configuration for an object.

alignment #

alignment: Alignment | None = None

Gives the origin of scale.

scale #

scale: Number | None = None

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

scale_x #

scale_x: Number | None = None

The scalar by which to multiply the x-axis.

scale_y #

scale_y: Number | None = None

The scalar by which to multiply the y-axis.

copy_with #

copy_with(
    *,
    scale: Number | None = None,
    scale_x: Number | None = None,
    scale_y: Number | None = None,
    alignment: Alignment | None = None,
) -> Scale

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