egatari 0.6.4 → 0.6.5-rc.1
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 +16 -4
- package/README.md +16 -4
- 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/build.mjs +50 -1
- package/kit/check-messages.mjs +15 -7
- package/kit/check.mjs +40 -7
- 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 +115 -0
- package/kit/core/article-page.mjs +183 -0
- package/kit/core/article-render.mjs +410 -0
- package/kit/core/article-text.mjs +501 -0
- package/kit/core/article.mjs +266 -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 +74 -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,77 @@
|
|
|
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-compare の見本</title>
|
|
7
|
+
<!-- 組み方:node kit/build.mjs components/compare/demo.html -o components/compare/out/demo.html(申請の比較は架空) -->
|
|
8
|
+
<style>
|
|
9
|
+
.vlabel{font-size:27px;color:var(--muted);margin:0 0 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-compare style="height:420px">
|
|
19
|
+
<script type="application/json">{
|
|
20
|
+
"sides": [{"label": "紙の申請", "tone": "muted"}, {"label": "オンライン申請"}],
|
|
21
|
+
"rows": [
|
|
22
|
+
{"label": "受付時間", "values": ["平日 9〜17 時", "24 時間"], "better": 1, "diff": "夜や休日にも出せる"},
|
|
23
|
+
{"label": "書類", "values": ["窓口で書く", "画面に入力"], "better": 1, "diff": "書き損じがない"},
|
|
24
|
+
{"label": "結果が届くまで", "values": ["約 2 週間", "約 3 日"], "better": 1, "diff": "11 日ほど早い"},
|
|
25
|
+
{"label": "手数料", "values": ["300 円", "300 円"], "diff": "同じ"}
|
|
26
|
+
]
|
|
27
|
+
}</script>
|
|
28
|
+
</m-compare>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="concl"><span>→ 違うのは時間。費用は変わらない</span></div>
|
|
31
|
+
</section>
|
|
32
|
+
|
|
33
|
+
<section class="slide">
|
|
34
|
+
<h2>植物の細胞と動物の細胞</h2>
|
|
35
|
+
<div class="body">
|
|
36
|
+
<m-compare style="height:420px">
|
|
37
|
+
<script type="application/json">{
|
|
38
|
+
"sides": [{"label": "植物の細胞"}, {"label": "動物の細胞", "tone": "accent2"}],
|
|
39
|
+
"rows": [
|
|
40
|
+
{"label": "核・細胞膜", "values": ["ある", "ある"], "diff": "どちらにもある"},
|
|
41
|
+
{"label": "細胞壁", "values": ["ある", "ない"], "diff": "植物だけ"},
|
|
42
|
+
{"label": "葉緑体", "values": ["ある(緑の部分)", "ない"], "diff": "植物だけ"},
|
|
43
|
+
{"label": "液胞", "values": ["大きく発達", "小さく目立たない"], "diff": "植物で大きい"}
|
|
44
|
+
]
|
|
45
|
+
}</script>
|
|
46
|
+
</m-compare>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="concl"><span>→ 細胞壁と葉緑体は植物の細胞だけにある</span></div>
|
|
49
|
+
</section>
|
|
50
|
+
|
|
51
|
+
<section class="slide">
|
|
52
|
+
<h2>見せ方の種類(variant)</h2>
|
|
53
|
+
<div class="body">
|
|
54
|
+
<div style="display:grid;grid-template-columns:1fr 1fr 1fr;gap:0 32px">
|
|
55
|
+
<div><p class="vlabel">fade(既定)</p>
|
|
56
|
+
<m-compare variant="fade" style="height:380px">
|
|
57
|
+
<script type="application/json">{"sides": [{"label": "A 案", "tone": "muted"}, {"label": "B 案"}],
|
|
58
|
+
"rows": [{"values": ["3 日", "1 日"], "better": 1}, {"values": ["5 万円", "8 万円"], "better": 0}, {"values": ["2 人", "1 人"], "better": 1}]}</script>
|
|
59
|
+
</m-compare></div>
|
|
60
|
+
<div><p class="vlabel">slide(横から寄る)</p>
|
|
61
|
+
<m-compare variant="slide" style="height:380px">
|
|
62
|
+
<script type="application/json">{"sides": [{"label": "A 案", "tone": "muted"}, {"label": "B 案"}],
|
|
63
|
+
"rows": [{"values": ["3 日", "1 日"], "better": 1}, {"values": ["5 万円", "8 万円"], "better": 0}, {"values": ["2 人", "1 人"], "better": 1}]}</script>
|
|
64
|
+
</m-compare></div>
|
|
65
|
+
<div><p class="vlabel">reveal(1 行ずつ)</p>
|
|
66
|
+
<m-compare variant="reveal" style="height:380px">
|
|
67
|
+
<script type="application/json">{"sides": [{"label": "A 案", "tone": "muted"}, {"label": "B 案"}],
|
|
68
|
+
"rows": [{"values": ["3 日", "1 日"], "better": 1}, {"values": ["5 万円", "8 万円"], "better": 0}, {"values": ["2 人", "1 人"], "better": 1}]}</script>
|
|
69
|
+
</m-compare></div>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="concl"><span>→ 書かなければ最初の見せ方(fade)になる。数字は架空</span></div>
|
|
73
|
+
</section>
|
|
74
|
+
|
|
75
|
+
</div>
|
|
76
|
+
</body>
|
|
77
|
+
</html>
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
// m-compare:2 つ(3 つまで)を横に並べて比べる表。列ごとに見出し、行ごとに比べる観点、最後に行ごとの違い
|
|
2
|
+
// <m-compare style="height:420px"><script type="application/json">
|
|
3
|
+
// {"sides": [{"label": "紙の申請", "tone": "muted"}, {"label": "オンライン申請"}],
|
|
4
|
+
// "rows": [{"label": "受付時間", "values": ["平日 9〜17 時", "24 時間"], "better": 1, "diff": "いつでも出せる"}, …]}
|
|
5
|
+
// (JSON の終わり)</m-compare>
|
|
6
|
+
// 段階:既定は 一方の列 → もう一方の列(→ 3 つ目の列)→ 違い(diff の列と better の枠)。違いのない表は列の数だけ
|
|
7
|
+
// 観点の名前(行の名前)は最初の列と一緒に出る。値は列の幅で折り返す(字数から幅を見積もる。\n で改行)
|
|
8
|
+
// 字は size(既定 28 px)から 24 px まで縮めて要素の箱に収める。収まらなければ ctx.report(size)
|
|
9
|
+
// 見せ方(docs/conventions.md §1):fade(既定。列が少し上がりながら現れる)・slide(列が自分の側から横に寄って現れる)・
|
|
10
|
+
// reveal(列の中を上の行から 1 行ずつ)。どれも動く距離(16 px)と長さ(dur)は同じで、段階の数・長さ・最後の中身は変わらない
|
|
11
|
+
// 2.0(Egatari spec §6.1 の部品):base の MotionElement・el・mtext・prog・lerp・variant・previewOpacity を使い、プレイヤーのグローバルは使わない。
|
|
12
|
+
// 違いの列の既定の見出しの言語は ctx.lang(mount で読む)。収まらない表は ctx.report で知らせる(1.x の console.warn の代わり)
|
|
13
|
+
egatariParts.define({name: "compare", version: "2.0.2", requires: {base: "1.1.0"}, element: "m-compare"}, function(deps){
|
|
14
|
+
"use strict";
|
|
15
|
+
var base = deps.base;
|
|
16
|
+
return class extends base.MotionElement {
|
|
17
|
+
static partName = "compare"; // the registry name (define meta name), for report prefixes
|
|
18
|
+
static variants = ["fade", "slide", "reveal"];
|
|
19
|
+
// データの形(kit/shape.js)
|
|
20
|
+
static shape = {
|
|
21
|
+
schema: {type: "object", additionalProperties: false, required: ["sides", "rows"], properties: {
|
|
22
|
+
sides: {type: "array", minItems: 2, maxItems: 3, items: {type: "object", additionalProperties: false, required: ["label"], properties: {
|
|
23
|
+
label: {type: "string"}, tone: {type: "string"}, step: {type: "integer"}}}},
|
|
24
|
+
rows: {type: "array", minItems: 1, items: {type: "object", additionalProperties: false, required: ["values"], properties: {
|
|
25
|
+
label: {type: "string"}, values: {type: "array", items: {type: ["string", "number"]}}, diff: {type: "string"}, better: {type: "integer"}}}}}},
|
|
26
|
+
example: {sides: [{label: "紙の申請", tone: "muted"}, {label: "オンライン申請"}],
|
|
27
|
+
rows: [{label: "受付時間", values: ["平日 9〜17 時", "24 時間"], better: 1, diff: "いつでも出せる"}]},
|
|
28
|
+
};
|
|
29
|
+
static props = {
|
|
30
|
+
size: {type: "number", default: 28, doc: "値の字の大きさ(px)。収まらなければ 24 まで縮める"},
|
|
31
|
+
dur: {type: "number", default: 0.6, doc: "1 つの列(と違い)が現れる秒数"},
|
|
32
|
+
"diff-label": {type: "string", default: "", doc: "違いの列の見出し(空なら「違い」)"},
|
|
33
|
+
};
|
|
34
|
+
get steps(){
|
|
35
|
+
if (this.getAttribute("steps") !== null) return +this.getAttribute("steps");
|
|
36
|
+
var d = this.data || {}, m = 0;
|
|
37
|
+
(d.sides || []).forEach(function(s, i){ m = Math.max(m, s.step || i + 1); });
|
|
38
|
+
return m + (this.hasDiff() ? 1 : 0);
|
|
39
|
+
}
|
|
40
|
+
hasDiff(){
|
|
41
|
+
return ((this.data || {}).rows || []).some(function(r){ return (r.diff !== undefined && r.diff !== "") || r.better !== undefined; });
|
|
42
|
+
}
|
|
43
|
+
mount(ctx){
|
|
44
|
+
var P = this.props, D = base, self = this, data = this.data || {sides: [], rows: []};
|
|
45
|
+
this.variant = base.variant(this);
|
|
46
|
+
// 形(static shape)では書けない決まり:values は列の数だけ、better は列の番号(0 から)。黙って値を落とさない
|
|
47
|
+
var ns = (data.sides || []).length;
|
|
48
|
+
(data.rows || []).forEach(function(r, j){
|
|
49
|
+
var nv = (r.values || []).length;
|
|
50
|
+
if (nv !== ns) throw new Error("m-compare: rows[" + j + "].values has " + nv + " value(s) but there are " + ns + " sides (write one value per side, in the order of sides)");
|
|
51
|
+
if (r.better !== undefined && !(r.better >= 0 && r.better < ns)) throw new Error("m-compare: rows[" + j + "].better is " + JSON.stringify(r.better) + " but it must be a side number from 0 to " + (ns - 1));
|
|
52
|
+
});
|
|
53
|
+
this.style.display = "block"; this.style.position = "relative";
|
|
54
|
+
var W = this.clientWidth, H = this.clientHeight;
|
|
55
|
+
var svg = D.el("svg", {viewBox: "0 0 " + W + " " + H, width: W, height: H, "aria-hidden": "true", style: "display:block;overflow:visible"}, this);
|
|
56
|
+
var sides = data.sides || [], rows = data.rows || [], n = sides.length;
|
|
57
|
+
var TONES = /^(term|emph|muted|accent2|series-[1-4])$/, DEF = ["term", "accent2", "series-4"];
|
|
58
|
+
var tone = function(s, i){ return "var(--" + (TONES.test(s.tone || "") ? s.tone : DEF[i] || "term") + ")"; };
|
|
59
|
+
var hasDiff = this.hasDiff(), hasDiffCol = rows.some(function(r){ return r.diff !== undefined && r.diff !== ""; });
|
|
60
|
+
this.ja = /^ja\b/i.test(ctx.lang);
|
|
61
|
+
var diffHead = P["diff-label"] || (this.ja ? "違い" : "Difference");
|
|
62
|
+
// 字の幅の見積もり(base の textWidth:テーマの字で測った幅。mtext で書くので *_^ は数えない。太字は 1.04 倍)
|
|
63
|
+
var est = function(s, fs, bold){ return D.textWidth(s, fs, {font: self, mark: true}) * (bold ? 1.04 : 1); };
|
|
64
|
+
// 折り返し:英数字の語はまとめ、行頭に来てはいけない字(、。)」など)の前では折らない。幅は 0.5 px まで超えてよい
|
|
65
|
+
// (列の幅はいちばん長い名前の見積もりで決まり、字ごとの和はその見積もりと浮動小数点の誤差だけ違うことがある)
|
|
66
|
+
var wrap = function(s, maxW, fs, bold){
|
|
67
|
+
var out = [], over = false;
|
|
68
|
+
String(s === undefined ? "" : s).split("\n").forEach(function(par){
|
|
69
|
+
var toks = par.match(/[A-Za-z0-9.,%+\-−:\/'’]+|\s+|[^]/gu) || [""], line = "", w = 0;
|
|
70
|
+
toks.forEach(function(tk){
|
|
71
|
+
var tw = est(tk, fs, bold), sp = /^\s+$/.test(tk);
|
|
72
|
+
if (line && w + tw > maxW + 0.5 && !sp && !/^[、。,.)」』!?ー々ゃゅょっャュョッぁぃぅぇぉ〜]/.test(tk)){ out.push(line.trim()); line = ""; w = 0; }
|
|
73
|
+
if (sp && !line) return;
|
|
74
|
+
line += tk; w += tw;
|
|
75
|
+
});
|
|
76
|
+
out.push(line.trim());
|
|
77
|
+
});
|
|
78
|
+
out.forEach(function(l){ if (est(l, fs, bold) > maxW + 0.5) over = true; });
|
|
79
|
+
return {lines: out, over: over};
|
|
80
|
+
};
|
|
81
|
+
// 字の大きさを size から 24 まで下げて、要素の箱に収まる配置を探す
|
|
82
|
+
var gap = 14, padX = 16, padY = 12, bar = 7, L = null;
|
|
83
|
+
// size が数でなければ既定の 28
|
|
84
|
+
var size0 = P.size;
|
|
85
|
+
if (!(typeof size0 === "number" && isFinite(size0))){ ctx.report("attr", "[compare] size=\"" + this.getAttribute("size") + "\" is not a number (28 is used)"); size0 = 28; }
|
|
86
|
+
for (var fs = Math.max(24, size0); fs >= 24; fs--){
|
|
87
|
+
L = (function(fs){
|
|
88
|
+
var lh = Math.round(fs * 1.3), hs = fs + 2, hlh = Math.round(hs * 1.25), over = false;
|
|
89
|
+
var anyLabel = rows.some(function(r){ return r.label; });
|
|
90
|
+
var lw = anyLabel ? Math.min(W * 0.24, Math.max(W * 0.1, Math.max.apply(null, rows.map(function(r){ return est(r.label || "", fs, true); })) + padX * 2)) : 0;
|
|
91
|
+
var dw = hasDiffCol ? Math.min(W * 0.3, Math.max(W * 0.18, Math.max.apply(null, rows.map(function(r){ return est(r.diff || "", fs, true); })) + padX * 2)) : 0;
|
|
92
|
+
var cw = (W - lw - dw - gap * (n - 1 + (lw ? 1 : 0) + (dw ? 1 : 0))) / n;
|
|
93
|
+
var heads = sides.map(function(s){ var w = wrap(s.label, cw - padX * 2, hs, true); over = over || w.over; return w.lines; });
|
|
94
|
+
var cells = rows.map(function(r){
|
|
95
|
+
var lab = wrap(r.label || "", lw - padX * 2, fs, true), dif = wrap(r.diff || "", dw - padX * 2, fs, true);
|
|
96
|
+
var vals = sides.map(function(s, i){ var v = (r.values || [])[i]; return wrap(v === undefined || v === null ? "" : v, cw - padX * 2, fs, r.better === i); });
|
|
97
|
+
over = over || (lw && lab.over) || (dw && dif.over) || vals.some(function(v){ return v.over; });
|
|
98
|
+
var nl = Math.max(lw ? lab.lines.length : 1, dw ? dif.lines.length : 1, Math.max.apply(null, vals.map(function(v){ return v.lines.length; })));
|
|
99
|
+
return {lab: lab.lines, dif: dif.lines, vals: vals.map(function(v){ return v.lines; }), h: nl * lh + padY * 2};
|
|
100
|
+
});
|
|
101
|
+
var hh = bar + padY * 2 + Math.max.apply(null, heads.map(function(h){ return h.length; })) * hlh;
|
|
102
|
+
var tot = hh + cells.reduce(function(a, c){ return a + c.h; }, 0);
|
|
103
|
+
return {fs: fs, lh: lh, hs: hs, hlh: hlh, lw: lw, dw: dw, cw: cw, heads: heads, cells: cells, hh: hh, tot: tot, ok: !over && tot <= H};
|
|
104
|
+
})(fs);
|
|
105
|
+
if (L.ok) break;
|
|
106
|
+
}
|
|
107
|
+
if (!L.ok) ctx.report("size", "[compare] the table does not fit in " + W + "×" + H + " px even at 24 px (shorten the texts or make the element taller)");
|
|
108
|
+
// 余った高さは行に分ける(1 行につき字の行の高さまで。表は上にそろえる)
|
|
109
|
+
var extra = Math.max(0, Math.min((H - L.tot) / Math.max(1, rows.length), L.lh));
|
|
110
|
+
var ys = [], y = L.hh;
|
|
111
|
+
L.cells.forEach(function(c){ c.h += extra; ys.push(y); y += c.h; });
|
|
112
|
+
var tableH = y;
|
|
113
|
+
var x = 0, colX = {};
|
|
114
|
+
if (L.lw){ colX.label = x; x += L.lw + gap; }
|
|
115
|
+
colX.sides = sides.map(function(){ var x0 = x; x += L.cw + gap; return x0; });
|
|
116
|
+
if (L.dw) colX.diff = x;
|
|
117
|
+
var lastSide = 0;
|
|
118
|
+
sides.forEach(function(s, i){ lastSide = Math.max(lastSide, s.step || i + 1); });
|
|
119
|
+
var diffStep = lastSide + 1;
|
|
120
|
+
// 字の塊を (cx, 行の中央) に置く
|
|
121
|
+
var block = function(g, lines, xx, yc, anchor, attrs, lh){
|
|
122
|
+
var y0 = yc - (lines.length - 1) * lh / 2 + L.fs * 0.36;
|
|
123
|
+
lines.forEach(function(s, j){ if (s) D.mtext(g, xx, y0 + j * lh, s, Object.assign({"text-anchor": anchor, "font-size": L.fs}, attrs)); });
|
|
124
|
+
};
|
|
125
|
+
// 現れる単位(piece):{g, step, row(reveal の順。見出しは 0、行 j は j + 1), dir(slide の向き:-1 左から、1 右から、0 下から)}
|
|
126
|
+
var pieces = [], m = rows.length + 1;
|
|
127
|
+
var piece = function(step, row, dir){ var g = D.el("g", {opacity: 0}, svg); pieces.push({g: g, step: step, row: row, dir: dir}); return g; };
|
|
128
|
+
var sepLine = function(g, x0, w, yy){ D.el("line", {x1: x0, x2: x0 + w, y1: yy, y2: yy, stroke: "var(--line)", "stroke-width": 1.5}, g); };
|
|
129
|
+
// 左右の列は外から、3 つの列の真ん中は下から寄る
|
|
130
|
+
var dirOf = function(i){ return i === 0 ? -1 : i === n - 1 ? 1 : 0; };
|
|
131
|
+
// 観点の名前(最初の列と一緒に、その列の向きで)
|
|
132
|
+
var s0 = sides.length ? (sides[0].step || 1) : 1;
|
|
133
|
+
if (L.lw) L.cells.forEach(function(c, j){
|
|
134
|
+
var g = piece(s0, j + 1, -1);
|
|
135
|
+
block(g, c.lab, colX.label + padX * 0.5, ys[j] + c.h / 2, "start", {"font-weight": 700, fill: "var(--fg)"}, L.lh);
|
|
136
|
+
if (j < rows.length - 1) sepLine(g, colX.label, L.lw, ys[j] + c.h);
|
|
137
|
+
});
|
|
138
|
+
// 列:薄い地の札・上の帯・見出し、行ごとの値
|
|
139
|
+
sides.forEach(function(s, i){
|
|
140
|
+
var st = s.step || i + 1, col = tone(s, i), x0 = colX.sides[i], dir = dirOf(i);
|
|
141
|
+
var g = piece(st, 0, dir);
|
|
142
|
+
D.el("rect", {x: x0, y: 0, width: L.cw, height: tableH, rx: 12, fill: col, "fill-opacity": 0.07}, g);
|
|
143
|
+
D.el("rect", {x: x0, y: 0, width: L.cw, height: bar, rx: 3, fill: col}, g);
|
|
144
|
+
var hl = L.heads[i];
|
|
145
|
+
hl.forEach(function(t, j){
|
|
146
|
+
D.mtext(g, x0 + L.cw / 2, bar + padY + (L.hh - bar - padY * 2 - hl.length * L.hlh) / 2 + j * L.hlh + L.hlh / 2 + L.hs * 0.36, t,
|
|
147
|
+
{"text-anchor": "middle", "font-size": L.hs, "font-weight": 700, fill: col});
|
|
148
|
+
});
|
|
149
|
+
L.cells.forEach(function(c, j){
|
|
150
|
+
var gc = piece(st, j + 1, dir), r = rows[j];
|
|
151
|
+
block(gc, c.vals[i], x0 + L.cw / 2, ys[j] + c.h / 2, "middle", r.better === i ? {"font-weight": 700, fill: col} : {fill: "var(--fg)"}, L.lh);
|
|
152
|
+
sepLine(gc, x0 + 10, L.cw - 20, ys[j]);
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
// 違い:右の列(見出しと diff の字)と、better の値を囲む枠
|
|
156
|
+
if (hasDiff){
|
|
157
|
+
if (L.dw){
|
|
158
|
+
var gd = piece(diffStep, 0, 1);
|
|
159
|
+
D.el("rect", {x: colX.diff, y: 0, width: L.dw, height: tableH, rx: 12, fill: "var(--emph-tint)"}, gd);
|
|
160
|
+
D.el("rect", {x: colX.diff, y: 0, width: L.dw, height: bar, rx: 3, fill: "var(--emph)"}, gd);
|
|
161
|
+
D.mtext(gd, colX.diff + L.dw / 2, bar + (L.hh - bar) / 2 + L.hs * 0.36, diffHead, {"text-anchor": "middle", "font-size": L.hs, "font-weight": 700, fill: "var(--emph)"});
|
|
162
|
+
}
|
|
163
|
+
L.cells.forEach(function(c, j){
|
|
164
|
+
var r = rows[j], hasD = r.diff !== undefined && r.diff !== "", hasB = r.better !== undefined && r.better >= 0 && r.better < n;
|
|
165
|
+
if (!hasD && !hasB && !L.dw) return;
|
|
166
|
+
var g = piece(diffStep, j + 1, 1);
|
|
167
|
+
if (L.dw){
|
|
168
|
+
if (hasD) block(g, c.dif, colX.diff + padX, ys[j] + c.h / 2, "start", {"font-weight": 700, fill: "var(--emph)"}, L.lh);
|
|
169
|
+
D.el("line", {x1: colX.diff + 10, x2: colX.diff + L.dw - 10, y1: ys[j], y2: ys[j], stroke: "var(--line)", "stroke-width": 1.5}, g);
|
|
170
|
+
}
|
|
171
|
+
if (hasB) D.el("rect", {x: colX.sides[r.better] + 5, y: ys[j] + 5, width: L.cw - 10, height: c.h - 10, rx: 9, fill: "none", stroke: "var(--emph)", "stroke-width": 3}, g);
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
this.pieces = pieces; this.m = m;
|
|
175
|
+
// 読み上げ:最後の形(すべての列と行、違い)を 1 文で。作者の aria-label があればそれを使う(上書きしない)
|
|
176
|
+
if (this._aria === undefined) this._aria = this.getAttribute("aria-label");
|
|
177
|
+
this.setAttribute("role", "img");
|
|
178
|
+
if (!this._aria) this.setAttribute("aria-label", this.summary(this.ja, diffHead));
|
|
179
|
+
}
|
|
180
|
+
// 最後の形を 1 文で(読み上げの名前):「紙の申請とオンライン申請の比較。受付時間:紙の申請 平日 9〜17 時、オンライン申請 24 時間(オンライン申請がよい。違い:いつでも出せる)」
|
|
181
|
+
summary(ja, diffHead){
|
|
182
|
+
var d = this.data || {}, sides = d.sides || [], one = function(v){ return String(v === undefined || v === null ? "" : v).replace(/\s*\n\s*/g, " ").replace(/\*/g, ""); };
|
|
183
|
+
var names = sides.map(function(s){ return one(s.label); });
|
|
184
|
+
var s = ja ? names.join("と") + "の比較" : "Comparison of " + names.join(" and ");
|
|
185
|
+
(d.rows || []).forEach(function(r){
|
|
186
|
+
var vs = sides.map(function(sd, i){ return names[i] + " " + one((r.values || [])[i]); }).join(ja ? "、" : ", ");
|
|
187
|
+
var ex = [];
|
|
188
|
+
if (r.better !== undefined && names[r.better] !== undefined) ex.push(ja ? names[r.better] + "がよい" : names[r.better] + " is better");
|
|
189
|
+
if (r.diff !== undefined && r.diff !== "") ex.push(one(diffHead) + (ja ? ":" : ": ") + one(r.diff));
|
|
190
|
+
s += (ja ? "。" : ". ") + (r.label ? one(r.label) + (ja ? ":" : ": ") : "") + vs + (ex.length ? (ja ? "(" + ex.join("。") + ")" : " (" + ex.join("; ") + ")") : "");
|
|
191
|
+
});
|
|
192
|
+
return s;
|
|
193
|
+
}
|
|
194
|
+
duration(k){
|
|
195
|
+
var d = 0, F = this.props.dur;
|
|
196
|
+
(this.pieces || []).forEach(function(p){ if (p.step === k) d = F; });
|
|
197
|
+
return d;
|
|
198
|
+
}
|
|
199
|
+
cues(){ return null; }
|
|
200
|
+
render(k, t, ctx){
|
|
201
|
+
var D = base, F = this.props.dur, vr = this.variant, m = this.m, lecture = !!ctx.preview;
|
|
202
|
+
// 先の段階の薄さ:テーマの --preview-opacity(ないときは 0.45)
|
|
203
|
+
var dim = lecture ? base.previewOpacity(this) : 0.45;
|
|
204
|
+
var TRAVEL = 16;
|
|
205
|
+
this.pieces.forEach(function(p){
|
|
206
|
+
// reveal:行ごとに F/2 秒ずつ、出だしを F/2 の中で上から順にずらす(全体で F 秒。fade と同じ長さ)
|
|
207
|
+
var at = 0, len = F;
|
|
208
|
+
if (vr === "reveal"){ len = F / 2; at = m > 1 ? p.row / (m - 1) * F / 2 : 0; }
|
|
209
|
+
var e = p.step < k ? 1 : p.step > k ? 0 : D.prog(t, at, len);
|
|
210
|
+
if (lecture){
|
|
211
|
+
p.g.setAttribute("opacity", (p.step > k ? dim : p.step === k ? D.lerp(dim, 1, e) : 1).toFixed(3));
|
|
212
|
+
p.g.removeAttribute("transform");
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
p.g.setAttribute("opacity", e.toFixed(3));
|
|
216
|
+
var off = (1 - e) * TRAVEL, tr = "";
|
|
217
|
+
if (off > 0.01) tr = vr === "slide" && p.dir ? "translate(" + (p.dir * off).toFixed(2) + " 0)" : "translate(0 " + off.toFixed(2) + ")";
|
|
218
|
+
if (tr) p.g.setAttribute("transform", tr); else p.g.removeAttribute("transform");
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# m-menu 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.2 (components 2.2.0)
|
|
6
|
+
|
|
7
|
+
- Requires base 1.1.0 (sub- and superscripts at least 24px, a measured text-width estimate).
|
|
8
|
+
|
|
9
|
+
## 2.0.1 (components 2.1.2)
|
|
10
|
+
|
|
11
|
+
- Fix: a printed menu did not say where its cards lead (print only hid the visited mark); in print each card now shows the target slide's number ("→12", from ctx.slides) at its top right, where the visited mark is on screen, so the cards keep their height and a full menu still fits the slide (cards to another file keep their bottom-right mark).
|
|
12
|
+
- Fix: the visited mark (top right) and the another-file mark (bottom right) were drawn over long titles; cards that can show a mark now keep room for it on the right, and a long word wraps inside the card instead of overflowing it (overflow-wrap). The style element is now `menu-2-0-1-css` (its CSS changed).
|
|
13
|
+
- Fix: the element had no role, so assistive tech read the cards as loose text in DOM order; it is now role="navigation" named by its card titles in one sentence, and an author aria-label is kept.
|
|
14
|
+
|
|
15
|
+
## 2.0.0 (components 2.0.0-rc.1 and 2.0.0)
|
|
16
|
+
|
|
17
|
+
- Moved to `egatariParts.define({name: "menu", version: "2.0.0", requires: {base: "1.0.0"}, element: "m-menu"})`,
|
|
18
|
+
extending `base.MotionElement`; `static partName = "menu"`. The DOM is byte-identical to 1.13.0 on its demo and on
|
|
19
|
+
`tools/fixtures/c2-identity/menu.html` at every step and after visiting every slide (tools/test-c2-identity.mjs).
|
|
20
|
+
- Reads its cards' fragments itself (spec §9.1A: `#<key>`, `#<key>:<stepKey>`, legacy `#N`) against `ctx.slides`
|
|
21
|
+
(`[{key, title, steps, concl}]`): a numbered step key above the slide's `steps`, and `#<key>:concl` on a slide without
|
|
22
|
+
a conclusion (`concl` false), are refused, as `DECK.resolveFragment` did.
|
|
23
|
+
- "Visited" marks: `ctx.visited(key)`, refreshed on the render where `ctx.entered` is true (1.13.0 listened to DECK's
|
|
24
|
+
`deck:pos`). Language: `/^ja\b/i.test(ctx.lang)` (1.13.0: `DECK.ja`).
|
|
25
|
+
- Ids: its style element is `menu-2-0-0-css` (1.13.0: `m-menu-css`); it is in `<head>`, not in the component's DOM, so no
|
|
26
|
+
id rewrite is needed in the identity test.
|
|
27
|
+
|
|
28
|
+
## 1.13.0
|
|
29
|
+
|
|
30
|
+
As released in the library's 1.13.0.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: m-menu
|
|
3
|
+
version: 2.0.2
|
|
4
|
+
series: common
|
|
5
|
+
tier: standard
|
|
6
|
+
summary: スライドへのリンクの札を格子に並べる(目次・単元の選び方)。札はふつうの <a href="#<スライドの id>">、行ったスライドの札に「見た」の印
|
|
7
|
+
steps: ceil(札の数 / per-step)(既定の per-step="0" なら 0:初めから全部)
|
|
8
|
+
purposes: contents
|
|
9
|
+
props: cols, per-step, size, fade, stagger, visited
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
目次、授業の単元の選び方、「どこから見るか」を選ばせる 1 枚に使う。
|
|
13
|
+
<!-- llm: omit -->
|
|
14
|
+
札は子に書いたふつうのリンクで、部品は見た目(格子・丸の字・副題・印)を整えるだけ。押したときの動きは実行系(`kit/deck.js`)が受け持つ
|
|
15
|
+
([format spec §9.1A](https://github.com/egatari/egatari-spec/blob/main/egatari-1.0.md#91a-links-to-slides)、`docs/contract.md` §9)。
|
|
16
|
+
|
|
17
|
+
<!-- llm: end -->
|
|
18
|
+
```html
|
|
19
|
+
<m-menu cols="3" aria-label="今日の内容">
|
|
20
|
+
<a href="#s-njd4kp" data-icon="一" data-sub="孟浩然">春暁</a>
|
|
21
|
+
<a href="#s-uhqygr:2" data-icon="二" data-sub="読む順から">春望</a>
|
|
22
|
+
<a href="lesson2.ega.html" data-sub="次の課">返り点の練習</a>
|
|
23
|
+
</m-menu>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
- 子の `<a href>` 1 つが札 1 枚。`href` は `#<スライドの id>`(その段階 0)か `#<id>:<段階の鍵>`(`0`・`1`・… か `concl`)。id は `npm run ids` が付けたもの。中身(文字・`<b>` など)が札の題になる
|
|
27
|
+
- `data-icon`:題の左の丸に入れる短い字(`一`・`1`・`A` など。色は `--term`)。`data-sub`:題の下の副題(`--muted`)
|
|
28
|
+
<!-- llm: omit -->
|
|
29
|
+
- ほかのファイルへのリンク(`other.ega.html#s-…`)はふつうのリンクで、札の右下に「別のファイル」の印。そのファイルは 1 ファイル(.ega.html)には入らない
|
|
30
|
+
- 押すと:発表ではその段階の最終状態へ、自動再生中ならそこから再生を続ける。行った先の左上に「戻る」(Backspace・Alt+←・ブラウザの戻る)
|
|
31
|
+
- 「見た」の印:このセッションで札の行き先のスライドを開いたら、札の右上に ✓(保存しない。開き直すと消える)。動画では付けず、印刷に出ない。
|
|
32
|
+
見ている人の側の状態で、画面の決まり (i, k, t) の外(`m-kobun` の札と同じ扱い)。`visited="false"` で付けない
|
|
33
|
+
<!-- llm: end -->
|
|
34
|
+
- 段階:`per-step="n"` なら札が n 枚ずつ段階ごとに出る(`data-from` から。同じ段階の中は `stagger` 秒ずつずれる)。まだ出ていない札は押せず、Tab でも選べず、読み上げない。
|
|
35
|
+
`per-step="0"`(既定)なら初めから全部(段階を使わない)。段階は (k, t) だけで決まる
|
|
36
|
+
- 並び:`cols`(既定は札の数から:3 枚までは 1 行、4 枚は 2 列、それより多ければ 3 列)。札の高さの下限は CSS の `--mm-h`(既定 104px)、間は `--mm-gap`(18px)。
|
|
37
|
+
本文いっぱいに置いて縦の真ん中にそろえるなら `style="height:100%;align-content:center;--mm-h:150px"`
|
|
38
|
+
<!-- llm: omit -->
|
|
39
|
+
- 字の大きさ:題は `size`(既定 34px)、副題はその 0.8 倍(本文の下限の 27px より小さくしない)
|
|
40
|
+
<!-- llm: end -->
|
|
41
|
+
|
|
42
|
+
見本は `demo.html`(4 枚、2 枚ずつ出る目次)と `examples/kokugo-kanbun` の 2 枚目(6 枚の目次)。
|
|
43
|
+
|
|
44
|
+
<!-- llm: omit -->
|
|
45
|
+
注意
|
|
46
|
+
|
|
47
|
+
- スクリプトなしで開いたとき(1 ファイル(.ega.html)の読める層、印刷の前の HTML)は、ふつうのリンクの並びとして読める
|
|
48
|
+
- 部品は札の中身を組み替える(題・副題・丸の字を `span` で包む)が、`<a>` とその `href` は書いたまま
|
|
49
|
+
- CSS の transition は使わない(実時間で動くので、画面が (k, t) で決まらなくなる)
|
|
50
|
+
<!-- llm: end -->
|
|
@@ -0,0 +1,61 @@
|
|
|
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-menu の見本</title>
|
|
7
|
+
<!-- 組み方:node kit/build.mjs components/menu/demo.html -o components/menu/out/demo.html。札はふつうの <a href="#<スライドの id>"> -->
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="stage">
|
|
11
|
+
|
|
12
|
+
<section class="slide noconcl" id="s-menu01">
|
|
13
|
+
<h2>今日の内容</h2>
|
|
14
|
+
<div class="body">
|
|
15
|
+
<p class="ia-badge" style="margin:0 0 10px;line-height:1.3"><span style="display:inline-block;font-size:27px;font-weight:700;color:var(--fg);border:2px dashed var(--accent2);border-radius:8px;padding:0 12px">操作できる</span></p>
|
|
16
|
+
<m-menu per-step="2" aria-label="今日の内容">
|
|
17
|
+
<a href="#s-part01" data-icon="1" data-sub="何を確かめたいか">問い</a>
|
|
18
|
+
<a href="#s-part02" data-icon="2" data-sub="集め方と人数">方法</a>
|
|
19
|
+
<a href="#s-part03" data-icon="3" data-sub="図と数字">結果</a>
|
|
20
|
+
<a href="#s-part03:2" data-icon="4" data-sub="結果の 2 段目から">効果の大きさ</a>
|
|
21
|
+
</m-menu>
|
|
22
|
+
</div>
|
|
23
|
+
</section>
|
|
24
|
+
|
|
25
|
+
<section class="slide" id="s-part01">
|
|
26
|
+
<h2>問い</h2>
|
|
27
|
+
<div class="body">
|
|
28
|
+
<ul>
|
|
29
|
+
<li>短い復習は、次の週の小テストの点を上げるか</li>
|
|
30
|
+
<li>上がるなら、どのくらいか</li>
|
|
31
|
+
</ul>
|
|
32
|
+
<p><a href="#s-menu01">目次へ</a></p>
|
|
33
|
+
</div>
|
|
34
|
+
<div class="concl"><span>確かめたいのは、効果の有無と大きさ</span></div>
|
|
35
|
+
</section>
|
|
36
|
+
|
|
37
|
+
<section class="slide" id="s-part02">
|
|
38
|
+
<h2>方法</h2>
|
|
39
|
+
<div class="body">
|
|
40
|
+
<ul>
|
|
41
|
+
<li>2 つの組(各 30 人)で、片方だけ毎回 5 分の復習</li>
|
|
42
|
+
<li>4 週の小テストの平均を比べる</li>
|
|
43
|
+
</ul>
|
|
44
|
+
</div>
|
|
45
|
+
<div class="concl"><span>違いは復習の有無だけにそろえる</span></div>
|
|
46
|
+
</section>
|
|
47
|
+
|
|
48
|
+
<section class="slide" id="s-part03">
|
|
49
|
+
<h2>結果</h2>
|
|
50
|
+
<div class="body">
|
|
51
|
+
<ul>
|
|
52
|
+
<li>復習した組の平均は 72 点、しなかった組は 66 点</li>
|
|
53
|
+
<li>差は 6 点(数字は見本のための架空のもの)</li>
|
|
54
|
+
</ul>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="concl"><span>短い復習でも、点に差が出た</span></div>
|
|
57
|
+
</section>
|
|
58
|
+
|
|
59
|
+
</div>
|
|
60
|
+
</body>
|
|
61
|
+
</html>
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
// m-menu:スライドへのリンクの札を格子に並べる(目次・単元の選び方・「どこから見るか」)
|
|
2
|
+
// <m-menu cols="3">
|
|
3
|
+
// <a href="#s-njd4kp" data-icon="一" data-sub="孟浩然">春暁</a> ← スライドへ(その段階 0)
|
|
4
|
+
// <a href="#s-uhqygr:2" data-sub="杜甫(読む順から)">春望</a> ← スライドの段階へ(#<id>:<段階の鍵>)
|
|
5
|
+
// <a href="lesson2.ega.html" data-sub="次の課">返り点の練習</a> ← ほかのファイル:ふつうのリンク
|
|
6
|
+
// </m-menu>
|
|
7
|
+
// 札はふつうの <a href>(format spec §9.1A:スクリプトのないリンクで、Core の文書に入れてよい)。部品は見た目を整えるだけで、
|
|
8
|
+
// 押したときの動き(発表では最終状態へ、自動再生中はそこから続ける、「戻る」)は実行系(kit/deck.js)が受け持つ。
|
|
9
|
+
// 段階:per-step="n" なら札が n 枚ずつ段階ごとに出る(data-from から)。0(既定)なら初めから全部(段階を使わない)。
|
|
10
|
+
// 「見た」の印:このセッションで札の行き先のスライドを開いたら、札の右上に印(保存しない。動画では付けない、印刷に出ない)。
|
|
11
|
+
// 印は見ている人の側の状態で、(i, k, t) の外(m-kobun の札と同じ扱い)。visited="false" で付けない
|
|
12
|
+
// 大きさ:札の高さの下限は --mm-h(既定 104px)、間は --mm-gap。CSS の transition は使わない(実時間で動くので、画面が (k, t) で決まらなくなる)
|
|
13
|
+
// 2.0(Egatari spec §6.1 の部品):base を使い、プレイヤーのグローバルは使わない。札の行き先(# の後ろ、spec §9.1A)はこのパーツが
|
|
14
|
+
// ctx.slides で読み(slideOf)、「見た」は ctx.visited(スライドの鍵)。印はスライドに入ったときの描画(ctx.entered)で付け直す
|
|
15
|
+
// (1.x は DECK の deck:pos を聞いていた。ほかのスライドを見られるのは、このスライドを離れている間だけ)
|
|
16
|
+
egatariParts.define({name: "menu", version: "2.0.2", requires: {base: "1.1.0"}, element: "m-menu"}, function(deps){
|
|
17
|
+
"use strict";
|
|
18
|
+
var base = deps.base;
|
|
19
|
+
var CSS_ID = "menu-2-0-2-css"; // the style element this part writes, named with its name and version (spec §6.1 Identifiers)
|
|
20
|
+
var CSS =
|
|
21
|
+
"m-menu{display:grid;gap:var(--mm-gap,18px);grid-template-columns:repeat(var(--mm-cols,3),minmax(0,1fr));grid-auto-rows:minmax(var(--mm-h,104px),auto);align-content:start}" +
|
|
22
|
+
"m-menu>a{position:relative;display:flex;align-items:center;gap:18px;padding:14px 22px;box-sizing:border-box;" +
|
|
23
|
+
"border:2px solid var(--line);border-radius:14px;background:var(--bg);color:var(--fg);text-decoration:none;cursor:pointer}" +
|
|
24
|
+
"m-menu>a:hover{border-color:var(--term);box-shadow:0 3px 14px color-mix(in srgb,var(--term) 18%,transparent)}" +
|
|
25
|
+
"m-menu>a:focus{outline:none}m-menu>a:focus-visible{outline:3px solid var(--term);outline-offset:3px}" +
|
|
26
|
+
"m-menu .mm-icon{flex:none;display:grid;place-items:center;width:1.9em;height:1.9em;border-radius:50%;background:var(--term);color:var(--bg);font-weight:700;line-height:1}" +
|
|
27
|
+
"m-menu .mm-text{display:flex;flex-direction:column;gap:4px;min-width:0;overflow-wrap:anywhere}" +
|
|
28
|
+
"m-menu>a.mm-r{padding-right:46px}" +
|
|
29
|
+
"m-menu .mm-title{font-weight:700;line-height:1.25}" +
|
|
30
|
+
"m-menu .mm-sub{font-size:max(27px,.8em);line-height:1.3;color:var(--muted)}" +
|
|
31
|
+
"m-menu .mm-to{display:none;position:absolute;right:12px;top:10px;font-size:27px;line-height:1.2;font-weight:700;white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums}" +
|
|
32
|
+
"m-menu .mm-ext{position:absolute;right:12px;bottom:10px;width:20px;height:20px;color:var(--muted)}" +
|
|
33
|
+
"m-menu .mm-seen{position:absolute;right:10px;top:10px;display:none;width:26px;height:26px;border-radius:50%;background:var(--muted);color:var(--bg)}" +
|
|
34
|
+
"m-menu>a.mm-visited{border-color:color-mix(in srgb,var(--muted) 55%,var(--line))}" +
|
|
35
|
+
"m-menu>a.mm-visited .mm-seen{display:block}" +
|
|
36
|
+
"m-menu svg{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}" +
|
|
37
|
+
".printing m-menu .mm-seen{display:none!important}@media print{m-menu .mm-seen{display:none!important}}" +
|
|
38
|
+
".printing m-menu .mm-to{display:block}.printing m-menu>a.mm-d{padding-right:78px}" +
|
|
39
|
+
"@media print{m-menu .mm-to{display:block}m-menu>a.mm-d{padding-right:78px}}m-menu .mm-to:empty{display:none!important}" +
|
|
40
|
+
".mm-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}";
|
|
41
|
+
var CHECK = '<svg class="mm-seen" viewBox="0 0 26 26" aria-hidden="true"><path d="M7.5 13.5l3.6 3.6 7.4-8"/></svg>';
|
|
42
|
+
var EXT = '<svg class="mm-ext" viewBox="0 0 20 20" aria-hidden="true"><path d="M8 4H4v12h12v-4M11 3h6v6M17 3l-8 8"/></svg>';
|
|
43
|
+
function cards(el){ return [].filter.call(el.children, function(x){ return x.localName === "a" && x.hasAttribute("href"); }); }
|
|
44
|
+
// 札の行き先のスライドの鍵(spec §9.1A:#<スライドの id>、#<id>:<段階の鍵>。段階の鍵は最後の : で切り、0・1・…(3 桁まで)か concl。
|
|
45
|
+
// 数字だけの #N は 1 から数えたスライドの番号)。読めなければ null。数字の段階の鍵は、そのスライドの数字の段階の最後
|
|
46
|
+
// (ctx.slides の steps。spec §8.4)を超えれば読めない。concl は結論の段階があるスライド(ctx.slides の concl)でだけ読める
|
|
47
|
+
// (どちらも 1.x の DECK.resolveFragment と同じ)
|
|
48
|
+
function slideOf(frag, slides){
|
|
49
|
+
var f = String(frag == null ? "" : frag);
|
|
50
|
+
try { f = decodeURIComponent(f); } catch (e) { /* the fragment as written */ }
|
|
51
|
+
if (!f) return null;
|
|
52
|
+
if (/^[0-9]+$/.test(f)){ var n = +f; return n >= 1 && n <= slides.length ? slides[n - 1].key : null; }
|
|
53
|
+
var find = function(key){ for (var j = 0; j < slides.length; j++) if (slides[j].key === key) return slides[j]; return null; };
|
|
54
|
+
if (find(f)) return f;
|
|
55
|
+
var p = f.lastIndexOf(":"), s = p > 0 ? find(f.slice(0, p)) : null;
|
|
56
|
+
if (!s) return null;
|
|
57
|
+
var sk = f.slice(p + 1);
|
|
58
|
+
if (sk === "concl") return s.concl === true ? s.key : null;
|
|
59
|
+
return /^(0|[1-9][0-9]{0,2})$/.test(sk) && +sk <= (s.steps || 0) ? s.key : null;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return class extends base.MotionElement {
|
|
63
|
+
static partName = "menu"; // the registry name (define meta name), for report prefixes
|
|
64
|
+
static interactive = true; // 操作できるパーツ(札はリンク。docs/conventions.md §6)
|
|
65
|
+
// データの形(kit/shape.js):JSON ではなく、子のリンク <a href="#<スライドの id>">題</a>
|
|
66
|
+
static shape = {links: true, example: '<a href="#s-abc123" data-sub="副題">題</a>'};
|
|
67
|
+
static props = {
|
|
68
|
+
cols: {type: "number", default: 0, doc: "列の数(0 なら札の数から:3 枚までは 1 行、4 枚は 2 列、それより多ければ 3 列)"},
|
|
69
|
+
"per-step": {type: "number", default: 0, doc: "1 段階に出す札の数(0 なら初めから全部出し、段階を使わない)"},
|
|
70
|
+
size: {type: "number", default: 34, doc: "札の題の字の大きさ(px)。副題はその 0.8 倍(本文の下限の 27px より小さくしない)"},
|
|
71
|
+
fade: {type: "number", default: 0.4, doc: "札が出る秒数"},
|
|
72
|
+
stagger: {type: "number", default: 0.12, doc: "同じ段階の札どうしの出るずれ(秒)"},
|
|
73
|
+
visited: {type: "bool", default: true, doc: "このセッションで行き先のスライドを開いた札に「見た」の印を付ける"},
|
|
74
|
+
};
|
|
75
|
+
get steps(){
|
|
76
|
+
var a = this.getAttribute("steps");
|
|
77
|
+
if (a !== null && /^\d+$/.test(a.trim())) return +a;
|
|
78
|
+
var per = +this.getAttribute("per-step") || 0;
|
|
79
|
+
return per > 0 ? Math.ceil(cards(this).length / per) : 0;
|
|
80
|
+
}
|
|
81
|
+
mount(ctx){
|
|
82
|
+
var P = this.props, list = cards(this), n = list.length;
|
|
83
|
+
if (!document.getElementById(CSS_ID)){ var st = document.createElement("style"); st.id = CSS_ID; st.textContent = CSS; document.head.appendChild(st); }
|
|
84
|
+
var cols = P.cols > 0 ? P.cols : n <= 3 ? Math.max(1, n) : n === 4 ? 2 : 3;
|
|
85
|
+
this.style.setProperty("--mm-cols", cols);
|
|
86
|
+
this.style.fontSize = P.size + "px";
|
|
87
|
+
var per = P["per-step"] > 0 ? P["per-step"] : 0;
|
|
88
|
+
var ja = /^ja\b/i.test(ctx.lang), visitedOn = P.visited && ctx.mode !== "video";
|
|
89
|
+
this.cards = list.map(function(a, j){
|
|
90
|
+
// 書いた中身(文字・<b> など)を題にし、data-icon と data-sub から丸の字と副題を足す(リンクはそのまま)
|
|
91
|
+
var title = document.createElement("span"); title.className = "mm-title";
|
|
92
|
+
while (a.firstChild) title.appendChild(a.firstChild);
|
|
93
|
+
var text = document.createElement("span"); text.className = "mm-text"; text.appendChild(title);
|
|
94
|
+
var sub = a.getAttribute("data-sub");
|
|
95
|
+
if (sub){ var sp = document.createElement("span"); sp.className = "mm-sub"; sp.textContent = sub; text.appendChild(sp); }
|
|
96
|
+
var icon = a.getAttribute("data-icon");
|
|
97
|
+
if (icon){ var ic = document.createElement("span"); ic.className = "mm-icon"; ic.setAttribute("aria-hidden", "true"); ic.textContent = icon; a.appendChild(ic); }
|
|
98
|
+
a.appendChild(text);
|
|
99
|
+
var href = a.getAttribute("href"), inDoc = href.charAt(0) === "#";
|
|
100
|
+
// 印刷にだけ出す行き先(印刷では押せないので):右上(画面の「見た」の印の場所)に行き先のスライドの番号「→12」(dests が ctx.slides から書く)。
|
|
101
|
+
// 札の高さを変えない(札の多い目次がスライドからはみ出さない)。ほかのファイルへの札は右下の印のまま。読み上げはしない(リンクの題がある)
|
|
102
|
+
var to = document.createElement("span"); to.className = "mm-to"; to.setAttribute("aria-hidden", "true"); a.appendChild(to);
|
|
103
|
+
// 右上の「見た」の印・右下の「別のファイル」の印の場所を空けておく(長い題が印の下に入らない)
|
|
104
|
+
if ((visitedOn && inDoc) || !inDoc) a.classList.add("mm-r");
|
|
105
|
+
a.insertAdjacentHTML("beforeend", CHECK + (inDoc ? "" : EXT));
|
|
106
|
+
var sr = document.createElement("span"); sr.className = "mm-sr"; a.appendChild(sr);
|
|
107
|
+
// 作り手が書いた style(render はこの後ろに自分の値を足して書く)
|
|
108
|
+
var css = (a.getAttribute("style") || "").trim().replace(/\s*;$/, ""); if (css) css += ";";
|
|
109
|
+
return {a: a, sr: sr, to: to, css: css, frag: inDoc ? href.slice(1) : null, ext: !inDoc, step: per ? Math.floor(j / per) + 1 : 0, at: per ? (j % per) * P.stagger : 0};
|
|
110
|
+
});
|
|
111
|
+
this.ja = ja;
|
|
112
|
+
this.visitedOn = visitedOn;
|
|
113
|
+
// 読み上げ:札の並びはリンクの集まり(navigation)。名前は札の題を並べた 1 文。作者の aria-label があればそれを使う(上書きしない)
|
|
114
|
+
if (this._aria === undefined) this._aria = this.getAttribute("aria-label");
|
|
115
|
+
this.setAttribute("role", "navigation");
|
|
116
|
+
if (!this._aria) this.setAttribute("aria-label", (ja ? "スライドへのリンク " + n + " 件:" : n + " links: ") +
|
|
117
|
+
this.cards.map(function(c){ return c.a.querySelector(".mm-title").textContent.trim(); }).join(ja ? "、" : ", "));
|
|
118
|
+
if (this.visitedOn) this.markVisited(ctx);
|
|
119
|
+
this.dests(ctx);
|
|
120
|
+
}
|
|
121
|
+
// 印刷の行き先の字(スライドの番号)。ctx.slides は部品を組むときにはまだ空のことがあるので、読めた最初の描画で 1 回だけ書く
|
|
122
|
+
dests(ctx){
|
|
123
|
+
var slides = ctx.slides || [];
|
|
124
|
+
if (this._dests || !slides.length) return;
|
|
125
|
+
this._dests = true;
|
|
126
|
+
this.cards.forEach(function(c){
|
|
127
|
+
if (c.frag === null) return;
|
|
128
|
+
var key = slideOf(c.frag, slides), s = "";
|
|
129
|
+
for (var q = 0; q < slides.length; q++) if (key !== null && slides[q].key === key) s = "→" + (q + 1);
|
|
130
|
+
c.to.textContent = s;
|
|
131
|
+
if (s) c.a.classList.add("mm-d");
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
// 「見た」の印(見ている人の側の状態。(i, k, t) の外)
|
|
135
|
+
markVisited(ctx){
|
|
136
|
+
var ja = this.ja, slides = ctx.slides || [];
|
|
137
|
+
this.cards.forEach(function(c){
|
|
138
|
+
var v = false;
|
|
139
|
+
if (c.frag !== null){ var key = slideOf(c.frag, slides); v = key !== null && ctx.visited(key) === true; }
|
|
140
|
+
c.a.classList.toggle("mm-visited", v);
|
|
141
|
+
c.sr.textContent = (v ? (ja ? "(見た)" : " (visited)") : "") + (c.ext ? (ja ? "(別のファイル)" : " (another file)") : "");
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
duration(k){
|
|
145
|
+
var d = 0, F = this.props.fade;
|
|
146
|
+
this.cards.forEach(function(c){ if (c.step === k) d = Math.max(d, c.at + F); });
|
|
147
|
+
return d;
|
|
148
|
+
}
|
|
149
|
+
render(k, t, ctx){
|
|
150
|
+
var F = this.props.fade, lecture = !!ctx.preview, FAINT = 0.45;
|
|
151
|
+
// 先の段階の薄さ:テーマの --preview-opacity(ないときは 0.45)
|
|
152
|
+
if (lecture) FAINT = base.previewOpacity(this);
|
|
153
|
+
// 「見た」の印は、ほかのスライドから入ったときに付け直す
|
|
154
|
+
if (this.visitedOn && ctx.entered) this.markVisited(ctx);
|
|
155
|
+
this.dests(ctx);
|
|
156
|
+
this.cards.forEach(function(c){
|
|
157
|
+
var p = c.step < k ? 1 : c.step > k ? 0 : base.prog(t, c.at, F);
|
|
158
|
+
if (lecture && p < 1) p = Math.max(p, c.step > k ? FAINT : p);
|
|
159
|
+
// 見えていない札は押せない・選べない・読み上げない
|
|
160
|
+
// 授業の表示で薄く見せている先の札も押せない・選べない(読み上げはする)
|
|
161
|
+
var off = p <= 0, inert = off || (lecture && c.step > k);
|
|
162
|
+
// 書く属性は毎回、同じ順・同じ書き方で書き直す(style は作り手の style の後ろに 1 つの文字列で。
|
|
163
|
+
// tabindex・aria-hidden は消してから付け直す)。呼ぶ順で属性の字や並びが変わらない(docs/contract.md §3)
|
|
164
|
+
c.a.removeAttribute("tabindex"); c.a.removeAttribute("aria-hidden");
|
|
165
|
+
c.a.setAttribute("style", c.css + "opacity:" + p.toFixed(3) + ";" + (p < 1 && !lecture ? "transform:translateY(" + ((1 - p) * 14).toFixed(2) + "px);" : "") + (inert ? "pointer-events:none;" : ""));
|
|
166
|
+
if (inert) c.a.setAttribute("tabindex", "-1");
|
|
167
|
+
if (off) c.a.setAttribute("aria-hidden", "true");
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
});
|