place-box
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Place Box

Places a box within a boundary using a set of coordinates.

npm module Coverage Status Build Status Dependencies devDependencies Status

placeBox({
  boundary: { width: 200, height: 100 },
  coordinates: { x: 100, y: 50 },
  box: { width: 50, height: 50 },
});
// => { left: 75, top: 25 }

Package Sidebar

Install

npm i place-box

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

16.9 kB

Total Files

17

Last publish

Collaborators

  • christianhg