transform
Gets or sets the transformation of the element. Inherited from Element.transform
Parameters
transform kendo.geometry.Transformation
The transformation to apply to the element.
Returns
kendo.geometry.Transformation
The current transformation on the element.
Example
<div id="surface"></div>
<script>
var draw = kendo.drawing;
var geom = kendo.geometry;
var circleGeometry = new geom.Circle([100, 100], 25);
var circle = new draw.Circle(circleGeometry)
.stroke("green", 2)
.fill("lightgreen");
var surface = draw.Surface.create($("#surface"));
surface.draw(circle);
// Create and apply transformation
var transform = geom.transform()
.rotate(45, [100, 100])
.scale(1.5, 1.5, [100, 100]);
circle.transform(transform);
// Get current transformation
var currentTransform = circle.transform();
console.log("Current transformation:", currentTransform);
</script>
In this article