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

Transform

configuration

The transformation to apply to this element. Inherited from Element.transform

transform

kendo.geometry.Transformation
<div id="surface"></div>
<script>
    var draw = kendo.drawing;
    var geom = kendo.geometry;

    var rectGeometry = new geom.Rect([0, 0], [100, 100]);
    var rect = new draw.Rect(rectGeometry, {
        fill: { color: "orange" }
    });

    // Apply rotation transformation
    var transform = geom.transform().rotate(45, [50, 50]);
    rect.transform(transform);

    var surface = draw.Surface.create($("#surface"));
    surface.draw(rect);
</script>
Not finding the help you need?
Contact Support