transform

Gets or sets the transformation of the element. Inherited from Element.transform

Example

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

    var position = new geom.Point(80, 80);
    var text = new draw.Text("Scaled text", position, {
        font: "16px Arial"
    });

    var transformation = geom.transform().scale(1.5, 1.5);
    text.transform(transformation);

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

Parameters

transform kendo.geometry.Transformation

The transformation to apply to the element.

Returns

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

In this article
transform
Not finding the help you need?
Contact Support