1.1.0 • Published 5 years ago
place-box v1.1.0
Place Box
Places a box within a boundary using a set of coordinates.
placeBox({
boundary: { width: 200, height: 100 },
coordinates: { x: 100, y: 50 },
box: { width: 50, height: 50 },
});
// => { left: 75, top: 25 }