transform

Gets or sets the transformation of the element.

Example - setting transformation on an element

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

    var path = new draw.Path();
    path.moveTo(0, 0).lineTo(100, 100);

    path.transform(geom.transform().scale(2, 1));

    var surface = draw.Surface.create($("#surface"));
    surface.draw(path);
</script>

Parameters

transform kendo.geometry.TransformationThe transformation to apply to the element.

Returnskendo.geometry.Transformation The current transformation on the element.

In this article