UNPKG

react-beautiful-dnd

Version:

Beautiful, accessible drag and drop for lists with React.js

24 lines (22 loc) 431 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (_ref) { var top = _ref.top, right = _ref.right, bottom = _ref.bottom, left = _ref.left; return { top: top, right: right, bottom: bottom, left: left, width: right - left, height: bottom - top, center: { x: (right + left) / 2, y: (bottom + top) / 2 } }; };