{"_id":"pixi-live2d-display","_rev":"17-8b33bb6f255a427f384620f4896b5abb","name":"pixi-live2d-display","dist-tags":{"latest":"0.4.0","beta":"0.5.0-beta"},"versions":{"0.1.0":{"name":"pixi-live2d-display","version":"0.1.0","description":"Live2D plugin for PixiJS","main":"lib/index.js","module":"src/index.ts","repository":{"type":"git","url":"git@github.com:guansss/pixi-live2d-display.git"},"author":{"name":"guansss","email":"821143943@qq.com"},"license":"MIT","scripts":{"pretest":"webpack --config webpack.test.config.js","test":"node node_modules/floss/bin/floss.js --path build.test -d","build":"webpack --mode=production && yarn type","type":"yarn type:tsc && yarn type:dts","type:tsc":"tsc --emitDeclarationOnly","type:dts":"dts-bundle --name pixi-live2d-display --main build/index.d.ts --out ~/lib/index.d.ts","prepublish":"yarn build"},"dependencies":{"lodash":"latest"},"peerDependencies":{"@pixi/core":"^5.2.1","@pixi/display":"^5.2.1","@pixi/loaders":"^5.2.1","@pixi/math":"^5.2.1","@pixi/sprite":"^5.2.1","@pixi/utils":"^5.2.1"},"devDependencies":{"@types/lodash":"^4.14.149","@types/node":"latest","dts-bundle":"^0.7.3","electron":"^8.1.1","floss":"^3.0.0","fork-ts-checker-webpack-plugin":"^4.1.0","pixi.js":"^5.2.1","sinon":"^9.0.1","ts-loader":"^6.2.1","typescript":"^3.8.3","webpack":"^4.42.0","webpack-cli":"^3.3.11"},"licenseText":"MIT License\n\nCopyright (c) 2020 Guan\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"pixi-live2d-display@0.1.0","dist":{"shasum":"f9595f630a08ec1893de64becfa5b4f72db83822","integrity":"sha512-dzr6Pm60lZ+Z5xROCxCdxsMMrXGY+ZRXKzIoivUZ55zfr2oD+F2TCkTC4eS2EG/q14jDhPCp+gGIdxWhgD5guw==","tarball":"https://registry.npmjs.org/pixi-live2d-display/-/pixi-live2d-display-0.1.0.tgz","fileCount":36,"unpackedSize":646232,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJehjsuCRA9TVsSAnZWagAAw74P/RzMMl2p3qGqgLH1Oa1i\nW6hAQMSJoVALUdNGMFTq5AmYwzOwsirsWkn77WIoSxEx6K5dTIHX7se047/E\nKrWyqq2qxRn9FQaEKOjPteB4ItuWpHrwT1RYlG1++GKWuqmOtUzB48gkSDIS\nYMRo7lGowVEGBrnRJPBl401CGA5DgDY5oOm26dPVds8tn7ih8J4HYsrqRqBN\n3o9Af24DGNVpCK0iWO1AFlykaMPyjybmn8oCQL8d39RzLnHsSHlL9YhP4sH6\nLJJPvV8UHuryK+7gbUX4M5mOgkFjNur/v2ND5grFZ6ZYALk8IcDLU09UNmkX\nUNYbt4WDEFAYvNidBAEMPL8hOS/nDVcE+jAii7jL1IZ/C2bSDEqt4bHqW9V/\nkodYeEf7zZA2hXOOSMAdG3Nj/Nd9UyEH8A8zA2KXYf3IuU4uZupGrKhBRbTW\nc+Y+cXaPWZJkYCEWxBOHh4vZ+TsKF1ZF8qYngk42uWMS7Owk7SFE2YHZeFkD\nc24tHpSVuX62qTUtk0pqF2hahAdD3u68TBg53sr6QmMNWXd6Oq7UTDCCf+Zt\ny81U68Utya67fxtvhyLo5gxzaJQ2pvDkJrP7KBYZUSp3qtO0enPYqCgcgpXr\nZ0hOORI9kyrSqF/IAUgiZU7KnzWsdm6atActMNvGkSaF6t6D5aj4oI8ieYiH\n7SAR\r\n=Swi3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICME8YuXSwdv0k/ozaNzs9EEUyXMSv5Ky52Nog9LeqVXAiEAot6EXLEV5GgqLfcnW1tiYI7u3ZhEXpSUUWrNR8YGtys="}]},"maintainers":[{"name":"guansss","email":"821143943@qq.com"}],"_npmUser":{"name":"guansss","email":"821143943@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pixi-live2d-display_0.1.0_1585855278090_0.3898801172583739"},"_hasShrinkwrap":false},"0.1.1":{"name":"pixi-live2d-display","version":"0.1.1","description":"Live2D plugin for PixiJS","main":"lib/index.js","repository":{"type":"git","url":"git@github.com:guansss/pixi-live2d-display.git"},"author":{"name":"guansss","email":"821143943@qq.com"},"license":"MIT","scripts":{"pretest":"webpack --config webpack.test.config.js","test":"node node_modules/floss/bin/floss.js --path build.test -d","build":"webpack --mode=production && yarn type","type":"yarn type:tsc && yarn type:dts","type:tsc":"tsc --emitDeclarationOnly","type:dts":"dts-bundle --name pixi-live2d-display --main build/index.d.ts --out ~/lib/index.d.ts","prepublish":"yarn build"},"dependencies":{"lodash":"latest"},"peerDependencies":{"@pixi/core":"^5.2.1","@pixi/display":"^5.2.1","@pixi/loaders":"^5.2.1","@pixi/math":"^5.2.1","@pixi/sprite":"^5.2.1","@pixi/utils":"^5.2.1"},"devDependencies":{"@types/lodash":"^4.14.149","@types/node":"latest","dts-bundle":"^0.7.3","electron":"^8.1.1","floss":"^3.0.0","fork-ts-checker-webpack-plugin":"^4.1.0","pixi.js":"^5.2.1","sinon":"^9.0.1","ts-loader":"^6.2.1","typescript":"^3.8.3","webpack":"^4.42.0","webpack-cli":"^3.3.11"},"licenseText":"MIT License\n\nCopyright (c) 2020 Guan\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"pixi-live2d-display@0.1.1","dist":{"shasum":"17051c34f3ac7bb7fc1d1e5fc27c3644952289e5","integrity":"sha512-wV9/Apc7hVa2EI03LRIb2PUxVn5B1raUmg+elg2XIiKRbmo60F0Re0tKZK/l/SobK8w8raxTvwASjwuhUyPEGw==","tarball":"https://registry.npmjs.org/pixi-live2d-display/-/pixi-live2d-display-0.1.1.tgz","fileCount":36,"unpackedSize":646155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJehkjACRA9TVsSAnZWagAACOgP/1DOj8Vsm92vb/DyUyLF\nn7LqoeVNsm3pzgwxd0l1nWpq/Z6pfliAZ+ly6c8bXO4dPS9uM+nU36dWP2aD\n8MJHQ8LtrD4GpnTBFDNff4be/dmFMTZjQA8myK43wpmp8DOiTpWbiZgo/gKz\nac1GQ9qg+IX6DxYuqxBOOnAyHf5WP0kHBER9iNJltLM8hOE3NAIoLirAuKGd\n5KVmJPN4b+cQPoZVjUOjZvluIgjoQNSLZQF33RDjwIz1VIGFsZJXC1uQokKJ\nEQGnybUTXbcVB2jjaNmzW7Y3Nb8niV9Y3lF/WbFtC4aGOQp5upCiIdOJqd38\nqs+kJXCWQ9xbPMZFGJva3if125ftFT+Bcasil1mAR8Uy52JZoPwBmHiZjz6E\nDUma6AUwihlsQ5DlNtAiN2WcBvSjqTpGGh/uzColFeF5oZrbVij6lZW5WXsI\n7cba/zTeNArBhSt0PJAgs3jifyEMryY0HzNa28mvXzUE41TQrfF5ukXP0udi\nmUJynjqHZ5rbdcn1PeJhkC91aw3LUgE/qafC7nlVtDlHBrc/kQ98BtrCFtrq\nfVslJwNDKjLUMmCUQgW2lDkkzK6YaY1729J9XaFdF+MpcKYOG4nXDkmksCIe\nLkNHYjXeeledc+DM+0SKgFNMZLhnrtwkYXaLDaA4+tP+cgGOkdGNpfVirxvF\nUGEw\r\n=j3cH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDLqfOtFIgxIR2SlpBVzUR1IlRUJVeeriODhimriIIqOAiEAobeT+N20Be4VldObtjrHzahSh+QmFYSpzK/dMyvMxrg="}]},"maintainers":[{"name":"guansss","email":"821143943@qq.com"}],"_npmUser":{"name":"guansss","email":"821143943@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pixi-live2d-display_0.1.1_1585858752007_0.7968483089809884"},"_hasShrinkwrap":false},"0.1.2":{"name":"pixi-live2d-display","version":"0.1.2","description":"Live2D plugin for PixiJS","main":"lib/index.js","repository":{"type":"git","url":"https://github.com/guansss/pixi-live2d-display.git"},"author":{"name":"guansss","email":"821143943@qq.com"},"license":"MIT","scripts":{"pretest":"webpack --config webpack.test.config.js","test":"node node_modules/floss/bin/floss.js --path build.test -d","build":"webpack --mode=production && yarn type","type":"yarn type:tsc && yarn type:dts","type:tsc":"tsc --emitDeclarationOnly","type:dts":"dts-bundle --name pixi-live2d-display --main build/index.d.ts --out ~/lib/index.d.ts","prepublish":"yarn build"},"dependencies":{"lodash":"latest"},"peerDependencies":{"@pixi/core":"^5.2.1","@pixi/display":"^5.2.1","@pixi/loaders":"^5.2.1","@pixi/math":"^5.2.1","@pixi/sprite":"^5.2.1","@pixi/utils":"^5.2.1"},"devDependencies":{"@types/lodash":"^4.14.149","@types/node":"latest","dts-bundle":"^0.7.3","electron":"^8.1.1","floss":"^3.0.0","fork-ts-checker-webpack-plugin":"^4.1.0","pixi.js":"^5.2.1","sinon":"^9.0.1","ts-loader":"^6.2.1","typescript":"^3.8.3","webpack":"^4.42.0","webpack-cli":"^3.3.11"},"licenseText":"MIT License\n\nCopyright (c) 2020 Guan\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"pixi-live2d-display@0.1.2","dist":{"shasum":"cccd7281f629b60367021fdcd58ee65900c4c6d1","integrity":"sha512-3xgwvVZbKIdnQzkgRX0VPDJMnb7TYmgC5AfF2c5aW+VctEfKoqsCwYMgCzdlLuyAFWTLocMKganw4OW1flcpRQ==","tarball":"https://registry.npmjs.org/pixi-live2d-display/-/pixi-live2d-display-0.1.2.tgz","fileCount":36,"unpackedSize":646676,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJehzvMCRA9TVsSAnZWagAAUAAP/1LRZwd7hfPexOssorj0\nhM6vOJalRwm3vCWFXpOJcKQx8VISXY7LgCBFwJS9KJIuHDiK2zzpb416DKtp\nN+x0VO1kZShMKsVy08IvAH7ICr9Ig5qTSXX5seob2s+yfyD3QkAL93SqTrSf\nu5fbriUkhCuzK1cDV3MVz/8dwGU21DehQxfR0aqyo3S3VLPbJtH/auvoURt0\np1Utrazx9H4vaRItG1RgImV5ePUcqT8s4dtbOtZM131Safu7heRRfJns8cWt\n2Wt5QRwNUA65um2IsIkHvHG9utRfi7hfl+x1LUQrNooqTHpgkhv438qc7grJ\ngGrr36xPI2kOF1Pq2bIPEEFUii+G+fW/10OvwnWZ2v+32V+2B9mEEY+DAgf8\nigQE19MPIwmTrsWEr3xjXEhGkx1orjGODGUkBUzNFA6GIYlKLx/KkXywimQ0\nUya3cyBLQLINDVe2RrBCq/R94Mog+422UjWeSUrx4fylfYpldvU27MNkdrNN\nh/Vhms/YwxYX+W8tG8g6C3om+ftiWdG7dcQrLHL5vIJXYeIH0zgFSr7/ESe0\nAFVEx7UfZp+TBrD7tg29NZfFftkJiQkjonmbZUMuXMwbU26zstCjJyYoEfQp\nrSCKm2hNSMOZyFndFG7J1ipuLzXtDT9H0vjmhES71WNhq7Lwb4Lpv2QakanA\nFkXE\r\n=W/FC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5QpZASNWyZKRpfylnvCsFckEcURyqAE+lpkP0gKtq8AIhAKy/r+ZzHQVJ0PmJ+j1anmmy03AedTis7r3Q8Hgcyg9w"}]},"maintainers":[{"name":"guansss","email":"821143943@qq.com"}],"_npmUser":{"name":"guansss","email":"821143943@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pixi-live2d-display_0.1.2_1585920971766_0.7222172808084615"},"_hasShrinkwrap":false},"0.2.0":{"name":"pixi-live2d-display","version":"0.2.0","description":"Live2D plugin for PixiJS","main":"lib/index.js","repository":{"type":"git","url":"https://github.com/guansss/pixi-live2d-display.git"},"author":{"name":"guansss","email":"821143943@qq.com"},"license":"MIT","scripts":{"pretest":"webpack --config webpack.test.config.js","test":"node node_modules/floss/bin/floss.js --path build.test -d","build":"webpack --mode=production","type":"dts-bundle-generator --no-check -o types/index.d.ts src/index.ts && node scripts/patch-types.js","doc":"rimraf docs && typedoc src --mode file --excludeNotExported && node scripts/patch-docs.js","prepack":"yarn build && yarn type","prepublish":"yarn doc"},"types":"types/index.d.ts","dependencies":{"lodash":"latest"},"peerDependencies":{"@pixi/core":"^5.2.1","@pixi/display":"^5.2.1","@pixi/loaders":"^5.2.1","@pixi/math":"^5.2.1","@pixi/sprite":"^5.2.1","@pixi/utils":"^5.2.1"},"devDependencies":{"@types/lodash":"^4.14.149","@types/node":"latest","chalk":"^4.0.0","dts-bundle-generator":"^4.0.0","electron":"^8.1.1","floss":"^3.0.0","fork-ts-checker-webpack-plugin":"^4.1.0","glob":"^7.1.6","pixi.js":"^5.2.1","rimraf":"^3.0.2","sinon":"^9.0.1","ts-loader":"^6.2.1","typedoc":"^0.17.4","typescript":"^3.8.3","webpack":"^4.42.0","webpack-cli":"^3.3.11"},"licenseText":"MIT License\n\nCopyright (c) 2020 Guan\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"pixi-live2d-display@0.2.0","dist":{"shasum":"c492e323a0cb9570ae5a85ef50a2dbc46ed824e9","integrity":"sha512-WJEFDFAeCcyPPUrOMe/Yk6aiw+Q1mLXAfxPlH9RNT8iPnzGnQOYlCAhe3shl1geswlg23o2+fylzuy3aMQru7A==","tarball":"https://registry.npmjs.org/pixi-live2d-display/-/pixi-live2d-display-0.2.0.tgz","fileCount":39,"unpackedSize":640985,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelem4CRA9TVsSAnZWagAAn5YQAKI4AgGAeZAVp4iaX7CY\nsZMV8xldNaD8fKRzG6gJgW5NsbtGq25nEKGfFwc8NTNpge7y1gsbMPBWBtQp\nBbWEo/bk/LRVGgBAbNAXMXglu/RA/wbU2LRzhg4EgTICOkJk5m/7dIgM8Gx8\nIob6BLB+xfiTJwihl3317xLYRv7ehDI/rpUVQbUlCzBIstoXYtu2G9LaTmCz\nyJin5dFNjVbazcgFKnqd6gnvOHjm0IGJSBaYFDTB3HWOw62YfSNNKa+Zq9xs\nZQryA5zZafkkBWbrTGb0TyWK4g6sUeWJF9hYBzvEZUZq3cSkZU/W58FkwJzh\nlnm40/Iz8pXSKk4zWfkD92NQm20iID/2IDj7RixcFcl6/KnKNnJ6Rg97pw+A\n/VmQLQkS6ZWW5XXMTWB/qpJhsTAtEMN6pKnVmOwJPcQFfqsgyVLF3jZge9cQ\nvQc5epPbi/K8vZuETltTfyKHKkhUNhNqftdufeI402u/qgRVyTvCeAFQPfU3\ntFDBI7NVcHNqmmiArCqIU3Y920xccvRvAxq0vMb8UYBw0uMxGPspgY+9N0Lo\nH3dnCcT9+t/5ZST/CyFOWYJku1SzvzjcoT63Nh+n4MVM2guthQOO6l5gH3Lk\nwk+PPX2Ch1P6wQaAI45fPRdq/1Va8/MNnAIQJFM7oEDQFsmlT5K3+UvjPOow\nTTag\r\n=OMx4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHG05KpiPCIe88IlVHf6vKlY9HXCi9CBLQb6T0xAWPw2AiEA8i1A7C+cUTHQGF5wa3X7pya0s41Qfh5CBAlpI1C8Hq0="}]},"maintainers":[{"name":"guansss","email":"821143943@qq.com"}],"_npmUser":{"name":"guansss","email":"821143943@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pixi-live2d-display_0.2.0_1586882999306_0.5357838016374756"},"_hasShrinkwrap":false},"0.2.1":{"name":"pixi-live2d-display","version":"0.2.1","description":"Live2D plugin for PixiJS","main":"lib/index.js","repository":{"type":"git","url":"https://github.com/guansss/pixi-live2d-display.git"},"author":{"name":"guansss","email":"821143943@qq.com"},"license":"MIT","scripts":{"test":"webpack --config=webpack.test.config.js && node node_modules/floss/bin/floss.js --path=build.test","test:debug":"webpack --config=webpack.test.config.js && node node_modules/floss/bin/floss.js --path=build.test -d","build":"rimraf lib && webpack --mode=production","type":"rimraf types && dts-bundle-generator src/index.ts --no-check -o=types/index.d.ts && node scripts/patch-types.js","doc":"rimraf \"docs/!(.git|.nojekyll)\" && typedoc src --out docs --mode file --disableOutputCheck --excludeNotExported && node scripts/patch-docs.js","deploy":"cd docs && git add -A && git commit -m \"Update docs\" && git push","prepublishOnly":"yarn build && yarn test && yarn type && yarn doc && yarn deploy"},"types":"types/index.d.ts","dependencies":{"lodash":"latest"},"peerDependencies":{"@pixi/core":"^5.2.1","@pixi/display":"^5.2.1","@pixi/loaders":"^5.2.1","@pixi/math":"^5.2.1","@pixi/sprite":"^5.2.1","@pixi/utils":"^5.2.1"},"devDependencies":{"@types/chai":"^4.2.11","@types/chai-as-promised":"^7.1.2","@types/lodash":"^4.14.149","@types/node":"latest","chai":"^4.2.0","chai-as-promised":"^7.1.1","chalk":"^4.0.0","dts-bundle-generator":"^4.0.0","electron":"^8.1.1","floss":"^3.0.0","fork-ts-checker-webpack-plugin":"^4.1.0","glob":"^7.1.6","pixi.js":"^5.2.1","rimraf":"^3.0.2","sinon":"^9.0.1","sinon-chai":"^3.5.0","ts-loader":"^6.2.1","typedoc":"^0.17.4","typescript":"^3.8.3","webpack":"^4.42.0","webpack-cli":"^3.3.11"},"licenseText":"MIT License\n\nCopyright (c) 2020 Guan\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"pixi-live2d-display@0.2.1","dist":{"shasum":"bcc99b05f63b01168e1d1cebad52cb5d97495c68","integrity":"sha512-YKJekEXvNefN1VW+OgwhLBDH/MpYzPglumqj91DCmKdO2zHUUiDl6UTTCdZwb6apKdZ8I1thrrftJrkT3WIOOA==","tarball":"https://registry.npmjs.org/pixi-live2d-display/-/pixi-live2d-display-0.2.1.tgz","fileCount":47,"unpackedSize":490005,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJepHTYCRA9TVsSAnZWagAAGR4P/2r4YzfRdRFYLQyUlchP\nM6ShTSpMs+nTeA+vvG8SlIAObXztRwZjVy0zDHqI4WCnfSJuBCaCLfGO1SS+\nJMW8Di1alUNtTrJYBsH9xbdOlpTRzQ4KW+Lb16bM7yCSS4Z3MuIV+zI5Ajlx\njw4tgjwr0ERNZDIAo1DYEzK1Z3WGmzxGva/2LbrCFiuhiB2BjK4+ZNU1XLoG\nSnPRNy5vRc34PFCq2kPC1pOJiEJLi6pqh5CE3xrUE2BQTx7OcfsMjcZWGCoR\nKVGet0gfUT15lLodbVToUtEczjICQV2YN5wZhtxd6myWzrC6RBsUAkDosi/J\n062i+GDb4h5Ps1UBJuWZXS61KDeNqeRKpHchdNG1iwOXPTC7hnLvpfq4b4Ub\nEytXFysEvBjBecfxXcGuoXiAnKJiMuiP1oy6PPBVKw3n9lWqRG/CyIZx3mu4\nHt3gjZPw0AwJ6sXJJs20ay3JOdk6keiBa9pChMH+2Z7qSTr+ct0E2S+iOam0\n+sQVphqSAz8foo7iL2JzXybrjXgqcnCXtQUxMXqTDP2l3EmQNYSn0qyjB0jx\nX9yNIEKM5HZcXj/6bgXlawlVZ5UhsH6NETnhTp7BnZ1ZRb6zUorKPl+vuQ6A\nDOaZMa+d8fGL/cEAmsg/ASQ4oDAP3I85gxRxt5x+FUYm6ptuDbQ+7ykjbgMi\n/uWr\r\n=70NC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHEYj6oshWQY/FE0mC60U/jPs0M2Eth/rSFrLr8e4V2DAiEA7jHcc2VNltThHXuCISTxeVYoT9unbtoT+CwG5P9tFHI="}]},"maintainers":[{"name":"guansss","email":"821143943@qq.com"}],"_npmUser":{"name":"guansss","email":"821143943@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pixi-live2d-display_0.2.1_1587836119517_0.22849120469012907"},"_hasShrinkwrap":false},"0.2.2":{"name":"pixi-live2d-display","version":"0.2.2","description":"Live2D plugin for PixiJS","main":"lib/index.js","repository":{"type":"git","url":"https://github.com/guansss/pixi-live2d-display.git"},"author":{"name":"guansss","email":"821143943@qq.com"},"license":"MIT","scripts":{"test":"webpack --config=webpack.test.config.js && node node_modules/floss/bin/floss.js --path=build.test","test:debug":"webpack --config=webpack.test.config.js && node node_modules/floss/bin/floss.js --path=build.test -d","build":"rimraf lib && webpack --mode=production","type":"rimraf types && dts-bundle-generator src/index.ts --no-check -o=types/index.d.ts && node scripts/patch-types.js","doc":"rimraf \"docs/!(.git|.nojekyll)\" && typedoc src --out docs --mode file --disableOutputCheck --excludeNotExported && node scripts/patch-docs.js","deploy":"cd docs && git add -A && git commit -m \"Update docs\" && git push","prepublishOnly":"yarn build && yarn test && yarn type && yarn doc && yarn deploy"},"types":"types/index.d.ts","dependencies":{"lodash":"latest"},"peerDependencies":{"@pixi/core":"^5.2.1","@pixi/display":"^5.2.1","@pixi/loaders":"^5.2.1","@pixi/math":"^5.2.1","@pixi/sprite":"^5.2.1","@pixi/utils":"^5.2.1"},"devDependencies":{"@types/chai":"^4.2.11","@types/chai-as-promised":"^7.1.2","@types/lodash":"^4.14.149","@types/node":"latest","chai":"^4.2.0","chai-as-promised":"^7.1.1","chalk":"^4.0.0","dts-bundle-generator":"^4.0.0","electron":"^8.1.1","floss":"^3.0.0","fork-ts-checker-webpack-plugin":"^4.1.0","glob":"^7.1.6","pixi.js":"^5.2.1","rimraf":"^3.0.2","sinon":"^9.0.1","sinon-chai":"^3.5.0","ts-loader":"^6.2.1","typedoc":"^0.17.4","typescript":"^3.8.3","webpack":"^4.42.0","webpack-cli":"^3.3.11"},"licenseText":"MIT License\n\nCopyright (c) 2020 Guan\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"pixi-live2d-display@0.2.2","dist":{"shasum":"c80eac9ab98d88c0b3ffabdd1c70e2d1b596a0ed","integrity":"sha512-E2dvNyr0QkG9Dv1p5efvElN4z9qmh7e6vX3Wj8rb+Bbnevn3aVjpDT10E5WrJBfAfi8yX2rWx8WcjixX3+t6tw==","tarball":"https://registry.npmjs.org/pixi-live2d-display/-/pixi-live2d-display-0.2.2.tgz","fileCount":49,"unpackedSize":488432,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaFkdCRA9TVsSAnZWagAA1tkP/26V/qk/mYWZKUlquvPU\nyg1yi+2jmcCHFH3c7zwi7dOwWOXUYMJt4FkIK5RkVs/+QmIG1FwSBRPfE4s9\naEzqSFNSd8rL3SjlLpDRh5+uIbsD7qrnn2fZRJNavPhN0ErGk2gDAFih8E8i\njhAozZfOV4N3+2+MpAZ3ToMMhn+mmjCDFJ7LUUj/au7TafXIcUwqO43xCW9w\nyy48rcTydTpVOnhD0gF9NrfHXceoYOzV/6xhMgCuS2pM6ve7RSEsxoMxbMdZ\n0FbzF7QJx3UNnYlmo5u8yxwXmT1pGoIlbLPqSHaSv5YHGTJMVMKBoD6Itu5x\nl5ry0L97Iqb3kQNQG5Qv+W8cOe8M0V25oI5wv0nrqqvmwdUEirQJWAoBdXBl\nShMl+YCvMeMraariARM34+CcKfaJQMZGtjRibGuW3iwBk9Y0xJnkN3Spb09w\nwC7kLdEbJTALD/jIYHDY3lTpha8vPMi9ipkjUXq808BivnPc+j8zqYtyLbIR\nnVhaOrWsmX8RQOu8qPyY9rYopAMvGt2ROFxCXNu3Kb0hJcI0W7401OCLnw/z\nkUAOobLVQwfzUBWZ5bF8YswDNuW2zDWvc2wflcvWe5n9oBC3FvWTjT1LSJLx\ntzbf8G2Mh4xlakS0kOO0km/S8a46EY5WHu3Bg4XOgcwqp/8CK0lXH7eIXYAi\n7KnN\r\n=kcAg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEIqWd5mCfF1mr2KRL/lMv6/roX6rM5pq9oqUDlny7ScAiEAgqDjo1sTX00C+KchmeJpf4n/htpRBfvdKX9ziLNX0u0="}]},"maintainers":[{"name":"guansss","email":"821143943@qq.com"}],"_npmUser":{"name":"guansss","email":"821143943@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pixi-live2d-display_0.2.2_1600674076583_0.4918588027634545"},"_hasShrinkwrap":false},"0.3.0-beta":{"name":"pixi-live2d-display","version":"0.3.0-beta","description":"Live2D plugin for PixiJS","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/guansss/pixi-live2d-display.git"},"author":{"name":"guansss","email":"821143943@qq.com"},"license":"MIT","scripts":{"test":"webpack --config=webpack.test.config.js && node node_modules/floss/bin/floss.js --path=build.test","test:debug":"webpack --config=webpack.test.config.js && node node_modules/floss/bin/floss.js --path=build.test -d","build":"rimraf lib && rimraf dist && webpack --mode=production","type":"rimraf types && dts-bundle-generator src/index.ts --no-check --project=tsconfig.build.json -o=types/index.d.ts && node scripts/patch-types.js","doc":"rimraf \"docs/!(.git|.nojekyll)\" && node scripts/gen-docs.js","deploy":"cd docs && git add -A && git commit -m \"Update docs\" && git push","prepublishOnly":"yarn build && yarn test && yarn type"},"types":"types/index.d.ts","dependencies":{"lodash":"latest"},"peerDependencies":{"@pixi/core":"^5.2.1","@pixi/display":"^5.2.1","@pixi/loaders":"^5.2.1","@pixi/math":"^5.2.1","@pixi/sprite":"^5.2.1","@pixi/utils":"^5.2.1"},"devDependencies":{"@types/chai":"^4.2.11","@types/chai-as-promised":"^7.1.2","@types/lodash":"^4.14.149","@types/node":"latest","chai":"^4.2.0","chai-as-promised":"^7.1.1","chalk":"^4.0.0","dts-bundle-generator":"^5.5.0","electron":"^8.1.1","floss":"^3.0.0","fork-ts-checker-webpack-plugin":"^6.0.7","glob":"^7.1.6","handlebars":"^4.7.6","lodash":"latest","pixi.js":"^5.2.1","rimraf":"^3.0.2","sinon":"^9.0.1","sinon-chai":"^3.5.0","ts-loader":"^8.0.12","typedoc":"0.20.0-beta.27","typescript":"^4.1.2","webpack":"^4.42.0","webpack-bundle-analyzer":"^3.7.0","webpack-cli":"^3.3.11"},"readme":"# pixi-live2d-display\n\n![GitHub package.json version](https://img.shields.io/github/package-json/v/guansss/pixi-live2d-display?style=flat-square)\n![Cubism version](https://img.shields.io/badge/Cubism-2.1-ff69b4?style=flat-square)\n[![Codacy Badge](https://img.shields.io/codacy/grade/815a5e1399b74441a2203b7c7b4861c0?style=flat-square&logo=codacy)](https://www.codacy.com/manual/guansss/pixi-live2d-display?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=guansss/pixi-live2d-display&amp;utm_campaign=Badge_Grade)\n\nLive2D integration for [PixiJS](https://github.com/pixijs/pixi.js) v5.\n\nOnly compatible with Cubism 2.1. Support of Cubism 4 is on the way!\n\n[Documentation](https://guansss.github.io/pixi-live2d-display/)\n\n[Play with demo](https://codepen.io/guansss/pen/MWwRNyP?editors=1010)\n\n## Install\n\n```sh\nnpm install pixi-live2d-display\n```\n\nThis library relies on `Promise`, you may need a polyfill, e.g. [es6-promise](https://github.com/stefanpenner/es6-promise).\n\nYou'll also need to include the Cubism 2.1 runtime library, which is typically named `live2d.min.js`. The official download has been gone [since 9/4/2019](https://help.live2d.com/en/other/other_20/), but its spirit still exists [somewhere on the net](https://github.com/dylanNew/live2d/tree/master/webgl/Live2D/lib)...\n\n## Usage\n\n### Basic\n\n```javascript\nimport * as PIXI from 'pixi.js';\nwindow.PIXI = PIXI;\nimport { Live2DModel } from 'pixi-live2d-display';\n\nasync function main() {\n    const model = await Live2DModel.fromModelSettingsFile('my-model.model.json');\n\n    const app = new PIXI.Application({ autoStart: true });\n    app.stage.addChild(model);\n\n    // transformation\n    model.position.set(100, 100);\n    model.scale.set(2, 2);\n    model.anchor.set(0.5, 0.5);\n\n    // motion\n    model.on('hit', hitAreas => {\n        if(hitAreas.includes('body')) {\n            model.motion('tapBody');\n        }\n    });\n}\n```\n\n### Modules\n\nIt's possible to import only the necessary modules rather than a full build of PixiJS.\n\n```javascript\nimport { Application } from '@pixi/app';\nimport { Live2DModel } from 'pixi-live2d-display';\n\nasync function main() {\n    const model = await Live2DModel.fromModelSettingsFile('my-model.model.json');\n\n    const app = new Application();\n    app.stage.addChild(model);\n}\n```\n\n### Prebuilt Files\n\nWhen including [prebuilt files](https://github.com/guansss/pixi-live2d-display/releases) by script tag, all exported members are available in `PIXI.live2d` namespace. For example `import { Live2DModel } from 'pixi-live2d-display'` becomes `PIXI.live2d.Live2DModel`.\n\n```html\n<script src=\"pixi.min.js\"></script>\n<script src=\"pixi-live2d-display.browser.js\"></script>\n```\n\n```javascript\nconst app = new PIXI.Application({ autoStart: true });\n\nPIXI.live2d.Live2DModel.fromModelSettingsFile('my-model.model.json').then(model => {\n    app.stage.addChild(model);\n})\n```\n\n### Updating\n\nTo make a Live2D model \"live\", it should be updated with delta time, which is the time elapsed from last frame to this frame, in milliseconds.\n\nWhen a full build of PixiJS is imported, each model will be automatically updated using `window.PIXI.Ticker.shared`.\n\n```javascript\nimport * as PIXI from 'pixi.js';\nwindow.PIXI = PIXI;\n```\n\nOtherwise you need to register the `Ticker` to `Live2DModel`.\n\n```javascript\nimport { Application } from '@pixi/app';\nimport { Ticker, TickerPlugin } from '@pixi/ticker';\n\nApplication.registerPlugin(TickerPlugin);\nLive2DModel.registerTicker(Ticker);\n```\n\nOr you may want to do it yourself:\n\n```javascript\nimport { Ticker } from '@pixi/ticker';\n\nconst model = await Live2DModel.fromModelSettingsFile('my-model.model.json', { autoUpdate: false });\n\nnew Ticker().add(()=> model.update(Ticker.shared.elapsedMS));\n```\n\nOr without `Ticker`:\n\n```javascript\nconst model = await Live2DModel.fromModelSettingsFile('my-model.model.json', { autoUpdate: false });\n\nlet then = performance.now();\n\nfunction tick(now) {\n    model.update(now - then);\n    then = now;\n\n    requestAnimationFrame(tick)\n}\n\nrequestAnimationFrame(tick)\n```\n\n### Interaction\n\nInteraction will be automatically set up for each model if `Renderer` has an `InteractionManager` plugin, which happens when a full build of PixiJS is imported:\n\n```javascript\nimport * as PIXI from 'pixi.js';\nwindow.PIXI = PIXI;\n```\n\nOr when the plugin is manually registered using modules:\n\n```javascript\nimport { Renderer } from '@pixi/core';\nimport { InteractionManager } from '@pixi/interaction';\n\nRenderer.registerPlugin('interaction', InteractionManager);\n```\n\nIf you don't want the default behaviour, you can disable it by setting `autoInteract` to `false`, then play with corresponding interaction methods.\n\n```javascript\nconst model = await Live2DModel.fromModelSettingsFile('my-model.model.json', { autoInteract: false });\n\n// focusing\ncanvasElement.addEventListener('mousemove', event => model.focus(event.clientX, event.clientY));\n\n// tapping\ncanvasElement.addEventListener('mousedown', event => model.tap(event.clientX, event.clientY));\n```\n\nWhen any hit area (also called [Collision Detection](http://sites.cybernoids.jp/cubism_e/modeler/models/collision/placement)) is hit on tapping, a `hit` event will be emitted with an array of the names of hit hit areas.\n\n```javascript\nmodel.on('hit', hitAreas => {\n    if(hitAreas.includes('body')) {\n        console.log('hit body')\n    }\n});\n```\n\n### Motion\n\nMotions are managed by `MotionManager` of each model.\n\n```javascript\nimport { Priority } from 'pixi-live2d-display';\n\n// start a random motion in \"tap_body\" group, note that it's camelCased into \"tapBody\" when using in the code\nmodel.internal.motionManager.startRandomMotion('tapBody');\n\n// start an explicit motion as normal priority\nmodel.internal.motionManager.startMotionByPriority('tapBody', 0, Priority.Normal);\n\n// a shorthand of startRandomMotion()\nmodel.motion('tapBody');\n```\n\nWhen a motion starts, the sound will be played (if there is), and a `motion` event will be emitted.\n\n```javascript\nmodel.on('motion', (group, index, audio) => {\n    if(audio) {\n        audio.addEventListener('ended', () => console.log('finished'));    \n    }\n});\n``` \n\n### Expression\n\nExpressions are managed by `ExpressionManager` in `MotionManager`.\n\n```javascript\nmodel.internal.motionManager.expressionManager.setRandomExpression();\n```\n\n### Sound\n\nSounds are managed by static `SoundManager`.\n\n```javascript\nimport { SoundManager } from 'pixi-live2d-display';\n\nSoundManager.volume = 0.5;\n```\n\n### Global Config\n\n```javascript\nimport { config } from 'pixi-live2d-display';\n\n// log level\nconfig.logLevel = config.LOG_LEVEL_WARNING;\n\n// play sound for motions\nconfig.sound = true;\n\n// defer motion and corresponding sound until both are loaded \nconfig.motionSync = true;\n```\n\n---\n\nThe testing Live2D model, Shizuku, is redistributed under Live2D's [Free Material License](https://www.live2d.com/eula/live2d-free-material-license-agreement_en.html).\n","readmeFilename":"README.md","gitHead":"dd206c6c4f4eca20a792168e4bb1b81b81e965e5","bugs":{"url":"https://github.com/guansss/pixi-live2d-display/issues"},"homepage":"https://github.com/guansss/pixi-live2d-display#readme","_id":"pixi-live2d-display@0.3.0-beta","_nodeVersion":"15.4.0","_npmVersion":"7.0.15","dist":{"integrity":"sha512-iAE1IO125NZIevYpLNXa8JzuS+u0+L7Cib/CzIACJHpAGzWCbYWREDTNnsK1DOB6CYxpaMKAOs/Ll2GJDwMRFQ==","shasum":"121548ce6d70e23d4ffe7fcee461c4e35dc26412","tarball":"https://registry.npmjs.org/pixi-live2d-display/-/pixi-live2d-display-0.3.0-beta.tgz","fileCount":111,"unpackedSize":7476503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf446DCRA9TVsSAnZWagAAxHUP/2Wy4Qb7bieGqeaFFkep\nT+QE5BRfZ3NcOU3ZReUN4fk35hwxr0GgJCbywMF1dTmoBApKOpkOUgSJ/d68\noy/18HifJov3QM4QgXvd6xQQBjT3wXyrbIChjx4+ncngdVmTkZdiFDz66yko\nL4SxjRaxTqWMg/Q0HU1vqqyF5q3RlYLHT1ZxoysZha1FtyRnsWDd+5lAF1Bv\nIIbCVkJVPBMwyIfYUONAOnFPnEyMOCD22elogO/7thkeLoAB+7TbXPI8FVcW\nUx1FDYgSPWF++wtNsSDPT5ROGiTPMXY3Cr9hS+J/XFG5jhMxufyKA2W+CAma\nIIvRlrKrnacTorDU3kYnVomIvItF+ph6wAuVlWfz0u3nQj+S2zb8+K/CmE32\nFBfIt1GeFNbLHVgA2hJ4J1wl4RMOSNesKL0ULyVZg73JlMSBxVZnW4I0XrNi\nFKXu0OqDsz5uz2cEfZNY8Tltqw3/8VFwj05gU7vXk2X106/cM9swEUpdE2kC\n0mZ9yMRu25u0CyKkR+I/JxHUwTzl0xpdOW5z066t7UTADhRjv+jtT74msTWx\n/3ZuWsfAj2pQMl0ek3Y/bqrQnJwIEsAEV35Ul1XgYaPPM3dPwPoIbWv7oP96\nmqrXodsXQhAQsL9MF2WhbAYgJ5Fxo97IK06kipl59Zj6sadqGZ3OKeVjklc1\nhHC5\r\n=b3xp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFbLgeX3dDroFMtuedDv69ge3MOkCZKkqrMi6D0oMgfwIhAJLh91KJnVQpAxLqA/pw9DY1HzyAxPfAKVFmRUjkonuQ"}]},"_npmUser":{"name":"guansss","email":"821143943@qq.com"},"directories":{},"maintainers":[{"name":"guansss","email":"821143943@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pixi-live2d-display_0.3.0-beta_1608748674507_0.9981069169401664"},"_hasShrinkwrap":false},"0.3.0-beta.1":{"name":"pixi-live2d-display","version":"0.3.0-beta.1","description":"Live2D plugin for PixiJS","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/guansss/pixi-live2d-display.git"},"author":{"name":"guansss","email":"821143943@qq.com"},"license":"MIT","scripts":{"test":"webpack --config=webpack.test.config.js && node node_modules/floss/bin/floss.js --path=build.test","test:debug":"webpack --config=webpack.test.config.js && node node_modules/floss/bin/floss.js --path=build.test -d","build":"rimraf lib && rimraf dist && webpack --mode=production","type":"rimraf types && dts-bundle-generator src/index.ts --no-check --project=tsconfig.build.json -o=types/index.d.ts && node scripts/patch-types.js","doc":"rimraf \"docs/!(.git|.nojekyll)\" && node scripts/gen-docs.js","deploy":"cd docs && git add -A && git commit -m \"Update docs\" && git push","prepublishOnly":"yarn build && yarn test && yarn type"},"types":"types/index.d.ts","dependencies":{"lodash":"latest"},"peerDependencies":{"@pixi/core":"^5.2.1","@pixi/display":"^5.2.1","@pixi/loaders":"^5.2.1","@pixi/math":"^5.2.1","@pixi/sprite":"^5.2.1","@pixi/utils":"^5.2.1"},"devDependencies":{"@types/chai":"^4.2.11","@types/chai-as-promised":"^7.1.2","@types/lodash":"^4.14.149","@types/node":"latest","chai":"^4.2.0","chai-as-promised":"^7.1.1","chalk":"^4.0.0","dts-bundle-generator":"^5.5.0","electron":"^8.1.1","floss":"^3.0.0","fork-ts-checker-webpack-plugin":"^6.0.7","glob":"^7.1.6","handlebars":"^4.7.6","lodash":"latest","pixi.js":"^5.3.7","rimraf":"^3.0.2","sinon":"^9.0.1","sinon-chai":"^3.5.0","ts-loader":"^8.0.12","typedoc":"0.20.0-beta.27","typescript":"^4.1.2","webpack":"^4.42.0","webpack-bundle-analyzer":"^3.7.0","webpack-cli":"^3.3.11"},"readme":"# pixi-live2d-display\n\n![GitHub package.json version](https://img.shields.io/github/package-json/v/guansss/pixi-live2d-display?style=flat-square)\n![Cubism version](https://img.shields.io/badge/Cubism-all-ff69b4?style=flat-square)\n[![Codacy Badge](https://img.shields.io/codacy/grade/815a5e1399b74441a2203b7c7b4861c0?style=flat-square&logo=codacy)](https://www.codacy.com/manual/guansss/pixi-live2d-display?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=guansss/pixi-live2d-display&amp;utm_campaign=Badge_Grade)\n\nLive2D integration for [PixiJS](https://github.com/pixijs/pixi.js) v5.\n\nThis project aims to be a universal Live2D framework on the web platform. While the official Live2D framework is just\ncomplex and problematic, this project has rewritten it to unify and simplify the APIs, which allows you to control the\nLive2D models on a high level without the need to learn how the internal system works.\n\n#### Demo\n\n- [Basic demo](https://codepen.io/guansss/pen/oNzoNoz/left?editors=1010)\n- [Advanced demo](https://codepen.io/guansss/pen/KKgXBOP/left?editors=0010)\n\n#### Documentation\n\n- [Wiki](https://github.com/guansss/pixi-live2d-display/wiki)\n- [API Documentation](https://guansss.github.io/pixi-live2d-display/)\n\n## Cubism\n\nCubism is the name of Live2D SDK. There are so far three versions of it: Cubism 2.1, Cubism 3 and Cubism 4; where Cubism\n4 is backward-compatible with Cubism 3 models.\n\nThis plugin supports all variants of Live2D models by using Cubism 2.1 and Cubism 4.\n\n#### Requirement\n\nBefore using the plugin, you'll need to include the Cubism runtime library, aka Cubism Core.\n\nFor Cubism 4, it's `live2dcubismcore.min.js` that can be extracted from\nthe [Cubism 4 SDK](https://www.live2d.com/download/cubism-sdk/download-web/).\n\nFor Cubism 2.1, it's `live2d.min.js`. This SDK is no longer downloadable from the official\nsite [since 9/4/2019](https://help.live2d.com/en/other/other_20/), but can be\nfound [here](https://github.com/dylanNew/live2d/tree/master/webgl/Live2D/lib), and with\na [CDN link](http://cdn.jsdelivr.net/gh/dylanNew/live2d/webgl/Live2D/lib/live2d.min.js) that you'll probably need.\n\n#### Individual bundles\n\nThe plugin provides individual bundles for each Cubism version to reduce your app's size when you just want to use one\nof the versions.\n\nSpecifically, there are `cubism2.js` and `cubism4.js` for respective runtime, along with an `index.js` that includes\nboth of them.\n\nNote that if you want both the Cubism 2 and Cubism 4 support, use `index.js`, but **NOT** the combination\nof `cubism2.js` and `cubism4.js`.\n\nTo make it clear, here's how you would use these files:\n\n- Use `cubism2.js`+`live2d.min.js` to support Cubism 2.1 models\n- Use `cubism4.js`+`live2dcubismcore.min.js` to support Cubism 3 and Cubism 4 models\n- Use `index.js`+`live2d.min.js`+`live2dcubismcore.min.js` to support all kinds of models\n\n## Install\n\n#### Via NPM\n\n```sh\nnpm install pixi-live2d-display@beta\n```\n\n```js\nimport { Live2DModel } from 'pixi-live2d-display';\n\n// For Cubism 2 only\nimport { Live2DModel } from 'pixi-live2d-display/lib/cubism2';\n\n// For Cubism 4 only\nimport { Live2DModel } from 'pixi-live2d-display/lib/cubism4';\n```\n\n#### Via CDN\n\n```html\n\n<script src=\"https://cdn.jsdelivr.net/npm/pixi-live2d-display@0.3.0-beta/dist/index.min.js\"></script>\n\n<!-- For Cubism 2 only -->\n<script src=\"https://cdn.jsdelivr.net/npm/pixi-live2d-display@0.3.0-beta/dist/cubism2.min.js\"></script>\n\n<!-- For Cubism 4 only -->\n<script src=\"https://cdn.jsdelivr.net/npm/pixi-live2d-display@0.3.0-beta/dist/cubism4.min.js\"></script>\n```\n\nIn this way, all the exported members are available under `PIXI.live2d` namespace, such as `PIXI.live2d.Live2DModel`.\n\n## Usage\n\n### Basic\n\n```javascript\nimport * as PIXI from 'pixi.js';\n\n// with a global PIXI variable, this plugin can automatically take\n// the needed functionality from it, such as window.PIXI.Ticker\nwindow.PIXI = PIXI;\n\n// accordingly, here we should use require() to import the module,\n// instead of the import statement because it'll be hoisted\n// over the above assignment \nconst { Live2DModel } = require('pixi-live2d-display');\n\nasync function main() {\n    const app = new PIXI.Application({\n        view: document.getElementById('canvas'),\n        autoStart: true\n    });\n\n    const model = await Live2DModel.from('shizuku.model.json');\n\n    app.stage.addChild(model);\n\n    // transformation\n    mode.x = 100\n    mode.y = 100\n    model.scale.set(2, 2);\n    model.anchor.set(0.5, 0.5);\n\n    // interaction\n    model.on('hit', hitAreas => {\n        if (hitAreas.includes('body')) {\n            model.motion('tap_body');\n        }\n    });\n}\n```\n\n### Package importing\n\nPixi provides separate packages, which allows you to import only the necessary packages rather than the entire bundle.\nIn this case, you'll need to manually register the optional components if you want to make use of their features.\n\n```javascript\nimport { Application } from '@pixi/app';\nimport { Renderer } from '@pixi/core';\nimport { Ticker, TickerPlugin } from '@pixi/ticker';\nimport { InteractionManager } from '@pixi/interaction';\nimport { Live2DModel } from 'pixi-live2d-display';\n\n// register the Ticker to support automatic updating of Live2D models\nApplication.registerPlugin(TickerPlugin);\nLive2DModel.registerTicker(Ticker);\n\n// register the InteractionManager to support automatic interaction of Live2D models\nRenderer.registerPlugin('interaction', InteractionManager);\n\nasync function main() {\n    const app = new Application();\n\n    const model = await Live2DModel.from('shizuku.model.json');\n\n    app.stage.addChild(model);\n}\n```\n\nFor more information, please visit the [Wiki](https://github.com/guansss/pixi-live2d-display/wiki).\n\n---\n\nThe example Live2D models, Shizuku (Cubism 2) and Haru (Cubism 4), are redistributed under\nLive2D's [Free Material License](https://www.live2d.com/eula/live2d-free-material-license-agreement_en.html).\n","readmeFilename":"README.md","gitHead":"c25226d82e4d9bbf861d2200f3a70b60fcad1327","bugs":{"url":"https://github.com/guansss/pixi-live2d-display/issues"},"homepage":"https://github.com/guansss/pixi-live2d-display#readme","_id":"pixi-live2d-display@0.3.0-beta.1","_nodeVersion":"15.4.0","_npmVersion":"7.0.15","dist":{"integrity":"sha512-baxzo/cwK/Mfx62DPKNtAwuzgxwXpq8zTPgkXtEt3SE6K/1sCJbM9jMXawdlnLmf7TPR6CztA7peUbTqzTCMng==","shasum":"f57325a1467be9814f5a12c6bce99fa98bd28ea4","tarball":"https://registry.npmjs.org/pixi-live2d-display/-/pixi-live2d-display-0.3.0-beta.1.tgz","fileCount":113,"unpackedSize":7508687,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf7mEXCRA9TVsSAnZWagAAKLQQAJxCb1UW3wVdhIcm48WH\nDnm0NIJ2ZcQn8mDphQlzeTgqxdAB1Wm8qOkFXbLt0Ql6Qyk3gKE7oAcP+jYK\nT5MQRQsVQ5pBZ/0kjmG3WxindpEZihcjALgZb3FcZhdtsbx0DURGAbXlFDfJ\n0nigPvHIyTeapZA+7fPiBsGqYC5tvdwBmOH4Es2bzpFJ3ai+2rzLGdZD5q41\n8DcJQNczrut3mwkb8zhDY1YZJ6tnogEySBasHoJr9ScWH+SAgGAfXooMEhB5\nO0UqdYYazUGyPK7He5vjlBVacbUGMahd8V5BrJdIrudW9UVXuRmOHGCFeMCu\nReFW35Eq4+jXZKI6nthI4IQxIm+1WaU56LTPJZF2urg/YxBYIans6DYDaneP\nmV62DW+24tnvw3cxWV3SxoFBzVG8216hQOEaSq23ATKJ0UmyFyIanueXMcmH\njMbPNVZONAeO5OXxomqAbh3geZOwptWsWk8awG08hrccMPqUXOKPR/zxv2yS\n0vZ/pRSc8K4NtYoszDuHkXSjjgeGhsOL2OAFQWrg3bDMm6tU46+AAVTRzMva\njUFpEH0BlCTzaryYWnDKzvrq/o3p0QBQUW/LJDAriiTA5mgvD9MNwXIVYPS2\nKW+U0Q3nxTCYTp5koRCWdihrU1iSY2lAsEED2H4HbsMyU7MXhcxrq9PwCEkJ\nn3xW\r\n=bGtz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHB1t7v1v71DPc3Jl0fm1oiqXJ4UoD3h9ippP1uYiHj5AiEA3HOeY+b3stV2nUNyxRwlyo+hg/en6OFKH0NWmRb94XY="}]},"_npmUser":{"name":"guansss","email":"821143943@qq.com"},"directories":{},"maintainers":[{"name":"guansss","email":"821143943@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pixi-live2d-display_0.3.0-beta.1_1609457942623_0.3067138362446524"},"_hasShrinkwrap":false},"0.3.0-beta.2":{"name":"pixi-live2d-display","version":"0.3.0-beta.2","description":"Live2D plugin for PixiJS","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/guansss/pixi-live2d-display.git"},"author":{"name":"guansss","email":"821143943@qq.com"},"license":"MIT","scripts":{"test":"webpack --config=webpack.test.config.js && node node_modules/floss/bin/floss.js --path=build.test","test:debug":"webpack --config=webpack.test.config.js && node node_modules/floss/bin/floss.js --path=build.test -d","build":"rimraf lib && rimraf dist && webpack --mode=production","type":"rimraf types && dts-bundle-generator src/index.ts --no-check --project=tsconfig.build.json -o=types/index.d.ts && node scripts/patch-types.js","doc":"rimraf \"docs/!(.git|.nojekyll)\" && node scripts/gen-docs.js","deploy":"cd docs && git add -A && git commit -m \"Update docs\" && git push","prepublishOnly":"yarn build && yarn test && yarn type"},"types":"types/index.d.ts","dependencies":{"lodash":"latest"},"peerDependencies":{"@pixi/core":"^5.2.1","@pixi/display":"^5.2.1","@pixi/loaders":"^5.2.1","@pixi/math":"^5.2.1","@pixi/sprite":"^5.2.1","@pixi/utils":"^5.2.1"},"devDependencies":{"@types/chai":"^4.2.11","@types/chai-as-promised":"^7.1.2","@types/lodash":"^4.14.149","@types/node":"latest","chai":"^4.2.0","chai-as-promised":"^7.1.1","chalk":"^4.0.0","dts-bundle-generator":"^5.5.0","electron":"^8.1.1","floss":"^3.0.0","fork-ts-checker-webpack-plugin":"^6.0.7","glob":"^7.1.6","handlebars":"^4.7.6","lodash":"latest","pixi.js":"^5.3.7","rimraf":"^3.0.2","sinon":"^9.0.1","sinon-chai":"^3.5.0","ts-loader":"^8.0.12","typedoc":"0.20.0-beta.27","typescript":"^4.1.2","webpack":"^4.42.0","webpack-bundle-analyzer":"^3.7.0","webpack-cli":"^3.3.11"},"readme":"# pixi-live2d-display\n\n![GitHub package.json version](https://img.shields.io/github/package-json/v/guansss/pixi-live2d-display?style=flat-square)\n![Cubism version](https://img.shields.io/badge/Cubism-all-ff69b4?style=flat-square)\n[![Codacy Badge](https://img.shields.io/codacy/grade/815a5e1399b74441a2203b7c7b4861c0?style=flat-square&logo=codacy)](https://www.codacy.com/manual/guansss/pixi-live2d-display?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=guansss/pixi-live2d-display&amp;utm_campaign=Badge_Grade)\n\nLive2D integration for [PixiJS](https://github.com/pixijs/pixi.js) v5.\n\nThis project aims to be a universal Live2D framework on the web platform. While the official Live2D framework is just\ncomplex and problematic, this project has rewritten it to unify and simplify the APIs, which allows you to control the\nLive2D models on a high level without the need to learn how the internal system works.\n\n#### Demo\n\n- [Basic demo](https://codepen.io/guansss/pen/oNzoNoz/left?editors=1010)\n- [Advanced demo](https://codepen.io/guansss/pen/KKgXBOP/left?editors=0010)\n\n#### Documentation\n\n- [Wiki](https://github.com/guansss/pixi-live2d-display/wiki)\n- [API Documentation](https://guansss.github.io/pixi-live2d-display/)\n\n## Cubism\n\nCubism is the name of Live2D SDK. There are so far three versions of it: Cubism 2.1, Cubism 3 and Cubism 4; where Cubism\n4 is backward-compatible with Cubism 3 models.\n\nThis plugin supports all variants of Live2D models by using Cubism 2.1 and Cubism 4.\n\n#### Requirement\n\nBefore using the plugin, you'll need to include the Cubism runtime library, aka Cubism Core.\n\nFor Cubism 4, it's `live2dcubismcore.min.js` that can be extracted from\nthe [Cubism 4 SDK](https://www.live2d.com/download/cubism-sdk/download-web/), or be referred by\na [direct link](https://cubism.live2d.com/sdk-web/cubismcore/live2dcubismcore.min.js).\n\nFor Cubism 2.1, it's `live2d.min.js`. This SDK is no longer downloadable from the official\nsite [since 9/4/2019](https://help.live2d.com/en/other/other_20/), but can be\nfound [here](https://github.com/dylanNew/live2d/tree/master/webgl/Live2D/lib), and with\na [CDN link](http://cdn.jsdelivr.net/gh/dylanNew/live2d/webgl/Live2D/lib/live2d.min.js) that you'll probably need.\n\n#### Individual bundles\n\nThe plugin provides individual bundles for each Cubism version to reduce your app's size when you just want to use one\nof the versions.\n\nSpecifically, there are `cubism2.js` and `cubism4.js` for respective runtime, along with an `index.js` that includes\nboth of them.\n\nNote that if you want both the Cubism 2 and Cubism 4 support, use `index.js`, but **NOT** the combination\nof `cubism2.js` and `cubism4.js`.\n\nTo make it clear, here's how you would use these files:\n\n- Use `cubism2.js`+`live2d.min.js` to support Cubism 2.1 models\n- Use `cubism4.js`+`live2dcubismcore.min.js` to support Cubism 3 and Cubism 4 models\n- Use `index.js`+`live2d.min.js`+`live2dcubismcore.min.js` to support all kinds of models\n\n## Install\n\n#### Via NPM\n\n```sh\nnpm install pixi-live2d-display@beta\n```\n\n```js\nimport { Live2DModel } from 'pixi-live2d-display';\n\n// For Cubism 2 only\nimport { Live2DModel } from 'pixi-live2d-display/lib/cubism2';\n\n// For Cubism 4 only\nimport { Live2DModel } from 'pixi-live2d-display/lib/cubism4';\n```\n\n#### Via CDN\n\n```html\n\n<script src=\"https://cdn.jsdelivr.net/npm/pixi-live2d-display@beta/dist/index.min.js\"></script>\n\n<!-- For Cubism 2 only -->\n<script src=\"https://cdn.jsdelivr.net/npm/pixi-live2d-display@beta/dist/cubism2.min.js\"></script>\n\n<!-- For Cubism 4 only -->\n<script src=\"https://cdn.jsdelivr.net/npm/pixi-live2d-display@beta/dist/cubism4.min.js\"></script>\n```\n\nIn this way, all the exported members are available under `PIXI.live2d` namespace, such as `PIXI.live2d.Live2DModel`.\n\n## Usage\n\n### Basic\n\n```javascript\nimport * as PIXI from 'pixi.js';\n\n// with a global PIXI variable, this plugin can automatically take\n// the needed functionality from it, such as window.PIXI.Ticker\nwindow.PIXI = PIXI;\n\n// accordingly, here we should use require() to import the module,\n// instead of the import statement because it'll be hoisted\n// over the above assignment \nconst { Live2DModel } = require('pixi-live2d-display');\n\nasync function main() {\n    const app = new PIXI.Application({\n        view: document.getElementById('canvas'),\n        autoStart: true\n    });\n\n    const model = await Live2DModel.from('shizuku.model.json');\n\n    app.stage.addChild(model);\n\n    // transformation\n    mode.x = 100\n    mode.y = 100\n    model.scale.set(2, 2);\n    model.anchor.set(0.5, 0.5);\n\n    // interaction\n    model.on('hit', hitAreas => {\n        if (hitAreas.includes('body')) {\n            model.motion('tap_body');\n        }\n    });\n}\n```\n\n### Package importing\n\nPixi provides separate packages, which allows you to import only the necessary packages rather than the entire bundle.\nIn this case, you'll need to manually register the optional components if you want to make use of their features.\n\n```javascript\nimport { Application } from '@pixi/app';\nimport { Renderer } from '@pixi/core';\nimport { Ticker, TickerPlugin } from '@pixi/ticker';\nimport { InteractionManager } from '@pixi/interaction';\nimport { Live2DModel } from 'pixi-live2d-display';\n\n// register the Ticker to support automatic updating of Live2D models\nApplication.registerPlugin(TickerPlugin);\nLive2DModel.registerTicker(Ticker);\n\n// register the InteractionManager to support automatic interaction of Live2D models\nRenderer.registerPlugin('interaction', InteractionManager);\n\nasync function main() {\n    const app = new Application();\n\n    const model = await Live2DModel.from('shizuku.model.json');\n\n    app.stage.addChild(model);\n}\n```\n\nFor more information, please visit the [Wiki](https://github.com/guansss/pixi-live2d-display/wiki).\n\n---\n\nThe example Live2D models, Shizuku (Cubism 2) and Haru (Cubism 4), are redistributed under\nLive2D's [Free Material License](https://www.live2d.com/eula/live2d-free-material-license-agreement_en.html).\n","readmeFilename":"README.md","gitHead":"1584ac56939f35c461ac1b660f3a5344721020f0","bugs":{"url":"https://github.com/guansss/pixi-live2d-display/issues"},"homepage":"https://github.com/guansss/pixi-live2d-display#readme","_id":"pixi-live2d-display@0.3.0-beta.2","_nodeVersion":"15.4.0","_npmVersion":"7.0.15","dist":{"integrity":"sha512-UF+KUTt0m/qu0A7l5X75Q1rFFhe1PFpR/y4WqUXTFmvryc5Vkd8gekHWAIJPrC+Y28gpUB9nMDGHk7OuF4UDRA==","shasum":"1f64935f6eb712cd45727414d53a36cbc6376e29","tarball":"https://registry.npmjs.org/pixi-live2d-display/-/pixi-live2d-display-0.3.0-beta.2.tgz","fileCount":111,"unpackedSize":7476295,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf8KaxCRA9TVsSAnZWagAASYwP/jv336QMsjLY2CMzsn/1\n3xaUcFWpiv21RFP3H5EvDua2QvQa+oGfmFNUPTDqoSANqN5V6ECB60BfnE9H\nm0Nh0D8DqXUk6dUm5YABmftlDhXwpnSMaQLb8re4UA5w5Kui/DTjCrkn8SVz\nqBJU/mOzZ3yVHi9sCQx6nYX/A7WNiy7nOX+mwoJ2IyuHfcG3xtxyUiCW3sQd\nlFLryfgIkt7En0CvNowl/vm5NvMm1GVNNdQnr8sNGo1N7uGvDQM3403YnTT2\nJ/I1+AqlSjXzKG1v9gdna2XzAezZZJAJIobEQ/h6nasUOibxsiiinj8A0J2z\nG0cXCDhBUJlBqAU0w3K8Wbk5aL7hKIjQJLFuXi80ZkM8k77vzWWb9aJ5HlIa\nb4yRrZUgqE6/IuP+aucrVORQpw1hqMGRo83g2lIUsgwWug6GwOQMHm0iHTM7\n3FUwntLfbHT2Dp7Wq6Dg35vZKGKNY3897WkbMn84PcJHKD6ATbohBbnkx9H3\ns0ANOj88/gHB78/qsb0gxh/PwCOQOAXf9re2Qe4k8cvwPJQDPwIJLq4kfEZS\nk2VUp1vl135q5w51Tt7r3VopWA5xgZ8pidxnKQTiQBhL2I34EzH0I03J9GjV\ndnNI4SRgz3VRJN/xZYnVd1oplEznh6Evux7llziRsN04Gdc0ruB8RQWUvX9u\ncosA\r\n=A/yc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQ83BfPFlG4wrHfQ1oKJCU7q3GprBe8Ui//HkNdLHxRgIhAMx6KWU7TGSV/eFnuxorLWkjzX05eNNfsstgycU68Q3Y"}]},"_npmUser":{"name":"guansss","email":"821143943@qq.com"},"directories":{},"maintainers":[{"name":"guansss","email":"821143943@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pixi-live2d-display_0.3.0-beta.2_1609606832829_0.6538113000318699"},"_hasShrinkwrap":false},"0.3.0":{"name":"pixi-live2d-display","version":"0.3.0","description":"Live2D plugin for PixiJS","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/guansss/pixi-live2d-display.git"},"author":{"name":"guansss","email":"821143943@qq.com"},"license":"MIT","scripts":{"setup":"node scripts/setup.js","playground":"webpack serve --config=test/playground/webpack.playground.config.js","test":"webpack --config=webpack.test.config.js && npx floss --path=build.test --reporter=tap","test:ci":"yarn build && yarn test","test:debug":"webpack --config=webpack.test.config.js && node node_modules/floss/bin/floss.js --path=build.test -d","build":"rimraf lib && rimraf dist && webpack --mode=production","type":"rimraf types && dts-bundle-generator src/index.ts --no-check --project=tsconfig.build.json -o=types/index.d.ts && node scripts/patch-types.js","doc":"rimraf \"docs/!(.git|.nojekyll)\" && node scripts/gen-docs.js","deploy":"cd docs && git add -A && git commit -m \"Update docs\" && git push","prepublishOnly":"yarn build && yarn test && yarn type"},"types":"types/index.d.ts","dependencies":{"lodash":"latest"},"peerDependencies":{"@pixi/core":"^5.2.1","@pixi/display":"^5.2.1","@pixi/loaders":"^5.2.1","@pixi/math":"^5.2.1","@pixi/sprite":"^5.2.1","@pixi/utils":"^5.2.1"},"devDependencies":{"@types/chai":"^4.2.11","@types/chai-as-promised":"^7.1.2","@types/lodash":"^4.14.149","@types/node":"latest","@webpack-cli/serve":"^1.2.1","adm-zip":"^0.5.1","chai":"^4.2.0","chai-as-promised":"^7.1.1","chalk":"^4.0.0","dts-bundle-generator":"^5.5.0","electron":"^8.1.1","floss":"^3.0.0","fork-ts-checker-webpack-plugin":"^6.0.7","glob":"^7.1.6","handlebars":"^4.7.6","jszip":"^3.5.0","lodash":"latest","node-fetch":"^2.6.1","pixi.js":"^5.3.7","rimraf":"^3.0.2","sinon":"^9.0.1","sinon-chai":"^3.5.0","ts-loader":"^8.0.12","typedoc":"0.20.16","typescript":"^4.1.2","webpack":"^4.42.0","webpack-bundle-analyzer":"^3.7.0","webpack-cli":"^4.3.1","webpack-dev-server":"^3.11.1"},"gitHead":"a3744db4514b9968245bf7fb011a887d3eb18a09","bugs":{"url":"https://github.com/guansss/pixi-live2d-display/issues"},"homepage":"https://github.com/guansss/pixi-live2d-display#readme","_id":"pixi-live2d-display@0.3.0","_nodeVersion":"15.4.0","_npmVersion":"7.0.15","dist":{"integrity":"sha512-47UJyRTyxHtkbOU4iWJzgmVDNyNtU079ks2tXaSZyXGup/2YYBZ1VyhWlxaCfAFDSEb9+VpUQvdGz1JWWUWBsQ==","shasum":"48af242bc05825a3c52cdd28953ca8db16a41770","tarball":"https://registry.npmjs.org/pixi-live2d-display/-/pixi-live2d-display-0.3.0.tgz","fileCount":114,"unpackedSize":8272042,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCNjOCRA9TVsSAnZWagAAH+cQAIXv0fg0KO+UIIZT3/CE\nGVAWCIa5DoLDk1TtqoWAsiUJZi6sWRCS6YZlYaUzQx2RkelfxTMeETsinB7t\nwUXwQv0FXgULjWL+S/59jZCCIokW97Af04zR7OOnpjITQhqOYuOcy/btMsRe\nKDwzMvshbIVb3Ldk4s893t6wJOOPSGcdRU+1ctGXIbpQiqhm4157Rg8EtBin\nVaqtuLSDAkzjLAIIlyvVH9ontL7RXymzTfFe/w1o4+IiLlduvVCtgTL18nzE\nC6hdNSllZUjd4BEA7MET0S/kBmnczFNA4QuOImAzJtheBftz2hYKjqg66uGD\nSgTrYSS1OGtVcxFpAISEP7uy8E+FBzLBoyaAbn/ZIww9/FbGKhgrF35skfvR\nE06p3WLHo0RpJyBGnrddcz4rveU5JpHeYtGCu7v0i/kf9+OYNmmCbBSTQ9WZ\n+p5mTLB2AyCGBJ36yjNJlK47hNuGHwwQYLb6vNg76GiDVvUWZeG4cIoZlxeI\nfTG8dwQWOHSNJdPkLODrmeMZEnZOnUyk0aoRwu9i29NzYxuRw8aGkEZRS7KZ\nXRJGEzE571m3eKeV2Eb4Vc2r8n9rFislKEmMN/78C4vH/bDwSbpEs8c4E55q\nxXrTheu21heLi9NQZaSRBu3uzyNB8vl0uXRxJniP/faK2+JvFe2I0X00bGcB\nO49V\r\n=l4N6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtjawcqcwyrORvuIZKh2fpI9Eiz3OI5FG8HmAdoqDZhAIhAOBTMJUjF0xoqeg82HykdgqAyG1O6DEPQ61rxPnNW5J+"}]},"_npmUser":{"name":"guansss","email":"821143943@qq.com"},"directories":{},"maintainers":[{"name":"guansss","email":"821143943@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pixi-live2d-display_0.3.0_1611192526299_0.94536494239271"},"_hasShrinkwrap":false},"0.3.1":{"name":"pixi-live2d-display","version":"0.3.1","description":"Live2D plugin for PixiJS","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/guansss/pixi-live2d-display.git"},"author":{"name":"guansss","email":"821143943@qq.com"},"license":"MIT","scripts":{"setup":"node scripts/setup.js","playground":"webpack serve --config=test/playground/webpack.playground.config.js","test":"webpack --config=webpack.test.config.js && npx floss --path=build.test --reporter=tap","test:ci":"yarn build && yarn test","test:debug":"webpack --config=webpack.test.config.js && node node_modules/floss/bin/floss.js --path=build.test -d","build":"rimraf lib && rimraf dist && webpack --mode=production","type":"rimraf types && dts-bundle-generator src/index.ts --no-check --project=tsconfig.build.json -o=types/index.d.ts && node scripts/patch-types.js","doc":"rimraf \"docs/!(.git|.nojekyll)\" && node scripts/gen-docs.js","deploy":"cd docs && git add -A && git commit -m \"Update docs\" && git push","prepublishOnly":"yarn build && yarn test && yarn type"},"types":"types/index.d.ts","dependencies":{"lodash":"latest"},"peerDependencies":{"@pixi/core":"^5.2.1","@pixi/display":"^5.2.1","@pixi/loaders":"^5.2.1","@pixi/math":"^5.2.1","@pixi/sprite":"^5.2.1","@pixi/utils":"^5.2.1"},"devDependencies":{"@types/chai":"^4.2.11","@types/chai-as-promised":"^7.1.2","@types/lodash":"^4.14.149","@types/node":"latest","@webpack-cli/serve":"^1.2.1","adm-zip":"^0.5.1","chai":"^4.2.0","chai-as-promised":"^7.1.1","chalk":"^4.0.0","dts-bundle-generator":"^5.5.0","electron":"^8.1.1","floss":"^3.0.0","fork-ts-checker-webpack-plugin":"^6.0.7","glob":"^7.1.6","handlebars":"^4.7.6","jszip":"^3.5.0","lodash":"latest","node-fetch":"^2.6.1","pixi.js":"^5.3.7","rimraf":"^3.0.2","sinon":"^9.0.1","sinon-chai":"^3.5.0","ts-loader":"^8.0.12","typedoc":"0.20.16","typescript":"^4.1.2","webpack":"^4.42.0","webpack-bundle-analyzer":"^3.7.0","webpack-cli":"^4.3.1","webpack-dev-server":"^3.11.1"},"gitHead":"ddab6b35b87eba039bf20fd3aeba061a5da6a424","bugs":{"url":"https://github.com/guansss/pixi-live2d-display/issues"},"homepage":"https://github.com/guansss/pixi-live2d-display#readme","_id":"pixi-live2d-display@0.3.1","_nodeVersion":"15.4.0","_npmVersion":"7.0.15","dist":{"integrity":"sha512-f6jO1AgUhT9WezXp1RtI/SnHivYW4nq2yoIOyCgLgAZCZXF+653ZZXd9TpECZf12QJUKfa/zj36RYnnQ5vhldA==","shasum":"6940b44af95c5a01af78df9aae26bedb282ac4ac","tarball":"https://registry.npmjs.org/pixi-live2d-display/-/pixi-live2d-display-0.3.1.tgz","fileCount":115,"unpackedSize":8287009,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgECTSCRA9TVsSAnZWagAACbgP/RrT6Z1ogwrPtO/7rPnr\nAc7P2Sc3a0bsqtEkLIdZWqf0ycKUU20hPnbmiBrJAMYjruA5hBO3iklvshB3\n9QVmRGrcng9IaJxqdjBdCFVTjqJS16lIKt7EV72rtiILbNsZEXiR1T11XwmK\nrGuNbEKJw33JSAj689rJ+/Q0cJSFFz1BfscJvyARl2fkFtFFuRI1kYIvGu+s\nEXNMjSqgWCp7yU7QzuWJOgfZbpBNCAX8O3rmz2WLmyPZjxvGLdFX4Ar5k6bh\nEkP/uiG7JgB6ouZQZBB9FpXxLHG7WkJkDwSljhiH/dlMn12b0HRtCmgupltH\nHy1EbCw8ne9/BEdMDJoMBUjEB2HE58HLtT83GWiR2jvM2ldUOfgLimga3Mja\nD2C2aW0SUw72T++cKCXyk1T1AUS+vNjWkOnxomjWoA1vO22vQhbHHXA6Ke1J\n/izByaYvqomY2KMqZsgc5hQNJucqkhN0PE76jhnYSGMjmm6sjA3sAtOMoh41\nX0BEjWDYj17uCTa0C28feFkkZPUT06SGWL1ndxF1aCqR2SbZx+ALkjfe86z8\nKC47fnQj4sCHigiX5pXtlu6z5hbrsOdMCaN1zXWbZLVcUzYUp2umKePf6uNk\nMgGgDT0qQxhfsWb/xDTcdoSd44Gh1oC1pJ7zskVPzbNHGG5IN9Fx89UzNJaz\nImiX\r\n=YrNl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMUECMl4WX4Vk27p885T2QLt+jq+Hd14Kotmvfu/Ft8gIhAM+MAL0N4accGcdZ7WuwB9OIPPZ6w5Se3/CRSawKwAkN"}]},"_npmUser":{"name":"guansss","email":"821143943@qq.com"},"directories":{},"maintainers":[{"name":"guansss","email":"821143943@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pixi-live2d-display_0.3.1_1611670736504_0.719732883835063"},"_hasShrinkwrap":false},"0.4.0-beta":{"name":"pixi-live2d-display","version":"0.4.0-beta","description":"Live2D plugin for PixiJS","main":"lib/index.js","repository":{"type":"git","url":"https://github.com/guansss/pixi-live2d-display.git"},"author":{"name":"guansss","email":"821143943@qq.com"},"license":"MIT","scripts":{"setup":"node scripts/setup.js","playground":"webpack serve --config=playground/webpack.playground.config.js","test":"webpack --config=webpack.test.config.js && npx floss --path=build.test --reporter=tap","test:ci":"yarn build && yarn test && yarn type","test:debug":"webpack --config=webpack.test.config.js && npx floss --path=build.test -d","build":"rimraf lib && rimraf dist && webpack --mode=production","pretype":"node scripts/patch-dts-generator.js","type":"rimraf types && dts-bundle-generator src/index.ts --no-check --project=tsconfig.build.json -o=types/index.d.ts","posttype":"node scripts/patch-types.js","doc":"rimraf \"docs/!(.git|.nojekyll)\" && node scripts/gen-docs.js","deploy":"cd docs && git add -A && git commit -m \"Update docs\" && git push","prepublishOnly":"yarn build && yarn test && yarn type"},"types":"types/index.d.ts","dependencies":{"lodash":"4.17.21"},"peerDependencies":{"@pixi/core":"^6","@pixi/display":"^6","@pixi/loaders":"^6","@pixi/math":"^6","@pixi/sprite":"^6","@pixi/utils":"^6"},"devDependencies":{"@types/chai":"^4.3.1","@types/chai-as-promised":"^7.1.5","@types/lodash":"^4.14.182","@types/node":"17.0.41","@types/offscreencanvas":"^2019.7.0","@webpack-cli/serve":"^1.6.1","adm-zip":"^0.5.9","chai":"^4.3.6","chai-as-promised":"^7.1.1","chalk":"^4","dts-bundle-generator":"^6.11.0","electron":"^13","floss":"^5.0.1","fork-ts-checker-webpack-plugin":"^7.2.11","glob":"^8.0.3","handlebars":"^4.7.7","jszip":"^3.10.0","node-fetch":"^2","pixi.js":"^6.4.2","rimraf":"^3.0.2","sinon":"^14.0.0","sinon-chai":"^3.7.0","ts-loader":"^9.3.0","typedoc":"0.22.17","typescript":"^4.7.3","webpack":"^5.73.0","webpack-bundle-analyzer":"^4.5.0","webpack-cli":"^4.9.2","webpack-dev-server":"^4.9.2"},"licenseText":"MIT License\n\nCopyright (c) 2020 Guan\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"pixi-live2d-display@0.4.0-beta","dist":{"shasum":"9d0c13d7decd36da45f751ac81886b91a81bad30","integrity":"sha512-2GTYpuZOVENtf5YAqYdkQS4m70a4naacoMHu7DQCHYOHoBmDVO2FRhOtyI/kqw7U/t29xnzTbTBYMVEkLgpKkg==","tarball":"https://registry.npmjs.org/pixi-live2d-display/-/pixi-live2d-display-0.4.0-beta.tgz","fileCount":143,"unpackedSize":8270486,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICB8lBAv2+TqPPma3Sh1esotQU+JUea1ZUoN0XlVksb2AiAkE7OJbFEhSzA9XZcvYbX2wbMognXe3ZZ/8wV9nOAh9Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiuIwiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp2TxAAnWHPTF8165LvW1nobBVlv7QyyJDg05PbLYmCL1badjUHOhOA\r\n28H4Cd7Mft1Tb2j+13AACiJg931QobrZomzxp6eexWmeEjT/xWhdxY8Jy8sY\r\npl5IELSfTQgXMZc8DAW0UUhLPnqrMm7cqhcaM9aXMFUzHGXjEjP98MPnWxI5\r\nr8hRoEYdn+vIo22XQM/r3UXUdR3/iGMpVsNYhRQUqTrzf9UOn2IGTmORadof\r\nGrHbxOAP/6aAPRQLVRr7J3pCdJltLNLmYcDgeMGZWJAITdfup91xLzkRwyBm\r\n/dDlO79gJzSlX9/BRZyZcqZ8Piqm+ZDG/Aq1ZwsPV8PxSdzJ+BeWh1OdrX5Y\r\nWANzuzwmF8l9yOFnXpOuypCidPFfBVtUViu8Asrh+YFPibn/Cv8T26zSXoFY\r\n/31KJafUXoBG3DMQZlbut4qiC7Pc7aPBiaotyxmonBkw6DmTE1JsH97k0zoC\r\nbixhVELT3sPVEbeGj2eNfKsCs16Mg/yKo+U/RCSfQZWhdoiroLs1nja77f6O\r\nJ5X8i6AU3NyjtAKSU42p4H75hlEfNt+030ClOPx3QulAybos8HN+hVh542g2\r\nCdEFW2TAmcmGjaEIbkTrWOIrXG2crrlR9Fe+jkm2aVHJo1cL+eYx6EQnLix9\r\nhI4EB0tOE8Nt8sqRXhJaIlPxI+nqgC9XptM=\r\n=RyFu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"guansss","email":"821143943@qq.com"},"directories":{},"maintainers":[{"name":"guansss","email":"821143943@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pixi-live2d-display_0.4.0-beta_1656261666759_0.279018982445443"},"_hasShrinkwrap":false},"0.4.0-beta.2":{"name":"pixi-live2d-display","version":"0.4.0-beta.2","description":"Live2D plugin for PixiJS","main":"dist/index.js","exports":{".":{"types":"./types/index.d.ts","import":"./dist/index.es.js","require":"./dist/index.js"},"./cubism2":{"types":"./types/index.d.ts","import":"./dist/cubism2.es.js","require":"./dist/cubism2.js"},"./cubism4":{"types":"./types/index.d.ts","import":"./dist/cubism4.es.js","require":"./dist/cubism4.js"},"./extra":{"types":"./types/extra.d.ts","import":"./dist/extra.es.js","require":"./dist/extra.js"}},"repository":{"type":"git","url":"git+https://github.com/guansss/pixi-live2d-display.git"},"author":{"name":"guansss","email":"821143943@qq.com"},"license":"MIT","scripts":{"setup":"node scripts/setup.js","playground":"vite","test":"node scripts/build-tests.js && npx floss --path=test.build --reporter=tap","test:ci":"yarn build && yarn test && yarn type","test:debug":"node scripts/build-tests.js && npx floss --path=test.build -d","build":"rimraf dist && node scripts/build.js","pretype":"node scripts/patch-dts-generator.js","type":"rimraf types && dts-bundle-generator src/index.ts --no-check --project=tsconfig.build.json -o=types/index.d.ts && dts-bundle-generator src/extra.ts --no-check --project=tsconfig.build.json -o=types/extra.d.ts ","posttype":"node scripts/patch-types.js","doc":"rimraf \"docs/!(.git|.nojekyll)\" && node scripts/gen-docs.js","deploy":"cd docs && git add -A && git commit -m \"Update docs\" && git push","prepublishOnly":"yarn build && yarn test && yarn type"},"types":"types/index.d.ts","peerDependencies":{"@pixi/core":"^6","@pixi/display":"^6","@pixi/loaders":"^6","@pixi/math":"^6","@pixi/sprite":"^6","@pixi/utils":"^6"},"devDependencies":{"@types/chai":"^4.3.1","@types/chai-as-promised":"^7.1.5","@types/lodash-es":"^4.17.6","@types/node":"17.0.41","@types/offscreencanvas":"^2019.7.0","adm-zip":"^0.5.9","chai":"^4.3.6","chai-as-promised":"^7.1.1","chalk":"^4","dts-bundle-generator":"^6.11.0","electron":"^13","floss":"^5.0.1","glob":"^8.0.3","handlebars":"^4.7.7","jszip":"^3.10.0","lodash-es":"^4.17.21","node-fetch":"^2","pixi.js":"^6.4.2","rimraf":"^3.0.2","sinon":"^14.0.0","sinon-chai":"^3.7.0","typedoc":"0.22.17","typescript":"^4.7.3","vite":"^2.9.13"},"readme":"# pixi-live2d-display\r\n\r\n![GitHub package.json version](https://img.shields.io/github/package-json/v/guansss/pixi-live2d-display?style=flat-square)\r\n![Cubism version](https://img.shields.io/badge/Cubism-2/3/4-ff69b4?style=flat-square)\r\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/guansss/pixi-live2d-display/Test%20CI?style=flat-square)\r\n\r\n[:person_fencing: 中文版readme](README.zh.md)\r\n\r\nLive2D integration for [PixiJS](https://github.com/pixijs/pixi.js) v5.\r\n\r\nThis project aims to be a universal Live2D framework on the web platform. While the official Live2D framework is just\r\ncomplex and problematic, this project has rewritten it to unify and simplify the APIs, which allows you to control the\r\nLive2D models on a high level without the need to learn how the internal system works.\r\n\r\nMore details can be found in the [Documentation](https://guansss.github.io/pixi-live2d-display).\r\n\r\n#### Features\r\n\r\n- Supports all versions of Live2D models\r\n- Supports PIXI.RenderTexture and PIXI.Filter\r\n- Pixi-style transform APIs: position, scale, rotation, skew, anchor\r\n- Automatic interactions: focusing, hit-testing\r\n- Enhanced motion reserving logic compared to the official framework\r\n- Loading from uploaded files / zip files (experimental)\r\n- Fully typed - we all love types!\r\n\r\n#### Requirement\r\n\r\n- PixiJS: > 5.2.0 (lower versions were not tested)\r\n- Browser: WebGL, ES6\r\n\r\n#### Demo\r\n\r\n- [Basic demo](https://codepen.io/guansss/pen/oNzoNoz/left?editors=1010)\r\n- [Interaction demo](https://codepen.io/guansss/pen/KKgXBOP/left?editors=0010)\r\n- [Render texture & filter demo](https://codepen.io/guansss/pen/qBaMNQV/left?editors=1010)\r\n- [Live2D Viewer Online](https://guansss.github.io/live2d-viewer-web/)\r\n\r\n## Cubism\r\n\r\nCubism is the name of Live2D SDK. There are so far three versions of it: Cubism 2.1, Cubism 3 and Cubism 4; where Cubism\r\n4 is backward-compatible with Cubism 3 models.\r\n\r\nThis plugin supports all variants of Live2D models by using Cubism 2.1 and Cubism 4.\r\n\r\n#### Cubism Core\r\n\r\nBefore using the plugin, you'll need to include the Cubism runtime library, aka Cubism Core.\r\n\r\nFor Cubism 4, you need `live2dcubismcore.min.js` that can be extracted from\r\nthe [Cubism 4 SDK](https://www.live2d.com/download/cubism-sdk/download-web/), or be referred by\r\na [direct link](https://cubism.live2d.com/sdk-web/cubismcore/live2dcubismcore.min.js) (*however the direct link is quite\r\nunreliable, don't use it in production!*).\r\n\r\nFor Cubism 2.1, you need `live2d.min.js`. It's no longer downloadable from the official\r\nsite [since 2019/9/4](https://help.live2d.com/en/other/other_20/), but can be\r\nfound [here](https://github.com/dylanNew/live2d/tree/master/webgl/Live2D/lib), and with\r\na [CDN link](https://cdn.jsdelivr.net/gh/dylanNew/live2d/webgl/Live2D/lib/live2d.min.js) that you'll probably need.\r\n\r\n#### Individual Bundles\r\n\r\nThe plugin provides individual bundles for each Cubism version to reduce your app's size when you just want to use one\r\nof the versions.\r\n\r\nSpecifically, there are `cubism2.js` and `cubism4.js` for respective runtime, along with an `index.js` that includes\r\nboth of them.\r\n\r\nNote that if you want both the Cubism 2.1 and Cubism 4 support, use `index.js`, but *not* the combination\r\nof `cubism2.js` and `cubism4.js`.\r\n\r\nTo make it clear, here's how you would use these files:\r\n\r\n- Use `cubism2.js`+`live2d.min.js` to support Cubism 2.1 models\r\n- Use `cubism4.js`+`live2dcubismcore.min.js` to support Cubism 3 and Cubism 4 models\r\n- Use `index.js`+`live2d.min.js`+`live2dcubismcore.min.js` to support all versions of models\r\n\r\n## Installation\r\n\r\n#### Via npm\r\n\r\n```sh\r\nnpm install pixi-live2d-display\r\n```\r\n\r\n```js\r\nimport { Live2DModel } from 'pixi-live2d-display';\r\n\r\n// if only Cubism 2.1\r\nimport { Live2DModel } from 'pixi-live2d-display/lib/cubism2';\r\n\r\n// if only Cubism 4\r\nimport { Live2DModel } from 'pixi-live2d-display/lib/cubism4';\r\n```\r\n\r\n#### Via CDN\r\n\r\n```html\r\n<script src=\"https://cdn.jsdelivr.net/npm/pixi-live2d-display/dist/index.min.js\"></script>\r\n\r\n<!-- if only Cubism 2.1 -->\r\n<script src=\"https://cdn.jsdelivr.net/npm/pixi-live2d-display/dist/cubism2.min.js\"></script>\r\n\r\n<!-- if only Cubism 4 -->\r\n<script src=\"https://cdn.jsdelivr.net/npm/pixi-live2d-display/dist/cubism4.min.js\"></script>\r\n```\r\n\r\nIn this way, all the exported members are available under `PIXI.live2d` namespace, such as `PIXI.live2d.Live2DModel`.\r\n\r\n## Usage\r\n\r\n### Basic\r\n\r\n```javascript\r\nimport * as PIXI from 'pixi.js';\r\n\r\n// with a global PIXI variable, this plugin can automatically take\r\n// the needed functionality from it, such as window.PIXI.Ticker\r\nwindow.PIXI = PIXI;\r\n\r\n// accordingly, here we should use require() to import the module,\r\n// instead of the import statement because the latter will be hoisted\r\n// over the above assignment when compiling the script\r\nconst { Live2DModel } = require('pixi-live2d-display');\r\n\r\nasync function main() {\r\n    const app = new PIXI.Application({\r\n        view: document.getElementById('canvas')\r\n    });\r\n\r\n    const model = await Live2DModel.from('shizuku.model.json');\r\n\r\n    app.stage.addChild(model);\r\n\r\n    // transforms\r\n    model.x = 100;\r\n    model.y = 100;\r\n    model.rotation = Math.PI;\r\n    model.skew.x = Math.PI;\r\n    model.scale.set(2, 2);\r\n    model.anchor.set(0.5, 0.5);\r\n\r\n    // interaction\r\n    model.on('hit', hitAreas => {\r\n        if (hitAreas.includes('body')) {\r\n            model.motion('tap_body');\r\n        }\r\n    });\r\n}\r\n```\r\n\r\n### Package importing\r\n\r\nPixi provides separate packages, which allows you to import only the necessary packages rather than the entire bundle.\r\nIn this case, you'll need to manually register the optional components if you want to make use of their features.\r\n\r\n```javascript\r\nimport { Application } from '@pixi/app';\r\nimport { Renderer } from '@pixi/core';\r\nimport { Ticker, TickerPlugin } from '@pixi/ticker';\r\nimport { InteractionManager } from '@pixi/interaction';\r\nimport { Live2DModel } from 'pixi-live2d-display';\r\n\r\n// register the Ticker to support automatic updating of Live2D models\r\nApplication.registerPlugin(TickerPlugin);\r\nLive2DModel.registerTicker(Ticker);\r\n\r\n// register the InteractionManager to support automatic interaction of Live2D models\r\nRenderer.registerPlugin('interaction', InteractionManager);\r\n\r\nasync function main() {\r\n    const app = new Application({\r\n        view: document.getElementById('canvas')\r\n    });\r\n\r\n    const model = await Live2DModel.from('shizuku.model.json');\r\n\r\n    app.stage.addChild(model);\r\n}\r\n```\r\n\r\n---\r\n\r\nThe example Live2D models, Shizuku (Cubism 2.1) and Haru (Cubism 4), are redistributed under\r\nLive2D's [Free Material License](https://www.live2d.com/eula/live2d-free-material-license-agreement_en.html).\r\n","readmeFilename":"README.md","gitHead":"4f323c7b18ebe774a6402868ebe7af2996c0142b","bugs":{"url":"https://github.com/guansss/pixi-live2d-display/issues"},"homepage":"https://github.com/guansss/pixi-live2d-display#readme","_id":"pixi-live2d-display@0.4.0-beta.2","_nodeVersion":"18.0.0","_npmVersion":"8.6.0","dist":{"integrity":"sha512-ucdsB5GOIEyX4H6tG5uPs3Hxusg04EygzY18Zf2GRt2X2dF4er1Dq7xFfQxZOpPw/OvSFkU0pw8a06gCdXc+jw==","shasum":"112055454e9cccc5f6bd819acf840d1a7b4c79db","tarball":"https://registry.npmjs.org/pixi-live2d-display/-/pixi-live2d-display-0.4.0-beta.2.tgz","fileCount":111,"unpackedSize":1944412,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHnTXYEtEhnbFQWpjNO3DY8zLWnMw8oGDHqZNBYlmcqbAiEA2maGkNEGVDVcdzN2W3dGx8iPDG1xhsKa7+NL7zw+GDU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi3QptACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoyzA/8CONvmr2Y4xDzBvUzL1RAkZ9pjMa0u5Jlgi7m3TuoNkR1KnaH\r\n/F6QA+CVjavJzm9T113rH19kyubDEpelR7q7+cYRqt4o6/COCFTEg+K04nhY\r\ngkhOGwse/HCKeQGO1VQDSlENiEcwFSdNQJFEekR7y+ok/L26s/kpNMoqKNxA\r\npwcgwKPAn/rvKLh8kExqWnbyqKmzgSWN5KSS2egMHZMZxghoGDRudD9Vd49e\r\nbkEl2t0SiOrK6Mn1RrEbYW1//dJX8fX8oPm2VaUQxTCq9qsR2GmoFQq2lLjb\r\nHIGfTMz/yzEjiovC06jJMcYSzBQ7hNTU/itaemijIedUM3Nr4c2CYeIeh8DG\r\n+hiXL+r+9lV+C2n85LZjx0eJyAbpf28hmcMBIn4L0V/3Jbt7vzwbkDhRuCah\r\nfImkEjFPzEOyu+mBo6Dke1sXm3pTlLcC0bGsF5qTnZ0U9gX8zigD3vOcY4Xa\r\nDnKD4pN02ZwQbDH9V3qR9aZIomc78oCMjMAddnqg6ZA5vs2kost7y9cyf+ye\r\nxP4n6Kb1AMR6mwUNSjtKIFtyMEWcs+mkGbih08Izc4sEf+USDekvmXEpbIYl\r\nYu2SELztHH6BTTEUBJBquuWBNL666Nd1lFXnIpZH4DSrR2p0GZ2WEWtH0oV5\r\n5qBPjLInNyG9BVpvHqVWMSzjM/Kq7y8yqOY=\r\n=SEn1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"guansss","email":"821143943@qq.com"},"directories":{},"maintainers":[{"name":"guansss","email":"821143943@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pixi-live2d-display_0.4.0-beta.2_1658653293321_0.7863517185131064"},"_hasShrinkwrap":false},"0.4.0":{"name":"pixi-live2d-display","version":"0.4.0","description":"Live2D plugin for PixiJS","main":"dist/index.js","exports":{".":{"types":"./types/index.d.ts","import":"./dist/index.es.js","require":"./dist/index.js"},"./cubism2":{"types":"./types/index.d.ts","import":"./dist/cubism2.es.js","require":"./dist/cubism2.js"},"./cubism4":{"types":"./types/index.d.ts","import":"./dist/cubism4.es.js","require":"./dist/cubism4.js"},"./extra":{"types":"./types/extra.d.ts","import":"./dist/extra.es.js","require":"./dist/extra.js"}},"repository":{"type":"git","url":"https://github.com/guansss/pixi-live2d-display.git"},"author":{"name":"guansss","email":"821143943@qq.com"},"license":"MIT","scripts":{"setup":"node scripts/setup.js","playground":"vite","test":"node scripts/build-tests.js && npx floss --path=test.build --reporter=tap","test:ci":"yarn type && yarn build && yarn test","test:debug":"node scripts/build-tests.js && npx floss --path=test.build -d","build":"rimraf dist && node scripts/build.js","pretype":"node scripts/patch-dts-generator.js","type":"rimraf types && dts-bundle-generator src/index.ts --no-check --project=tsconfig.build.json -o=types/index.d.ts && dts-bundle-generator src/extra.ts --no-check --project=tsconfig.build.json -o=types/extra.d.ts ","posttype":"node scripts/patch-types.js","doc":"node scripts/gen-docs.js","serve-docs":"mkdocs serve -f docs/mkdocs.yml","deploy":"gh-pages -d site","prepublishOnly":"yarn build && yarn test && yarn type"},"types":"types/index.d.ts","peerDependencies":{"@pixi/core":"^6","@pixi/display":"^6","@pixi/loaders":"^6","@pixi/math":"^6","@pixi/sprite":"^6","@pixi/utils":"^6"},"devDependencies":{"@types/chai":"^4.3.1","@types/chai-as-promised":"^7.1.5","@types/lodash-es":"^4.17.6","@types/node":"17.0.41","@types/offscreencanvas":"^2019.7.0","adm-zip":"^0.5.9","chai":"^4.3.6","chai-as-promised":"^7.1.1","chalk":"^4","dts-bundle-generator":"^6.11.0","electron":"^13","floss":"^5.0.1","glob":"^8.0.3","handlebars":"^4.7.7","jszip":"^3.10.0","lodash-es":"^4.17.21","node-fetch":"^2","pixi.js":"^6.4.2","rimraf":"^3.0.2","sinon":"^14.0.0","sinon-chai":"^3.7.0","typedoc":"0.23.10","typescript":"^4.7.3","vite":"^2.9.13"},"dependencies":{"gh-pages":"^4.0.0"},"licenseText":"MIT License\n\nCopyright (c) 2020 Guan\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"pixi-live2d-display@0.4.0","dist":{"shasum":"f0628d1bb71765c042b85288344ef72d7b557fce","integrity":"sha512-xeYC6y4Y0Bxe9ksWNlGFZC1rII/MPrzPQK7t1c3ubA8RhkOISIqHJl38fNumXqhGEs+yItmgDOkFT+9dsyGDjA==","tarball":"https://registry.npmjs.org/pixi-live2d-display/-/pixi-live2d-display-0.4.0.tgz","fileCount":28,"unpackedSize":1500705,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBfsSaGdZaCKWGv24SR53VncdkevQ+pjZ7bcGFVsK+99AiBgnZAU+zQdMumLe2as97pckkB5oPlMoUZLrZngEvDPYA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjFMHIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoBoxAAkBdLPo2bDGIfbAs/wrBRM+oYzCGNMi6uNVsd4g0N6rcMMNOI\r\nEJOtxpr8l/46uEVmRZ8KiydHlBq4BuwDjaOzbmhTPKeshtaQ1eMhRNfk7MRr\r\nl6FQ5fceyDXkJ5i04yFfPWGeO1XSJenJ7RBgdiukxs8FBGWMDKbsezO3Gihw\r\npGxvA1AeushQza4E+pO0HAB0gIm49U2dN/UNcqkbpyFtjGnAdAwSZN5ZLcu+\r\nd6prG8cCRr2pzrshbXApwCjrex9Pa7wDkMbD5sNRj9S8ojy3TMz2O9DzXBnw\r\nrc7R0n09P1ffdpncaOH5eeyA+WWvZEUEkdCiapTffLTi2c0DOSzQLvUReh5I\r\nT3uoIFCRyom4NuMHdsaNzviyNaiJBIMZ9xtHtnx589yAQ4B6SIdIBbONdmzg\r\nJMRL8tonLJ3WXN6YtvLEykhjMLU3UjZ8lJcv283WX6T7HwF6mhmvQPjsrTBM\r\nKwzptLgrF57gcGKKgaRfv4Tr4smrCwX2MeBPnMDu7OryZUzazfbismWEJQdh\r\nsx9fyvA7BJLOqcP5xwz0o8AofCXYnTDPezKxaDZTLmzpVkdsWIFq4YmWOx9X\r\npSTRYG8PjCRHoKT8WU3dlCtSjUeMruhzxN4v0Dq0FidZ3Srsw9oUC5X4Z91+\r\nYvLnMk0eXdouBCGg6POJN50KKJbtJKRU1CU=\r\n=fXLJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"guansss","email":"821143943@qq.com"},"directories":{},"maintainers":[{"name":"guansss","email":"821143943@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pixi-live2d-display_0.4.0_1662304712598_0.5885563736766957"},"_hasShrinkwrap":false},"0.5.0-beta":{"name":"pixi-live2d-display","version":"0.5.0-beta","description":"Live2D plugin for PixiJS","main":"dist/index.js","type":"module","exports":{".":{"types":"./types/index.d.ts","import":"./dist/index.es.js","require":"./dist/index.js"},"./cubism2":{"types":"./types/index.d.ts","import":"./dist/cubism2.es.js","require":"./dist/cubism2.js"},"./cubism4":{"types":"./types/index.d.ts","import":"./dist/cubism4.es.js","require":"./dist/cubism4.js"},"./extra":{"types":"./types/extra.d.ts","import":"./dist/extra.es.js","require":"./dist/extra.js"}},"repository":{"type":"git","url":"git+https://github.com/guansss/pixi-live2d-display.git"},"author":{"name":"guansss","email":"821143943@qq.com"},"license":"MIT","scripts":{"setup":"node scripts/setup.js","playground":"vite","test":"vitest","test:u":"vitest --update","build":"rimraf dist && node scripts/build.js","pretype":"node scripts/patch-dts-generator.js","type":"rimraf types && dts-bundle-generator src/index.ts --no-check --project=tsconfig.build.json -o=types/index.d.ts && dts-bundle-generator src/extra.ts --no-check --project=tsconfig.build.json -o=types/extra.d.ts ","posttype":"node scripts/patch-types.js","doc":"node scripts/gen-docs.js","serve-docs":"mkdocs serve -f docs/mkdocs.yml","deploy":"gh-pages -d site","prepublishOnly":"npm run type && npm run build && npm run test","lint":"eslint . --config .eslintrc.cjs --rule \"prettier/prettier: error\"","lint:fix":"npm run lint -- --fix"},"types":"types/index.d.ts","peerDependencies":{"pixi.js":"^7.0.0"},"devDependencies":{"@types/lodash-es":"^4.17.6","@types/node":"^20.8.9","@typescript-eslint/eslint-plugin":"^6.7.4","@typescript-eslint/parser":"^6.7.4","@vitest/browser":"^1.0.0-beta.5","birpc":"^0.2.14","dts-bundle-generator":"^6.11.0","eslint":"^8.51.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.0","gh-pages":"^6.1.0","glob":"^8.0.3","handlebars":"^4.7.7","jest-image-snapshot":"^6.2.0","jszip":"^3.10.0","lodash-es":"^4.17.21","pixi.js":"^7.3.2","prettier":"^3.0.3","rimraf":"^3.0.2","type-fest":"^4.4.0","typescript":"^5.2.2","vite":"^5.0.0","vite-plugin-node-polyfills":"^0.17.0","vitest":"^1.0.1","webdriverio":"^8.17.0"},"_id":"pixi-live2d-display@0.5.0-beta","readme":"# pixi-live2d-display\n\n![GitHub package.json version](https://img.shields.io/github/package-json/v/guansss/pixi-live2d-display?style=flat-square)\n![Cubism version](https://img.shields.io/badge/Cubism-2/3/4-ff69b4?style=flat-square)\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/guansss/pixi-live2d-display/test.yml?style=flat-square)\n\n为 [PixiJS](https://github.com/pixijs/pixi.js) v6 提供的 Live2D 插件\n\n此项目旨在成为 web 平台上的通用 Live2D 框架。由于 Live2D 的官方框架非常复杂且不可靠，这个项目已将其重写以提供统一且简单的 API，使你可以从较高的层次来控制 Live2D 模型而无需了解其内部的工作原理\n\n#### 特性\n\n-   支持所有版本的 Live2D 模型\n-   支持 PIXI.RenderTexture 和 PIXI.Filter\n-   Pixi 风格的变换 API：position, scale, rotation, skew, anchor\n-   自动交互：鼠标跟踪, 点击命中检测\n-   比官方框架更好的动作预约逻辑\n-   从上传的文件或 zip 文件中加载 (实验性功能)\n-   完善的类型定义 - 我们都喜欢类型！\n\n#### 要求\n\n-   PixiJS：>6\n-   浏览器：WebGL， ES6\n\n#### 示例\n\n-   [基础示例](https://codepen.io/guansss/pen/oNzoNoz/left?editors=1010)\n-   [交互示例](https://codepen.io/guansss/pen/KKgXBOP/left?editors=0010)\n-   [渲染纹理与滤镜示例](https://codepen.io/guansss/pen/qBaMNQV/left?editors=1010)\n-   [Live2D Viewer Online](https://guansss.github.io/live2d-viewer-web/)\n\n#### 文档\n\n-   [文档](https://guansss.github.io/pixi-live2d-display)（暂无中文翻译）\n-   [API 文档](https://guansss.github.io/pixi-live2d-display/api/index.html)\n\n## Cubism\n\nCubism 是 Live2D SDK 的名称，目前有 3 个版本：Cubism 2.1、Cubism 3、Cubism 4，其中 Cubism 4 可以与 Cubism 3 的模型兼容\n\n该插件使用 Cubism 2.1 和 Cubism 4，从而支持所有版本的 Live2D 模型\n\n#### Cubism Core\n\n在使用该插件之前，你需要加载 Cubism 运行时，也就是 Cubism Core\n\nCubism 4 需要加载 `live2dcubismcore.min.js`，可以从 [Cubism 4 SDK](https://www.live2d.com/download/cubism-sdk/download-web/)\n里解压出来，或者直接引用[这个链接](https://cubism.live2d.com/sdk-web/cubismcore/live2dcubismcore.min.js)\n（_链接偶尔会挂掉，不要在生产版本中使用！_）\n\nCubism 2.1 需要加载 `live2d.min.js`，[从 2019/9/4 起](https://help.live2d.com/en/other/other_20/)\n，官方已经不再提供该版本 SDK 的下载，但是可以从 [这里](https://github.com/dylanNew/live2d/tree/master/webgl/Live2D/lib)\n找到，以及你大概想要的 [CDN 链接](https://cdn.jsdelivr.net/gh/dylanNew/live2d/webgl/Live2D/lib/live2d.min.js)\n\n#### 单独的打包文件\n\n该插件为每个 Cubism 版本提供了单独的打包文件，从而在你只想使用其中一个版本的时候减少需要加载文件的大小。\n\n具体来说，为两种版本分别提供了 `cubism2.js` 和 `cubism4.js`，以及一个同时包含了两种版本的 `index.js`\n\n注意，如果你想同时支持 Cubism 2.1 和 Cubism 4 的话，请使用 `index.js`，_而不要同时使用_ `cubism2.js` 和 `cubism4.js`\n\n为了更明确一点，这里列出使用这些文件的方法：\n\n-   使用 `cubism2.js`+`live2d.min.js` 以支持 Cubism 2.1 模型\n-   使用 `cubism4.js`+`live2dcubismcore.min.js` 以支持 Cubism 3 和 Cubism 4 模型\n-   使用 `index.js`+`live2d.min.js`+`live2dcubismcore.min.js` 以支持所有版本的模型\n\n## 安装\n\n#### 通过 npm\n\n```sh\nnpm install pixi-live2d-display\n```\n\n```js\nimport { Live2DModel } from 'pixi-live2d-display';\n\n// 如果只需要 Cubism 2.1\nimport { Live2DModel } from 'pixi-live2d-display/cubism2';\n\n// 如果只需要 Cubism 4\nimport { Live2DModel } from 'pixi-live2d-display/cubism4';\n```\n\n#### 通过 CDN\n\n```html\n<script src=\"https://cdn.jsdelivr.net/npm/pixi-live2d-display/dist/index.min.js\"></script>\n\n<!-- 如果只需要 Cubism 2.1 -->\n<script src=\"https://cdn.jsdelivr.net/npm/pixi-live2d-display/dist/cubism2.min.js\"></script>\n\n<!-- 如果只需要 Cubism 4 -->\n<script src=\"https://cdn.jsdelivr.net/npm/pixi-live2d-display/dist/cubism4.min.js\"></script>\n```\n\n通过这种方式加载的话，所有成员都会被导出到 `PIXI.live2d` 命名空间下，比如 `PIXI.live2d.Live2DModel`\n\n## 基础使用\n\n```javascript\nimport * as PIXI from 'pixi.js';\nimport { Live2DModel } from 'pixi-live2d-display';\n\n// 将 PIXI 暴露到 window 上，这样插件就可以通过 window.PIXI.Ticker 来自动更新模型\nwindow.PIXI = PIXI;\n\n(async function () {\n    const app = new PIXI.Application({\n        view: document.getElementById('canvas'),\n    });\n\n    const model = await Live2DModel.from('shizuku.model.json');\n\n    app.stage.addChild(model);\n\n    // 变换\n    model.x = 100;\n    model.y = 100;\n    model.rotation = Math.PI;\n    model.skew.x = Math.PI;\n    model.scale.set(2, 2);\n    model.anchor.set(0.5, 0.5);\n\n    // 交互\n    model.on('hit', (hitAreas) => {\n        if (hitAreas.includes('body')) {\n            model.motion('tap_body');\n        }\n    });\n})();\n```\n\n## 包导入\n\n当按需导入 Pixi 的包时，需要手动注册相应的组件来启用可选功能\n\n```javascript\nimport { Application } from '@pixi/app';\nimport { Ticker } from '@pixi/ticker';\nimport { InteractionManager } from '@pixi/interaction';\nimport { Live2DModel } from 'pixi-live2d-display';\n\n// 为 Live2DModel 注册 Ticker\nLive2DModel.registerTicker(Ticker);\n\n// 为 Application 注册 Ticker\nApplication.registerPlugin(TickerPlugin);\n\n// 注册 InteractionManager 以支持 Live2D 模型的自动交互\nRenderer.registerPlugin('interaction', InteractionManager);\n\n(async function () {\n    const app = new Application({\n        view: document.getElementById('canvas'),\n    });\n\n    const model = await Live2DModel.from('shizuku.model.json');\n\n    app.stage.addChild(model);\n})();\n```\n\n---\n\n示例的 Live2D 模型 Shizuku (Cubism 2.1) 和 Haru (Cubism 4) 遵守 Live2D 的\n[Free Material License](https://www.live2d.com/eula/live2d-free-material-license-agreement_en.html)\n","readmeFilename":"README.zh.md","gitHead":"08eb44255709501f3c85c19ec9fee2abff5177a0","bugs":{"url":"https://github.com/guansss/pixi-live2d-display/issues"},"homepage":"https://github.com/guansss/pixi-live2d-display#readme","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-U2G20FnhmrepYuvWB4l0CLyIH43kz1lusuX9aC05+Ed11aBQCJIBKadIJuSzKXV6sqjTiH1aBZrS/CR2aUrEBQ==","shasum":"7961db69671a27725ca704521c3f9487b8b39772","tarball":"https://registry.npmjs.org/pixi-live2d-display/-/pixi-live2d-display-0.5.0-beta.tgz","fileCount":18,"unpackedSize":2231220,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqauU6gBJtATJAmYBebyrMnZQnDPu+THiT3qGkCvc0TgIgYG/wS8t8u2cMKqIj64bSofCFPyZ6rRK3uwbrYvmkv5A="}]},"_npmUser":{"name":"guansss","email":"821143943@qq.com"},"directories":{},"maintainers":[{"name":"guansss","email":"821143943@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pixi-live2d-display_0.5.0-beta_1701934854041_0.17825382933871703"},"_hasShrinkwrap":false}},"time":{"created":"2020-04-02T19:21:18.089Z","0.1.0":"2020-04-02T19:21:18.256Z","modified":"2023-12-07T07:40:54.430Z","0.1.1":"2020-04-02T20:19:12.205Z","0.1.2":"2020-04-03T13:36:11.965Z","0.2.0":"2020-04-14T16:49:59.530Z","0.2.1":"2020-04-25T17:35:19.692Z","0.2.2":"2020-09-21T07:41:16.720Z","0.3.0-beta":"2020-12-23T18:37:54.728Z","0.3.0-beta.1":"2020-12-31T23:39:02.827Z","0.3.0-beta.2":"2021-01-02T17:00:33.164Z","0.3.0":"2021-01-21T01:28:46.518Z","0.3.1":"2021-01-26T14:18:56.773Z","0.4.0-beta":"2022-06-26T16:41:06.967Z","0.4.0-beta.2":"2022-07-24T09:01:33.563Z","0.4.0":"2022-09-04T15:18:32.886Z","0.5.0-beta":"2023-12-07T07:40:54.246Z"},"maintainers":[{"name":"guansss","email":"821143943@qq.com"}],"description":"Live2D plugin for PixiJS","repository":{"type":"git","url":"https://github.com/guansss/pixi-live2d-display.git"},"author":{"name":"guansss","email":"821143943@qq.com"},"license":"MIT","readme":"","readmeFilename":""}