{"_id":"css-box-model","_rev":"3910577","name":"css-box-model","description":"Get accurate and well named css box model information about an Element 📦","dist-tags":{"latest":"1.2.1"},"maintainers":[{"name":"alexreardon","email":"alexreardon@gmail.com"}],"time":{"modified":"2025-09-01T01:14:23.000Z","created":"2018-04-16T00:41:54.051Z","1.2.1":"2020-04-27T22:21:25.467Z","1.2.0":"2019-08-26T03:59:20.080Z","1.1.3":"2019-07-09T01:31:48.872Z","1.1.2":"2019-05-07T23:55:25.602Z","1.1.1":"2018-11-07T02:21:06.498Z","1.1.0":"2018-10-12T04:12:24.235Z","1.0.0":"2018-06-29T04:05:20.521Z","0.0.14":"2018-06-11T22:38:49.141Z","0.0.13":"2018-05-03T22:31:06.773Z","0.0.12":"2018-04-26T23:13:33.415Z","0.0.11":"2018-04-23T22:07:00.856Z","0.0.10":"2018-04-23T21:54:20.452Z","0.0.9":"2018-04-23T07:14:57.124Z","0.0.8":"2018-04-23T03:51:27.459Z","0.0.7":"2018-04-23T03:21:03.980Z","0.0.5":"2018-04-23T01:41:46.797Z","0.0.4":"2018-04-23T01:29:19.410Z","0.0.3":"2018-04-23T01:03:34.689Z","0.0.2":"2018-04-23T00:41:19.709Z","0.0.1":"2018-04-16T00:41:54.051Z"},"users":{},"author":{"name":"Alex Reardon","email":"alexreardon@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/alexreardon/css-box-model.git"},"versions":{"1.2.1":{"name":"css-box-model","version":"1.2.1","description":"Get accurate and well named css box model information about an Element 📦","author":{"name":"Alex Reardon","email":"alexreardon@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/alexreardon/css-box-model.git"},"bugs":{"url":"https://github.com/alexreardon/css-box-model/issues"},"keywords":["css","box model","css box model","getBoundingClientRect","DOMRect","ClientRect","Rect","Spacing","DOM"],"main":"dist/css-box-model.cjs.js","module":"dist/css-box-model.esm.js","types":"src/index.d.ts","sideEffects":false,"scripts":{"test":"yarn jest","lint":"yarn prettier --debug-check src/** test/**","validate":"yarn lint && flow check","build:clean":"rimraf dist","build:flow":"echo \"// @flow\n\nexport * from '../src';\" > dist/css-box-model.cjs.js.flow","build:dist":"yarn rollup --config rollup.config.js","build":"yarn build:clean && yarn build:dist && yarn build:flow","prepublishOnly":"yarn build"},"devDependencies":{"@babel/core":"^7.5.5","@babel/preset-env":"^7.5.5","@babel/preset-flow":"^7.0.0","babel-plugin-dev-expression":"^0.2.2","flow-bin":"0.106.1","jest":"^24.9.0","prettier":"1.18.2","rimraf":"^3.0.0","rollup":"^1.20.2","rollup-plugin-babel":"^4.3.3","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-replace":"^2.2.0","rollup-plugin-terser":"^5.1.1"},"dependencies":{"tiny-invariant":"^1.0.6"},"gitHead":"1fc7824e417e3106c7d47cc6f8d409a8860ddcb4","homepage":"https://github.com/alexreardon/css-box-model#readme","_id":"css-box-model@1.2.1","_nodeVersion":"13.12.0","_npmVersion":"6.14.4","dist":{"shasum":"59951d3b81fd6b2074a62d49444415b0d2b4d7c1","size":7539,"noattachment":false,"key":"/css-box-model/-/css-box-model-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-box-model/download/css-box-model-1.2.1.tgz"},"maintainers":[{"name":"alexreardon","email":"alexreardon@gmail.com"}],"_npmUser":{"name":"alexreardon","email":"alexreardon@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-box-model_1.2.1_1588026085347_0.1519394131008711"},"_hasShrinkwrap":false,"publish_time":1588026085467,"_cnpm_publish_time":1588026085467,"_cnpmcore_publish_time":"2021-12-16T15:05:07.541Z"},"1.2.0":{"name":"css-box-model","version":"1.2.0","description":"Get accurate and well named css box model information about an Element 📦","author":{"name":"Alex Reardon","email":"alexreardon@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/alexreardon/css-box-model.git"},"bugs":{"url":"https://github.com/alexreardon/css-box-model/issues"},"keywords":["css","box model","css box model","getBoundingClientRect","DOMRect","ClientRect","Rect","Spacing","DOM"],"main":"dist/css-box-model.cjs.js","module":"dist/css-box-model.esm.js","types":"src/index.d.ts","sideEffects":false,"scripts":{"test":"yarn jest","lint":"yarn prettier --debug-check src/** test/**","typecheck":"yarn flow","validate":"yarn lint && yarn flow","build:clean":"rimraf dist","build:flow":"echo \"// @flow\n\nexport * from '../src';\" > dist/css-box-model.cjs.js.flow","build:dist":"yarn rollup --config rollup.config.js","build":"yarn build:clean && yarn build:dist && yarn build:flow","prepublishOnly":"yarn build"},"devDependencies":{"@babel/core":"^7.5.5","@babel/preset-env":"^7.5.5","@babel/preset-flow":"^7.0.0","babel-core":"7.0.0-bridge.0","babel-jest":"^24.9.0","babel-plugin-dev-expression":"^0.2.2","flow-bin":"0.106.1","jest":"^24.9.0","prettier":"1.18.2","rimraf":"^3.0.0","rollup":"^1.20.2","rollup-plugin-babel":"^4.3.3","rollup-plugin-commonjs":"^10.0.2","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-replace":"^2.2.0","rollup-plugin-uglify":"^6.0.2"},"dependencies":{"tiny-invariant":"^1.0.6"},"_id":"css-box-model@1.2.0","dist":{"shasum":"3a26377b4162b3200d2ede4b064ec5b6a75186d0","size":7033,"noattachment":false,"key":"/css-box-model/-/css-box-model-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-box-model/download/css-box-model-1.2.0.tgz"},"maintainers":[{"name":"alexreardon","email":"alexreardon@gmail.com"}],"_npmUser":{"name":"alexreardon","email":"alexreardon@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-box-model_1.2.0_1566791959979_0.25483053643273634"},"_hasShrinkwrap":false,"publish_time":1566791960080,"_cnpm_publish_time":1566791960080,"_cnpmcore_publish_time":"2021-12-16T15:05:07.787Z"},"1.1.3":{"name":"css-box-model","version":"1.1.3","description":"Get accurate and well named css box model information about an Element 📦","author":{"name":"Alex Reardon","email":"alexreardon@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/alexreardon/css-box-model.git"},"bugs":{"url":"https://github.com/alexreardon/css-box-model/issues"},"keywords":["css","box model","css box model","getBoundingClientRect","DOMRect","ClientRect","Rect","Spacing","DOM"],"main":"dist/css-box-model.cjs.js","module":"dist/css-box-model.esm.js","sideEffects":false,"scripts":{"test":"yarn jest","lint":"yarn prettier --debug-check src/** test/**","typecheck":"yarn flow","validate":"yarn lint && yarn flow","build:clean":"rimraf dist","build:flow":"echo \"// @flow\n\nexport * from '../src';\" > dist/css-box-model.cjs.js.flow","build:dist":"yarn rollup --config rollup.config.js","build":"yarn build:clean && yarn build:dist && yarn build:flow","prepublishOnly":"yarn build"},"devDependencies":{"@babel/core":"^7.5.0","@babel/preset-env":"^7.5.2","@babel/preset-flow":"^7.0.0","babel-core":"7.0.0-bridge.0","babel-jest":"^24.8.0","babel-plugin-dev-expression":"^0.2.2","flow-bin":"0.102.0","jest":"^24.8.0","prettier":"1.18.2","rimraf":"^2.6.3","rollup":"^1.16.6","rollup-plugin-babel":"^4.3.3","rollup-plugin-commonjs":"^10.0.1","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-replace":"^2.2.0","rollup-plugin-uglify":"^6.0.2"},"dependencies":{"tiny-invariant":"^1.0.5"},"_id":"css-box-model@1.1.3","dist":{"shasum":"aa1ac5853d2c9358783e67fe0b1ca22ecd82b232","size":6720,"noattachment":false,"key":"/css-box-model/-/css-box-model-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-box-model/download/css-box-model-1.1.3.tgz"},"maintainers":[{"name":"alexreardon","email":"alexreardon@gmail.com"}],"_npmUser":{"name":"alexreardon","email":"alexreardon@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-box-model_1.1.3_1562635908738_0.2684945051497798"},"_hasShrinkwrap":false,"publish_time":1562635908872,"_cnpm_publish_time":1562635908872,"_cnpmcore_publish_time":"2021-12-16T15:05:08.028Z"},"1.1.2":{"name":"css-box-model","version":"1.1.2","description":"Get accurate and well named css box model information about an Element 📦","author":{"name":"Alex Reardon","email":"alexreardon@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/alexreardon/css-box-model.git"},"bugs":{"url":"https://github.com/alexreardon/css-box-model/issues"},"keywords":["css","box model","css box model","getBoundingClientRect","DOMRect","ClientRect","Rect","Spacing","DOM"],"main":"dist/css-box-model.cjs.js","module":"dist/css-box-model.esm.js","sideEffects":false,"scripts":{"test":"yarn jest","lint":"yarn prettier --debug-check src/** test/**","typecheck":"yarn flow","validate":"yarn lint && yarn flow","build:clean":"rimraf dist","build:flow":"echo \"// @flow\n\nexport * from '../src';\" > dist/css-box-model.cjs.js.flow","build:dist":"yarn rollup --config rollup.config.js","build":"yarn build:clean && yarn build:dist && yarn build:flow","prepublishOnly":"yarn build"},"devDependencies":{"@babel/core":"^7.4.4","@babel/preset-env":"^7.4.4","@babel/preset-flow":"^7.0.0","babel-core":"7.0.0-bridge.0","babel-jest":"^24.8.0","babel-plugin-dev-expression":"^0.2.1","flow-bin":"^0.98.1","jest":"^24.8.0","prettier":"1.17.0","rimraf":"^2.6.3","rollup":"^1.11.3","rollup-plugin-babel":"^4.3.2","rollup-plugin-commonjs":"^9.3.4","rollup-plugin-node-resolve":"^4.2.3","rollup-plugin-replace":"^2.2.0","rollup-plugin-uglify":"^6.0.2"},"dependencies":{"tiny-invariant":"^1.0.4"},"_id":"css-box-model@1.1.2","dist":{"shasum":"c0e2c9d23b1b2fd98759706b88cfd4e2c38db727","size":6715,"noattachment":false,"key":"/css-box-model/-/css-box-model-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-box-model/download/css-box-model-1.1.2.tgz"},"maintainers":[{"name":"alexreardon","email":"alexreardon@gmail.com"}],"_npmUser":{"name":"alexreardon","email":"alexreardon@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-box-model_1.1.2_1557273325398_0.7455913323347534"},"_hasShrinkwrap":false,"publish_time":1557273325602,"_cnpm_publish_time":1557273325602,"_cnpmcore_publish_time":"2021-12-16T15:05:08.300Z"},"1.1.1":{"name":"css-box-model","version":"1.1.1","description":"Get accurate and well named css box model information about an Element 📦","author":{"name":"Alex Reardon","email":"alexreardon@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/atlassian/react-beautiful-dnd.git"},"bugs":{"url":"https://github.com/atlassian/react-beautiful-dnd/issues"},"keywords":["css","box model","css box model","getBoundingClientRect","DOMRect","ClientRect","Rect","Spacing","DOM"],"main":"dist/css-box-model.cjs.js","module":"dist/css-box-model.esm.js","sideEffects":false,"scripts":{"test":"yarn jest","lint":"yarn prettier --debug-check src/** test/**","typecheck":"yarn flow","validate":"yarn lint && yarn flow","build:clean":"rimraf dist","build:flow":"echo \"// @flow\n\nexport * from '../src';\" > dist/css-box-model.cjs.js.flow","build:dist":"yarn rollup --config rollup.config.js","build":"yarn build:clean && yarn build:dist && yarn build:flow","prepublishOnly":"yarn build"},"devDependencies":{"@babel/core":"^7.1.5","@babel/preset-env":"^7.1.5","@babel/preset-flow":"^7.0.0","babel-core":"7.0.0-bridge.0","babel-jest":"^23.6.0","babel-plugin-dev-expression":"^0.2.1","flow-bin":"^0.85.0","jest":"^23.6.0","prettier":"1.15.0","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-babel":"^4.0.3","rollup-plugin-commonjs":"^9.2.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-replace":"^2.1.0","rollup-plugin-uglify":"^6.0.0"},"dependencies":{"tiny-invariant":"^1.0.3"},"gitHead":"40c862f9faf3e2076f1595a9a932b1aecbd14487","homepage":"https://github.com/atlassian/react-beautiful-dnd#readme","_id":"css-box-model@1.1.1","_npmVersion":"6.1.0","_nodeVersion":"8.11.3","_npmUser":{"name":"alexreardon","email":"alexreardon@gmail.com"},"dist":{"shasum":"c9fd8e7a8b1d59d41d6812fd1765433f671b2ee0","size":6472,"noattachment":false,"key":"/css-box-model/-/css-box-model-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-box-model/download/css-box-model-1.1.1.tgz"},"maintainers":[{"name":"alexreardon","email":"alexreardon@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-box-model_1.1.1_1541557266268_0.5037025136513831"},"_hasShrinkwrap":false,"publish_time":1541557266498,"_cnpm_publish_time":1541557266498,"_cnpmcore_publish_time":"2021-12-16T15:05:08.568Z"},"1.1.0":{"name":"css-box-model","version":"1.1.0","description":"Get accurate and well named css box model information about an Element 📦","author":{"name":"Alex Reardon","email":"alexreardon@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/atlassian/react-beautiful-dnd.git"},"bugs":{"url":"https://github.com/atlassian/react-beautiful-dnd/issues"},"keywords":["css","box model","css box model","getBoundingClientRect","DOMRect","ClientRect","Rect","Spacing","DOM"],"main":"dist/css-box-model.cjs.js","module":"dist/css-box-model.esm.js","sideEffects":false,"scripts":{"test":"yarn jest","lint":"yarn prettier --debug-check src/** test/**","typecheck":"yarn flow","validate":"yarn lint && yarn flow","build:clean":"rimraf dist","build:flow":"echo \"// @flow\n\nexport * from '../src';\" > dist/css-box-model.cjs.js.flow","build:dist":"yarn rollup --config rollup.config.js","build":"yarn build:clean && yarn build:dist && yarn build:flow","prepublishOnly":"yarn build"},"devDependencies":{"@babel/core":"^7.1.2","@babel/preset-env":"^7.1.0","@babel/preset-flow":"^7.0.0","babel-core":"7.0.0-bridge.0","babel-jest":"^23.6.0","babel-plugin-dev-expression":"^0.2.1","flow-bin":"^0.83.0","jest":"^23.6.0","prettier":"1.14.3","rimraf":"^2.6.2","rollup":"^0.66.6","rollup-plugin-babel":"^4.0.3","rollup-plugin-commonjs":"^9.2.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-replace":"^2.1.0","rollup-plugin-uglify":"^6.0.0"},"dependencies":{"tiny-invariant":"^1.0.1"},"gitHead":"99336cc0db98a04829ec45f9797c5c2a795e4afd","homepage":"https://github.com/atlassian/react-beautiful-dnd#readme","_id":"css-box-model@1.1.0","_npmVersion":"6.1.0","_nodeVersion":"8.11.3","_npmUser":{"name":"alexreardon","email":"alexreardon@gmail.com"},"dist":{"shasum":"a667444ea059f50f8118cf680a0fdcf309b56be4","size":6483,"noattachment":false,"key":"/css-box-model/-/css-box-model-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-box-model/download/css-box-model-1.1.0.tgz"},"maintainers":[{"name":"alexreardon","email":"alexreardon@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-box-model_1.1.0_1539317544005_0.876136210831961"},"_hasShrinkwrap":false,"publish_time":1539317544235,"_cnpm_publish_time":1539317544235,"_cnpmcore_publish_time":"2021-12-16T15:05:09.139Z"},"1.0.0":{"name":"css-box-model","version":"1.0.0","description":"Returns the css box model for a HTMLElement","author":{"name":"Alex Reardon","email":"alexreardon@gmail.com"},"license":"MIT","keywords":["css","box model","DOM"],"files":["/dist","/src"],"main":"dist/css-box-model.cjs.js","module":"dist/css-box-model.esm.js","sideEffects":false,"scripts":{"test":"yarn jest","lint":"yarn prettier --debug-check src/** test/**","typecheck":"yarn flow","validate":"yarn lint && yarn flow","build:clean":"rimraf dist","build:flow":"echo \"// @flow\n\nexport * from '../src';\" > dist/css-box-model.cjs.js.flow","build:dist":"yarn rollup --config rollup.config.js","build":"yarn build:clean && yarn build:dist && yarn build:flow","prepublishOnly":"yarn build"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.3","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.7.0","babel-preset-flow":"^6.23.0","flow-bin":"^0.75.0","jest":"^23.2.0","prettier":"1.13.7","rimraf":"^2.6.2","rollup":"^0.62.0","rollup-plugin-babel":"^3.0.5","rollup-plugin-commonjs":"^9.1.3","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^4.0.0"},"gitHead":"021a914df9e916883d198296c7e8ff405d3ea093","_id":"css-box-model@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"alexreardon","email":"alexreardon@gmail.com"},"dist":{"shasum":"60142814f2b25be00c4aac65ea1a55a531b18922","size":5426,"noattachment":false,"key":"/css-box-model/-/css-box-model-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-box-model/download/css-box-model-1.0.0.tgz"},"maintainers":[{"name":"alexreardon","email":"alexreardon@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-box-model_1.0.0_1530245120440_0.4637735138468002"},"_hasShrinkwrap":false,"publish_time":1530245120521,"_cnpm_publish_time":1530245120521,"_cnpmcore_publish_time":"2021-12-16T15:05:09.363Z"},"0.0.14":{"name":"css-box-model","version":"0.0.14","description":"Returns the css box model for a HTMLElement","author":{"name":"Alex Reardon","email":"alexreardon@gmail.com"},"license":"MIT","keywords":["css","box model","DOM"],"files":["/dist","/src"],"main":"dist/css-box-model.cjs.js","module":"dist/css-box-model.esm.js","sideEffects":false,"scripts":{"test":"yarn jest","lint":"yarn prettier --debug-check src/** test/**","typecheck":"yarn flow","validate":"yarn lint && yarn flow","build:clean":"rimraf dist","build:flow":"echo \"// @flow\n\nexport * from '../src';\" > dist/css-box-model.cjs.js.flow","build:dist":"yarn rollup --config rollup.config.js","build":"yarn build:clean && yarn build:dist && yarn build:flow","prepublishOnly":"yarn build"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.3","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.7.0","babel-preset-flow":"^6.23.0","flow-bin":"^0.74.0","jest":"^23.1.0","prettier":"1.13.4","rimraf":"^2.6.2","rollup":"^0.60.1","rollup-plugin-babel":"^3.0.4"},"gitHead":"12d74fe78fc20f5cb74baf05730311eb368f6714","_id":"css-box-model@0.0.14","_npmVersion":"6.0.0","_nodeVersion":"8.4.0","_npmUser":{"name":"alexreardon","email":"alexreardon@gmail.com"},"dist":{"shasum":"bb10ba311bd07d72c7ed4ce260d3035ecb5b5c57","size":4167,"noattachment":false,"key":"/css-box-model/-/css-box-model-0.0.14.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-box-model/download/css-box-model-0.0.14.tgz"},"maintainers":[{"name":"alexreardon","email":"alexreardon@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-box-model_0.0.14_1528756729051_0.4604009748747613"},"_hasShrinkwrap":false,"publish_time":1528756729141,"_cnpm_publish_time":1528756729141,"_cnpmcore_publish_time":"2021-12-16T15:05:09.644Z"},"0.0.13":{"name":"css-box-model","version":"0.0.13","description":"Returns the css box model for a HTMLElement","author":{"name":"Alex Reardon","email":"alexreardon@gmail.com"},"license":"MIT","keywords":["css","box model","DOM"],"files":["/dist","/src"],"main":"dist/css-box-model.cjs.js","module":"dist/css-box-model.esm.js","sideEffects":false,"scripts":{"test":"yarn jest","lint":"yarn prettier --debug-check src/** test/**","typecheck":"yarn flow","validate":"yarn lint && yarn flow","build:clean":"rimraf dist","build:flow":"echo \"// @flow\n\nexport * from '../src';\" > dist/css-box-model.cjs.js.flow","build:dist":"yarn rollup --config rollup.config.js","build":"yarn build:clean && yarn build:dist && yarn build:flow","prepublishOnly":"yarn build"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-plugin-transform-es2015-modules-commonjs":"^6.26.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.6.1","babel-preset-flow":"^6.23.0","flow-bin":"^0.70.0","jest":"^22.4.3","prettier":"1.12.0","rimraf":"^2.6.2","rollup":"^0.58.1","rollup-plugin-babel":"^3.0.3"},"gitHead":"3cd4875f52e5a8d3d9775739d73f13c160ada046","_id":"css-box-model@0.0.13","_npmVersion":"6.0.0","_nodeVersion":"8.4.0","_npmUser":{"name":"alexreardon","email":"alexreardon@gmail.com"},"dist":{"shasum":"e9c2a3b25e48ac786f38b7153eeef785c6658000","size":4110,"noattachment":false,"key":"/css-box-model/-/css-box-model-0.0.13.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-box-model/download/css-box-model-0.0.13.tgz"},"maintainers":[{"name":"alexreardon","email":"alexreardon@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-box-model_0.0.13_1525386666713_0.3009451941813779"},"_hasShrinkwrap":false,"publish_time":1525386666773,"_cnpm_publish_time":1525386666773,"_cnpmcore_publish_time":"2021-12-16T15:05:09.886Z"},"0.0.12":{"name":"css-box-model","version":"0.0.12","description":"Returns the css box model for a HTMLElement","author":{"name":"Alex Reardon","email":"alexreardon@gmail.com"},"license":"MIT","keywords":["css","box model","DOM"],"main":"dist/css-box-model.cjs.js","module":"dist/css-box-model.esm.js","sideEffects":false,"scripts":{"test":"yarn jest","lint":"yarn prettier --debug-check src/** test/**","typecheck":"yarn flow","validate":"yarn lint && yarn flow","build:clean":"rimraf dist","build:flow":"echo \"// @flow\n\nexport * from '../src';\" > dist/css-box-model.cjs.js.flow","build:dist":"yarn rollup --config rollup.config.js","build":"yarn build:clean && yarn build:dist && yarn build:flow","prepublishOnly":"yarn build"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-plugin-transform-es2015-modules-commonjs":"^6.26.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.6.1","babel-preset-flow":"^6.23.0","flow-bin":"^0.70.0","jest":"^22.4.3","prettier":"1.12.0","rimraf":"^2.6.2","rollup":"^0.58.1","rollup-plugin-babel":"^3.0.3"},"gitHead":"e3828dbc2824d8175e02cf69c60be13634c6aa26","_id":"css-box-model@0.0.12","_npmVersion":"5.8.0","_nodeVersion":"8.4.0","_npmUser":{"name":"alexreardon","email":"alexreardon@gmail.com"},"dist":{"shasum":"82bacc038d890d46f12f3c5454bb16c0bd404f44","size":49524,"noattachment":false,"key":"/css-box-model/-/css-box-model-0.0.12.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-box-model/download/css-box-model-0.0.12.tgz"},"maintainers":[{"name":"alexreardon","email":"alexreardon@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-box-model_0.0.12_1524784412884_0.5685082794210927"},"_hasShrinkwrap":false,"publish_time":1524784413415,"_cnpm_publish_time":1524784413415,"_cnpmcore_publish_time":"2021-12-16T15:05:10.162Z"},"0.0.11":{"name":"css-box-model","version":"0.0.11","description":"Returns the css box model for a HTMLElement","author":{"name":"Alex Reardon","email":"alexreardon@gmail.com"},"license":"MIT","keywords":["css","box model","DOM"],"main":"dist/css-box-model.cjs.js","module":"dist/css-box-model.esm.js","sideEffects":false,"scripts":{"test":"yarn jest","lint":"yarn prettier --debug-check src/** test/**","typecheck":"yarn flow","validate":"yarn lint && yarn flow","build:clean":"rimraf dist","build:flow":"echo \"// @flow\n\nexport * from '../src';\" > dist/css-box-model.cjs.js.flow","build:dist":"yarn rollup --config rollup.config.js","build":"yarn build:clean && yarn build:dist && yarn build:flow","prepublishOnly":"yarn build"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-plugin-transform-es2015-modules-commonjs":"^6.26.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.6.1","babel-preset-flow":"^6.23.0","flow-bin":"^0.69.0","jest":"^22.4.3","prettier":"1.12.0","rimraf":"^2.6.2","rollup":"^0.58.1","rollup-plugin-babel":"^3.0.3"},"gitHead":"b45986f4ceed2acfbea37816f715e15aa4d5a08c","_id":"css-box-model@0.0.11","_npmVersion":"5.8.0","_nodeVersion":"8.4.0","_npmUser":{"name":"alexreardon","email":"alexreardon@gmail.com"},"dist":{"shasum":"f6696661efe5618a8939c490d5eb3404ee9b8e6e","size":49257,"noattachment":false,"key":"/css-box-model/-/css-box-model-0.0.11.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-box-model/download/css-box-model-0.0.11.tgz"},"maintainers":[{"name":"alexreardon","email":"alexreardon@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-box-model_0.0.11_1524521220793_0.6837712023585527"},"_hasShrinkwrap":false,"publish_time":1524521220856,"_cnpm_publish_time":1524521220856,"_cnpmcore_publish_time":"2021-12-16T15:05:10.429Z"},"0.0.10":{"name":"css-box-model","version":"0.0.10","description":"Returns the css box model for a HTMLElement","author":{"name":"Alex Reardon","email":"alexreardon@gmail.com"},"license":"MIT","keywords":["css","box model","DOM"],"main":"dist/css-box-model.cjs.js","module":"dist/css-box-model.esm.js","sideEffects":false,"scripts":{"test":"yarn jest","lint":"yarn prettier --debug-check src/** test/**","typecheck":"yarn flow","validate":"yarn lint && yarn flow","build:clean":"rimraf dist","build:flow":"echo \"// @flow\n\nexport * from '../src';\" > dist/css-box-model.cjs.js.flow","build:dist":"yarn rollup --config rollup.config.js","build":"yarn build:clean && yarn build:dist && yarn build:flow","prepublishOnly":"yarn build"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-plugin-transform-es2015-modules-commonjs":"^6.26.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.6.1","babel-preset-flow":"^6.23.0","flow-bin":"^0.69.0","jest":"^22.4.3","prettier":"1.12.0","rimraf":"^2.6.2","rollup":"^0.58.1","rollup-plugin-babel":"^3.0.3"},"gitHead":"3ad5cc087db0a18481a2afb0ee80a1fcb9e885fd","_id":"css-box-model@0.0.10","_npmVersion":"5.8.0","_nodeVersion":"8.4.0","_npmUser":{"name":"alexreardon","email":"alexreardon@gmail.com"},"dist":{"shasum":"abd49afc8ba2e0f8e421e90e45bc094e40e94391","size":49164,"noattachment":false,"key":"/css-box-model/-/css-box-model-0.0.10.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-box-model/download/css-box-model-0.0.10.tgz"},"maintainers":[{"name":"alexreardon","email":"alexreardon@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-box-model_0.0.10_1524520460389_0.3344749917908447"},"_hasShrinkwrap":false,"publish_time":1524520460452,"_cnpm_publish_time":1524520460452,"_cnpmcore_publish_time":"2021-12-16T15:05:10.775Z"},"0.0.9":{"name":"css-box-model","version":"0.0.9","description":"Returns the css box model for a HTMLElement","author":{"name":"Alex Reardon","email":"alexreardon@gmail.com"},"license":"MIT","keywords":["css","box model","DOM"],"main":"dist/css-box-model.cjs.js","module":"dist/css-box-model.esm.js","sideEffects":false,"scripts":{"test":"yarn jest","lint":"yarn prettier --debug-check src/** test/**","typecheck":"yarn flow","validate":"yarn lint && yarn flow","build:clean":"rimraf dist","build:flow":"echo \"// @flow\n\nexport * from '../src';\" > dist/css-box-model.cjs.js.flow","build:dist":"yarn rollup --config rollup.config.js","build":"yarn build:clean && yarn build:dist && yarn build:flow","prepublishOnly":"yarn build"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-plugin-transform-es2015-modules-commonjs":"^6.26.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.6.1","babel-preset-flow":"^6.23.0","flow-bin":"^0.69.0","jest":"^22.4.3","prettier":"1.12.0","rimraf":"^2.6.2","rollup":"^0.58.1","rollup-plugin-babel":"^3.0.3"},"gitHead":"08ef3382293c7f1b8559f8382c150d7e29e086cc","_id":"css-box-model@0.0.9","_npmVersion":"5.8.0","_nodeVersion":"8.4.0","_npmUser":{"name":"alexreardon","email":"alexreardon@gmail.com"},"dist":{"shasum":"7068f0c7760f19f3cef03f1f26b0993ce671388a","size":49213,"noattachment":false,"key":"/css-box-model/-/css-box-model-0.0.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-box-model/download/css-box-model-0.0.9.tgz"},"maintainers":[{"name":"alexreardon","email":"alexreardon@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-box-model_0.0.9_1524467697065_0.027379846865286828"},"_hasShrinkwrap":false,"publish_time":1524467697124,"_cnpm_publish_time":1524467697124,"_cnpmcore_publish_time":"2021-12-16T15:05:11.139Z"},"0.0.8":{"name":"css-box-model","version":"0.0.8","description":"Returns the css box model for a HTMLElement","main":"dist/css-box-model.cjs.js","module":"dist/css-box-model.esm.js","sideEffects":false,"scripts":{"test":"yarn jest","lint":"yarn prettier --debug-check src/** test/**","typecheck":"yarn flow","validate":"yarn lint && yarn flow","build:clean":"rimraf dist","build:flow":"echo \"// @flow\n\nexport * from '../src';\" > dist/css-box-model.cjs.js.flow","build:dist":"yarn rollup --config rollup.config.js","build":"yarn build:clean && yarn build:dist && yarn build:flow","prepublishOnly":"yarn build"},"author":{"name":"Alex Reardon","email":"alexreardon@gmail.com"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-plugin-transform-es2015-modules-commonjs":"^6.26.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.6.1","babel-preset-flow":"^6.23.0","flow-bin":"^0.69.0","jest":"^22.4.3","prettier":"1.12.0","rimraf":"^2.6.2","rollup":"^0.58.1","rollup-plugin-babel":"^3.0.3"},"gitHead":"1adfa7e3d2b603d870ee45ec3c12b6fb125ae7ea","_id":"css-box-model@0.0.8","_npmVersion":"5.8.0","_nodeVersion":"8.4.0","_npmUser":{"name":"alexreardon","email":"alexreardon@gmail.com"},"dist":{"shasum":"dabbf38d7d570357e26dac483fdfb2e4599d4e62","size":48829,"noattachment":false,"key":"/css-box-model/-/css-box-model-0.0.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-box-model/download/css-box-model-0.0.8.tgz"},"maintainers":[{"name":"alexreardon","email":"alexreardon@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-box-model_0.0.8_1524455487360_0.3811201845890211"},"_hasShrinkwrap":false,"publish_time":1524455487459,"_cnpm_publish_time":1524455487459,"_cnpmcore_publish_time":"2021-12-16T15:05:11.454Z"},"0.0.7":{"name":"css-box-model","version":"0.0.7","description":"Returns the css box model for a HTMLElement","main":"dist/css-box-model.cjs.js","module":"dist/css-box-model.esm.js","sideEffects":false,"scripts":{"test":"yarn jest","lint":"yarn prettier --debug-check src/** test/**","typecheck":"yarn flow","validate":"yarn lint && yarn flow","build:clean":"rimraf dist","build:flow":"echo \"// @flow\n\nexport * from '../src';\" > dist/css-box-model.cjs.js.flow","build:dist":"yarn rollup --config rollup.config.js","build":"yarn build:clean && yarn build:dist && yarn build:flow","prepublishOnly":"yarn build"},"author":{"name":"Alex Reardon","email":"alexreardon@gmail.com"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-plugin-transform-es2015-modules-commonjs":"^6.26.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.6.1","babel-preset-flow":"^6.23.0","flow-bin":"^0.69.0","jest":"^22.4.3","prettier":"1.12.0","rimraf":"^2.6.2","rollup":"^0.58.1","rollup-plugin-babel":"^3.0.3"},"gitHead":"f80b7335eb37a301418bad3c7eb4ddfafbd78d46","_id":"css-box-model@0.0.7","_npmVersion":"5.8.0","_nodeVersion":"8.4.0","_npmUser":{"name":"alexreardon","email":"alexreardon@gmail.com"},"dist":{"shasum":"80fa9602269170a46a5143a0306f1159cade00f5","size":47980,"noattachment":false,"key":"/css-box-model/-/css-box-model-0.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-box-model/download/css-box-model-0.0.7.tgz"},"maintainers":[{"name":"alexreardon","email":"alexreardon@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-box-model_0.0.7_1524453663896_0.6564332853144568"},"_hasShrinkwrap":false,"publish_time":1524453663980,"_cnpm_publish_time":1524453663980,"_cnpmcore_publish_time":"2021-12-16T15:05:11.740Z"},"0.0.5":{"name":"css-box-model","version":"0.0.5","description":"Returns the css box model for a HTMLElement","main":"dist/css-box-model.cjs.js","module":"dist/css-box-model.esm.js","sideEffects":false,"scripts":{"test":"yarn jest","lint":"yarn prettier --debug-check src/** test/**","typecheck":"yarn flow","validate":"yarn lint && yarn flow","build:clean":"rimraf dist","build:flow":"echo \"// @flow\n\nexport * from '../src';\" > dist/css-box-model.cjs.js.flow","build:dist":"yarn rollup --config rollup.config.js","build":"yarn build:clean && yarn build:dist && yarn build:flow","prepublishOnly":"yarn build"},"author":{"name":"Alex Reardon","email":"alexreardon@gmail.com"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-plugin-transform-es2015-modules-commonjs":"^6.26.0","babel-preset-env":"^1.6.1","babel-preset-flow":"^6.23.0","flow-bin":"^0.69.0","jest":"^22.4.3","prettier":"1.12.0","rimraf":"^2.6.2","rollup":"^0.58.1","rollup-plugin-babel":"^3.0.3"},"gitHead":"9f40ad79dd2914a8a4038c5be87879a059d56bbe","_id":"css-box-model@0.0.5","_npmVersion":"5.8.0","_nodeVersion":"8.4.0","_npmUser":{"name":"alexreardon","email":"alexreardon@gmail.com"},"dist":{"shasum":"e13562802570cd79b22fa29ec9a14f8e2a1d7437","size":47134,"noattachment":false,"key":"/css-box-model/-/css-box-model-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-box-model/download/css-box-model-0.0.5.tgz"},"maintainers":[{"name":"alexreardon","email":"alexreardon@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-box-model_0.0.5_1524447706686_0.09382352030517116"},"_hasShrinkwrap":false,"publish_time":1524447706797,"_cnpm_publish_time":1524447706797,"_cnpmcore_publish_time":"2021-12-16T15:05:12.497Z"},"0.0.4":{"name":"css-box-model","version":"0.0.4","description":"Returns the css box model for a HTMLElement","main":"dist/css-box-model.cjs.js","module":"dist/css-box-model.esm.js","sideEffects":false,"scripts":{"test":"yarn jest","lint":"yarn prettier --debug-check src/** test/**","typecheck":"yarn flow","validate":"yarn lint && yarn flow","build:clean":"rimraf dist","build:flow":"echo \"// @flow\n\nexport * from '../src';\" > dist/css-box-model.cjs.js.flow","build:dist":"yarn rollup --config rollup.config.js","build":"yarn build:clean && yarn build:dist && yarn build:flow","prepublishOnly":"yarn build"},"author":{"name":"Alex Reardon","email":"alexreardon@gmail.com"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-plugin-transform-es2015-modules-commonjs":"^6.26.0","babel-preset-env":"^1.6.1","babel-preset-flow":"^6.23.0","flow-bin":"^0.69.0","jest":"^22.4.3","prettier":"1.12.0","rimraf":"^2.6.2","rollup":"^0.58.1","rollup-plugin-babel":"^3.0.3"},"gitHead":"7fdaafce5967183b968cc169df36d2b17a947b05","_id":"css-box-model@0.0.4","_npmVersion":"5.8.0","_nodeVersion":"8.4.0","_npmUser":{"name":"alexreardon","email":"alexreardon@gmail.com"},"dist":{"shasum":"ba24e8a90a68bf09a4d18cea4e9fb27fc47a3091","size":47133,"noattachment":false,"key":"/css-box-model/-/css-box-model-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-box-model/download/css-box-model-0.0.4.tgz"},"maintainers":[{"name":"alexreardon","email":"alexreardon@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-box-model_0.0.4_1524446959318_0.48898806250748006"},"_hasShrinkwrap":false,"publish_time":1524446959410,"_cnpm_publish_time":1524446959410,"_cnpmcore_publish_time":"2021-12-16T15:05:12.816Z"},"0.0.3":{"name":"css-box-model","version":"0.0.3","description":"Returns the css box model for a HTMLElement","main":"src/index.js","scripts":{"test":"yarn jest","lint":"yarn prettier --debug-check src/** test/**","typecheck":"yarn flow","validate":"yarn lint && yarn flow","build:clean":"rimraf dist","build:flow":"echo \"// @flow\n\nexport * from '../src';\" > dist/css-box-model.cjs.js.flow","build:dist":"yarn rollup --config rollup.config.js","build":"yarn build:clean && yarn build:dist && yarn build:flow","prepublishOnly":"yarn build"},"author":{"name":"Alex Reardon","email":"alexreardon@gmail.com"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-plugin-transform-es2015-modules-commonjs":"^6.26.0","babel-preset-env":"^1.6.1","babel-preset-flow":"^6.23.0","flow-bin":"^0.69.0","jest":"^22.4.3","prettier":"1.12.0","rimraf":"^2.6.2","rollup":"^0.58.1","rollup-plugin-babel":"^3.0.3"},"gitHead":"f1799d3ff8f4f243054ee3ea137a75c2b5237adb","_id":"css-box-model@0.0.3","_npmVersion":"5.8.0","_nodeVersion":"8.4.0","_npmUser":{"name":"alexreardon","email":"alexreardon@gmail.com"},"dist":{"shasum":"6848d60f60068aac73934850d99ea5560108f4fc","size":45856,"noattachment":false,"key":"/css-box-model/-/css-box-model-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-box-model/download/css-box-model-0.0.3.tgz"},"maintainers":[{"name":"alexreardon","email":"alexreardon@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-box-model_0.0.3_1524445414621_0.898641286198218"},"_hasShrinkwrap":false,"publish_time":1524445414689,"_cnpm_publish_time":1524445414689,"_cnpmcore_publish_time":"2021-12-16T15:05:13.200Z"},"0.0.2":{"name":"css-box-model","version":"0.0.2","description":"Returns the css box model for a HTMLElement","main":"src/index.js","scripts":{"test":"yarn jest","lint":"yarn prettier --debug-check src/** test/**","typecheck":"yarn flow","validate":"yarn lint && yarn flow","build:clean":"rimraf dist","build:flow":"echo \"// @flow\n\nexport * from '../src';\" > dist/css-box-model.cjs.js.flow","build:dist":"yarn rollup --config rollup.config.js","build":"yarn build:clean && yarn build:dist && yarn build:flow","prepublishOnly":"yarn build"},"author":{"name":"Alex Reardon","email":"alexreardon@gmail.com"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-plugin-transform-es2015-modules-commonjs":"^6.26.0","babel-preset-env":"^1.6.1","babel-preset-flow":"^6.23.0","flow-bin":"^0.69.0","jest":"^22.4.3","prettier":"1.12.0","rimraf":"^2.6.2","rollup":"^0.58.1","rollup-plugin-babel":"^3.0.3"},"gitHead":"8fa6271a748d4b817ee6d380bebbdeaaf59bd870","_id":"css-box-model@0.0.2","_npmVersion":"5.8.0","_nodeVersion":"8.4.0","_npmUser":{"name":"alexreardon","email":"alexreardon@gmail.com"},"dist":{"shasum":"72bc39405b204712e40d8c1e8e1cd92c7d381898","size":45831,"noattachment":false,"key":"/css-box-model/-/css-box-model-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-box-model/download/css-box-model-0.0.2.tgz"},"maintainers":[{"name":"alexreardon","email":"alexreardon@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-box-model_0.0.2_1524444079623_0.7251484906825776"},"_hasShrinkwrap":false,"publish_time":1524444079709,"_cnpm_publish_time":1524444079709,"_cnpmcore_publish_time":"2021-12-16T15:05:13.488Z"},"0.0.1":{"name":"css-box-model","version":"0.0.1","description":"Returns the css box model for a HTMLElement","main":"src/index.js","scripts":{"test":"yarn jest"},"author":{"name":"Alex Reardon","email":"alexreardon@gmail.com"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-preset-flow":"^6.23.0","flow-bin":"^0.69.0","jest":"^22.4.3","prettier":"1.12.0"},"gitHead":"d23aaeefbb7c83c1f901a0cc1a3c1c2ae2361e01","_id":"css-box-model@0.0.1","_npmVersion":"5.8.0","_nodeVersion":"8.4.0","_npmUser":{"name":"alexreardon","email":"alexreardon@gmail.com"},"dist":{"shasum":"ff7a5432b2fa2e1248a79427ed1829fae9c35fd3","size":41345,"noattachment":false,"key":"/css-box-model/-/css-box-model-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-box-model/download/css-box-model-0.0.1.tgz"},"maintainers":[{"name":"alexreardon","email":"alexreardon@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-box-model_0.0.1_1523839313917_0.9234594451680238"},"_hasShrinkwrap":false,"publish_time":1523839314051,"_cnpm_publish_time":1523839314051,"_cnpmcore_publish_time":"2021-12-16T15:05:13.809Z"}},"readme":"# `css-box-model` ????\n\nGet accurate and well named [CSS Box Model](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_Model/Introduction_to_the_CSS_box_model) information about a [`Element`](https://developer.mozilla.org/en-US/docs/Web/API/Element).\n\n[![Build Status](https://travis-ci.org/alexreardon/css-box-model.svg?branch=master)](https://travis-ci.org/alexreardon/css-box-model)\n[![npm](https://img.shields.io/npm/v/css-box-model.svg)](https://www.npmjs.com/package/css-box-model)\n[![dependencies](https://david-dm.org/alexreardon/css-box-model.svg)](https://david-dm.org/alexreardon/css-box-model)\n[![Downloads per month](https://img.shields.io/npm/dm/css-box-model.svg)](https://www.npmjs.com/package/css-box-model)\n[![min](https://img.shields.io/bundlephobia/min/css-box-model.svg)](https://www.npmjs.com/package/css-box-model)\n[![minzip](https://img.shields.io/bundlephobia/minzip/css-box-model.svg)](https://www.npmjs.com/package/css-box-model)\n\nAny time you are using [`Element.getBoundingClientRect()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect) you might want to consider using `css-box-model` instead to get more detailed box model information.\n\n## Usage\n\n```js\n// @flow\nimport { getBox } from 'css-box-model';\n\nconst el: HTMLElement = document.getElementById('foo');\nconst box: BoxModel = getBox(el);\n\n// profit\n```\n\n## Installation\n\n```bash\n## yarn\nyarn add css-box-model\n\n# npm\nnpm install css-box-model --save\n```\n\n## The [CSS Box Model](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_Model/Introduction_to_the_CSS_box_model)\n\n![the box model](https://user-images.githubusercontent.com/2182637/46847224-f8a23e80-ce2e-11e8-80d6-0ca62a1871a7.png)\n\n| Box type    | Composition                         |\n| ----------- | ----------------------------------- |\n| Margin box  | margin + border + padding + content |\n| Border box  | border + padding + content          |\n| Padding box | padding + content                   |\n| Content box | content                             |\n\nThis our returned `BoxModel`:\n\n```js\nexport type BoxModel = {|\n  // content + padding + border + margin\n  marginBox: Rect,\n  // content + padding + border\n  borderBox: Rect,\n  // content + padding\n  paddingBox: Rect,\n  // content\n  contentBox: Rect,\n  // for your own consumption\n  border: Spacing,\n  padding: Spacing,\n  margin: Spacing,\n|};\n\n// Supporting types\n\n// This is an extension of DOMRect and ClientRect\nexport type Rect = {|\n  // ClientRect\n  top: number,\n  right: number,\n  bottom: number,\n  left: number,\n  width: number,\n  height: number,\n  // DOMRect\n  x: number,\n  y: number,\n  // Rect\n  center: Position,\n|};\n\nexport type Position = {|\n  x: number,\n  y: number,\n|};\n\nexport type Spacing = {\n  top: number,\n  right: number,\n  bottom: number,\n  left: number,\n};\n```\n\n## API\n\n### `getBox`\n\n> (el: HTMLElement) => BoxModel\n\nUse `getBox` to return the box model for an element\n\n### `withScroll`\n\n> `(original: BoxModel, scroll?: Position = getWindowScroll()) => BoxModel`\n\nThis is useful if you want to know the box model for an element relative to a page\n\n```js\nconst el: HTMLElement = document.getElementById('app');\nconst box: BoxModel = getBox(el);\nconst withScroll: BoxModel = withScroll(box);\n```\n\nYou are welcome to pass in your own `scroll`. By default we we use the window scroll:\n\n```js\nconst getWindowScroll = (): Position => ({\n  x: window.pageXOffset,\n  y: window.pageYOffset,\n});\n```\n\n### `calculateBox`\n\n> `(borderBox: AnyRectType, styles: CSSStyleDeclaration) => BoxModel`\n\nThis will do the box model calculations without needing to read from the DOM. This is useful if you have already got a `ClientRect` / `DOMRect` and a `CSSStyleDeclaration` as then we can skip computing these values.\n\n```js\nconst el: HTMLElement = document.getElementById('app');\nconst borderBox: ClientRect = el.getBoundingClientRect();\nconst styles: CSSStyleDeclaration = window.getComputedStyles(el);\n\nconst box: BoxModel = calculateBox(borderBox, styles);\n```\n\n**`AnyRectType`** allows for simple interoperability with any rect type\n\n```js\ntype AnyRectType = ClientRect | DOMRect | Rect | Spacing;\n```\n\n### `createBox`\n\n> `({ borderBox, margin, border, padding }: CreateBoxArgs) => BoxModel`\n\nAllows you to create a `BoxModel` by passing in a `Rect` like shape (`AnyRectType`) and optionally your own `margin`, `border` and or `padding`.\n\n```js\ntype CreateBoxArgs = {|\n  borderBox: AnyRectType,\n  margin?: Spacing,\n  border?: Spacing,\n  padding?: Spacing,\n|};\n```\n\n```js\nconst borderBox: Spacing = {\n  top: 10,\n  right: 100,\n  left: 20,\n  bottom: 80,\n};\nconst padding: Spacing = {\n  top: 10,\n  right: 20,\n  left: 20,\n  bottom: 10,\n};\n\nconst box: BoxModel = createBox({ borderBox, padding });\n```\n\n## Utility API\n\n> Functions to help you interact with the objects we provide\n\n### `getRect`\n\n> `(spacing: AnyRectType) => Rect`\n\nGiven any `Rect` like shape, return a `Rect`. Accepts any object that has `top`, `right`, `bottom` and `right` (eg `ClientRect`, `DOMRect`);\n\n```js\nconst spacing: Spacing = {\n  top: 0,\n  right: 100,\n  bottom: 50,\n  left: 50,\n};\n\nconst rect: Rect = getRect(spacing);\n\nconsole.log(rect);\n\n/*\n{\n  top: 0,\n  right: 100,\n  bottom: 50,\n  left: 50,\n  width: 100,\n  height: 50,\n  x: 0,\n  y: 0,\n  center: { x: 50, y: 50 },\n}\n*/\n```\n\n### `expand`\n\nUsed to expand a `Spacing`\n\n```js\n(target: Spacing, expandBy: Spacing) => Spacing;\n```\n\n```js\nconst original: Spacing = {\n  top: 10,\n  left: 11,\n  right: 21,\n  bottom: 22,\n};\n\nconst expandBy: Spacing = {\n  top: 1,\n  left: 2,\n  right: 3,\n  bottom: 4,\n};\n\nconst expanded: Spacing = expand(original, expandBy);\n\nconsole.log(expanded);\n\n/*\n{\n  // pulled back\n  top: 8,\n  left: 8\n  // pushed forward\n  bottom: 22,\n  right: 22,\n}\n*/\n```\n\n### `shrink`\n\nUsed to shrink a `Spacing`\n\n```js\n(target: Spacing, shrinkBy: Spacing) => Spacing;\n```\n\n```js\nconst original: Spacing = {\n  top: 10,\n  left: 10,\n  right: 20,\n  bottom: 20,\n};\n\nconst shrinkBy: Spacing = {\n  top: 2,\n  left: 2,\n  right: 2,\n  bottom: 2,\n};\n\nconst smaller: Spacing = shrink(original, shrinkBy);\n\nconsole.log(smaller);\n\n/*\n{\n  // pushed forward\n  top: 12,\n  left: 12\n  // pulled back\n  bottom: 18,\n  right: 18,\n}\n*/\n```\n","_attachments":{},"homepage":"https://github.com/alexreardon/css-box-model#readme","bugs":{"url":"https://github.com/alexreardon/css-box-model/issues"},"license":"MIT"}