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

Rotate

methods

Sets rotation with the specified parameters.

Parameters:angleNumber

The angle of rotation in decimal degrees. Measured in clockwise direction with 0 pointing "right". Negative values or values greater than 360 will be normalized.

centerArray|kendo.geometry.Point

The center of rotation.

Returns:kendo.geometry.Transformation

The current transformation instance.

<script>
var geom = kendo.geometry;
var transform = geom.transform();

// Rotate 45 degrees around center point (100, 100)
transform.rotate(45, [100, 100]);

// Or using a Point object
var centerPoint = new geom.Point(50, 50);
var transform2 = geom.transform().rotate(90, centerPoint);

console.log('Rotation applied with center at:', centerPoint.x, centerPoint.y);
</script>
Not finding the help you need?
Contact Support