scale

Sets scale with the specified parameters.

Parameters

scaleX Number

The scale factor on the X axis.

scaleY Number

The scale factor on the Y axis.

Returns

kendo.geometry.Transformation The current transformation instance.

Example

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

// Scale by 2x horizontally and 1.5x vertically
transform.scale(2, 1.5);

// Chain with other transformations
var combinedTransform = geom.transform()
    .scale(3, 2)
    .translate(10, 20);

console.log('Scale transformation applied');
console.log('Matrix values:', transform.matrix().a, transform.matrix().d);
</script>
In this article
scale
Not finding the help you need?
Contact Support