New to Kendo UI for AngularStart a free 30-day trial

A utility class for building transformation matrices.

Definition

Package:@progress/kendo-drawing

Methods

Adds an observer to be notified for changes.

Parameters:observerGeometryObserver

The observer to add.

Returns:

Transformation

  • The current Arc instance.

Creates a new instance with the same transformation matrix.

Returns:

Transformation

  • A new Transformation instance with the same matrix.

Compares this transformation with another instance.

Parameters:otherTransformation

The transformation to compare with.

Returns:

boolean

true if the transformation matrix is the same. Otherwise, returns false.

Gets the current transformation matrix for this transformation.

Returns:

Matrix

  • The current transformation matrix.

Multiplies the transformation by another one. The underlying transformation matrix is updated in-place.

Parameters:transformationTransformation

The transformation to multiply by.

Returns:

Transformation

  • The current Transformation instance.

Returns the list of observers.

Returns:

GeometryObserver[]

  • The current observers.

Stops notifying the specified observer for changes.

Parameters:observerGeometryObserver

The observer to remove.

Returns:

Transformation

  • The current Arc instance.

Resumes the notification to all observers for changes.

Returns:

Transformation

  • The current Arc instance.

Sets the rotation with the specified parameters.

Parameters:anglenumber

The angle of rotation in decimal degrees. Measured in a clockwise direction with 0 (zero) pointing "right". Negative values or values greater than 360 are normalized.

centerPoint | number[]

The center of rotation.

Returns:

Transformation

  • The current transformation instance.

Sets scale with the specified parameters.

Parameters:scaleXnumber

The scale factor on the X axis.

scaleYnumber

The scale factor on the Y axis.

origin?Point | number[]

The scale origin. Defaults to [0, 0].

Returns:

Transformation

  • The current Transformation instance.

Suspends the change notifications to all observers.

Returns:

Transformation

  • The current Arc instance.

Sets the translation with the specified parameters.

Parameters:xnumber

The distance to translate along the X axis.

ynumber

The distance to translate along the Y axis.

Returns:

Transformation

  • The current transformation instance.