Transformation
A utility class for building transformation matrices.
Definition
Package:@progress/kendo-drawing
Methods
Adds an observer to be notified for changes.
Creates a new instance with the same transformation matrix.
- A new Transformation instance with the same matrix.
Compares this transformation with another instance.
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.
- The current transformation matrix.
Multiplies the transformation by another one. The underlying transformation matrix is updated in-place.
The transformation to multiply by.
Returns:- The current Transformation instance.
Returns the list of observers.
- The current observers.
Stops notifying the specified observer for changes.
Resumes the notification to all observers for changes.
- The current Arc instance.
Sets the rotation with the specified parameters.
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:- The current transformation instance.
Sets scale with the specified parameters.
The scale factor on the X axis.
scaleYnumberThe scale factor on the Y axis.
origin?Point | number[]The scale origin. Defaults to [0, 0].
Returns:- The current Transformation instance.
Suspends the change notifications to all observers.
- The current Arc instance.
Sets the translation with the specified parameters.
The distance to translate along the X axis.
ynumberThe distance to translate along the Y axis.
Returns:- The current transformation instance.