{"name":"style-utils","version":"0.0.3","description":"style css for tween-one and queue-anim","main":"main.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","prepublish":"babel index.js --out-file main.js"},"repository":{"type":"git","url":"git+https://github.com/jljsj/style-css.git"},"author":{"name":"155259966@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/jljsj/style-css/issues"},"homepage":"https://github.com/jljsj/style-css#readme","devDependencies":{"babel-cli":"^6.6.5","babel-preset-es2015":"^6.6.0"},"gitHead":"aaa2ee0bad7d22c6d08ca599e29dfae62919b7ad","_id":"style-utils@0.0.3","_shasum":"ada71ac41450bba6389857800942cf5043d5c646","_from":".","_npmVersion":"3.5.2","_nodeVersion":"4.2.1","_npmUser":{"name":"jljsj33","email":"155259966@qq.com"},"dist":{"shasum":"ada71ac41450bba6389857800942cf5043d5c646","tarball":"http://registry-npm.ywwl.com/style-utils/download/style-utils-0.0.3.tgz","integrity":"sha512-M6SiStQdFdg7ppLvHJphT7lPSiRwG4rXAXdQcMcEwVK9OeldsVsxPpK33lL834N/DqApCREPRyDmouEJCzj23g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBQq36G9fBuTJGwsnSNbNC/9k4XriEjamEEzCkVGolFzAiBj9D1Tq/gDS3UZA284LW+LSr9KZ4ZEYNOsm1Xn3PIofg=="}],"size":6390,"noattachment":false,"key":"/style-utils/-/style-utils-0.0.3.tgz"},"maintainers":[{"name":"jljsj33","email":"155259966@qq.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/style-utils-0.0.3.tgz_1462861597661_0.8267408653628081"},"directories":{},"readme":"# style-utils\n\ntween-one 和 scroll-anim, queue-anim 的样式\n\ncolor 和 transform 的分解..\n \n### toCssLowerCase(v)\n\ntoCssLowerCase('lineHeight') => line-height;\n\n### toStyleUpperCase(d)\ntoStyleUpperCase('line-height') => lineHeight;\n\n### checkStyleName(p)\ncheckStyleName('filter') => WebkitFilter | MsFilter | MozFilter\n\n### parseColor(value)\n\nparseColor('#ff0') => [255,255,0,1];\nparseColor('#ffff00') => [255,255,0,1];\nparseColor('#ffff0080') => [255,255,0,0.5];\nparseColor('rgb(255,255,0)') => [255,255,0,1];\nparseColor('rgba(255,255,0,0.5)') => [255,255,0,0.5];\nparseColor('hsl(60, 100%, 50%)') => [255,255,0,1];\nparseColor('hsl(60deg 100% 50%)') => [255,255,0,1];\nparseColor('hsl(60 100% 50% / 50%)') => [255,255,0,0.5];\nparseColor('hsla(60,100%,50%,0.5)') => [255,255,0,0.5];\n\n### parseShadow(v, key);\nparseShadow('0 10px 10px #ffff00', 'text-shadow') => ['0', '10px', '10px', 255, 255, 0, 1];\n\n### getColor(v)\ngetColor([255,255,0]) => rgb(255,255,0);\n\n### getTransform(transform)\ngetTransform('translateX(100px) rotate(30deg)') => {translateX: 100, translateY: 0, rotate: 30, ...}\n### mergeStyle(current, change)\n\nmergeStyle('translate(30px,50em)', 'translateY(20em)') => translate(30px, 20em)","publish_time":1462861600306,"_cnpm_publish_time":1462861600306,"dist-tags":{"latest":"0.3.8"}}