{"_id":"@drecom/pixi-fittext","_rev":"5-8c8b7dc35b2d51fffb4f268ff04b339a","time":{"1.0.0":"2019-06-26T07:52:13.478Z","created":"2019-06-26T08:07:11.422Z","1.0.1":"2019-06-26T08:07:11.851Z","modified":"2022-04-05T05:38:21.880Z"},"name":"@drecom/pixi-fittext","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@drecom/pixi-fittext","version":"1.0.1","description":"A module for PIXI.js that changes the scale depending on the length of the string.","main":"lib/pixi-fittext.min.js","types":"lib/types/","scripts":{"build:dev":"webpack --mode development","build:prod":"webpack --mode production","workflow:build":"npm run build:dev && npm run build:prod","test":"karma start --no-auto-watch --single-run"},"keywords":[],"author":{"name":"Drecom Co.,Ltd."},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/drecom/pixi-fittext.git"},"homepage":"https://github.com/drecom/pixi-fittext","bugs":{"url":"https://github.com/drecom/pixi-fittext/issues"},"devDependencies":{"@types/pixi.js":"^4.7.3","chai":"^4.2.0","karma":"^4.1.0","karma-chrome-launcher":"^2.2.0","karma-mocha":"^1.3.0","karma-mocha-reporter":"^2.2.5","karma-webpack":"^3.0.5","mocha":"^6.1.4","pixi.js":"^4.8.8","power-assert":"^1.6.1","ts-loader":"^6.0.2","typescript":"^3.5.1","webpack":"^4.33.0","webpack-cli":"^3.3.2"},"dependencies":{},"gitHead":"dfce7b4f12f430ae645141a3f33c2aeda2a64b1f","_id":"@drecom/pixi-fittext@1.0.1","_nodeVersion":"8.11.4","_npmVersion":"6.9.0","dist":{"integrity":"sha512-kCiF1YRp30YYK0f9aRpvEdAet2xGkjac94anlzBJQZ94/Wb55xod8ecOVobSaRupplugFcsbdxMERJcgKZbQpg==","shasum":"1354de93f7f1a0ba0fa2efc51f6ed269d6f2bfd0","tarball":"https://registry.npmjs.org/@drecom/pixi-fittext/-/pixi-fittext-1.0.1.tgz","fileCount":8,"unpackedSize":19338,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdEyewCRA9TVsSAnZWagAA5r4P/1F8QAFpSrK4T4KZn+0B\nt5ekxZ8jXKVdz1eB4pLcGjvPdF/YmkZGgHC8UepIf19HlIRIz8vjjzal+Tvi\nA0JwFBo976AP9B5dg37SFIZiCK1s8DFWnoFok9hkUAaKVXomD5+BgJitZrP2\nX7P3GPI+qxDATkayq7oECjty+wM9lWsPVE3qpVZPKDcUrOVzkJmXhzR9Wb2x\nX45B8ilCRK/8FE9qYgmfhABrWm+MrwubnE0+eXQKMwsiYLpsYmNLuCdwI5Jv\nPE3ADi7GnrmmRt0QlgQkX3dGAzm+bo07Ysj7uJSZTS9/g1z/Me3sUkzJay+Y\n6+D74CCuOiffcUKJ3lfgedJkPsHEEFUsoGchx8sntU5p1YEqEAHi2WhW3Mz7\nsSLlr9rmtPry2i53PjFKYnedR+wCutRkU2WxjJTLFTqJJmkljyJAE2zQ29GQ\nLiG6KGHoC8diIgVUmE7vD+T0M7fLD7beTNRVAAZTsGrJv2488yzhI7zQMicK\nszil4LnSSrVlj2G02z9QDb2b1GwCoKaCEOvT2S64g0Z0ZY6W3mkk99aocvo6\nffbK63TENgUrf8wYSlpxbyE2nK9sS0GwJG8tIsmv5e/hQ3jbeR6qsySOPDJT\n/znfgFAMDn7UtTTDyN+sLDcxv4VJwb4VK3Sxp4gBzVJ09UOc/2zLiRFSR0eZ\nKsYh\r\n=fo+N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEUGU9bPU1Zadeft0RKXgTS24lT6R5G49OZC+Uudm7/nAiAXh1g0Y+IpF1wVxIB3bTZmO00GEasRI9Jy5BP6dLG4pw=="}]},"maintainers":[{"name":"takeshi-sakurai","email":"takeshi.sakurai@drecom.co.jp"},{"name":"dolow","email":"velvet.nanashi@gmail.com"},{"name":"zprodev","email":"zproject.develop@gmail.com"}],"_npmUser":{"name":"takeshi-sakurai","email":"takeshi.sakurai@drecom.co.jp"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pixi-fittext_1.0.1_1561536431622_0.37531433008249837"},"_hasShrinkwrap":false}},"maintainers":[{"name":"takeshi-sakurai","email":"takeshi.sakurai@drecom.co.jp"},{"name":"dolow","email":"velvet.nanashi@gmail.com"},{"name":"zprodev","email":"zproject.develop@gmail.com"}],"description":"A module for PIXI.js that changes the scale depending on the length of the string.","homepage":"https://github.com/drecom/pixi-fittext","keywords":[],"repository":{"type":"git","url":"git+https://github.com/drecom/pixi-fittext.git"},"author":{"name":"Drecom Co.,Ltd."},"bugs":{"url":"https://github.com/drecom/pixi-fittext/issues"},"license":"MIT","readme":"# pixi-fittext\n\npixi-fittext is a module for PIXI.js that changes the scale depending on the length of the string.\nIt is a premise used for game project using pixi.js.\n\n## Install\n\n```\n# install this module\nnpm install @drecom/pixi-fittext\n```\n\n## Usage\n\n```\nconst requiredWidth = 240;\n\n// FitText extends PIXI.Text, The parameter same as PIXI.Text except for the requiredWidth.\nconst fitText = new FitText(\"Hello FitText!\", requiredWidth, { fill: 0xFFFFFF });\n\n// when set text property, FitText adjust x scale automaticaly.\nfitText.text = \"adjust x scale auto.\";\n```\n\n![fittext1](https://raw.githubusercontent.com/drecom/pixi-fittext/master/fittext1.png)  \n![fittext2](https://raw.githubusercontent.com/drecom/pixi-fittext/master/fittext2.png)\n","readmeFilename":"README.md"}