{"_id":"size-sensor","_rev":"3328893","name":"size-sensor","description":"DOM element size sensor which will callback when size changed.","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"atool","email":""}],"time":{"modified":"2024-07-10T07:06:23.000Z","created":"2018-06-06T08:24:35.426Z","1.0.2":"2023-08-30T06:31:17.261Z","1.0.1":"2020-05-19T09:55:40.097Z","1.0.0":"2020-03-14T08:55:38.836Z","0.2.6":"2019-11-12T05:02:46.693Z","0.2.5":"2019-06-17T06:14:15.404Z","0.2.4":"2019-04-24T11:27:07.347Z","0.2.3":"2019-04-19T01:47:31.898Z","0.2.2":"2018-10-07T05:57:36.772Z","0.2.2-beta.1":"2018-09-30T11:54:31.115Z","0.2.1":"2018-08-29T11:36:39.166Z","0.2.0":"2018-07-06T14:26:19.507Z","0.1.0":"2018-06-27T05:59:20.628Z","0.0.4":"2018-06-22T02:48:37.795Z","0.0.3":"2018-06-20T05:22:23.695Z","0.0.2":"2018-06-06T08:24:35.426Z"},"users":{},"author":{"name":"hustcc"},"repository":{"type":"git","url":"git+https://github.com/hustcc/size-sensor.git"},"versions":{"1.0.2":{"name":"size-sensor","version":"1.0.2","description":"DOM element size sensor which will callback when size changed.","main":"lib/index.js","types":"index.d.ts","scripts":{"debug":"cross-env NODE_ENV=babel cross-env DEBUG_MODE=1 jest","test":"cross-env NODE_ENV=babel jest","build:umd":"rimraf ./dist && cross-env NODE_ENV=rollup rollup -c","build:lib":"rimraf ./lib && cross-env NODE_ENV=babel babel src -d lib","build":"npm run build:umd && npm run build:lib && limit-size"},"limit-size":[{"limit":"1 KB","path":"dist/size-sensor.min.js","gzip":true}],"repository":{"type":"git","url":"git+https://github.com/hustcc/size-sensor.git"},"keywords":["resize","size","sensor","size-detector","element"],"devDependencies":{"@babel/cli":"^7.6.0","@babel/core":"^7.6.0","@babel/preset-env":"^7.6.0","babel-jest":"^24.9.0","babel-plugin-version":"^0.2.1","cross-env":"^5.1.3","jest":"^24.9.0","jest-electron":"^0.1.6","limit-size":"^0.1.2","rimraf":"^2.6.2","rollup":"^1.21.4","rollup-plugin-babel":"^4.3.3","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-uglify":"^6.0.3"},"jest":{"runner":"jest-electron/runner","testEnvironment":"jest-electron/environment","collectCoverage":true,"collectCoverageFrom":["src/**/*.{js,jsx}","!**/node_modules/**","!**/vendor/**"],"testRegex":"/__tests__/.*\\.spec\\.jsx?$"},"author":{"name":"hustcc"},"license":"ISC","bugs":{"url":"https://github.com/hustcc/size-sensor/issues"},"homepage":"https://git.hust.cc/size-sensor","gitHead":"e5cbb27b591af7e4695f0b63600c548d08c9f732","_id":"size-sensor@1.0.2","_nodeVersion":"18.9.1","_npmVersion":"8.19.1","dist":{"shasum":"b8f8da029683cf2b4e22f12bf8b8f0a1145e8471","size":5263,"noattachment":false,"key":"/size-sensor/-/size-sensor-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/size-sensor/download/size-sensor-1.0.2.tgz"},"_npmUser":{"name":"atool","email":"i@hust.cc"},"directories":{},"maintainers":[{"name":"atool","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/size-sensor_1.0.2_1693377077077_0.12888497641984054"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-30T06:31:17.261Z","publish_time":1693377077261,"_source_registry_name":"default","_cnpm_publish_time":1693377077261},"1.0.1":{"name":"size-sensor","version":"1.0.1","description":"DOM element size sensor which will callback when size changed.","main":"lib/index.js","types":"index.d.ts","scripts":{"debug":"cross-env NODE_ENV=babel cross-env DEBUG_MODE=1 jest","test":"cross-env NODE_ENV=babel jest","build:umd":"rimraf ./dist && cross-env NODE_ENV=rollup rollup -c","build:lib":"rimraf ./lib && cross-env NODE_ENV=babel babel src -d lib","build":"npm run build:umd && npm run build:lib && size-limit"},"size-limit":[{"limit":"1 KB","path":"dist/size-sensor.min.js"}],"repository":{"type":"git","url":"git+https://github.com/hustcc/size-sensor.git"},"keywords":["resize","size","sensor","size-detector","element"],"devDependencies":{"@babel/cli":"^7.6.0","@babel/core":"^7.6.0","@babel/preset-env":"^7.6.0","babel-jest":"^24.9.0","babel-plugin-version":"^0.2.1","cross-env":"^5.1.3","jest":"^24.9.0","jest-electron":"^0.1.6","rimraf":"^2.6.2","rollup":"^1.21.4","rollup-plugin-babel":"^4.3.3","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-uglify":"^6.0.3","size-limit":"^0.18.2"},"jest":{"runner":"jest-electron/runner","testEnvironment":"jest-electron/environment","collectCoverage":true,"collectCoverageFrom":["src/**/*.{js,jsx}","!**/node_modules/**","!**/vendor/**"],"testRegex":"/__tests__/.*\\.spec\\.jsx?$"},"author":{"name":"hustcc"},"license":"ISC","bugs":{"url":"https://github.com/hustcc/size-sensor/issues"},"homepage":"https://git.hust.cc/size-sensor","gitHead":"1afa2cb7e972444a05977abe0de49c0a600ba415","_id":"size-sensor@1.0.1","_nodeVersion":"11.12.0","_npmVersion":"6.13.2","dist":{"shasum":"f84e46206d3e259faff1d548e4b3beca93219dbb","size":5256,"noattachment":false,"key":"/size-sensor/-/size-sensor-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/size-sensor/download/size-sensor-1.0.1.tgz"},"maintainers":[{"name":"atool","email":""}],"_npmUser":{"name":"atool","email":"i@hust.cc"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/size-sensor_1.0.1_1589882139967_0.6667361219010592"},"_hasShrinkwrap":false,"publish_time":1589882140097,"_cnpm_publish_time":1589882140097,"_cnpmcore_publish_time":"2021-12-16T12:39:22.922Z"},"1.0.0":{"name":"size-sensor","version":"1.0.0","description":"DOM element size sensor which will callback when size changed.","main":"lib/index.js","types":"index.d.ts","scripts":{"debug":"cross-env NODE_ENV=babel cross-env DEBUG_MODE=1 jest","test":"cross-env NODE_ENV=babel jest","build:umd":"rimraf ./dist && cross-env NODE_ENV=rollup rollup -c","build:lib":"rimraf ./lib && cross-env NODE_ENV=babel babel src -d lib","build":"npm run build:umd && npm run build:lib && size-limit"},"size-limit":[{"limit":"1 KB","path":"dist/size-sensor.min.js"}],"repository":{"type":"git","url":"git+https://github.com/hustcc/size-sensor.git"},"keywords":["resize","size","sensor","size-detector","element"],"devDependencies":{"@babel/cli":"^7.6.0","@babel/core":"^7.6.0","@babel/preset-env":"^7.6.0","babel-jest":"^24.9.0","babel-plugin-version":"^0.2.1","cross-env":"^5.1.3","jest":"^24.9.0","jest-electron":"^0.1.6","rimraf":"^2.6.2","rollup":"^1.21.4","rollup-plugin-babel":"^4.3.3","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-uglify":"^6.0.3","size-limit":"^0.18.2"},"jest":{"runner":"jest-electron/runner","testEnvironment":"jest-electron/environment","collectCoverage":true,"collectCoverageFrom":["src/**/*.{js,jsx}","!**/node_modules/**","!**/vendor/**"],"testRegex":"/__tests__/.*\\.spec\\.jsx?$"},"author":{"name":"hustcc"},"license":"ISC","bugs":{"url":"https://github.com/hustcc/size-sensor/issues"},"homepage":"https://git.hust.cc/size-sensor","gitHead":"f6c075e514ed61c0059f35d3a598c3fa53e0fdaf","_id":"size-sensor@1.0.0","_nodeVersion":"11.12.0","_npmVersion":"6.13.2","dist":{"shasum":"d06de40ae3acf14cfb312dd348d4c92b221aacc2","size":5164,"noattachment":false,"key":"/size-sensor/-/size-sensor-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/size-sensor/download/size-sensor-1.0.0.tgz"},"maintainers":[{"name":"atool","email":""}],"_npmUser":{"name":"atool","email":"i@hust.cc"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/size-sensor_1.0.0_1584176138683_0.5577699210718505"},"_hasShrinkwrap":false,"publish_time":1584176138836,"_cnpm_publish_time":1584176138836,"_cnpmcore_publish_time":"2021-12-16T12:39:23.133Z"},"0.2.6":{"name":"size-sensor","version":"0.2.6","description":"DOM element size sensor which will callback when size changed.","main":"lib/index.js","types":"index.d.ts","scripts":{"debug":"cross-env NODE_ENV=babel cross-env DEBUG_MODE=1 jest","test":"cross-env NODE_ENV=babel jest","build:umd":"rimraf ./dist && cross-env NODE_ENV=rollup rollup -c","build:lib":"rimraf ./lib && cross-env NODE_ENV=babel babel src -d lib","build":"npm run build:umd && npm run build:lib && size-limit"},"size-limit":[{"limit":"1 KB","path":"dist/size-sensor.min.js"}],"repository":{"type":"git","url":"git+https://github.com/hustcc/size-sensor.git"},"keywords":["resize","size","sensor","size-detector","element"],"devDependencies":{"@babel/cli":"^7.6.0","@babel/core":"^7.6.0","@babel/preset-env":"^7.6.0","babel-jest":"^24.9.0","babel-plugin-version":"^0.2.1","cross-env":"^5.1.3","jest":"^24.9.0","jest-electron":"^0.1.6","rimraf":"^2.6.2","rollup":"^1.21.4","rollup-plugin-babel":"^4.3.3","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-uglify":"^6.0.3","size-limit":"^0.18.2"},"jest":{"runner":"jest-electron/runner","testEnvironment":"jest-electron/environment","collectCoverage":true,"collectCoverageFrom":["src/**/*.{js,jsx}","!**/node_modules/**","!**/vendor/**"],"testRegex":"/__tests__/.*\\.spec\\.jsx?$"},"author":{"name":"hustcc"},"license":"ISC","bugs":{"url":"https://github.com/hustcc/size-sensor/issues"},"homepage":"https://git.hust.cc/size-sensor","readmeFilename":"README.md","gitHead":"3b467effa99c4dd06a904db2a28454a83e00a3de","_id":"size-sensor@0.2.6","_nodeVersion":"11.12.0","_npmVersion":"6.7.0","dist":{"shasum":"6fe43afd570786f097171834002a97fe0b19a3da","size":5167,"noattachment":false,"key":"/size-sensor/-/size-sensor-0.2.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/size-sensor/download/size-sensor-0.2.6.tgz"},"maintainers":[{"name":"atool","email":""}],"_npmUser":{"name":"atool","email":"i@hust.cc"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/size-sensor_0.2.6_1573534966568_0.754176761768933"},"_hasShrinkwrap":false,"publish_time":1573534966693,"_cnpm_publish_time":1573534966693,"_cnpmcore_publish_time":"2021-12-16T12:39:23.346Z"},"0.2.5":{"name":"size-sensor","version":"0.2.5","description":"DOM element size sensor which will callback when size changed.","main":"lib/index.js","types":"index.d.ts","scripts":{"coveralls":"cat ./coverage/lcov.info | coveralls","build:umd":"rimraf ./dist && cross-env NODE_ENV=rollup rollup -c","build:lib":"rimraf ./lib && cross-env NODE_ENV=babel babel src -d lib","build":"npm run build:umd && npm run build:lib && size-limit"},"size-limit":[{"limit":"1 KB","path":"dist/size-sensor.min.js"}],"repository":{"type":"git","url":"git+https://github.com/hustcc/size-sensor.git"},"keywords":["resize","size","sensor","size-detector","element"],"devDependencies":{"babel-cli":"^6.26.0","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-version":"^0.2.1","babel-preset-env":"^1.6.1","cross-env":"^5.1.3","rimraf":"^2.6.2","rollup":"^0.58.1","rollup-plugin-babel":"^3.0.4","rollup-plugin-node-resolve":"^3.3.0","rollup-plugin-uglify":"^3.0.0","size-limit":"^0.18.2"},"author":{"name":"hustcc"},"license":"ISC","bugs":{"url":"https://github.com/hustcc/size-sensor/issues"},"homepage":"https://git.hust.cc/size-sensor","gitHead":"cf43e0d9d51ded65fdd02375c8da47f072ef9ee1","_id":"size-sensor@0.2.5","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"atool","email":"i@hust.cc"},"dist":{"shasum":"e8ffb7cc5258893472bfda4f5734d66583247757","size":5166,"noattachment":false,"key":"/size-sensor/-/size-sensor-0.2.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/size-sensor/download/size-sensor-0.2.5.tgz"},"maintainers":[{"name":"atool","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/size-sensor_0.2.5_1560752055214_0.5602271109574088"},"_hasShrinkwrap":false,"publish_time":1560752055404,"_cnpm_publish_time":1560752055404,"_cnpmcore_publish_time":"2021-12-16T12:39:23.574Z"},"0.2.4":{"name":"size-sensor","version":"0.2.4","description":"DOM element size sensor which will callback when size changed.","main":"lib/index.js","types":"index.d.ts","scripts":{"coveralls":"cat ./coverage/lcov.info | coveralls","build:umd":"rimraf ./dist && cross-env NODE_ENV=rollup rollup -c","build:lib":"rimraf ./lib && cross-env NODE_ENV=babel babel src -d lib","build":"npm run build:umd && npm run build:lib && size-limit"},"size-limit":[{"limit":"1 KB","path":"dist/size-sensor.min.js"}],"repository":{"type":"git","url":"git+https://github.com/hustcc/size-sensor.git"},"keywords":["resize","size","sensor","size-detector","element"],"devDependencies":{"babel-cli":"^6.26.0","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-version":"^0.2.1","babel-preset-env":"^1.6.1","cross-env":"^5.1.3","rimraf":"^2.6.2","rollup":"^0.58.1","rollup-plugin-babel":"^3.0.4","rollup-plugin-node-resolve":"^3.3.0","rollup-plugin-uglify":"^3.0.0","size-limit":"^0.18.2"},"author":{"name":"hustcc"},"license":"ISC","bugs":{"url":"https://github.com/hustcc/size-sensor/issues"},"homepage":"https://git.hust.cc/size-sensor","gitHead":"84a6b5d982d7d85aacf3b866b6390d3dd3848402","_id":"size-sensor@0.2.4","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"atool","email":"i@hust.cc"},"dist":{"shasum":"93f7b3a8a8582967a1ae782c5ae39ae1dbb7368d","size":5091,"noattachment":false,"key":"/size-sensor/-/size-sensor-0.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/size-sensor/download/size-sensor-0.2.4.tgz"},"maintainers":[{"name":"atool","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/size-sensor_0.2.4_1556105227094_0.5888684504940154"},"_hasShrinkwrap":false,"publish_time":1556105227347,"_cnpm_publish_time":1556105227347,"_cnpmcore_publish_time":"2021-12-16T12:39:23.795Z"},"0.2.3":{"name":"size-sensor","version":"0.2.3","description":"DOM element size sensor which will callback when size changed.","main":"lib/index.js","types":"index.d.ts","scripts":{"coveralls":"cat ./coverage/lcov.info | coveralls","build:umd":"rimraf ./dist && cross-env NODE_ENV=rollup rollup -c","build:lib":"rimraf ./lib && cross-env NODE_ENV=babel babel src -d lib","build":"npm run build:umd && npm run build:lib && size-limit"},"size-limit":[{"limit":"1 KB","path":"dist/size-sensor.min.js"}],"repository":{"type":"git","url":"git+https://github.com/hustcc/size-sensor.git"},"keywords":["resize","size","sensor","size-detector","element"],"devDependencies":{"babel-cli":"^6.26.0","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-version":"^0.2.1","babel-preset-env":"^1.6.1","cross-env":"^5.1.3","rimraf":"^2.6.2","rollup":"^0.58.1","rollup-plugin-babel":"^3.0.4","rollup-plugin-node-resolve":"^3.3.0","rollup-plugin-uglify":"^3.0.0","size-limit":"^0.18.2"},"author":{"name":"hustcc"},"license":"ISC","bugs":{"url":"https://github.com/hustcc/size-sensor/issues"},"homepage":"https://git.hust.cc/size-sensor","gitHead":"d0e29f37b19fe922fc700058f9f462f9489cd540","_id":"size-sensor@0.2.3","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"atool","email":"i@hust.cc"},"dist":{"shasum":"663876417d302a28490b4979095681fb827f1949","size":5060,"noattachment":false,"key":"/size-sensor/-/size-sensor-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/size-sensor/download/size-sensor-0.2.3.tgz"},"maintainers":[{"name":"atool","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/size-sensor_0.2.3_1555638451748_0.4855879840734658"},"_hasShrinkwrap":false,"publish_time":1555638451898,"_cnpm_publish_time":1555638451898,"_cnpmcore_publish_time":"2021-12-16T12:39:23.985Z"},"0.2.2":{"name":"size-sensor","version":"0.2.2","description":"DOM element size sensor which will callback when size changed.","main":"lib/index.js","types":"index.d.ts","scripts":{"coveralls":"cat ./coverage/lcov.info | coveralls","build:umd":"rimraf ./dist && cross-env NODE_ENV=rollup rollup -c","build:lib":"rimraf ./lib && cross-env NODE_ENV=babel babel src -d lib","build":"npm run build:umd && npm run build:lib && size-limit"},"size-limit":[{"limit":"1 KB","path":"dist/size-sensor.min.js"}],"repository":{"type":"git","url":"git+https://github.com/hustcc/size-sensor.git"},"keywords":["resize","size","sensor","size-detector","element"],"devDependencies":{"babel-cli":"^6.26.0","babel-plugin-add-module-exports":"^0.2.1","babel-preset-env":"^1.6.1","cross-env":"^5.1.3","rimraf":"^2.6.2","rollup":"^0.58.1","rollup-plugin-babel":"^3.0.4","rollup-plugin-node-resolve":"^3.3.0","rollup-plugin-uglify":"^3.0.0","size-limit":"^0.18.2"},"author":{"name":"hustcc"},"license":"ISC","bugs":{"url":"https://github.com/hustcc/size-sensor/issues"},"homepage":"https://git.hust.cc/size-sensor","gitHead":"4d5f89b776ac16af453056a4e534e9969a836139","_id":"size-sensor@0.2.2","_npmVersion":"6.0.1","_nodeVersion":"8.7.0","_npmUser":{"name":"atool","email":"vip@hust.edu.cn"},"dist":{"shasum":"aa416d86d019a4fbb8e606780ce37820f0172022","size":5005,"noattachment":false,"key":"/size-sensor/-/size-sensor-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/size-sensor/download/size-sensor-0.2.2.tgz"},"maintainers":[{"name":"atool","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/size-sensor_0.2.2_1538891856619_0.07144075716029485"},"_hasShrinkwrap":false,"publish_time":1538891856772,"_cnpm_publish_time":1538891856772,"_cnpmcore_publish_time":"2021-12-16T12:39:24.213Z"},"0.2.2-beta.1":{"name":"size-sensor","version":"0.2.2-beta.1","description":"DOM element size sensor which will callback when size changed.","main":"lib/index.js","types":"index.d.ts","scripts":{"coveralls":"cat ./coverage/lcov.info | coveralls","build:umd":"rimraf ./dist && cross-env NODE_ENV=rollup rollup -c","build:lib":"rimraf ./lib && cross-env NODE_ENV=babel babel src -d lib","build":"npm run build:umd && npm run build:lib && size-limit"},"size-limit":[{"limit":"1 KB","path":"dist/size-sensor.min.js"}],"repository":{"type":"git","url":"git+https://github.com/hustcc/size-sensor.git"},"keywords":["resize","size","sensor","size-detector","element"],"devDependencies":{"babel-cli":"^6.26.0","babel-plugin-add-module-exports":"^0.2.1","babel-preset-env":"^1.6.1","cross-env":"^5.1.3","rimraf":"^2.6.2","rollup":"^0.58.1","rollup-plugin-babel":"^3.0.4","rollup-plugin-node-resolve":"^3.3.0","rollup-plugin-uglify":"^3.0.0","size-limit":"^0.18.2"},"author":{"name":"hustcc"},"license":"ISC","bugs":{"url":"https://github.com/hustcc/size-sensor/issues"},"homepage":"https://git.hust.cc/size-sensor","gitHead":"a963d8c687a772c751b70f69825ba712dbe4b282","_id":"size-sensor@0.2.2-beta.1","_npmVersion":"6.0.1","_nodeVersion":"8.7.0","_npmUser":{"name":"atool","email":"vip@hust.edu.cn"},"dist":{"shasum":"6b25971c81b028d5da784626b931f07393312669","size":5012,"noattachment":false,"key":"/size-sensor/-/size-sensor-0.2.2-beta.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/size-sensor/download/size-sensor-0.2.2-beta.1.tgz"},"maintainers":[{"name":"atool","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/size-sensor_0.2.2-beta.1_1538308470932_0.2533117097444868"},"_hasShrinkwrap":false,"publish_time":1538308471115,"_cnpm_publish_time":1538308471115,"_cnpmcore_publish_time":"2021-12-16T12:39:24.419Z"},"0.2.1":{"name":"size-sensor","version":"0.2.1","description":"DOM element size sensor which will callback when size changed.","main":"lib/index.js","scripts":{"coveralls":"cat ./coverage/lcov.info | coveralls","build:umd":"rimraf ./dist && cross-env NODE_ENV=rollup rollup -c","build:lib":"rimraf ./lib && cross-env NODE_ENV=babel babel src -d lib","build":"npm run build:umd && npm run build:lib && size-limit"},"size-limit":[{"limit":"1 KB","path":"dist/size-sensor.min.js"}],"repository":{"type":"git","url":"git+https://github.com/hustcc/size-sensor.git"},"keywords":["resize","size","sensor","size-detector","element"],"devDependencies":{"babel-cli":"^6.26.0","babel-plugin-add-module-exports":"^0.2.1","babel-preset-env":"^1.6.1","cross-env":"^5.1.3","rimraf":"^2.6.2","rollup":"^0.58.1","rollup-plugin-babel":"^3.0.4","rollup-plugin-node-resolve":"^3.3.0","rollup-plugin-uglify":"^3.0.0","size-limit":"^0.18.2"},"author":{"name":"hustcc"},"license":"ISC","bugs":{"url":"https://github.com/hustcc/size-sensor/issues"},"homepage":"https://git.hust.cc/size-sensor","gitHead":"4c49a968417c99cace131c26921d281990dab4f3","_id":"size-sensor@0.2.1","_npmVersion":"6.0.1","_nodeVersion":"8.7.0","_npmUser":{"name":"atool","email":"vip@hust.edu.cn"},"dist":{"shasum":"e0f7351816a12cd8ba33475aa964112d1cf75439","size":4892,"noattachment":false,"key":"/size-sensor/-/size-sensor-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/size-sensor/download/size-sensor-0.2.1.tgz"},"maintainers":[{"name":"atool","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/size-sensor_0.2.1_1535542599005_0.032187491328532936"},"_hasShrinkwrap":false,"publish_time":1535542599166,"_cnpm_publish_time":1535542599166,"_cnpmcore_publish_time":"2021-12-16T12:39:24.621Z"},"0.2.0":{"name":"size-sensor","version":"0.2.0","description":"DOM element size sensor which will callback when size changed.","main":"lib/index.js","scripts":{"coveralls":"cat ./coverage/lcov.info | coveralls","build:umd":"rimraf ./dist && cross-env NODE_ENV=rollup rollup -c","build:lib":"rimraf ./lib && cross-env NODE_ENV=babel babel src -d lib","build":"npm run build:umd && npm run build:lib && size-limit"},"size-limit":[{"limit":"1 KB","path":"dist/size-sensor.min.js"}],"repository":{"type":"git","url":"git+https://github.com/hustcc/size-sensor.git"},"keywords":["resize","size","sensor","size-detector","element"],"devDependencies":{"babel-cli":"^6.26.0","babel-plugin-add-module-exports":"^0.2.1","babel-preset-env":"^1.6.1","cross-env":"^5.1.3","rimraf":"^2.6.2","rollup":"^0.58.1","rollup-plugin-babel":"^3.0.4","rollup-plugin-node-resolve":"^3.3.0","rollup-plugin-uglify":"^3.0.0","size-limit":"^0.18.2"},"author":{"name":"hustcc"},"license":"ISC","bugs":{"url":"https://github.com/hustcc/size-sensor/issues"},"homepage":"https://git.hust.cc/size-sensor","gitHead":"f21964278f6d64f653e45506de78008001bea83e","_id":"size-sensor@0.2.0","_npmVersion":"6.0.1","_nodeVersion":"8.7.0","_npmUser":{"name":"atool","email":"vip@hust.edu.cn"},"dist":{"shasum":"f929368b025b0e69013f30fa24dd473008885eb3","size":4869,"noattachment":false,"key":"/size-sensor/-/size-sensor-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/size-sensor/download/size-sensor-0.2.0.tgz"},"maintainers":[{"name":"atool","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/size-sensor_0.2.0_1530887179450_0.9001826940853765"},"_hasShrinkwrap":false,"publish_time":1530887179507,"_cnpm_publish_time":1530887179507,"_cnpmcore_publish_time":"2021-12-16T12:39:24.851Z"},"0.1.0":{"name":"size-sensor","version":"0.1.0","description":"DOM element size sensor which will callback when size changed.","main":"lib/index.js","scripts":{"coveralls":"cat ./coverage/lcov.info | coveralls","build:umd":"rimraf ./dist && cross-env NODE_ENV=rollup rollup -c","build:lib":"rimraf ./lib && cross-env NODE_ENV=babel babel src -d lib","build":"npm run build:umd && npm run build:lib && size-limit"},"size-limit":[{"limit":"1 KB","path":"dist/size-sensor.min.js"}],"repository":{"type":"git","url":"git+https://github.com/hustcc/size-sensor.git"},"keywords":["resize","size","sensor","size-detector","element"],"devDependencies":{"babel-cli":"^6.26.0","babel-plugin-add-module-exports":"^0.2.1","babel-preset-env":"^1.6.1","cross-env":"^5.1.3","rimraf":"^2.6.2","rollup":"^0.58.1","rollup-plugin-babel":"^3.0.4","rollup-plugin-uglify":"^3.0.0","size-limit":"^0.18.2"},"author":{"name":"hustcc"},"license":"ISC","bugs":{"url":"https://github.com/hustcc/size-sensor/issues"},"homepage":"https://git.hust.cc/size-sensor","gitHead":"806711d3d426cf8ca4448b31bf62a7361a20d08a","_id":"size-sensor@0.1.0","_npmVersion":"6.0.1","_nodeVersion":"8.7.0","_npmUser":{"name":"atool","email":"vip@hust.edu.cn"},"dist":{"shasum":"6ea8a9b50f534a247b9da175d59720f191b2026d","size":4391,"noattachment":false,"key":"/size-sensor/-/size-sensor-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/size-sensor/download/size-sensor-0.1.0.tgz"},"maintainers":[{"name":"atool","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/size-sensor_0.1.0_1530079160517_0.6725899479459632"},"_hasShrinkwrap":false,"publish_time":1530079160628,"_cnpm_publish_time":1530079160628,"_cnpmcore_publish_time":"2021-12-16T12:39:25.025Z"},"0.0.4":{"name":"size-sensor","version":"0.0.4","description":"DOM element size sensor which will callback when size changed.","main":"lib/index.js","scripts":{"coveralls":"cat ./coverage/lcov.info | coveralls","build:umd":"rimraf ./dist && cross-env NODE_ENV=rollup rollup -c","build:lib":"rimraf ./lib && cross-env NODE_ENV=babel babel src -d lib","build":"npm run build:umd && npm run build:lib && size-limit"},"size-limit":[{"limit":"1 KB","path":"dist/size-sensor.min.js"}],"repository":{"type":"git","url":"git+https://github.com/hustcc/size-sensor.git"},"keywords":["resize","size","sensor","size-detector","element"],"devDependencies":{"babel-cli":"^6.26.0","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-class-properties":"^6.24.1","babel-preset-env":"^1.6.1","cross-env":"^5.1.3","rimraf":"^2.6.2","rollup":"^0.58.1","rollup-plugin-babel":"^3.0.4","rollup-plugin-uglify":"^3.0.0","size-limit":"^0.18.2"},"author":{"name":"hustcc"},"license":"ISC","bugs":{"url":"https://github.com/hustcc/size-sensor/issues"},"homepage":"https://git.hust.cc/size-sensor","gitHead":"da2939bc3aa90eceb22df983cefd87fbf741f1d9","_id":"size-sensor@0.0.4","_npmVersion":"6.0.1","_nodeVersion":"8.7.0","_npmUser":{"name":"atool","email":"vip@hust.edu.cn"},"dist":{"shasum":"e72a2b5346fa6009ce8703a72859fafbd75a5b7b","size":4566,"noattachment":false,"key":"/size-sensor/-/size-sensor-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/size-sensor/download/size-sensor-0.0.4.tgz"},"maintainers":[{"name":"atool","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/size-sensor_0.0.4_1529635717730_0.750989705519058"},"_hasShrinkwrap":false,"publish_time":1529635717795,"_cnpm_publish_time":1529635717795,"_cnpmcore_publish_time":"2021-12-16T12:39:25.248Z"},"0.0.3":{"name":"size-sensor","version":"0.0.3","description":"DOM element size sensor which will callback when size changed.","main":"lib/index.js","scripts":{"coveralls":"cat ./coverage/lcov.info | coveralls","build:umd":"rimraf ./dist && cross-env NODE_ENV=rollup rollup -c","build:lib":"rimraf ./lib && cross-env NODE_ENV=babel babel src -d lib","build":"npm run build:umd && npm run build:lib && size-limit"},"size-limit":[{"limit":"1 KB","path":"dist/size-sensor.min.js"}],"repository":{"type":"git","url":"git+https://github.com/hustcc/size-sensor.git"},"keywords":["resize","size","sensor","size-detector","element"],"devDependencies":{"babel-cli":"^6.26.0","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-class-properties":"^6.24.1","babel-preset-env":"^1.6.1","cross-env":"^5.1.3","rimraf":"^2.6.2","rollup":"^0.58.1","rollup-plugin-babel":"^3.0.4","rollup-plugin-uglify":"^3.0.0","size-limit":"^0.18.2"},"author":{"name":"hustcc"},"license":"ISC","bugs":{"url":"https://github.com/hustcc/size-sensor/issues"},"homepage":"https://github.com/hustcc/size-sensor#readme","gitHead":"453c0dd0d2f90f615c1a3ba8bdf9c86e19c74eb0","_id":"size-sensor@0.0.3","_npmVersion":"6.0.1","_nodeVersion":"8.7.0","_npmUser":{"name":"atool","email":"vip@hust.edu.cn"},"dist":{"shasum":"242635d76fbe4cdcb9678b35d3d3febcd17e5c9f","size":4351,"noattachment":false,"key":"/size-sensor/-/size-sensor-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/size-sensor/download/size-sensor-0.0.3.tgz"},"maintainers":[{"name":"atool","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/size-sensor_0.0.3_1529472143642_0.7559092772141855"},"_hasShrinkwrap":false,"publish_time":1529472143695,"_cnpm_publish_time":1529472143695,"_cnpmcore_publish_time":"2021-12-16T12:39:25.497Z"},"0.0.2":{"name":"size-sensor","version":"0.0.2","description":"DOM element size sensor which will callback when size changed.","main":"lib/index.js","scripts":{"coveralls":"cat ./coverage/lcov.info | coveralls","build:umd":"rimraf ./dist && cross-env NODE_ENV=rollup rollup -c","build:lib":"rimraf ./lib && cross-env NODE_ENV=babel babel src -d lib","build":"npm run build:umd && npm run build:lib && size-limit"},"size-limit":[{"limit":"1 KB","path":"dist/size-sensor.min.js"}],"repository":{"type":"git","url":"git+https://github.com/hustcc/size-sensor.git"},"keywords":["resize","size","sensor","size-detector","element"],"devDependencies":{"babel-cli":"^6.26.0","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-class-properties":"^6.24.1","babel-preset-env":"^1.6.1","cross-env":"^5.1.3","rimraf":"^2.6.2","rollup":"^0.58.1","rollup-plugin-babel":"^3.0.4","rollup-plugin-uglify":"^3.0.0","size-limit":"^0.18.2"},"author":{"name":"hustcc"},"license":"ISC","bugs":{"url":"https://github.com/hustcc/size-sensor/issues"},"homepage":"https://github.com/hustcc/size-sensor#readme","gitHead":"d5ac15ccd69c3ddad14da2fbcf3d79413e581ca9","_id":"size-sensor@0.0.2","_npmVersion":"6.0.1","_nodeVersion":"8.7.0","_npmUser":{"name":"atool","email":"vip@hust.edu.cn"},"dist":{"shasum":"69a504b49cb3338ff9a2acc495f935a24a462518","size":4427,"noattachment":false,"key":"/size-sensor/-/size-sensor-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/size-sensor/download/size-sensor-0.0.2.tgz"},"maintainers":[{"name":"atool","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/size-sensor_0.0.2_1528273474770_0.7267831416141335"},"_hasShrinkwrap":false,"publish_time":1528273475426,"_cnpm_publish_time":1528273475426,"_cnpmcore_publish_time":"2021-12-16T12:39:25.706Z"}},"readme":"# [size-sensor](https://git.hust.cc/size-sensor/)\n\n> DOM element size sensor which will callback when the element size changed.\n>\n> DOM 元素尺寸监听器，当元素尺寸变化的时候，将会触发回调函数！\n\n\n[![Build Status](https://github.com/hustcc/size-sensor/workflows/build/badge.svg)](https://github.com/hustcc/size-sensor/actions)\n[![npm](https://img.shields.io/npm/v/size-sensor.svg)](https://www.npmjs.com/package/size-sensor)\n[![npm](https://img.shields.io/npm/dm/size-sensor.svg)](https://www.npmjs.com/package/size-sensor)\n[![gzip](http://img.badgesize.io/https://unpkg.com/size-sensor/dist/size-sensor.min.js?compression=gzip)](https://unpkg.com/size-sensor/dist/size-sensor.min.js)\n\n - [rc-size-sensor](https://www.npmjs.com/package/rc-size-sensor): React component wrapper.\n\n\n\n## Install\n\n\n> npm i --save size-sensor\n\nThen import it.\n\n```js\nimport { bind, clear } from 'size-sensor';\n```\n\nor import it by `script` in HTML, then get `sizeSensor` on window.\n\n```html\n<script src=\"https://unpkg.com/size-sensor/dist/size-sensor.min.js\"></script>\n```\n\n\n\n## Usage\n\n\n - **bind & unbind**\n\n```js\nimport { bind, clear } from 'size-sensor';\n\n// bind the event on element, will get the `unbind` function\nconst unbind1 = bind(document.querySelector('.container'), element => {\n  // do what you want to to.\n});\n\nconst unbind2 = bind(document.querySelector('.container'), element => {\n  // do what you want to to.\n});\n\n// if you want to cancel bind event.\nunbind1();\n```\n\n\n - **clear**\n\n```js\nimport { bind, clear } from 'size-sensor';\n\n/*\n * // bind the resize event.\n * const unbind1 = bind(...);\n * const unbind2 = bind(...);\n * ...\n */\n\n// you can cancel all the event of element.\nclear(element);\n```\n\n\n\n## API\n\n\nThere is only 2 API:\n\n\n - **bind(element, callback)**\n\nBind the resize trigger function on element. The function will return `unbind` function.\n\n - **clear(element)**\n\nClear all the object and resize event on element.\n\n\n\n## Strategies\n\nThe size sensor strategies include:\n\n - `ResizeObserver`: use [resizeObserver](src/sensors/resizeObserver.js) to observe element's size.\n - `object`: use [object](src/sensors/object.js) document's resize event.\n\nIf `ResizeObserver` exists, use it, else use `object` as default.\n\n\n\n## Let me know\n\nOnline demo click [here](https://git.hust.cc/size-sensor). Used By:\n\n - [antvis/G2Plot](https://github.com/antvis/G2Plot)\n - [hustcc/echarts-for-react](https://github.com/hustcc/echarts-for-react)\n - [hustcc/canvas-nest.js](https://github.com/hustcc/canvas-nest.js)\n\n\n\n# License\n\n\nISC@[hustcc](https://github.com/hustcc).\n","_attachments":{},"homepage":"https://git.hust.cc/size-sensor","bugs":{"url":"https://github.com/hustcc/size-sensor/issues"},"license":"ISC"}