npm.io
1.1.0 • Published 6 years ago

place-box

Licence
MIT
Version
1.1.0
Deps
0
Size
16 kB
Vulns
0
Weekly
0
Stars
1

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 }

Keywords