Universeorange.com/Docs/

Priya library Function reference Element functions calculate

    ready(() => {
        let element = select('div');
        console.log(element.calculate('height'));
        console.log(element.calculate('width'));
        console.log(element.calculate('window-height'));
        console.log(element.calculate('window-width'));
        console.log(element.calculate('offset'));
        console.log(element.calculate('all'));
    });

This function returns calculations of an element. It can return the height, width, window-height, window-width, offset and all. When selecting all it returns also the padding, margin and border of the element.

Last modified: 2021-06-07

© 2021 universeorange.com