egatari 0.6.4 → 0.6.5-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +36 -0
- package/README.ja.md +18 -4
- package/README.md +18 -4
- package/SECURITY.md +18 -0
- package/bin/egatari.mjs +86 -3
- package/components.lock.json +246 -123
- package/components2.lock.json +824 -1
- package/kit/article-steps.mjs +27 -0
- package/kit/browser.mjs +14 -2
- package/kit/build.mjs +50 -1
- package/kit/check-messages.mjs +15 -7
- package/kit/check.mjs +46 -9
- package/kit/cli-hint.mjs +27 -0
- package/kit/core/article-cite.mjs +188 -0
- package/kit/core/article-links.mjs +174 -0
- package/kit/core/article-messages.mjs +119 -0
- package/kit/core/article-page.mjs +183 -0
- package/kit/core/article-render.mjs +410 -0
- package/kit/core/article-text.mjs +559 -0
- package/kit/core/article.mjs +267 -0
- package/kit/core/build-core.mjs +49 -9
- package/kit/core/citeproc-credit.mjs +3 -0
- package/kit/core/colab-core.mjs +1 -1
- package/kit/core/components-lock.mjs +18 -0
- package/kit/core/llm-fix.mjs +2 -1
- package/kit/core/llm-pack-assemble.mjs +5 -3
- package/kit/core/llm-pack-data.mjs +63 -80
- package/kit/core/new-deck.mjs +1 -1
- package/kit/core/part-labels.mjs +17 -5
- package/kit/core/parts2.mjs +11 -1
- package/kit/core/player.mjs +1 -1
- package/kit/core/portable.mjs +132 -16
- package/kit/core/quote-ja.mjs +5 -0
- package/kit/core/themes-lock.mjs +16 -0
- package/kit/core/tier-a.mjs +47 -3
- package/kit/deck.js +195 -45
- package/kit/instruction-version.json +3 -0
- package/kit/layouts.css +11 -10
- package/kit/panes.js +1288 -0
- package/kit/player.json +1 -1
- package/kit/player.lock.json +2 -2
- package/kit/tools.js +81 -20
- package/kit/track.js +308 -0
- package/package.json +20 -3
- package/render/only.mjs +21 -0
- package/render/render.mjs +11 -8
- package/tools/ids.mjs +77 -9
- package/tools/portable.mjs +2 -0
- package/tools/sheet.mjs +5 -3
- package/vendor/components/CATALOG.md +4 -4
- package/vendor/components/sha256/00e4bdbb7b9964c92809177fe7bb574e7184ed603dbc5008a485d82603d9a7bf/CHANGELOG.md +37 -0
- package/vendor/components/sha256/00e4bdbb7b9964c92809177fe7bb574e7184ed603dbc5008a485d82603d9a7bf/README.md +58 -0
- package/vendor/components/sha256/00e4bdbb7b9964c92809177fe7bb574e7184ed603dbc5008a485d82603d9a7bf/demo.html +121 -0
- package/vendor/components/sha256/00e4bdbb7b9964c92809177fe7bb574e7184ed603dbc5008a485d82603d9a7bf/index.js +894 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/CHANGELOG.md +44 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/README.md +32 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/demo.html +57 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/ABCJS-ADAPTER.md +101 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/LICENSE-abcjs.txt +21 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/chords.json +89 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/doremi.json +261 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/extras.json +192 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/kaeru.json +521 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/rhythm.json +248 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/ties.json +360 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/index.js +474 -0
- package/vendor/components/sha256/027a8fea4060337ccc0a926c1488066f1ae7a6c102a15032eae974304e12cb3b/CHANGELOG.md +28 -0
- package/vendor/components/sha256/027a8fea4060337ccc0a926c1488066f1ae7a6c102a15032eae974304e12cb3b/README.md +21 -0
- package/vendor/components/sha256/027a8fea4060337ccc0a926c1488066f1ae7a6c102a15032eae974304e12cb3b/demo.html +32 -0
- package/vendor/components/sha256/027a8fea4060337ccc0a926c1488066f1ae7a6c102a15032eae974304e12cb3b/index.js +139 -0
- package/vendor/components/sha256/03550bb20d425aa926258bab18b03bbc0cee292072e01bb6c78c429b3ae92c34/README.md +42 -0
- package/vendor/components/sha256/03550bb20d425aa926258bab18b03bbc0cee292072e01bb6c78c429b3ae92c34/index.js +250 -0
- package/vendor/components/sha256/07013c263cc595382dbcfd4931ca8b016f9dfb673440adf28911c95bd465cf9d/README.md +22 -0
- package/vendor/components/sha256/07013c263cc595382dbcfd4931ca8b016f9dfb673440adf28911c95bd465cf9d/index.js +41 -0
- package/vendor/components/sha256/0703ec58997237fceda0008c28dfa3e3370c21cdcb6d0cc99c29a83e4b9d0f11/CHANGELOG.md +25 -0
- package/vendor/components/sha256/0703ec58997237fceda0008c28dfa3e3370c21cdcb6d0cc99c29a83e4b9d0f11/README.md +35 -0
- package/vendor/components/sha256/0703ec58997237fceda0008c28dfa3e3370c21cdcb6d0cc99c29a83e4b9d0f11/demo.html +40 -0
- package/vendor/components/sha256/0703ec58997237fceda0008c28dfa3e3370c21cdcb6d0cc99c29a83e4b9d0f11/index.js +731 -0
- package/vendor/components/sha256/0b85af3a688ca012d7d1df082dab1f405048589dce78d411d4cffc1fb3a81998/CHANGELOG.md +19 -0
- package/vendor/components/sha256/0b85af3a688ca012d7d1df082dab1f405048589dce78d411d4cffc1fb3a81998/README.md +21 -0
- package/vendor/components/sha256/0b85af3a688ca012d7d1df082dab1f405048589dce78d411d4cffc1fb3a81998/demo.html +33 -0
- package/vendor/components/sha256/0b85af3a688ca012d7d1df082dab1f405048589dce78d411d4cffc1fb3a81998/index.js +106 -0
- package/vendor/components/sha256/0cf00baed0da1bc3ce5460eb1eff0a8dd5f7789168e83aaef751135cd3f8af89/CHANGELOG.md +21 -0
- package/vendor/components/sha256/0cf00baed0da1bc3ce5460eb1eff0a8dd5f7789168e83aaef751135cd3f8af89/README.md +34 -0
- package/vendor/components/sha256/0cf00baed0da1bc3ce5460eb1eff0a8dd5f7789168e83aaef751135cd3f8af89/demo.html +77 -0
- package/vendor/components/sha256/0cf00baed0da1bc3ce5460eb1eff0a8dd5f7789168e83aaef751135cd3f8af89/index.js +200 -0
- package/vendor/components/sha256/0eca723150eb30db0b3d3fdbd35b973d5344ac0d0e2ea8ab89d143a0870ab4fd/CHANGELOG.md +31 -0
- package/vendor/components/sha256/0eca723150eb30db0b3d3fdbd35b973d5344ac0d0e2ea8ab89d143a0870ab4fd/README.md +43 -0
- package/vendor/components/sha256/0eca723150eb30db0b3d3fdbd35b973d5344ac0d0e2ea8ab89d143a0870ab4fd/demo.html +47 -0
- package/vendor/components/sha256/0eca723150eb30db0b3d3fdbd35b973d5344ac0d0e2ea8ab89d143a0870ab4fd/index.js +484 -0
- package/vendor/components/sha256/0f47d93b78df1c0661a91d5fc46d6f7f5d1c45349065aab6bd3e659e07e317dd/CHANGELOG.md +23 -0
- package/vendor/components/sha256/0f47d93b78df1c0661a91d5fc46d6f7f5d1c45349065aab6bd3e659e07e317dd/README.md +44 -0
- package/vendor/components/sha256/0f47d93b78df1c0661a91d5fc46d6f7f5d1c45349065aab6bd3e659e07e317dd/demo.html +43 -0
- package/vendor/components/sha256/0f47d93b78df1c0661a91d5fc46d6f7f5d1c45349065aab6bd3e659e07e317dd/index.js +266 -0
- package/vendor/components/sha256/12704ccb92a1f864a18cce824a2400e8e3141e8dba7db34805cb1d8522aae08e/CHANGELOG.md +34 -0
- package/vendor/components/sha256/12704ccb92a1f864a18cce824a2400e8e3141e8dba7db34805cb1d8522aae08e/README.md +44 -0
- package/vendor/components/sha256/12704ccb92a1f864a18cce824a2400e8e3141e8dba7db34805cb1d8522aae08e/demo.html +56 -0
- package/vendor/components/sha256/12704ccb92a1f864a18cce824a2400e8e3141e8dba7db34805cb1d8522aae08e/index.js +429 -0
- package/vendor/components/sha256/149e8ddefbc384aafa8b961d48f8f56ad68ff75cc2429bd8c1ad6d8da661f5f6/CHANGELOG.md +25 -0
- package/vendor/components/sha256/149e8ddefbc384aafa8b961d48f8f56ad68ff75cc2429bd8c1ad6d8da661f5f6/README.md +42 -0
- package/vendor/components/sha256/149e8ddefbc384aafa8b961d48f8f56ad68ff75cc2429bd8c1ad6d8da661f5f6/demo.html +115 -0
- package/vendor/components/sha256/149e8ddefbc384aafa8b961d48f8f56ad68ff75cc2429bd8c1ad6d8da661f5f6/index.js +384 -0
- package/vendor/components/sha256/1ccdd24c9e0e7ca2661450c52eb6dcf9dbc2fb48d05fed2d01e2b9cfd5df1365/CHANGELOG.md +19 -0
- package/vendor/components/sha256/1ccdd24c9e0e7ca2661450c52eb6dcf9dbc2fb48d05fed2d01e2b9cfd5df1365/README.md +38 -0
- package/vendor/components/sha256/1ccdd24c9e0e7ca2661450c52eb6dcf9dbc2fb48d05fed2d01e2b9cfd5df1365/demo.html +72 -0
- package/vendor/components/sha256/1ccdd24c9e0e7ca2661450c52eb6dcf9dbc2fb48d05fed2d01e2b9cfd5df1365/index.js +248 -0
- package/vendor/components/sha256/240bd2ff9a1707c557f0a1af7f278a3f7661a8e680d3b932e367d4b337a3ad13/CHANGELOG.md +19 -0
- package/vendor/components/sha256/240bd2ff9a1707c557f0a1af7f278a3f7661a8e680d3b932e367d4b337a3ad13/README.md +36 -0
- package/vendor/components/sha256/240bd2ff9a1707c557f0a1af7f278a3f7661a8e680d3b932e367d4b337a3ad13/demo.html +70 -0
- package/vendor/components/sha256/240bd2ff9a1707c557f0a1af7f278a3f7661a8e680d3b932e367d4b337a3ad13/index.js +167 -0
- package/vendor/components/sha256/2a6b20b93f1169ef2435cdf3bfca57d24c9111fe9aaf8e61f0d049cf8a70e9df/CHANGELOG.md +34 -0
- package/vendor/components/sha256/2a6b20b93f1169ef2435cdf3bfca57d24c9111fe9aaf8e61f0d049cf8a70e9df/README.md +32 -0
- package/vendor/components/sha256/2a6b20b93f1169ef2435cdf3bfca57d24c9111fe9aaf8e61f0d049cf8a70e9df/demo.html +51 -0
- package/vendor/components/sha256/2a6b20b93f1169ef2435cdf3bfca57d24c9111fe9aaf8e61f0d049cf8a70e9df/index.js +302 -0
- package/vendor/components/sha256/2c9490ac960a5bb04ebc0c8fa0622392775f85ef8b8ebe93065991ce40afc097/CHANGELOG.md +41 -0
- package/vendor/components/sha256/2c9490ac960a5bb04ebc0c8fa0622392775f85ef8b8ebe93065991ce40afc097/README.md +35 -0
- package/vendor/components/sha256/2c9490ac960a5bb04ebc0c8fa0622392775f85ef8b8ebe93065991ce40afc097/demo.html +66 -0
- package/vendor/components/sha256/2c9490ac960a5bb04ebc0c8fa0622392775f85ef8b8ebe93065991ce40afc097/index.js +352 -0
- package/vendor/components/sha256/328a440e91684524068076e96cba5771cdceaa274d4b90033656259f05467135/CHANGELOG.md +35 -0
- package/vendor/components/sha256/328a440e91684524068076e96cba5771cdceaa274d4b90033656259f05467135/README.md +35 -0
- package/vendor/components/sha256/328a440e91684524068076e96cba5771cdceaa274d4b90033656259f05467135/demo.html +40 -0
- package/vendor/components/sha256/328a440e91684524068076e96cba5771cdceaa274d4b90033656259f05467135/index.js +747 -0
- package/vendor/components/sha256/3395706f819e0e70b4047da33486a4b59e65118faf8f918677061e397dae408c/CHANGELOG.md +35 -0
- package/vendor/components/sha256/3395706f819e0e70b4047da33486a4b59e65118faf8f918677061e397dae408c/README.md +43 -0
- package/vendor/components/sha256/3395706f819e0e70b4047da33486a4b59e65118faf8f918677061e397dae408c/demo.html +89 -0
- package/vendor/components/sha256/3395706f819e0e70b4047da33486a4b59e65118faf8f918677061e397dae408c/index.js +323 -0
- package/vendor/components/sha256/34b1375b0897f881b8d43e5dbaa928485cfab240e87c53a5868e714879a20f79/CHANGELOG.md +24 -0
- package/vendor/components/sha256/34b1375b0897f881b8d43e5dbaa928485cfab240e87c53a5868e714879a20f79/README.md +40 -0
- package/vendor/components/sha256/34b1375b0897f881b8d43e5dbaa928485cfab240e87c53a5868e714879a20f79/demo.html +70 -0
- package/vendor/components/sha256/34b1375b0897f881b8d43e5dbaa928485cfab240e87c53a5868e714879a20f79/index.js +561 -0
- package/vendor/components/sha256/37ea0051e8a1f2d7c2fa2d38e57730e5a3b1afabe9037a74fcad6e6f05356c09/CHANGELOG.md +27 -0
- package/vendor/components/sha256/37ea0051e8a1f2d7c2fa2d38e57730e5a3b1afabe9037a74fcad6e6f05356c09/README.md +50 -0
- package/vendor/components/sha256/37ea0051e8a1f2d7c2fa2d38e57730e5a3b1afabe9037a74fcad6e6f05356c09/demo.html +44 -0
- package/vendor/components/sha256/37ea0051e8a1f2d7c2fa2d38e57730e5a3b1afabe9037a74fcad6e6f05356c09/index.js +464 -0
- package/vendor/components/sha256/39c84138e7e4c6040eeb3d82d1c7fc801f513b2c26ac431ac8cc121a01f81698/CHANGELOG.md +23 -0
- package/vendor/components/sha256/39c84138e7e4c6040eeb3d82d1c7fc801f513b2c26ac431ac8cc121a01f81698/README.md +44 -0
- package/vendor/components/sha256/39c84138e7e4c6040eeb3d82d1c7fc801f513b2c26ac431ac8cc121a01f81698/demo.html +56 -0
- package/vendor/components/sha256/39c84138e7e4c6040eeb3d82d1c7fc801f513b2c26ac431ac8cc121a01f81698/index.js +402 -0
- package/vendor/components/sha256/3c36a26fd78dffdfa114bd7c9ca5cae494117bbcdda14bee5c2a01351e5f2eb2/CHANGELOG.md +27 -0
- package/vendor/components/sha256/3c36a26fd78dffdfa114bd7c9ca5cae494117bbcdda14bee5c2a01351e5f2eb2/README.md +49 -0
- package/vendor/components/sha256/3c36a26fd78dffdfa114bd7c9ca5cae494117bbcdda14bee5c2a01351e5f2eb2/demo.html +44 -0
- package/vendor/components/sha256/3c36a26fd78dffdfa114bd7c9ca5cae494117bbcdda14bee5c2a01351e5f2eb2/index.js +354 -0
- package/vendor/components/sha256/3c60c8e63279b8ee86957a5874c80f86a44f9ed92c1f615eace4a9dea1789da5/CHANGELOG.md +20 -0
- package/vendor/components/sha256/3c60c8e63279b8ee86957a5874c80f86a44f9ed92c1f615eace4a9dea1789da5/README.md +50 -0
- package/vendor/components/sha256/3c60c8e63279b8ee86957a5874c80f86a44f9ed92c1f615eace4a9dea1789da5/demo.html +61 -0
- package/vendor/components/sha256/3c60c8e63279b8ee86957a5874c80f86a44f9ed92c1f615eace4a9dea1789da5/index.js +141 -0
- package/vendor/components/sha256/3dba49cbbf7853212a6e5c393de030430d02b8b1a2ba4c8b722db2bb8afad12f/CHANGELOG.md +42 -0
- package/vendor/components/sha256/3dba49cbbf7853212a6e5c393de030430d02b8b1a2ba4c8b722db2bb8afad12f/README.md +32 -0
- package/vendor/components/sha256/3dba49cbbf7853212a6e5c393de030430d02b8b1a2ba4c8b722db2bb8afad12f/demo.html +54 -0
- package/vendor/components/sha256/3dba49cbbf7853212a6e5c393de030430d02b8b1a2ba4c8b722db2bb8afad12f/index.js +315 -0
- package/vendor/components/sha256/40452368224bdcd8c4910222285e6af9e120df17dbd1c3177c0abe9cb69075d1/CHANGELOG.md +30 -0
- package/vendor/components/sha256/40452368224bdcd8c4910222285e6af9e120df17dbd1c3177c0abe9cb69075d1/README.md +38 -0
- package/vendor/components/sha256/40452368224bdcd8c4910222285e6af9e120df17dbd1c3177c0abe9cb69075d1/demo.html +72 -0
- package/vendor/components/sha256/40452368224bdcd8c4910222285e6af9e120df17dbd1c3177c0abe9cb69075d1/index.js +267 -0
- package/vendor/components/sha256/4a5971c1f83efc1f57c444ce7d3fbf242b2bcca65c5c6e4b0b0d75eeb2751150/CHANGELOG.md +16 -0
- package/vendor/components/sha256/4a5971c1f83efc1f57c444ce7d3fbf242b2bcca65c5c6e4b0b0d75eeb2751150/README.md +27 -0
- package/vendor/components/sha256/4a5971c1f83efc1f57c444ce7d3fbf242b2bcca65c5c6e4b0b0d75eeb2751150/demo.html +42 -0
- package/vendor/components/sha256/4a5971c1f83efc1f57c444ce7d3fbf242b2bcca65c5c6e4b0b0d75eeb2751150/index.js +121 -0
- package/vendor/components/sha256/4e0e5eb48fc20ffc554786a7db66c4f5cee0c42eb0554bdc8c98323cdb168eb4/CHANGELOG.md +33 -0
- package/vendor/components/sha256/4e0e5eb48fc20ffc554786a7db66c4f5cee0c42eb0554bdc8c98323cdb168eb4/README.md +41 -0
- package/vendor/components/sha256/4e0e5eb48fc20ffc554786a7db66c4f5cee0c42eb0554bdc8c98323cdb168eb4/demo.html +70 -0
- package/vendor/components/sha256/4e0e5eb48fc20ffc554786a7db66c4f5cee0c42eb0554bdc8c98323cdb168eb4/index.js +592 -0
- package/vendor/components/sha256/50db2d3b84ee33b36c09a9a216ef6b337d2e5da2154e8aa62e790b0e63401796/CHANGELOG.md +23 -0
- package/vendor/components/sha256/50db2d3b84ee33b36c09a9a216ef6b337d2e5da2154e8aa62e790b0e63401796/README.md +43 -0
- package/vendor/components/sha256/50db2d3b84ee33b36c09a9a216ef6b337d2e5da2154e8aa62e790b0e63401796/demo.html +47 -0
- package/vendor/components/sha256/50db2d3b84ee33b36c09a9a216ef6b337d2e5da2154e8aa62e790b0e63401796/index.js +483 -0
- package/vendor/components/sha256/546ec63feccdc65569b7167e58b2e36a85be52f2538743dd2ecc3fc29ed6b883/CHANGELOG.md +19 -0
- package/vendor/components/sha256/546ec63feccdc65569b7167e58b2e36a85be52f2538743dd2ecc3fc29ed6b883/README.md +34 -0
- package/vendor/components/sha256/546ec63feccdc65569b7167e58b2e36a85be52f2538743dd2ecc3fc29ed6b883/demo.html +60 -0
- package/vendor/components/sha256/546ec63feccdc65569b7167e58b2e36a85be52f2538743dd2ecc3fc29ed6b883/index.js +209 -0
- package/vendor/components/sha256/556e7d45a761c4fa749cde186fb53f6c526ba6ede0b8f0f0bba5ac9e25e0d6f4/CHANGELOG.md +30 -0
- package/vendor/components/sha256/556e7d45a761c4fa749cde186fb53f6c526ba6ede0b8f0f0bba5ac9e25e0d6f4/README.md +79 -0
- package/vendor/components/sha256/556e7d45a761c4fa749cde186fb53f6c526ba6ede0b8f0f0bba5ac9e25e0d6f4/demo.html +50 -0
- package/vendor/components/sha256/556e7d45a761c4fa749cde186fb53f6c526ba6ede0b8f0f0bba5ac9e25e0d6f4/index.js +351 -0
- package/vendor/components/sha256/577008a069e7eb08057705a0800d975e82c8dfe0d0ba5fbf4f8974af7b298a7f/README.md +53 -0
- package/vendor/components/sha256/577008a069e7eb08057705a0800d975e82c8dfe0d0ba5fbf4f8974af7b298a7f/index.js +310 -0
- package/vendor/components/sha256/5a9959f8626f2c5280d0954c476baeadf03fecebda2443c3e83b8203ad554167/CHANGELOG.md +20 -0
- package/vendor/components/sha256/5a9959f8626f2c5280d0954c476baeadf03fecebda2443c3e83b8203ad554167/README.md +75 -0
- package/vendor/components/sha256/5a9959f8626f2c5280d0954c476baeadf03fecebda2443c3e83b8203ad554167/demo.html +50 -0
- package/vendor/components/sha256/5a9959f8626f2c5280d0954c476baeadf03fecebda2443c3e83b8203ad554167/index.js +342 -0
- package/vendor/components/sha256/5b44b272b917246219d2709f1b001964f87a3e07786cc9950087bbb8add3c721/CHANGELOG.md +24 -0
- package/vendor/components/sha256/5b44b272b917246219d2709f1b001964f87a3e07786cc9950087bbb8add3c721/README.md +26 -0
- package/vendor/components/sha256/5b44b272b917246219d2709f1b001964f87a3e07786cc9950087bbb8add3c721/demo.html +48 -0
- package/vendor/components/sha256/5b44b272b917246219d2709f1b001964f87a3e07786cc9950087bbb8add3c721/index.js +97 -0
- package/vendor/components/sha256/5c8ae7714fd8243c9b37539a5f0f8488d3ba20316ba81179e97b6160116d13c2/CHANGELOG.md +22 -0
- package/vendor/components/sha256/5c8ae7714fd8243c9b37539a5f0f8488d3ba20316ba81179e97b6160116d13c2/README.md +64 -0
- package/vendor/components/sha256/5c8ae7714fd8243c9b37539a5f0f8488d3ba20316ba81179e97b6160116d13c2/demo.html +97 -0
- package/vendor/components/sha256/5c8ae7714fd8243c9b37539a5f0f8488d3ba20316ba81179e97b6160116d13c2/index.js +875 -0
- package/vendor/components/sha256/68c9e866e3cd3e2f8179ede44a005c7f31cef0ed07fd5770ec33f0cc3aa80a41/CHANGELOG.md +21 -0
- package/vendor/components/sha256/68c9e866e3cd3e2f8179ede44a005c7f31cef0ed07fd5770ec33f0cc3aa80a41/README.md +50 -0
- package/vendor/components/sha256/68c9e866e3cd3e2f8179ede44a005c7f31cef0ed07fd5770ec33f0cc3aa80a41/demo.html +63 -0
- package/vendor/components/sha256/68c9e866e3cd3e2f8179ede44a005c7f31cef0ed07fd5770ec33f0cc3aa80a41/index.js +219 -0
- package/vendor/components/sha256/693e2aa59e822d38c48eca7271cc020f8e0a6f6189f2409895318ed2a3f0b809/CHANGELOG.md +28 -0
- package/vendor/components/sha256/693e2aa59e822d38c48eca7271cc020f8e0a6f6189f2409895318ed2a3f0b809/README.md +35 -0
- package/vendor/components/sha256/693e2aa59e822d38c48eca7271cc020f8e0a6f6189f2409895318ed2a3f0b809/demo.html +73 -0
- package/vendor/components/sha256/693e2aa59e822d38c48eca7271cc020f8e0a6f6189f2409895318ed2a3f0b809/index.js +228 -0
- package/vendor/components/sha256/6b24ab9b90b4f2275af9f61073fe9d65b8b9d16573d639ae07352f29b8b067a1/CHANGELOG.md +34 -0
- package/vendor/components/sha256/6b24ab9b90b4f2275af9f61073fe9d65b8b9d16573d639ae07352f29b8b067a1/README.md +65 -0
- package/vendor/components/sha256/6b24ab9b90b4f2275af9f61073fe9d65b8b9d16573d639ae07352f29b8b067a1/demo.html +97 -0
- package/vendor/components/sha256/6b24ab9b90b4f2275af9f61073fe9d65b8b9d16573d639ae07352f29b8b067a1/index.js +920 -0
- package/vendor/components/sha256/6c25dc07f75697e7388564ad689303c370d49142aab9e6672baec15a0313a2fa/CHANGELOG.md +31 -0
- package/vendor/components/sha256/6c25dc07f75697e7388564ad689303c370d49142aab9e6672baec15a0313a2fa/README.md +39 -0
- package/vendor/components/sha256/6c25dc07f75697e7388564ad689303c370d49142aab9e6672baec15a0313a2fa/demo.html +66 -0
- package/vendor/components/sha256/6c25dc07f75697e7388564ad689303c370d49142aab9e6672baec15a0313a2fa/index.js +304 -0
- package/vendor/components/sha256/75a20673474b3104da24a7cb0d0483394bed380ff1c108a9a529bcdd1de0f1fb/CHANGELOG.md +31 -0
- package/vendor/components/sha256/75a20673474b3104da24a7cb0d0483394bed380ff1c108a9a529bcdd1de0f1fb/README.md +40 -0
- package/vendor/components/sha256/75a20673474b3104da24a7cb0d0483394bed380ff1c108a9a529bcdd1de0f1fb/demo.html +92 -0
- package/vendor/components/sha256/75a20673474b3104da24a7cb0d0483394bed380ff1c108a9a529bcdd1de0f1fb/index.js +424 -0
- package/vendor/components/sha256/8534966fead40ce56110b49bd8cabcd3fb703665e7c164abdfcc9aa29f3ce018/CHANGELOG.md +26 -0
- package/vendor/components/sha256/8534966fead40ce56110b49bd8cabcd3fb703665e7c164abdfcc9aa29f3ce018/README.md +57 -0
- package/vendor/components/sha256/8534966fead40ce56110b49bd8cabcd3fb703665e7c164abdfcc9aa29f3ce018/demo.html +121 -0
- package/vendor/components/sha256/8534966fead40ce56110b49bd8cabcd3fb703665e7c164abdfcc9aa29f3ce018/index.js +875 -0
- package/vendor/components/sha256/85f2da6dbed2b9beedaf3ffdea237f3f7940f9b1d4c0d056caa67e937d2dad8d/CHANGELOG.md +20 -0
- package/vendor/components/sha256/85f2da6dbed2b9beedaf3ffdea237f3f7940f9b1d4c0d056caa67e937d2dad8d/README.md +46 -0
- package/vendor/components/sha256/85f2da6dbed2b9beedaf3ffdea237f3f7940f9b1d4c0d056caa67e937d2dad8d/demo.html +112 -0
- package/vendor/components/sha256/85f2da6dbed2b9beedaf3ffdea237f3f7940f9b1d4c0d056caa67e937d2dad8d/index.js +443 -0
- package/vendor/components/sha256/87ca8b6a8995a8fe11206e2def2d6df54075092d15f2f900b25767dbe9bf998e/CHANGELOG.md +22 -0
- package/vendor/components/sha256/87ca8b6a8995a8fe11206e2def2d6df54075092d15f2f900b25767dbe9bf998e/README.md +35 -0
- package/vendor/components/sha256/87ca8b6a8995a8fe11206e2def2d6df54075092d15f2f900b25767dbe9bf998e/demo.html +69 -0
- package/vendor/components/sha256/87ca8b6a8995a8fe11206e2def2d6df54075092d15f2f900b25767dbe9bf998e/index.js +217 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/CHANGELOG.md +46 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/LICENSE-strokesvg.txt +115 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/OFL.txt +93 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/README.md +30 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/demo.html +40 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/index.js +749 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/strokes-CHANGES.md +20 -0
- package/vendor/components/sha256/9043427ed434c76fba5b11ddd863c40d99b6157e194cfc729895cbaa4940496c/CHANGELOG.md +40 -0
- package/vendor/components/sha256/9043427ed434c76fba5b11ddd863c40d99b6157e194cfc729895cbaa4940496c/README.md +36 -0
- package/vendor/components/sha256/9043427ed434c76fba5b11ddd863c40d99b6157e194cfc729895cbaa4940496c/demo.html +52 -0
- package/vendor/components/sha256/9043427ed434c76fba5b11ddd863c40d99b6157e194cfc729895cbaa4940496c/index.js +268 -0
- package/vendor/components/sha256/9bec862c19d5442f80a2a548a5c24911219469332a6b7fc63689a56f1f3209f4/CHANGELOG.md +31 -0
- package/vendor/components/sha256/9bec862c19d5442f80a2a548a5c24911219469332a6b7fc63689a56f1f3209f4/README.md +46 -0
- package/vendor/components/sha256/9bec862c19d5442f80a2a548a5c24911219469332a6b7fc63689a56f1f3209f4/demo.html +112 -0
- package/vendor/components/sha256/9bec862c19d5442f80a2a548a5c24911219469332a6b7fc63689a56f1f3209f4/index.js +481 -0
- package/vendor/components/sha256/9cf9789f26ceaae205d48bb083e823e768413e3b2227f87de09e3cde2105a68b/CHANGELOG.md +36 -0
- package/vendor/components/sha256/9cf9789f26ceaae205d48bb083e823e768413e3b2227f87de09e3cde2105a68b/README.md +73 -0
- package/vendor/components/sha256/9cf9789f26ceaae205d48bb083e823e768413e3b2227f87de09e3cde2105a68b/demo.html +76 -0
- package/vendor/components/sha256/9cf9789f26ceaae205d48bb083e823e768413e3b2227f87de09e3cde2105a68b/index.js +805 -0
- package/vendor/components/sha256/a034214e470de8f6fa3032f65c8534c87862859525105bdfe94e347ad6a33587/CHANGELOG.md +24 -0
- package/vendor/components/sha256/a034214e470de8f6fa3032f65c8534c87862859525105bdfe94e347ad6a33587/README.md +35 -0
- package/vendor/components/sha256/a034214e470de8f6fa3032f65c8534c87862859525105bdfe94e347ad6a33587/demo.html +53 -0
- package/vendor/components/sha256/a034214e470de8f6fa3032f65c8534c87862859525105bdfe94e347ad6a33587/index.js +481 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/CHANGELOG.md +41 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/LICENSE-strokesvg.txt +115 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/OFL.txt +93 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/README.md +33 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/demo.html +40 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/index.js +749 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/strokes-CHANGES.md +20 -0
- package/vendor/components/sha256/a6486154cbfe25c500a64cbb2128be45c2e2365e848c34d4c5c10e9a93f6e73c/CHANGELOG.md +35 -0
- package/vendor/components/sha256/a6486154cbfe25c500a64cbb2128be45c2e2365e848c34d4c5c10e9a93f6e73c/README.md +35 -0
- package/vendor/components/sha256/a6486154cbfe25c500a64cbb2128be45c2e2365e848c34d4c5c10e9a93f6e73c/demo.html +53 -0
- package/vendor/components/sha256/a6486154cbfe25c500a64cbb2128be45c2e2365e848c34d4c5c10e9a93f6e73c/index.js +521 -0
- package/vendor/components/sha256/a6ad6867e21b4ffab426919d62f4293cbb447c7307f8f92e4a8c8d7c285fca6a/CHANGELOG.md +32 -0
- package/vendor/components/sha256/a6ad6867e21b4ffab426919d62f4293cbb447c7307f8f92e4a8c8d7c285fca6a/README.md +39 -0
- package/vendor/components/sha256/a6ad6867e21b4ffab426919d62f4293cbb447c7307f8f92e4a8c8d7c285fca6a/demo.html +70 -0
- package/vendor/components/sha256/a6ad6867e21b4ffab426919d62f4293cbb447c7307f8f92e4a8c8d7c285fca6a/index.js +166 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/CHANGELOG.md +56 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/README.md +35 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/demo.html +57 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/ABCJS-ADAPTER.md +101 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/LICENSE-abcjs.txt +21 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/chords.json +89 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/doremi.json +261 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/extras.json +192 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/kaeru.json +521 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/rhythm.json +248 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/ties.json +360 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/index.js +508 -0
- package/vendor/components/sha256/ae4f864445dff17a19df30c528cb44741558217080f8e6563e0c364025a4d0a6/CHANGELOG.md +31 -0
- package/vendor/components/sha256/ae4f864445dff17a19df30c528cb44741558217080f8e6563e0c364025a4d0a6/README.md +34 -0
- package/vendor/components/sha256/ae4f864445dff17a19df30c528cb44741558217080f8e6563e0c364025a4d0a6/demo.html +77 -0
- package/vendor/components/sha256/ae4f864445dff17a19df30c528cb44741558217080f8e6563e0c364025a4d0a6/index.js +222 -0
- package/vendor/components/sha256/b9ee9d0f48ab61977d3aa618e6155ccc3453dbf452235f438fa15db6f554f961/CHANGELOG.md +30 -0
- package/vendor/components/sha256/b9ee9d0f48ab61977d3aa618e6155ccc3453dbf452235f438fa15db6f554f961/README.md +50 -0
- package/vendor/components/sha256/b9ee9d0f48ab61977d3aa618e6155ccc3453dbf452235f438fa15db6f554f961/demo.html +61 -0
- package/vendor/components/sha256/b9ee9d0f48ab61977d3aa618e6155ccc3453dbf452235f438fa15db6f554f961/index.js +171 -0
- package/vendor/components/sha256/bd590a6619f80d659299e4e558f770e75244360450939d504a4eaf7989b0eb97/README.md +21 -0
- package/vendor/components/sha256/bd590a6619f80d659299e4e558f770e75244360450939d504a4eaf7989b0eb97/index.js +93 -0
- package/vendor/components/sha256/bd79435195d9657ad2cb690b49da192bbd20bf1fe25088ba63988dbacafa6f3d/CHANGELOG.md +18 -0
- package/vendor/components/sha256/bd79435195d9657ad2cb690b49da192bbd20bf1fe25088ba63988dbacafa6f3d/README.md +21 -0
- package/vendor/components/sha256/bd79435195d9657ad2cb690b49da192bbd20bf1fe25088ba63988dbacafa6f3d/demo.html +32 -0
- package/vendor/components/sha256/bd79435195d9657ad2cb690b49da192bbd20bf1fe25088ba63988dbacafa6f3d/index.js +53 -0
- package/vendor/components/sha256/be709cea3ba3d0a69138d4c55796f59f6322d97ad0bb8c3a75c3e9fcae5a0419/CHANGELOG.md +20 -0
- package/vendor/components/sha256/be709cea3ba3d0a69138d4c55796f59f6322d97ad0bb8c3a75c3e9fcae5a0419/README.md +40 -0
- package/vendor/components/sha256/be709cea3ba3d0a69138d4c55796f59f6322d97ad0bb8c3a75c3e9fcae5a0419/demo.html +92 -0
- package/vendor/components/sha256/be709cea3ba3d0a69138d4c55796f59f6322d97ad0bb8c3a75c3e9fcae5a0419/index.js +399 -0
- package/vendor/components/sha256/c252d5ceed6735b7ca8095ac8ef035dfc79f8492b2624d7d2eb94d2a27fafe2b/CHANGELOG.md +28 -0
- package/vendor/components/sha256/c252d5ceed6735b7ca8095ac8ef035dfc79f8492b2624d7d2eb94d2a27fafe2b/README.md +36 -0
- package/vendor/components/sha256/c252d5ceed6735b7ca8095ac8ef035dfc79f8492b2624d7d2eb94d2a27fafe2b/demo.html +70 -0
- package/vendor/components/sha256/c252d5ceed6735b7ca8095ac8ef035dfc79f8492b2624d7d2eb94d2a27fafe2b/index.js +179 -0
- package/vendor/components/sha256/c882093b0dc9215cf79d8f42afc5db46dce07c8b677f85148a3efa7355d7221b/CHANGELOG.md +25 -0
- package/vendor/components/sha256/c882093b0dc9215cf79d8f42afc5db46dce07c8b677f85148a3efa7355d7221b/README.md +32 -0
- package/vendor/components/sha256/c882093b0dc9215cf79d8f42afc5db46dce07c8b677f85148a3efa7355d7221b/demo.html +54 -0
- package/vendor/components/sha256/c882093b0dc9215cf79d8f42afc5db46dce07c8b677f85148a3efa7355d7221b/index.js +251 -0
- package/vendor/components/sha256/cd714d22f82d64c80db8fdef33ca03aa618803e8114662ee2692fc7c6ac7168c/CHANGELOG.md +34 -0
- package/vendor/components/sha256/cd714d22f82d64c80db8fdef33ca03aa618803e8114662ee2692fc7c6ac7168c/README.md +35 -0
- package/vendor/components/sha256/cd714d22f82d64c80db8fdef33ca03aa618803e8114662ee2692fc7c6ac7168c/demo.html +69 -0
- package/vendor/components/sha256/cd714d22f82d64c80db8fdef33ca03aa618803e8114662ee2692fc7c6ac7168c/index.js +244 -0
- package/vendor/components/sha256/d0fbcd5e36c0f38c2d8352acee060e783b58cd2ab1ff0f9e7a60da4b2a6e3232/CHANGELOG.md +19 -0
- package/vendor/components/sha256/d0fbcd5e36c0f38c2d8352acee060e783b58cd2ab1ff0f9e7a60da4b2a6e3232/README.md +44 -0
- package/vendor/components/sha256/d0fbcd5e36c0f38c2d8352acee060e783b58cd2ab1ff0f9e7a60da4b2a6e3232/demo.html +44 -0
- package/vendor/components/sha256/d0fbcd5e36c0f38c2d8352acee060e783b58cd2ab1ff0f9e7a60da4b2a6e3232/index.js +334 -0
- package/vendor/components/sha256/d159f55bb5a72bc67c4ffa856bf9e1735d3c37f5cad9673accffc1e1953182e0/CHANGELOG.md +37 -0
- package/vendor/components/sha256/d159f55bb5a72bc67c4ffa856bf9e1735d3c37f5cad9673accffc1e1953182e0/README.md +43 -0
- package/vendor/components/sha256/d159f55bb5a72bc67c4ffa856bf9e1735d3c37f5cad9673accffc1e1953182e0/demo.html +75 -0
- package/vendor/components/sha256/d159f55bb5a72bc67c4ffa856bf9e1735d3c37f5cad9673accffc1e1953182e0/index.js +348 -0
- package/vendor/components/sha256/d29e8fbfd371edf4dea02996c8b43028af511a5f1c212e3b5d89fff68a54e55e/CHANGELOG.md +20 -0
- package/vendor/components/sha256/d29e8fbfd371edf4dea02996c8b43028af511a5f1c212e3b5d89fff68a54e55e/README.md +39 -0
- package/vendor/components/sha256/d29e8fbfd371edf4dea02996c8b43028af511a5f1c212e3b5d89fff68a54e55e/demo.html +70 -0
- package/vendor/components/sha256/d29e8fbfd371edf4dea02996c8b43028af511a5f1c212e3b5d89fff68a54e55e/index.js +134 -0
- package/vendor/components/sha256/d4159ba1206d094364b7735750e5e2532aeabbc299e0d6858e3a0edb84495e11/README.md +22 -0
- package/vendor/components/sha256/d4159ba1206d094364b7735750e5e2532aeabbc299e0d6858e3a0edb84495e11/index.js +59 -0
- package/vendor/components/sha256/d92842c606795528d1246ddb050ac275e1b72659629185750a6e9ac7fdb763a3/README.md +20 -0
- package/vendor/components/sha256/d92842c606795528d1246ddb050ac275e1b72659629185750a6e9ac7fdb763a3/index.js +162 -0
- package/vendor/components/sha256/de611e2477042b14eb9c04bb98ad0bbe6d7b44ca829213dd1a7a2b94d8f946ae/CHANGELOG.md +33 -0
- package/vendor/components/sha256/de611e2477042b14eb9c04bb98ad0bbe6d7b44ca829213dd1a7a2b94d8f946ae/README.md +46 -0
- package/vendor/components/sha256/de611e2477042b14eb9c04bb98ad0bbe6d7b44ca829213dd1a7a2b94d8f946ae/demo.html +43 -0
- package/vendor/components/sha256/de611e2477042b14eb9c04bb98ad0bbe6d7b44ca829213dd1a7a2b94d8f946ae/index.js +278 -0
- package/vendor/components/sha256/de90044c2961a30c88570e41d0c41bfc5037fe691f6f81e12d8e9d3545cd6ec4/CHANGELOG.md +15 -0
- package/vendor/components/sha256/de90044c2961a30c88570e41d0c41bfc5037fe691f6f81e12d8e9d3545cd6ec4/README.md +25 -0
- package/vendor/components/sha256/de90044c2961a30c88570e41d0c41bfc5037fe691f6f81e12d8e9d3545cd6ec4/demo.html +48 -0
- package/vendor/components/sha256/de90044c2961a30c88570e41d0c41bfc5037fe691f6f81e12d8e9d3545cd6ec4/index.js +88 -0
- package/vendor/components/sha256/de9607f86221006e7bad43f1f661c751d9a6f8f9c62da5c7e0d7f1249b9afcd6/README.md +25 -0
- package/vendor/components/sha256/de9607f86221006e7bad43f1f661c751d9a6f8f9c62da5c7e0d7f1249b9afcd6/index.js +122 -0
- package/vendor/components/sha256/e6b022135d0a0bd85a508404f46005986b14d0d175af7ca54b4d024b1e490318/CHANGELOG.md +20 -0
- package/vendor/components/sha256/e6b022135d0a0bd85a508404f46005986b14d0d175af7ca54b4d024b1e490318/README.md +23 -0
- package/vendor/components/sha256/e6b022135d0a0bd85a508404f46005986b14d0d175af7ca54b4d024b1e490318/demo.html +236 -0
- package/vendor/components/sha256/e6b022135d0a0bd85a508404f46005986b14d0d175af7ca54b4d024b1e490318/index.js +572 -0
- package/vendor/components/sha256/e6bbe784ee452d52d534b8fb3a0924e65c49bbb5926139ef5eabd9193500b357/CHANGELOG.md +29 -0
- package/vendor/components/sha256/e6bbe784ee452d52d534b8fb3a0924e65c49bbb5926139ef5eabd9193500b357/README.md +23 -0
- package/vendor/components/sha256/e6bbe784ee452d52d534b8fb3a0924e65c49bbb5926139ef5eabd9193500b357/demo.html +33 -0
- package/vendor/components/sha256/e6bbe784ee452d52d534b8fb3a0924e65c49bbb5926139ef5eabd9193500b357/index.js +121 -0
- package/vendor/components/sha256/eb5efa15920d9883af15d105cc0f7a9b2c781d792faae34a43d44738138b219f/CHANGELOG.md +29 -0
- package/vendor/components/sha256/eb5efa15920d9883af15d105cc0f7a9b2c781d792faae34a43d44738138b219f/README.md +32 -0
- package/vendor/components/sha256/eb5efa15920d9883af15d105cc0f7a9b2c781d792faae34a43d44738138b219f/demo.html +56 -0
- package/vendor/components/sha256/eb5efa15920d9883af15d105cc0f7a9b2c781d792faae34a43d44738138b219f/index.js +232 -0
- package/vendor/components/sha256/ebded96e5827ecf359b73ac0d50a807227d9a06294bd5dabc84263e32c0eeebe/CHANGELOG.md +25 -0
- package/vendor/components/sha256/ebded96e5827ecf359b73ac0d50a807227d9a06294bd5dabc84263e32c0eeebe/README.md +71 -0
- package/vendor/components/sha256/ebded96e5827ecf359b73ac0d50a807227d9a06294bd5dabc84263e32c0eeebe/demo.html +76 -0
- package/vendor/components/sha256/ebded96e5827ecf359b73ac0d50a807227d9a06294bd5dabc84263e32c0eeebe/index.js +777 -0
- package/vendor/components/sha256/ed44804fc14b2755a82960d94cb0322858732ad789fd9a46704ee88955bd65e6/CHANGELOG.md +33 -0
- package/vendor/components/sha256/ed44804fc14b2755a82960d94cb0322858732ad789fd9a46704ee88955bd65e6/README.md +28 -0
- package/vendor/components/sha256/ed44804fc14b2755a82960d94cb0322858732ad789fd9a46704ee88955bd65e6/demo.html +236 -0
- package/vendor/components/sha256/ed44804fc14b2755a82960d94cb0322858732ad789fd9a46704ee88955bd65e6/index.js +600 -0
- package/vendor/components/sha256/ee8519d664179e6b6bb6d2f8cc5b1c07a0ebf3871a8681d28ddd08fecd5f3388/CHANGELOG.md +16 -0
- package/vendor/components/sha256/ee8519d664179e6b6bb6d2f8cc5b1c07a0ebf3871a8681d28ddd08fecd5f3388/README.md +38 -0
- package/vendor/components/sha256/ee8519d664179e6b6bb6d2f8cc5b1c07a0ebf3871a8681d28ddd08fecd5f3388/demo.html +115 -0
- package/vendor/components/sha256/ee8519d664179e6b6bb6d2f8cc5b1c07a0ebf3871a8681d28ddd08fecd5f3388/index.js +361 -0
- package/vendor/components/sha256/ef969fa27f1e11aa52a174874292366c7c8201c7c0d8236a7aef7d7eacf6a177/CHANGELOG.md +27 -0
- package/vendor/components/sha256/ef969fa27f1e11aa52a174874292366c7c8201c7c0d8236a7aef7d7eacf6a177/README.md +27 -0
- package/vendor/components/sha256/ef969fa27f1e11aa52a174874292366c7c8201c7c0d8236a7aef7d7eacf6a177/demo.html +42 -0
- package/vendor/components/sha256/ef969fa27f1e11aa52a174874292366c7c8201c7c0d8236a7aef7d7eacf6a177/index.js +233 -0
- package/vendor/components/sha256/f268cf809438c8af63a42f9c9121110fc7263e4d705c40c6206ce46cf7ec167b/README.md +23 -0
- package/vendor/components/sha256/f268cf809438c8af63a42f9c9121110fc7263e4d705c40c6206ce46cf7ec167b/index.js +180 -0
- package/vendor/components/sha256/f3f55f5ee11ebc66656ca40ff23cd2df6a48f09a2380469f96f8f48033ddf2f7/CHANGELOG.md +31 -0
- package/vendor/components/sha256/f3f55f5ee11ebc66656ca40ff23cd2df6a48f09a2380469f96f8f48033ddf2f7/README.md +36 -0
- package/vendor/components/sha256/f3f55f5ee11ebc66656ca40ff23cd2df6a48f09a2380469f96f8f48033ddf2f7/demo.html +50 -0
- package/vendor/components/sha256/f3f55f5ee11ebc66656ca40ff23cd2df6a48f09a2380469f96f8f48033ddf2f7/index.js +263 -0
- package/vendor/components/sha256/fa8c1e548234bdbfa401bb4b085c5ef24d607a006c377c8c1cf3bcfc52427a5e/CHANGELOG.md +20 -0
- package/vendor/components/sha256/fa8c1e548234bdbfa401bb4b085c5ef24d607a006c377c8c1cf3bcfc52427a5e/README.md +39 -0
- package/vendor/components/sha256/fa8c1e548234bdbfa401bb4b085c5ef24d607a006c377c8c1cf3bcfc52427a5e/demo.html +66 -0
- package/vendor/components/sha256/fa8c1e548234bdbfa401bb4b085c5ef24d607a006c377c8c1cf3bcfc52427a5e/index.js +258 -0
- package/vendor/components/sha256/fadd24868e2730ec14b8f3f1e9cb75b8577a48b8d71beaa12ef089f7a3ba0a7d/README.md +22 -0
- package/vendor/components/sha256/fadd24868e2730ec14b8f3f1e9cb75b8577a48b8d71beaa12ef089f7a3ba0a7d/index.js +37 -0
- package/vendor/components/sha256/faf6a2f0b5df589639de624e75c5b20594f517e4426f6415d152809249b00b92/README.md +19 -0
- package/vendor/components/sha256/faf6a2f0b5df589639de624e75c5b20594f517e4426f6415d152809249b00b92/index.js +200 -0
- package/vendor/components/sha256/fd07adeb4b775e139092dd69a3fcbca4528d08e67be6b9e9cf53d4fd06be775b/CHANGELOG.md +25 -0
- package/vendor/components/sha256/fd07adeb4b775e139092dd69a3fcbca4528d08e67be6b9e9cf53d4fd06be775b/README.md +32 -0
- package/vendor/components/sha256/fd07adeb4b775e139092dd69a3fcbca4528d08e67be6b9e9cf53d4fd06be775b/demo.html +51 -0
- package/vendor/components/sha256/fd07adeb4b775e139092dd69a3fcbca4528d08e67be6b9e9cf53d4fd06be775b/index.js +270 -0
- package/vendor/components/sha256/ffac8bd95044aeb032b20dc8412ced70d09759d993955ef66697d4f2aa7f97a5/CHANGELOG.md +19 -0
- package/vendor/components/sha256/ffac8bd95044aeb032b20dc8412ced70d09759d993955ef66697d4f2aa7f97a5/README.md +34 -0
- package/vendor/components/sha256/ffac8bd95044aeb032b20dc8412ced70d09759d993955ef66697d4f2aa7f97a5/demo.html +60 -0
- package/vendor/components/sha256/ffac8bd95044aeb032b20dc8412ced70d09759d993955ef66697d4f2aa7f97a5/index.js +209 -0
- package/vendor/components-2/manifest-2.2.0.json +1868 -0
- package/vendor/csl/SOURCE.json +17 -0
- package/vendor/csl/locales/locales-en-US.xml +864 -0
- package/vendor/csl/locales/locales-ja-JP.xml +676 -0
- package/vendor/csl/styles/apa.csl +2278 -0
- package/vendor/csl/styles/ieee.csl +519 -0
- package/vendor/csl/styles/sist02.csl +273 -0
- package/vendor/egatari-spec/SOURCE.json +3 -3
- package/vendor/egatari-spec/schema/deck-meta.schema.json +6 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="ja" data-theme="default">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>m-fishbone の見本</title>
|
|
7
|
+
<!-- 組み方:node kit/build.mjs components/fishbone/demo.html -o components/fishbone/out/demo.html(配送の例は架空) -->
|
|
8
|
+
<style>
|
|
9
|
+
.vcap{font-size:27px;color:var(--muted);text-align:center;margin-bottom:6px}
|
|
10
|
+
</style>
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
<div id="stage">
|
|
14
|
+
|
|
15
|
+
<section class="slide">
|
|
16
|
+
<h2>配送の遅れの原因(架空)</h2>
|
|
17
|
+
<div class="body">
|
|
18
|
+
<m-fishbone aria-label="配送の遅れの特性要因図" style="height:440px">
|
|
19
|
+
<script type="application/json">{
|
|
20
|
+
"effect": {"label": "配送の遅れ", "note": "1 日 12 件"},
|
|
21
|
+
"nodes": [
|
|
22
|
+
{"id": "p", "label": "人"},
|
|
23
|
+
{"id": "p1", "label": "人手が足りない", "parent": "p"},
|
|
24
|
+
{"id": "p11", "label": "繁忙期の採用が遅い", "parent": "p1"},
|
|
25
|
+
{"id": "p2", "label": "道に慣れていない", "parent": "p"},
|
|
26
|
+
{"id": "m", "label": "機械"},
|
|
27
|
+
{"id": "m1", "label": "車の故障が多い", "parent": "m"},
|
|
28
|
+
{"id": "m2", "label": "端末の反応が遅い", "parent": "m"},
|
|
29
|
+
{"id": "h", "label": "方法"},
|
|
30
|
+
{"id": "h1", "label": "積み込みの順が悪い", "parent": "h", "tone": "emph"},
|
|
31
|
+
{"id": "h2", "label": "経路を手で決めている", "parent": "h"},
|
|
32
|
+
{"id": "z", "label": "材料"},
|
|
33
|
+
{"id": "z1", "label": "伝票の記入漏れ", "parent": "z"},
|
|
34
|
+
{"id": "z2", "label": "箱の大きさがばらばら", "parent": "z"}
|
|
35
|
+
]
|
|
36
|
+
}</script>
|
|
37
|
+
</m-fishbone>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="concl"><span>→ 人・機械・方法・材料(4M)に分けて原因を洗い出す</span></div>
|
|
40
|
+
</section>
|
|
41
|
+
|
|
42
|
+
<section class="slide">
|
|
43
|
+
<h2>植物が育たないのはなぜ(order="effect-first")</h2>
|
|
44
|
+
<div class="body">
|
|
45
|
+
<m-fishbone order="effect-first" aria-label="植物が育たない原因" style="height:440px">
|
|
46
|
+
<script type="application/json">{
|
|
47
|
+
"effect": {"label": "植物が\n育たない"},
|
|
48
|
+
"nodes": [
|
|
49
|
+
{"id": "l", "label": "光"},
|
|
50
|
+
{"id": "l1", "label": "日当たりが悪い", "parent": "l"},
|
|
51
|
+
{"id": "l2", "label": "光の当たる時間が短い", "parent": "l"},
|
|
52
|
+
{"id": "w", "label": "水"},
|
|
53
|
+
{"id": "w1", "label": "水が足りない", "parent": "w"},
|
|
54
|
+
{"id": "w2", "label": "水のやりすぎ", "parent": "w"},
|
|
55
|
+
{"id": "w21", "label": "根が腐る", "parent": "w2"},
|
|
56
|
+
{"id": "s", "label": "土"},
|
|
57
|
+
{"id": "s1", "label": "肥料が足りない", "parent": "s"},
|
|
58
|
+
{"id": "s2", "label": "水はけが悪い", "parent": "s"},
|
|
59
|
+
{"id": "t", "label": "温度"},
|
|
60
|
+
{"id": "t1", "label": "気温が低い", "parent": "t", "note": "15 ℃ 未満"},
|
|
61
|
+
{"id": "t2", "label": "昼と夜の差が大きい", "parent": "t"}
|
|
62
|
+
]
|
|
63
|
+
}</script>
|
|
64
|
+
</m-fishbone>
|
|
65
|
+
</div>
|
|
66
|
+
<div class="concl"><span>→ 結果を先に置き、光・水・土・温度の順に原因を足す</span></div>
|
|
67
|
+
</section>
|
|
68
|
+
|
|
69
|
+
<section class="slide">
|
|
70
|
+
<h2>見せ方の種類(variant)</h2>
|
|
71
|
+
<div class="body">
|
|
72
|
+
<div style="display:grid;grid-template-columns:1fr 1fr 1fr;gap:28px">
|
|
73
|
+
<div><div class="vcap">箱と字、それから線(fade、既定)</div>
|
|
74
|
+
<m-fishbone variant="fade" aria-label="遅刻の原因(fade)" style="height:340px">
|
|
75
|
+
<script type="application/json">{"effect": {"label": "遅刻"}, "nodes": [{"id": "a", "label": "自分"}, {"id": "a1", "label": "寝坊", "parent": "a"}, {"id": "a2", "label": "準備が遅い", "parent": "a"}, {"id": "b", "label": "交通"}, {"id": "b1", "label": "電車の遅れ", "parent": "b"}, {"id": "b2", "label": "道の混雑", "parent": "b"}]}</script>
|
|
76
|
+
</m-fishbone></div>
|
|
77
|
+
<div><div class="vcap">線を引いてから箱と字(draw)</div>
|
|
78
|
+
<m-fishbone variant="draw" aria-label="遅刻の原因(draw)" style="height:340px">
|
|
79
|
+
<script type="application/json">{"effect": {"label": "遅刻"}, "nodes": [{"id": "a", "label": "自分"}, {"id": "a1", "label": "寝坊", "parent": "a"}, {"id": "a2", "label": "準備が遅い", "parent": "a"}, {"id": "b", "label": "交通"}, {"id": "b1", "label": "電車の遅れ", "parent": "b"}, {"id": "b2", "label": "道の混雑", "parent": "b"}]}</script>
|
|
80
|
+
</m-fishbone></div>
|
|
81
|
+
<div><div class="vcap">背骨の側から伸びる(grow)</div>
|
|
82
|
+
<m-fishbone variant="grow" aria-label="遅刻の原因(grow)" style="height:340px">
|
|
83
|
+
<script type="application/json">{"effect": {"label": "遅刻"}, "nodes": [{"id": "a", "label": "自分"}, {"id": "a1", "label": "寝坊", "parent": "a"}, {"id": "a2", "label": "準備が遅い", "parent": "a"}, {"id": "b", "label": "交通"}, {"id": "b1", "label": "電車の遅れ", "parent": "b"}, {"id": "b2", "label": "道の混雑", "parent": "b"}]}</script>
|
|
84
|
+
</m-fishbone></div>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
<div class="concl"><span>→ 書かなければ最初の見せ方(fade)になる</span></div>
|
|
88
|
+
</section>
|
|
89
|
+
|
|
90
|
+
</div>
|
|
91
|
+
</body>
|
|
92
|
+
</html>
|
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
// m-fishbone:原因と結果の図(特性要因図・フィッシュボーン図)を、骨 1 本ずつ組み立てる
|
|
2
|
+
// <m-fishbone style="height:450px"><script type="application/json">
|
|
3
|
+
// {"effect": {"label": "配送の遅れ"},
|
|
4
|
+
// "nodes": [{"id": "p", "label": "人"}, {"id": "p1", "label": "人手が足りない", "parent": "p"}, …]}
|
|
5
|
+
// (JSON の終わり)</m-fishbone>
|
|
6
|
+
// 座標は書かない(docs/conventions.md §2)。parent のない節が大骨(分類:人・機械・方法・材料など)、その子が原因(中骨)、孫が細かい原因(小骨)。3 段まで
|
|
7
|
+
// 頭(結果の箱)は右、背骨は横。大骨は上下に交互に、斜めに付く。原因は大骨に付く横の線の上に書き、細かい原因は原因の線から大骨と平行に下ろした線に付ける
|
|
8
|
+
// 段階:order="causes-first"(既定:大骨 1 本ずつ(その原因と一緒に)、最後に頭)か order="effect-first"(頭と背骨、それから大骨 1 本ずつ)。節の step が勝つ
|
|
9
|
+
// edges:原因どうしなど、ほかのつながり(破線、矢印つき)。段階は両端の遅いほう
|
|
10
|
+
// 字の大きさは要素の大きさから決め(27 px から)、入らなければ 24 px まで縮める。それでも入らなければ、字は 24 px のまま
|
|
11
|
+
// 大骨の間を詰め、要素の箱からはみ出して ctx.report("size", …)(足りない px)
|
|
12
|
+
// 見せ方(docs/conventions.md §2.5):fade(箱と字が下から 12 px 上がりながら現れてから線を引く、既定)・draw(線を先に引き、
|
|
13
|
+
// その先に箱と字が現れる)・grow(分類の箱が背骨の側から 12 px 寄りながら 0.92 → 1 に、原因の字が大骨の側から 12 px 寄って出る)。
|
|
14
|
+
// 箱と字の動きはどれも 12 px まで。段階の数・長さ・最後の中身はどれも同じ
|
|
15
|
+
// 2.0(Egatari spec §6.1 の部品):base の MotionElement・el・mtext・prog・lerp・variant・previewOpacity を使い、プレイヤーのグローバルは使わない。
|
|
16
|
+
// 式(tex)は組み立てのときに KaTeX で描く(spec §6.2):build.fields の effect.tex・nodes[].tex を作り手が描いて texHtml を足し、
|
|
17
|
+
// この部品は markup-reader で決まった要素と属性だけを読んで置く(再生のときに KaTeX は動かない)。描いた結果がなければ tex を字のまま出して知らせる。
|
|
18
|
+
// 入らないときは ctx.report("size", "[fishbone] …") で知らせる(1.x の console.warn の代わり)
|
|
19
|
+
egatariParts.define({name: "fishbone", version: "2.0.2", requires: {base: "1.1.0", "markup-reader": "1.0.1"}, element: "m-fishbone"}, function(deps){
|
|
20
|
+
"use strict";
|
|
21
|
+
var base = deps.base, MR = deps["markup-reader"];
|
|
22
|
+
var Part = class extends base.MotionElement {
|
|
23
|
+
static partName = "fishbone"; // the registry name (define meta name), for report prefixes
|
|
24
|
+
// 組み立てのときに描く欄(spec §6.2)。式の意味は字(tex)でも持つので、KaTeX の出力は HTML だけ
|
|
25
|
+
static build = {fields: {"effect.tex": "katex", "nodes[].tex": "katex"}, options: {katex: {output: "html"}}};
|
|
26
|
+
static variants = ["fade", "draw", "grow"];
|
|
27
|
+
// データの形(kit/shape.js)
|
|
28
|
+
static shape = {
|
|
29
|
+
schema: {type: "object", additionalProperties: false, required: ["effect", "nodes"], properties: {
|
|
30
|
+
effect: {type: "object", properties: {label: {type: "string"}, tex: {type: "string"}, texHtml: {type: "string"}, note: {type: "string"}, tone: {type: "string"}, step: {type: "integer"}, at: {type: "number"}}},
|
|
31
|
+
nodes: {type: "array", minItems: 1, items: {type: "object", required: ["id"], properties: {
|
|
32
|
+
id: {type: ["string", "integer"]}, label: {type: "string"}, tex: {type: "string"}, texHtml: {type: "string"}, note: {type: "string"}, tone: {type: "string"},
|
|
33
|
+
parent: {type: ["string", "integer"]}, step: {type: "integer"}, at: {type: "number"}}}},
|
|
34
|
+
edges: {type: "array", items: {type: "object", required: ["from", "to"], properties: {
|
|
35
|
+
from: {type: ["string", "integer"]}, to: {type: ["string", "integer"]}, label: {type: "string"}, tone: {type: "string"}, dash: {type: "boolean"},
|
|
36
|
+
step: {type: "integer"}, at: {type: "number"}}}},
|
|
37
|
+
renderers: {type: "object"}}},
|
|
38
|
+
example: {effect: {label: "配送の遅れ"}, nodes: [{id: "p", label: "人"}, {id: "p1", label: "人手が足りない", parent: "p"}, {id: "m", label: "機械"}, {id: "m1", label: "車の故障", parent: "m"}]},
|
|
39
|
+
note: "parent のない節が大骨(分類)、その子が原因、孫が細かい原因(3 段まで)",
|
|
40
|
+
};
|
|
41
|
+
static props = {
|
|
42
|
+
order: {type: "string", default: "causes-first", doc: "段階の順:causes-first(大骨 1 本ずつ、最後に頭、既定)か effect-first(頭と背骨が先)"},
|
|
43
|
+
size: {type: "number", default: 0, doc: "箱の字の大きさ(px。0 = 27 から入るまで 24 まで縮める)"},
|
|
44
|
+
fade: {type: "number", default: 0.45, doc: "箱が現れる秒数"},
|
|
45
|
+
draw: {type: "number", default: 0.5, doc: "線を引く秒数"},
|
|
46
|
+
};
|
|
47
|
+
// 骨の形と段階(mount の前にも段階の数のために使う)
|
|
48
|
+
plan(){
|
|
49
|
+
if (this._plan) return this._plan;
|
|
50
|
+
var d = this.data || {}, P = this.props, byId = {}, cats = [], notes = this._notes = []; // データの問題:mount が ctx.report で知らせる
|
|
51
|
+
var nodes = (d.nodes || []).map(function(n){
|
|
52
|
+
var o = {n: n, kids: []};
|
|
53
|
+
if (byId[n.id]) notes.push("[fishbone] the id " + JSON.stringify(n.id) + " is used by more than one node (parent and edges refer to the last one; give each node its own id)");
|
|
54
|
+
byId[n.id] = o; return o;
|
|
55
|
+
});
|
|
56
|
+
nodes.forEach(function(o){
|
|
57
|
+
if (o.n.parent === undefined || o.n.parent === null) cats.push(o);
|
|
58
|
+
else if (!byId[o.n.parent]) throw new Error("m-fishbone: node " + JSON.stringify(o.n.id) + " has an unknown parent " + JSON.stringify(o.n.parent));
|
|
59
|
+
else byId[o.n.parent].kids.push(o);
|
|
60
|
+
});
|
|
61
|
+
if (!cats.length) throw new Error("m-fishbone: no main bone (a node without parent)");
|
|
62
|
+
var seen = 0;
|
|
63
|
+
cats.forEach(function(c){
|
|
64
|
+
(function walk(o, lv){
|
|
65
|
+
if (++seen > nodes.length) throw new Error("m-fishbone: the parents form a loop");
|
|
66
|
+
if (lv > 2) throw new Error("m-fishbone: " + JSON.stringify(o.n.id) + " is deeper than 3 levels (main bone, cause, sub-cause)");
|
|
67
|
+
o.lv = lv; o.kids.forEach(function(k){ k.par = o; walk(k, lv + 1); });
|
|
68
|
+
})(c, 0);
|
|
69
|
+
});
|
|
70
|
+
if (seen !== nodes.length) throw new Error("m-fishbone: the parents form a loop");
|
|
71
|
+
var ef = d.effect || {}, effFirst = P.order === "effect-first", n = cats.length;
|
|
72
|
+
var head = {n: ef, step: ef.step !== undefined ? ef.step : effFirst ? 1 : n + 1, at: ef.at || 0};
|
|
73
|
+
var spineStep = effFirst ? head.step : 1;
|
|
74
|
+
cats.forEach(function(c, i){
|
|
75
|
+
c.step = c.n.step !== undefined ? c.n.step : effFirst ? i + 2 : i + 1;
|
|
76
|
+
// 大骨の行:原因と、その下の細かい原因(上から下の順)
|
|
77
|
+
c.rows = [];
|
|
78
|
+
c.kids.forEach(function(k){ c.rows.push(k); k.kids.forEach(function(s){ c.rows.push(s); }); });
|
|
79
|
+
c.rows.forEach(function(r){ r.step = r.n.step !== undefined ? r.n.step : c.step; r.cat = c; });
|
|
80
|
+
});
|
|
81
|
+
var edges = (d.edges || []).map(function(e){
|
|
82
|
+
var a = byId[e.from], b = byId[e.to];
|
|
83
|
+
if (!a || !b) throw new Error("m-fishbone: edge to an unknown node " + JSON.stringify(a ? e.to : e.from));
|
|
84
|
+
return {e: e, a: a, b: b, step: e.step !== undefined ? e.step : Math.max(a.step, b.step)};
|
|
85
|
+
});
|
|
86
|
+
return (this._plan = {cats: cats, nodes: nodes, head: head, spineStep: spineStep, edges: edges, byId: byId});
|
|
87
|
+
}
|
|
88
|
+
get steps(){
|
|
89
|
+
if (this.getAttribute("steps") !== null) return +this.getAttribute("steps");
|
|
90
|
+
var p = this.plan(), m = Math.max(p.head.step, p.spineStep);
|
|
91
|
+
p.nodes.concat(p.edges).forEach(function(o){ m = Math.max(m, o.step); });
|
|
92
|
+
return m;
|
|
93
|
+
}
|
|
94
|
+
// 1 つのものが現れて線を引き終わるまで(どの見せ方でも同じ)
|
|
95
|
+
span(){ return this.props.fade * 0.6 + this.props.draw; }
|
|
96
|
+
mount(ctx){
|
|
97
|
+
var P = this.props, D = base, self = this, pl = this.plan(), sk = MR.sink(this, ctx);
|
|
98
|
+
this._notes.forEach(function(m){ ctx.report("data", m); });
|
|
99
|
+
this.variant = base.variant(this);
|
|
100
|
+
this.style.display = "block"; this.style.position = "relative";
|
|
101
|
+
var W = this.clientWidth, H = this.clientHeight;
|
|
102
|
+
var svg = D.el("svg", {viewBox: "0 0 " + W + " " + H, width: W, height: H, "aria-hidden": "true", style: "display:block;overflow:visible"}, this);
|
|
103
|
+
var root = D.el("g", {}, svg), gL = D.el("g", {}, root), gT = D.el("g", {}, root), gE = D.el("g", {}, root), gN = D.el("g", {}, root);
|
|
104
|
+
// 字の幅の見積もり(字の大きさ 1 あたり。base の textWidth:テーマの字で測った幅。*斜体* などの記号は数えない)
|
|
105
|
+
var est = function(s){ return D.textWidth(s, 1, {font: self, mark: true}); };
|
|
106
|
+
var texEst = function(s){ return Math.max(1, String(s).replace(/\\[a-zA-Z]+/g, "x").replace(/[{}^_\\ ]/g, "").length) * 0.62; };
|
|
107
|
+
var tones = {term: ["var(--term)", "var(--term-tint)", "var(--fg)"], emph: ["var(--emph)", "var(--emph-tint)", "var(--emph)"]};
|
|
108
|
+
var toneOf = function(t, dflt){
|
|
109
|
+
if (tones[t]) return tones[t];
|
|
110
|
+
if (/^(muted|accent2|series-[1-4])$/.test(t || "")) return ["var(--" + t + ")", "var(--bg)", "var(--" + t + ")"];
|
|
111
|
+
return tones[dflt || "term"];
|
|
112
|
+
};
|
|
113
|
+
var NS = 24, NLH = 30, cats = pl.cats, nc = cats.length, cols = Math.ceil(nc / 2);
|
|
114
|
+
var R = Math.max(1, Math.max.apply(null, cats.map(function(c){ return c.rows.length; })));
|
|
115
|
+
var M1 = 12, M2 = 14, TXT = 31; // 箱と最初の行の間、最後の行と背骨の間、字の行の高さ(字の上端から線まで)
|
|
116
|
+
// 大きさ s、行の高さ rh、傾き k(縦 1 px あたりの横)で 1 本の大骨を局所座標(背骨に付く点が原点)で測る
|
|
117
|
+
function box(n, s){
|
|
118
|
+
var lines = n.tex ? [n.tex] : String(n.label || "").split("\n");
|
|
119
|
+
var tw = n.tex ? texEst(n.tex) * s : Math.max.apply(null, lines.map(est)) * s;
|
|
120
|
+
var notes = n.note ? String(n.note).split("\n") : [];
|
|
121
|
+
return {lines: lines, w: Math.max(s * 2.4, tw + s * 1.3), h: (n.tex ? s * 1.5 : lines.length * s * 1.25) + s * 0.75,
|
|
122
|
+
notes: notes, nw: notes.length ? Math.max.apply(null, notes.map(est)) * NS : 0, nh: notes.length ? notes.length * NLH + 4 : 0};
|
|
123
|
+
}
|
|
124
|
+
function boneGeom(c, i, s, rh, k){
|
|
125
|
+
var up = i % 2 === 0, sg = up ? -1 : 1, cs = Math.max(24, s - 1), ss = 24;
|
|
126
|
+
var Lv = R * rh + M1 + M2, g = {up: up, sg: sg, Lv: Lv, k: k, cs: cs};
|
|
127
|
+
g.b = box(c.n, s);
|
|
128
|
+
var xo = -Lv * k;
|
|
129
|
+
g.outer = [xo, sg * Lv];
|
|
130
|
+
g.boxX = xo - g.b.w / 2; g.boxY = up ? -Lv - g.b.h : Lv;
|
|
131
|
+
var xb = function(v){ return -v * k; };
|
|
132
|
+
var lo = Math.min(g.boxX, xo - g.b.nw / 2), hi = Math.max(0, g.boxX + g.b.w, xo + g.b.nw / 2);
|
|
133
|
+
g.rows = [];
|
|
134
|
+
c.rows.forEach(function(o, r){
|
|
135
|
+
// 行 r の横の線の、背骨からの縦の距離 v(上の骨は外から内へ、下の骨は内から外へ並ぶ)。字は線の上(画面で上)に書く
|
|
136
|
+
var v = up ? Lv - M1 - (r + 1) * rh + 6 : M2 + (r + 1) * rh - 6, y = sg * v, sz = o.lv === 1 ? cs : ss;
|
|
137
|
+
// 字の幅:tex は字数から見積もる。note は後ろに続けて小さく(--muted)書く
|
|
138
|
+
var nw = o.n.note ? est(" " + o.n.note) * NS : 0, tw = (o.n.tex ? texEst(o.n.tex) * sz : est(o.n.label || "") * sz) + nw, x0, xe, mini = null;
|
|
139
|
+
if (o.lv === 1){ x0 = xb(v); xe = Math.min(xb(v), xb(v - sg * TXT)) - 10; }
|
|
140
|
+
else {
|
|
141
|
+
// 細かい原因:親の原因の線から、大骨と平行な線を下ろした先に付く
|
|
142
|
+
var pr = g.rows[c.rows.indexOf(o.par)], xp = xb(pr.v) - (40 + 30 * k), py = pr.y;
|
|
143
|
+
var xm = function(yy){ return xp + (up ? 1 : -1) * k * (yy - py); };
|
|
144
|
+
x0 = xm(y); xe = Math.min(xm(y), xm(y - TXT)) - 10;
|
|
145
|
+
pr.miniEnd = Math.max(pr.miniEnd || 0, y - py);
|
|
146
|
+
pr.mini = {x0: xp, xm: xm};
|
|
147
|
+
}
|
|
148
|
+
var xl = xe - tw - 8;
|
|
149
|
+
lo = Math.min(lo, xl); hi = Math.max(hi, x0);
|
|
150
|
+
g.rows.push({o: o, v: v, y: y, x0: x0, xe: xe, xl: xl, tw: tw, nw: nw, sz: sz});
|
|
151
|
+
});
|
|
152
|
+
g.lo = lo; g.hi = hi;
|
|
153
|
+
g.ext = Lv + g.b.h + g.b.nh; // 背骨からの縦の広がり
|
|
154
|
+
return g;
|
|
155
|
+
}
|
|
156
|
+
function layout(s, rh, k, cgap){
|
|
157
|
+
var geo = cats.map(function(c, i){ return boneGeom(c, i, s, rh, k); });
|
|
158
|
+
var hb = box(pl.head.n, s), xs = [], x = 0;
|
|
159
|
+
for (var j = 0; j < cols; j++){
|
|
160
|
+
var a = geo[2 * j], b = geo[2 * j + 1], lo = Math.min(a.lo, b ? b.lo : 0), hi = Math.max(a.hi, b ? b.hi : 0);
|
|
161
|
+
x = j === 0 ? -lo : x + cgap - lo;
|
|
162
|
+
xs.push(x); x += hi;
|
|
163
|
+
}
|
|
164
|
+
var tail = Math.min(0, xs[0] + Math.min(geo[0].outer[0], geo[1] ? geo[1].outer[0] : 0) - 24);
|
|
165
|
+
var spineEnd = x + Math.max(36, cgap), width = spineEnd + hb.w - tail;
|
|
166
|
+
var ext = Math.max.apply(null, geo.map(function(g){ return g.ext; }));
|
|
167
|
+
var hh = Math.max(ext * 2, hb.h + 2 * hb.nh);
|
|
168
|
+
return {geo: geo, hb: hb, xs: xs, tail: tail, spineEnd: spineEnd, width: width, height: hh, ext: ext};
|
|
169
|
+
}
|
|
170
|
+
// 入る大きさを探す:字(27 → 24 px)、行の高さ(52 → 40 px)、傾き(0.5 → 0.3)
|
|
171
|
+
// size:24 より小さい字は使わない(24 にする)
|
|
172
|
+
var sz0 = P.size;
|
|
173
|
+
if (sz0 && sz0 < 24){ ctx.report("attr", "[fishbone] size=\"" + this.getAttribute("size") + "\" is below 24 (text is at least 24px; 24 is used)"); sz0 = 24; }
|
|
174
|
+
var sizes = sz0 ? [sz0] : [27, 26, 25, 24], L = null, fit = true;
|
|
175
|
+
search: for (var si = 0; si < sizes.length; si++){
|
|
176
|
+
for (var rh = 52; rh >= 40; rh -= 2){
|
|
177
|
+
for (var k = 0.5; k >= 0.29; k -= 0.1){
|
|
178
|
+
var t = layout(sizes[si], rh, k, 28);
|
|
179
|
+
if (t.width <= W && t.height <= H){ L = t; L.s = sizes[si]; L.rh = rh; L.k = k; break search; }
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
if (!L){
|
|
184
|
+
// 24 px でも入らない:字は小さくせず、大骨の間を 12 px まで詰め、はみ出しのいちばん少ない形にする(中央に置き、両側へ同じだけはみ出す)
|
|
185
|
+
fit = false;
|
|
186
|
+
var s24 = sizes[sizes.length - 1], miss = function(t){ return Math.max(0, t.width - W) + Math.max(0, t.height - H); };
|
|
187
|
+
for (var cg0 = 28; cg0 >= 12; cg0 -= 4){ var t0 = layout(s24, 40, 0.3, cg0); if (!L || miss(t0) < miss(L)) L = t0; }
|
|
188
|
+
L.s = s24; L.rh = 40; L.k = 0.3;
|
|
189
|
+
ctx.report("size", "[fishbone] the diagram does not fit at " + s24 + " px; it overflows its box by " + Math.ceil(Math.max(0, L.width - W)) + " px across and " +
|
|
190
|
+
Math.ceil(Math.max(0, L.height - H)) + " px up and down (text is not made smaller). Use fewer causes per bone, shorter causes or a larger element");
|
|
191
|
+
}
|
|
192
|
+
// 横に余れば、大骨の間を広げる(80 px まで)
|
|
193
|
+
if (fit) for (var cg = 80; cg > 28; cg -= 4){ var t2 = layout(L.s, L.rh, L.k, cg); if (t2.width <= W){ t2.s = L.s; t2.rh = L.rh; t2.k = L.k; L = t2; break; } }
|
|
194
|
+
var s = L.s, ox = (W - L.width) / 2 - L.tail, oy = H / 2;
|
|
195
|
+
this.size = s;
|
|
196
|
+
var X = function(x){ return ox + x; }, Y = function(y){ return oy + y; };
|
|
197
|
+
var mkLine = function(parent, w, col){ return D.el("path", {d: "", fill: "none", stroke: col || "var(--muted)", "stroke-width": w, "stroke-linecap": "round", "stroke-linejoin": "round"}, parent); };
|
|
198
|
+
var boxText = function(g, b, n, x, y, c, sz){
|
|
199
|
+
var cx = x + b.w / 2, cy = y + b.h / 2;
|
|
200
|
+
if (n.tex) MR.texFrame(g, cx, cy + sz * 0.36, n, "tex", {size: sz, anchor: "middle", color: c[2], w: b.w, h: b.h}, sk).firstChild.style.verticalAlign = "top";
|
|
201
|
+
else {
|
|
202
|
+
var lh = sz * 1.25, y0 = cy - (b.lines.length - 1) * lh / 2 + sz * 0.36;
|
|
203
|
+
b.lines.forEach(function(t, j){ D.mtext(g, cx, y0 + j * lh, t, {"text-anchor": "middle", "font-size": sz, fill: c[2]}); });
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
// 頭(結果)
|
|
207
|
+
var hb = L.hb, hx = X(L.spineEnd), hy = Y(0) - hb.h / 2, hc = toneOf(pl.head.n.tone, "emph");
|
|
208
|
+
var H0 = this.head = {o: pl.head, g: D.el("g", {opacity: 0}, gN), x: hx, y: hy, cx: hx + hb.w / 2, cy: Y(0), inP: [hx, Y(0)]};
|
|
209
|
+
D.el("rect", {class: "box", x: hx.toFixed(1), y: hy.toFixed(1), width: hb.w.toFixed(1), height: hb.h.toFixed(1), rx: 10, fill: hc[1], stroke: hc[0], "stroke-width": 3}, H0.g);
|
|
210
|
+
boxText(H0.g, hb, pl.head.n, hx, hy, hc, s);
|
|
211
|
+
hb.notes.forEach(function(t, j){ D.mtext(H0.g, hx + hb.w / 2, hy + hb.h + 4 + NLH * j + NS * 0.95, t, {"text-anchor": "middle", "font-size": NS, fill: "var(--muted)"}); });
|
|
212
|
+
// 背骨(尾から頭の手前まで)と矢じり
|
|
213
|
+
this.spine = {path: this.poly([[X(L.tail), Y(0)], [hx - 3, Y(0)]]), line: mkLine(gL, 5), step: pl.spineStep};
|
|
214
|
+
H0.arrow = D.el("path", {d: "M0,0L-16,-7L-16,7Z", fill: "var(--muted)", transform: "translate(" + (hx - 1).toFixed(1) + " " + Y(0).toFixed(1) + ")", opacity: 0}, gL);
|
|
215
|
+
// 大骨と原因
|
|
216
|
+
var cnt = {};
|
|
217
|
+
this.bones = cats.map(function(c, i){
|
|
218
|
+
var g = L.geo[i], bx = L.xs[Math.floor(i / 2)], col = c.n.tone ? toneOf(c.n.tone)[0] : "var(--muted)", cc = toneOf(c.n.tone);
|
|
219
|
+
var at = c.n.at !== undefined ? c.n.at : c.step === pl.spineStep && c.step !== pl.head.step ? P.draw * 0.8 : c.step === pl.head.step ? self.span() : 0;
|
|
220
|
+
var B = {o: c, step: c.step, at: at, g: D.el("g", {opacity: 0}, gN)};
|
|
221
|
+
// 大骨:背骨の点から外の端まで(path は外から背骨へ。fade と grow は外から引く、draw は背骨から引く)
|
|
222
|
+
B.spineP = [X(bx), Y(0)]; B.outP = [X(bx + g.outer[0]), Y(g.outer[1])];
|
|
223
|
+
B.path = self.poly([B.outP, B.spineP]); B.rpath = self.poly([B.spineP, B.outP]);
|
|
224
|
+
B.line = mkLine(gL, 3.5, col);
|
|
225
|
+
var x0 = X(bx + g.boxX), y0 = Y(g.boxY);
|
|
226
|
+
D.el("rect", {class: "box", x: x0.toFixed(1), y: y0.toFixed(1), width: g.b.w.toFixed(1), height: g.b.h.toFixed(1), rx: 10, fill: cc[1], stroke: cc[0], "stroke-width": c.n.tone === "emph" ? 3 : 2.2}, B.g);
|
|
227
|
+
boxText(B.g, g.b, c.n, x0, y0, cc, s);
|
|
228
|
+
g.b.notes.forEach(function(t, j){
|
|
229
|
+
var ny = g.up ? y0 - 8 - NLH * (g.b.notes.length - 1 - j) : y0 + g.b.h + 4 + NLH * j + NS * 0.95;
|
|
230
|
+
D.mtext(B.g, x0 + g.b.w / 2, ny, t, {"text-anchor": "middle", "font-size": NS, fill: "var(--muted)"});
|
|
231
|
+
});
|
|
232
|
+
B.cx = x0 + g.b.w / 2; B.cy = y0 + g.b.h / 2;
|
|
233
|
+
// 背骨の側から箱へ向かう向き(draw と grow で箱が寄ってくる向き)
|
|
234
|
+
var dx = B.cx - B.spineP[0], dy = B.cy - B.spineP[1], dl = Math.hypot(dx, dy) || 1;
|
|
235
|
+
B.dir = [dx / dl, dy / dl];
|
|
236
|
+
// 原因:横の線(大骨の点から左へ)と、その上の字
|
|
237
|
+
B.rows = g.rows.map(function(r, j){
|
|
238
|
+
var o = r.o, tc = o.n.tone ? toneOf(o.n.tone)[0] : "var(--fg)", lc = o.n.tone ? toneOf(o.n.tone)[0] : "var(--muted)";
|
|
239
|
+
var gr = D.el("g", {opacity: 0}, gT);
|
|
240
|
+
var y = Y(r.y), xa = X(bx + r.x0), xl = X(bx + r.xl);
|
|
241
|
+
var rec = {o: o, step: o.step, g: gr, path: self.poly([[xa, y], [xl, y]]), line: mkLine(gL, 2.5, lc)};
|
|
242
|
+
if (r.miniEnd){
|
|
243
|
+
// 細かい原因へ下ろす、大骨と平行な線(親の原因の行が持つ)
|
|
244
|
+
var p0 = [X(bx + r.mini.x0), y], p1 = [X(bx + r.mini.xm(r.y + r.miniEnd)), y + r.miniEnd];
|
|
245
|
+
rec.mpath = self.poly([p0, p1]); rec.mline = mkLine(gL, 2.5, lc);
|
|
246
|
+
}
|
|
247
|
+
var tx, xe = X(bx + r.xe);
|
|
248
|
+
if (o.n.tex){
|
|
249
|
+
// 式(組み立てのときに描いた KaTeX):箱と同じ枠(MR.texFrame)で、行の右端に寄せる。note はその右に別の字で
|
|
250
|
+
MR.texFrame(gr, xe - r.nw, y - 8, o.n, "tex", {size: r.sz, anchor: "end", color: tc, w: r.tw - r.nw + 40, h: r.sz * 1.6}, sk).firstChild.style.verticalAlign = "top";
|
|
251
|
+
if (o.n.note) D.mtext(gr, xe, y - 8, " " + o.n.note, {"text-anchor": "end", "font-size": NS, fill: "var(--muted)"});
|
|
252
|
+
} else {
|
|
253
|
+
tx = D.mtext(gr, xe, y - 8, o.n.label || "", {"text-anchor": "end", "font-size": r.sz, fill: tc});
|
|
254
|
+
if (o.n.tone === "emph") tx.setAttribute("font-weight", 700);
|
|
255
|
+
if (o.n.note){ var ns = D.el("tspan", {"font-size": NS, fill: "var(--muted)", "font-weight": 400}, tx); ns.textContent = " " + o.n.note; }
|
|
256
|
+
}
|
|
257
|
+
// 段階の中の開始時刻:同じ段階の行を上から順に少しずつずらす
|
|
258
|
+
var key = rec.step, base = rec.step === c.step ? at + self.span() * 0.8 : 0;
|
|
259
|
+
cnt[key + "|" + i] = (cnt[key + "|" + i] || 0) + 1;
|
|
260
|
+
rec.at = o.n.at !== undefined ? o.n.at : +(base + 0.12 * (cnt[key + "|" + i] - 1)).toFixed(3);
|
|
261
|
+
return rec;
|
|
262
|
+
});
|
|
263
|
+
return B;
|
|
264
|
+
});
|
|
265
|
+
// 細かい原因の平行の線は、細かい原因の行と同じ段階・時刻で引く(最初の子に合わせる)
|
|
266
|
+
this.bones.forEach(function(B){
|
|
267
|
+
B.rows.forEach(function(r){
|
|
268
|
+
if (!r.mpath) return;
|
|
269
|
+
var first = B.rows.filter(function(q){ return q.o.par === r.o; })[0];
|
|
270
|
+
r.mstep = first.step; r.mat = first.at;
|
|
271
|
+
});
|
|
272
|
+
});
|
|
273
|
+
// そのほかのつながり:字の左端どうしを、左へふくらむ破線で
|
|
274
|
+
var rowOf = {};
|
|
275
|
+
this.bones.forEach(function(B){ B.rows.forEach(function(r){ rowOf[r.o.n.id] = r; }); });
|
|
276
|
+
this.edges = pl.edges.map(function(x){
|
|
277
|
+
var e = x.e, ra = rowOf[e.from], rb = rowOf[e.to];
|
|
278
|
+
if (!ra || !rb) throw new Error("m-fishbone: edges connect causes (not main bones)");
|
|
279
|
+
var pa = [ra.path.pts[1][0] - 6, ra.path.pts[1][1]], pb = [rb.path.pts[1][0] - 10, rb.path.pts[1][1]];
|
|
280
|
+
var mid = [(pa[0] + pb[0]) / 2, (pa[1] + pb[1]) / 2], far = Math.min(pa[0], pb[0]) - 40, ctl = [2 * far - mid[0], mid[1]];
|
|
281
|
+
var pts = [];
|
|
282
|
+
for (var j = 0; j <= 24; j++){ var u = j / 24, v = 1 - u; pts.push([v * v * pa[0] + 2 * u * v * ctl[0] + u * u * pb[0], v * v * pa[1] + 2 * u * v * ctl[1] + u * u * pb[1]]); }
|
|
283
|
+
var col = e.tone ? toneOf(e.tone)[0] : "var(--muted)";
|
|
284
|
+
var g = D.el("g", {opacity: 0}, gE);
|
|
285
|
+
var line = D.el("path", {d: "", fill: "none", stroke: col, "stroke-width": 3, "stroke-dasharray": e.dash === false ? "none" : "8 6"}, g);
|
|
286
|
+
var head = D.el("path", {d: "M0,0L-16,-7L-16,7Z", fill: col}, g);
|
|
287
|
+
var lab = e.label ? D.mtext(g, far - 8, mid[1] + 8, e.label, {"text-anchor": "end", "font-size": 24, fill: col, opacity: 0}) : null;
|
|
288
|
+
var after = 0;
|
|
289
|
+
[ra, rb].forEach(function(r){ if (r.step === x.step) after = Math.max(after, r.at + 0.45); });
|
|
290
|
+
return {g: g, line: line, head: head, lab: lab, path: self.poly(pts), step: x.step, at: e.at !== undefined ? e.at : after};
|
|
291
|
+
});
|
|
292
|
+
// 読み上げ:最後の形(結果と、大骨ごとの原因)を 1 文で。作者の aria-label があればそれを使う(上書きしない)
|
|
293
|
+
if (this._aria === undefined) this._aria = this.getAttribute("aria-label");
|
|
294
|
+
this.setAttribute("role", "img");
|
|
295
|
+
if (!this._aria) this.setAttribute("aria-label", this.summary(/^ja\b/i.test(ctx.lang || "ja")));
|
|
296
|
+
sk.flush(); // what the formulas have to report, once per kind (spec §6.2)
|
|
297
|
+
}
|
|
298
|
+
// 最後の形を 1 文で(読み上げの名前):「原因と結果の図。結果:配送の遅れ。人:人手が足りない(休みが多い)、新人が多い。機械:車の故障。つながり:…」
|
|
299
|
+
summary(ja){
|
|
300
|
+
var pl = this.plan(), one = function(n){ return String(n.label || n.tex || "").replace(/\s*\n\s*/g, " ").replace(/\*/g, "").replace(/[_^](.)/g, "$1") + (n.note ? " " + n.note : ""); };
|
|
301
|
+
var lp = ja ? "(" : " (", rp = ja ? ")" : ")", cm = ja ? "、" : ", ", dot = ja ? "。" : ". ";
|
|
302
|
+
var s = (ja ? "原因と結果の図" : "Cause-and-effect diagram") + (pl.head.n.label || pl.head.n.tex ? dot + (ja ? "結果:" : "Effect: ") + one(pl.head.n) : "");
|
|
303
|
+
pl.cats.forEach(function(c){
|
|
304
|
+
var ks = c.kids.map(function(k){ return one(k.n) + (k.kids.length ? lp + k.kids.map(function(x){ return one(x.n); }).join(cm) + rp : ""); });
|
|
305
|
+
s += dot + one(c.n) + (ks.length ? (ja ? ":" : ": ") + ks.join(cm) : "");
|
|
306
|
+
});
|
|
307
|
+
var ed = pl.edges.map(function(x){ return one(x.a.n) + " → " + one(x.b.n) + (x.e.label ? lp + x.e.label + rp : ""); });
|
|
308
|
+
if (ed.length) s += dot + (ja ? "つながり:" : "Links: ") + ed.join(cm);
|
|
309
|
+
return s;
|
|
310
|
+
}
|
|
311
|
+
poly(pts){
|
|
312
|
+
var L = [0];
|
|
313
|
+
for (var i = 1; i < pts.length; i++) L.push(L[i - 1] + Math.hypot(pts[i][0] - pts[i - 1][0], pts[i][1] - pts[i - 1][1]));
|
|
314
|
+
return {pts: pts, L: L, len: L[L.length - 1] || 1};
|
|
315
|
+
}
|
|
316
|
+
part(pl, f){
|
|
317
|
+
var want = pl.len * Math.max(0, Math.min(1, f)), pts = pl.pts, out = [pts[0]], i = 1;
|
|
318
|
+
for (; i < pts.length && pl.L[i] <= want; i++) out.push(pts[i]);
|
|
319
|
+
var end = out[out.length - 1];
|
|
320
|
+
if (i < pts.length && want > pl.L[i - 1]){
|
|
321
|
+
var u = (want - pl.L[i - 1]) / (pl.L[i] - pl.L[i - 1]);
|
|
322
|
+
end = [base.lerp(pts[i - 1][0], pts[i][0], u), base.lerp(pts[i - 1][1], pts[i][1], u)];
|
|
323
|
+
out.push(end);
|
|
324
|
+
}
|
|
325
|
+
var pv = out.length > 1 ? out[out.length - 2] : pts[0], nx = i < pts.length ? pts[i] : end;
|
|
326
|
+
var ang = out.length < 2 ? Math.atan2(nx[1] - end[1], nx[0] - end[0]) : Math.atan2(end[1] - pv[1], end[0] - pv[0]);
|
|
327
|
+
return {d: "M" + out.map(function(p){ return p[0].toFixed(1) + "," + p[1].toFixed(1); }).join("L"), end: end, ang: ang};
|
|
328
|
+
}
|
|
329
|
+
duration(k){
|
|
330
|
+
var self = this, P = this.props, d = 0, S = this.span(), pl = this.plan();
|
|
331
|
+
if (pl.spineStep === k) d = Math.max(d, P.draw);
|
|
332
|
+
if (pl.head.step === k) d = Math.max(d, (pl.head.n.at || 0) + S);
|
|
333
|
+
(this.bones || []).forEach(function(B){
|
|
334
|
+
if (B.step === k) d = Math.max(d, B.at + S);
|
|
335
|
+
B.rows.forEach(function(r){ if (r.step === k) d = Math.max(d, r.at + 0.45); });
|
|
336
|
+
});
|
|
337
|
+
(this.edges || []).forEach(function(o){ if (o.step === k) d = Math.max(d, o.at + P.draw + (o.lab ? 0.3 : 0)); });
|
|
338
|
+
return d;
|
|
339
|
+
}
|
|
340
|
+
render(k, t, ctx){
|
|
341
|
+
var P = this.props, D = base, self = this, vr = this.variant, lect = !!ctx.preview, S = this.span(), FAINT = 0.45;
|
|
342
|
+
if (lect) FAINT = base.previewOpacity(this); // 先の段階の薄さ:テーマの --preview-opacity(ないときは 0.45)
|
|
343
|
+
var tOf = function(step){ return step < k ? Infinity : step > k ? -1 : t; };
|
|
344
|
+
var pr = function(tt, at, dur){ return tt < 0 ? 0 : D.prog(tt, at, dur); };
|
|
345
|
+
// 授業の表示:後の段階は薄く(--preview-opacity)、今の段階は薄い状態から濃くなる。位置は動かさない(どの見せ方でも同じ)
|
|
346
|
+
var faint = function(tt, e){ return tt < 0 ? FAINT : FAINT + (1 - FAINT) * e; };
|
|
347
|
+
var line = function(el, path, e){ el.setAttribute("d", e > 0 ? self.part(path, e).d : ""); };
|
|
348
|
+
// 背骨:尾から頭へ引く(どの見せ方でも同じ)
|
|
349
|
+
var sp = this.spine, ts = tOf(sp.step), es = pr(ts, 0, P.draw);
|
|
350
|
+
if (lect){ line(sp.line, sp.path, 1); sp.line.setAttribute("opacity", faint(ts, es).toFixed(3)); }
|
|
351
|
+
else { line(sp.line, sp.path, es); sp.line.setAttribute("opacity", es > 0 ? 1 : 0); }
|
|
352
|
+
// 箱と字の動きは 12 px まで(docs/conventions.md §1.2:どの見せ方も fade より遠くへ動かさない)
|
|
353
|
+
// fade:下から 12 px 上がりながら現れる(0.92 → 1)。draw:線の後、背骨の側から 12 px 寄りながら現れる。
|
|
354
|
+
// grow:背骨の側から 12 px 寄りながら 0.92 → 1 に大きくなる
|
|
355
|
+
var OFF = 12;
|
|
356
|
+
var tf = function(cx, cy, s, dx, dy){
|
|
357
|
+
return s >= 1 && Math.abs(dx) < 0.01 && Math.abs(dy) < 0.01 ? "" :
|
|
358
|
+
"translate(" + (cx + dx).toFixed(2) + " " + (cy + dy).toFixed(2) + ") scale(" + s.toFixed(4) + ") translate(" + (-cx).toFixed(2) + " " + (-cy).toFixed(2) + ")";
|
|
359
|
+
};
|
|
360
|
+
// 頭(背骨は左から来る)
|
|
361
|
+
var h = this.head, th = tOf(h.o.step), at = h.o.n.at || 0, eb, ea, sc = 1, m, sh;
|
|
362
|
+
if (vr === "draw"){ ea = pr(th, at, S * 0.5); eb = pr(th, at + S * 0.45, S * 0.55); sc = D.lerp(0.92, 1, eb); sh = [-OFF * (1 - eb), 0]; }
|
|
363
|
+
else if (vr === "grow"){ m = pr(th, at, P.fade); eb = pr(th, at, P.fade * 0.6); ea = pr(th, at, S * 0.5); sc = D.lerp(0.92, 1, m); sh = [-OFF * (1 - m), 0]; }
|
|
364
|
+
else { eb = pr(th, at, P.fade); ea = pr(th, at + P.fade * 0.6, P.draw * 0.5); sc = D.lerp(0.92, 1, eb); sh = [0, OFF * (1 - eb)]; }
|
|
365
|
+
if (lect){ var fh = faint(th, eb); h.g.setAttribute("opacity", fh.toFixed(3)); h.g.setAttribute("transform", ""); h.arrow.setAttribute("opacity", fh.toFixed(3)); }
|
|
366
|
+
else {
|
|
367
|
+
h.g.setAttribute("opacity", eb.toFixed(3));
|
|
368
|
+
h.g.setAttribute("transform", tf(h.cx, h.cy, sc, sh[0], sh[1]));
|
|
369
|
+
h.arrow.setAttribute("opacity", ea.toFixed(3));
|
|
370
|
+
}
|
|
371
|
+
// 大骨
|
|
372
|
+
this.bones.forEach(function(B){
|
|
373
|
+
var tt = tOf(B.step), eb, el, sc = 1, m, sh, path = B.path;
|
|
374
|
+
if (vr === "draw"){
|
|
375
|
+
el = pr(tt, B.at, S * 0.5); eb = pr(tt, B.at + S * 0.45, S * 0.55); sc = D.lerp(0.92, 1, eb); path = B.rpath;
|
|
376
|
+
sh = [-B.dir[0] * OFF * (1 - eb), -B.dir[1] * OFF * (1 - eb)];
|
|
377
|
+
} else if (vr === "grow"){
|
|
378
|
+
m = pr(tt, B.at, P.fade); eb = pr(tt, B.at, P.fade * 0.6); el = pr(tt, B.at, S); sc = D.lerp(0.92, 1, m); path = B.rpath;
|
|
379
|
+
sh = [-B.dir[0] * OFF * (1 - m), -B.dir[1] * OFF * (1 - m)];
|
|
380
|
+
} else { eb = pr(tt, B.at, P.fade); el = pr(tt, B.at + P.fade * 0.6, P.draw); sc = D.lerp(0.92, 1, eb); sh = [0, OFF * (1 - eb)]; }
|
|
381
|
+
if (lect){ var f = faint(tt, eb); B.g.setAttribute("opacity", f.toFixed(3)); B.g.setAttribute("transform", ""); line(B.line, B.path, 1); B.line.setAttribute("opacity", f.toFixed(3)); }
|
|
382
|
+
else {
|
|
383
|
+
B.g.setAttribute("opacity", eb.toFixed(3));
|
|
384
|
+
B.g.setAttribute("transform", tf(B.cx, B.cy, sc, sh[0], sh[1]));
|
|
385
|
+
line(B.line, path, el); B.line.setAttribute("opacity", el > 0 ? 1 : 0);
|
|
386
|
+
}
|
|
387
|
+
// 原因の行(どれも 0.45 秒):fade は字が下から 12 px 上がりながら現れてから線、draw は線から字、
|
|
388
|
+
// grow は字が大骨の側(右)から 12 px 寄りながら現れ、線は同時に大骨から引く
|
|
389
|
+
B.rows.forEach(function(r){
|
|
390
|
+
var tr = tOf(r.step), et, el2, dx = 0, dy = 0;
|
|
391
|
+
if (vr === "draw"){ el2 = pr(tr, r.at, 0.25); et = pr(tr, r.at + 0.15, 0.3); }
|
|
392
|
+
else if (vr === "grow"){ el2 = pr(tr, r.at, 0.45); et = pr(tr, r.at, 0.3); dx = OFF * (1 - et); }
|
|
393
|
+
else { et = pr(tr, r.at, 0.3); el2 = pr(tr, r.at + 0.15, 0.3); dy = OFF * (1 - et); }
|
|
394
|
+
if (lect){
|
|
395
|
+
var f = faint(tr, et);
|
|
396
|
+
r.g.setAttribute("opacity", f.toFixed(3)); r.g.setAttribute("transform", "");
|
|
397
|
+
line(r.line, r.path, 1); r.line.setAttribute("opacity", f.toFixed(3));
|
|
398
|
+
} else {
|
|
399
|
+
r.g.setAttribute("opacity", et.toFixed(3));
|
|
400
|
+
r.g.setAttribute("transform", Math.abs(dx) > 0.01 || Math.abs(dy) > 0.01 ? "translate(" + dx.toFixed(2) + " " + dy.toFixed(2) + ")" : "");
|
|
401
|
+
line(r.line, r.path, el2); r.line.setAttribute("opacity", el2 > 0 ? 1 : 0);
|
|
402
|
+
}
|
|
403
|
+
if (r.mline){
|
|
404
|
+
var tm = tOf(r.mstep), em = pr(tm, r.mat, vr === "fade" ? 0.3 : 0.25);
|
|
405
|
+
if (vr === "fade") em = pr(tm, r.mat + 0.15, 0.3);
|
|
406
|
+
if (lect){ line(r.mline, r.mpath, 1); r.mline.setAttribute("opacity", faint(tm, em).toFixed(3)); }
|
|
407
|
+
else { line(r.mline, r.mpath, em); r.mline.setAttribute("opacity", em > 0 ? 1 : 0); }
|
|
408
|
+
}
|
|
409
|
+
});
|
|
410
|
+
});
|
|
411
|
+
this.edges.forEach(function(o){
|
|
412
|
+
var tt = tOf(o.step), e = pr(tt, o.at, P.draw), lo = pr(tt, o.at + P.draw * 0.8, 0.3);
|
|
413
|
+
if (lect){ var f = faint(tt, e); e = 1; lo = 1; o.g.setAttribute("opacity", f.toFixed(3)); }
|
|
414
|
+
else o.g.setAttribute("opacity", e > 0 ? 1 : 0);
|
|
415
|
+
var p = self.part(o.path, e);
|
|
416
|
+
o.line.setAttribute("d", e > 0 ? p.d : "");
|
|
417
|
+
var hs = Math.min(1, e * o.path.len / 20);
|
|
418
|
+
o.head.setAttribute("transform", "translate(" + p.end[0].toFixed(2) + " " + p.end[1].toFixed(2) + ") rotate(" + (p.ang * 180 / Math.PI).toFixed(2) + ") scale(" + hs.toFixed(4) + ")");
|
|
419
|
+
if (o.lab) o.lab.setAttribute("opacity", lo.toFixed(3));
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
return Part;
|
|
424
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# m-map-japan changelog
|
|
2
|
+
|
|
3
|
+
The part's own versions (Egatari spec §6.1). Releases of the whole library are in the repository's CHANGELOG.md.
|
|
4
|
+
|
|
5
|
+
## 2.0.0 (components 2.0, alpha; not for lessons yet)
|
|
6
|
+
|
|
7
|
+
- Moved to `egatariParts.define({name: "map-japan", version: "2.0.0", requires: {base: "1.0.0"}, element: "m-map-japan"})`,
|
|
8
|
+
extending `base.MotionElement` with `base.el` / `prog` / `variant` / `previewOpacity`; `static partName = "map-japan"`.
|
|
9
|
+
The DOM is byte-identical to 1.13.0 on its demo and on `tools/fixtures/c2-identity/map-japan.html` (the inset redraw,
|
|
10
|
+
`layout="true"`, small elements, reported cases) at every step (tools/test-c2-identity.mjs).
|
|
11
|
+
- The map data (`map-japan-data`, from Natural Earth 5.1.1, public domain, with its credit lines) is byte-for-byte as in
|
|
12
|
+
1.13.0.
|
|
13
|
+
- Variants: `base.variant(this)` instead of the embedded `egatari-variant` block.
|
|
14
|
+
- Drawing moved from `mount(ctx, retry)` to `draw(ctx, retry)`, called by `mount(ctx)`: the redraw without the 小笠原諸島
|
|
15
|
+
inset calls `draw` again (in 2.0 the instance's `mount` is base's contained wrapper, which takes only `ctx`).
|
|
16
|
+
- Reports (1.13.0: `console.warn("m-map-japan: …")`, same English text, now `[map-japan] …`):
|
|
17
|
+
`ctx.report("attr", …)` for a `layout`, `islands` or `show` value it does not know; `ctx.report("data", …)` for more
|
|
18
|
+
than 5 classes, a value below the first class, and a point, arrow or shape in the 小笠原諸島 area that is not drawn;
|
|
19
|
+
`ctx.report("size", …)` for a label with no room or overlapping another, the inset left out for lack of room and pieces
|
|
20
|
+
dropped from a small element; `ctx.report("theme", …)` when the theme's colours give classes too close in lightness.
|
|
21
|
+
- The preview view is `ctx.preview` alone (1.13.0 also accepted `ctx.mode === "lecture"`).
|
|
22
|
+
- Ids: none written.
|
|
23
|
+
|
|
24
|
+
## 1.13.0
|
|
25
|
+
|
|
26
|
+
As released in the library's 1.13.0.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: m-map-japan
|
|
3
|
+
version: 2.0.0
|
|
4
|
+
series: social
|
|
5
|
+
tier: specialized
|
|
6
|
+
set: maps
|
|
7
|
+
summary: 日本の 47 都道府県の地図。地域の強調、統計の塗り分け、点、矢印、経度・緯度の重ね描きを段階ごとに出す
|
|
8
|
+
steps: 項目の step の最大(既定 1)。地図そのものは段階 0 から出ている
|
|
9
|
+
purposes: spatial
|
|
10
|
+
variants: fade, sweep, draw
|
|
11
|
+
props: layout, islands, labels, show, unit, digits, legend, dur
|
|
12
|
+
data-credit: 地図データ:Natural Earth(パブリックドメイン)を加工
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
地理・歴史の授業で場所を示すときに使う。子の JSON(どれも `step` `at` `tone` を持てる):
|
|
16
|
+
|
|
17
|
+
- `regions`:`id`(`"01"`〜`"47"`)か `group`(`hokkaido` `tohoku` `kanto` `chubu` `kinki` `chugoku` `shikoku` `kyushu`)。`label`
|
|
18
|
+
- `values`:`{"13": 1406, …}` と `classes`(階級の下限、既定は 4 階級、5 つまで)で塗り分け。凡例に階級を書く
|
|
19
|
+
- `points`:`lon` `lat`(または `code` で県庁の位置)、`label`、`anchor`
|
|
20
|
+
- `flows`:`from` `to`(番号か `[経度, 緯度]`)の矢印。`via`(通る点 `[[経度, 緯度], …]`。海の道は沖に)、`label` `labelAt` `value`
|
|
21
|
+
- `shapes`:`polygon` か `line`(`[[経度, 緯度], …]`)。`label` `dash`
|
|
22
|
+
|
|
23
|
+
`labels`:`focus`(既定)・`all`・`none`。`show="value"` で入る地域に値を書く(既定は書かない)。
|
|
24
|
+
|
|
25
|
+
日本の範囲・東西南北の端・排他的経済水域を見せるときは layout="true"(小窓なし、本当の位置)
|
|
26
|
+
|
|
27
|
+
地図データ:Natural Earth(パブリックドメイン)を加工。
|
|
28
|
+
|
|
29
|
+
<!-- llm: omit -->
|
|
30
|
+
注意
|
|
31
|
+
|
|
32
|
+
- 領土は日本政府の立場のとおり:北方領土(国後・択捉・色丹・歯舞)は北海道、竹島は島根県、尖閣諸島は沖縄県(docs/map-design.md §4.5)。データに固定した性質で、授業ごとに切り替えることはできない
|
|
33
|
+
- 地図データは `tools/map/build-japan.mjs` が Natural Earth 5.1.1 の 1:10m(`ne_10m_admin_1_states_provinces` と、竹島のために `ne_10m_admin_0_countries_jpn`)から作り、`index.js` の BEGIN/END map-japan-data の間に書く。手で直さない。作り直し方は `tools/map/README.md`
|
|
34
|
+
- Natural Earth の admin-1 は奄美群島を沖縄県に入れているので、鹿児島県に直している。北方領土は admin-1 ではサハリン州なので北海道に移している
|
|
35
|
+
- 図法は正角円錐図法(標準緯線 30°・42°、中央経線 136°E)。`layout="inset"`(既定)では、本図を要素の高さいっぱいに描き、九州の左下に南西諸島(沖縄県とトカラ列島・奄美群島)の枠(島の範囲にぴったり、高さは本図の 0.42 倍で島が枠を満たす縮尺)を置く。`islands="all"` のときだけ、右下に小笠原諸島(鳥島・父島・硫黄島・沖ノ鳥島・南鳥島を含む、本図の 0.5 倍)の枠も置く(v1.8.0 から。v1.7.x までは小笠原諸島の枠がいつもあった)。枠の上に「(縮尺は本図と異なる)」と書く。要素が小さくてそれでは本図が小さくなるときは、本図の空いた隅(左上・右下の海)に小さい縮尺で枠を置き、名前は入るときだけ書く(小さい要素で書けなかった名前は `console.warn` で知らせる)。凡例が要素の右からはみ出しそうなら広めの見積もりで並べ直し、凡例が要素より高いか本図の幅が 120 px 未満になるときは凡例を描かずに知らせる(値は読み上げ用の層に残る)
|
|
36
|
+
- 島の決まり(作者の決定、docs/map-design.md §5.3):
|
|
37
|
+
- 北方領土・竹島・尖閣諸島(南西諸島の枠の中)は、どの大きさでもいつも描く。南西諸島の枠は沖縄県そのものを含むので、いつもある
|
|
38
|
+
- 沖ノ鳥島・南鳥島は、小笠原諸島の枠(`islands="all"`)か `layout="true"` のときに描き、そのときはいつも名前を書く。点のまわりに入らなければ少し離れた海に引き出し線を付けて書く。小笠原諸島の枠の名前がそれでも入らなければ、枠ごと描かずに `console.warn` で知らせる(名前のない枠は出さない)
|
|
39
|
+
- `layout="inset"` の竹島・尖閣諸島の名前は入るときに書く:点のまわりに入れば書き、高さ 360 px・幅 340 px 未満の小さい要素では、入らなければ引き出し線を付けて海に書く(それでも入らなければ `console.warn`)。それより大きい要素で点のまわりに入らなければ、込み合わないよう書かない
|
|
40
|
+
- `layout="true"` では父島・硫黄島にも同じ置き方で名前を書く(入らなければ `console.warn`)。`islands="all"` の枠の中では書かない
|
|
41
|
+
- 読める層には、描いた島をいつも挙げる(北方領土、竹島、尖閣諸島、描いたときは沖ノ鳥島・南鳥島、`layout="true"` では父島・硫黄島も)
|
|
42
|
+
- 形が消える小さな島(竹島・魚釣島・沖ノ鳥島・南鳥島・父島・硫黄島)は点で描き、その都道府県の色で塗る。名前は地図と一緒に段階 0 から
|
|
43
|
+
- 作り手の名前のある点が島の点から 15 px 以内にあれば(例:「南鳥島(東端)」)、その島は作り手の点と名前で示す。組み込みの点と名前は作り手の点が現れるのと入れ替わりに消え、読める層もその島は作り手の名前 1 つになる。どの配置でも同じ
|
|
44
|
+
- `islands="main"` で小笠原諸島の範囲に点・矢印・重ね描きを置くと、本当の位置(要素の外)になるので `console.warn` で知らせる
|
|
45
|
+
- 点の名前が点のそばに入らない(要素の縁の近く、枠の中の点)ときは、少し離れた所に置いて引き出し線を引く
|
|
46
|
+
- 段階:地図そのもの(陸地・枠・枠の名前、`labels="all"` の名前)は段階 0 から出ている。強調・塗り分け・点・矢印・重ね描きは `step`(既定 1)から
|
|
47
|
+
- 塗り分けの色は `color-mix(in oklab, var(--term) p%, var(--bg))`(濃い階級は `var(--fg)` との混ぜ)。OKLab の明るさを、いちばん薄い階級から濃い階級まで等しい間隔にする(テーマの色から割合を計算する)。都道府県の境界はいつも `--muted` の細い線で描き、いちばん薄い階級もそれで縁取る。`tools/test-classes.mjs` が、既定・国語・ビジネスのテーマで 4 階級と 5 階級について、隣り合う階級の明るさの差 0.08 以上・等間隔・薄い階級の縁取り・境界を測る
|
|
48
|
+
- `classes` を書かなければ、値の 4 分位から有効数字 2 桁に切り下げた 4 つの下限を使う。6 階級以上は `console.warn` で知らせる(見分けにくい)
|
|
49
|
+
- 値・名前の字は `--bg` の札の上に `--fg` で書く(塗りの濃さによらず 4.5:1 以上)。値は `show="value"` のときだけ、地域の中に入るときだけ書く(既定は書かず、凡例と読める層で読む)。凡例は「500 以上」「200〜500 未満」の形。名前は札がすべて地域の中に入るときだけ中に、入らなければまわりの海に置いて引き出し線を引く(ほかの強調した地域を横切らない所を選ぶ)。点の名前は矢印の線に掛けない
|
|
50
|
+
- 読める層:最後の状態の字の等価物(強調した地域とその都道府県、塗り分けの階級とすべての値、点・矢印・重ね描きの名前)を、画面に出ない一覧(`ul.sr-only`)にして部品の中に置く
|
|
51
|
+
- 矢印の `via` は、通る点をなめらかな曲線(求心的な Catmull-Rom。行き過ぎて輪にならない)で結ぶ。書かなければ `bend`(既定 0.18)だけ横にふくらむ曲線。線は始めの点の 11 px 外から引き、矢じりは 1 つで、先は終わりの点の数 px 手前。`labelAt`(`[経度, 緯度]`)で名前の場所を決められる(重ね描きも同じ)
|
|
52
|
+
- 塗り分けた地域を `regions` でも挙げると、塗りつぶさずに太い縁で強調する
|
|
53
|
+
- 各都道府県の陸の `path` に `data-mark="JP-13"` のような印がある(Studio のカメラ `{zoom:JP-13}` で寄れる)
|
|
54
|
+
- 見せ方:`fade`(フェード)・`sweep`(同じ段階の中で西から東へ順に。全体で `fade` の長さの中)・`draw`(地域と重ね描きは輪郭を引いてから塗り、輪郭は塗り終わると消える)。どれも位置は動かない。矢印はどの見せ方でも線を引いていく
|
|
55
|
+
- 授業の表示(`ctx.preview`)では、先の段階の項目をテーマの `--preview-opacity`(ないときは 0.45)の濃さで見せる。作り手の点が薄いあいだ、入れ替わる島の点はそのまま
|
|
56
|
+
- 見本の人口は総務省統計局「令和2年国勢調査 人口速報集計結果」(2020 年 10 月 1 日現在)を万人に丸めたもの。北前船の寄港地と通る点は公知の事実からのおおよその位置
|
|
57
|
+
<!-- llm: end -->
|