fillScale

Determines the fill scale factor based on two elements' boxes.

Parameters

firstElementHTMLElementThe first element.
secondElementHTMLElementThe second element.

ReturnsNumber The fill scale for the two elements.

Example

<div id="foo" style="position: absolute; top:10px; left: 10px; height: 200px; width: 200px"></div>
<div id="bar" style="position: absolute; top:10px; left: 10px; height: 100px; width: 50px"></div>
<script>
    var fooBox = kendo.effects.box($("#foo"));
    var barBox = kendo.effects.box($("#bar"));

    console.log(kendo.effects.fillScale(barBox, fooBox)); // 0.25;
</script>
In this article
Not finding the help you need?