Have ideas to improve npm?Join in the discussion! »

    @taufik-nurrohman/rect

    0.0.5 • Public • Published

    Rect Utility

    Usage

    CommonJS

    const {getOffset} = require('@taufik-nurrohman/rect');
    
    console.log(getOffset(document.querySelector('#pane')));

    ECMAScript

    import {getOffset} from '@taufik-nurrohman/rect';
    
    console.log(getOffset(document.querySelector('#pane')));

    Methods

    getAxis(event, node)

    getOffset(node)

    getRect(node)

    getSize(node)

    getScroll(node)

    setOffset(node, data)

    setSize(node, data)

    setScroll(node, data)

    Install

    npm i @taufik-nurrohman/rect

    DownloadsWeekly Downloads

    7

    Version

    0.0.5

    License

    MIT

    Unpacked Size

    5.91 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar