Edit this page

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>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy