Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ScalingTransform

Scales an object in horizontal and vertical direction.

Hierarchy

Implements

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • Initializes a new instance of the ScalingTransform class.

    Parameters

    • scaleX: number

      The horizontal scaling factor.

    • scaleY: number

      The vertical scaling factor.

    • center: Point

      The center from which the scaling is calculated.

    Returns ScalingTransform

Properties

center

center: Point

Gets or sets the center from which the scaling is calculated.

scaleX

scaleX: number

Gets or sets the horizontal scaling factor.

scaleY

scaleY: number

Gets or sets the vertical scaling factor.

Accessors

Private type

  • get type(): "scaling"
  • Returns "scaling"

Static identity

Methods

Private serialize

  • serialize(target: BufferWriter): void
  • Parameters

    • target: BufferWriter

    Returns void

Static create

  • Returns the transformation that is defined by the specified description.

    Parameters

    Returns Transform

Static createScalingTransform

  • Returns the scaling transform that is defined by the specified description.

    Parameters

    Returns ScalingTransform

Generated using TypeDoc