ph-position

1.0.0-beta.0 • Public • Published

🚀 Welcome to your new awesome project!

This project has been created using webpack-cli, you can now run

npm i ph-position
import getPosition from 'ph-position'
const {offsetWidth,offsetHeight} = dom
const {x,y} = PhPosition({offsetWidth,offsetHeight},target.getBoundingClientRect(),{top:boolean,dir:vt|hr|''})
dom.style.cssText = `left:${x}px,top:${y}px`

Readme

Keywords

none

Package Sidebar

Install

npm i ph-position

Weekly Downloads

0

Version

1.0.0-beta.0

License

none

Unpacked Size

2.09 kB

Total Files

3

Last publish

Collaborators

  • phoeon