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,20 @@
|
|
|
1
|
+
# Changes to the strokesvg kana shapes (FONTLOG)
|
|
2
|
+
|
|
3
|
+
Source: strokesvg <https://github.com/zhengkyl/strokesvg>, commit `e4c2c91034e03c9c2f4e95f14f2361a948f52cd0`
|
|
4
|
+
(kana SVGs derived from Klee One; SIL OFL 1.1). Converted by `tools/kana-import-strokesvg.mjs`. These changes are
|
|
5
|
+
part of the OFL-licensed work.
|
|
6
|
+
|
|
7
|
+
- 2026-10-26 — Format and precision. Each character's strokes in writing order; each stroke a list of pieces
|
|
8
|
+
`[outline, centreline]` (strokesvg splits a stroke that crosses itself into pieces, each with its own clip; they
|
|
9
|
+
stay grouped as one stroke). Coordinates scaled from strokesvg's 1024 box to 0–100 (×100/1024) and rounded to
|
|
10
|
+
0.1, written as one absolute move and then relative commands; arcs kept. The brush (strokesvg's stroke width 128)
|
|
11
|
+
is 12.5.
|
|
12
|
+
- 2026-10-26 — **半濁点** of ぱ ぴ ぷ ぺ ぽ パ ピ プ ペ ポ: the circle's centreline is redrawn to **start at the bottom
|
|
13
|
+
centre and go clockwise** (bottom → left → top → right, and a little past the start), as taught in 光村図書
|
|
14
|
+
『こくご一(上)』p.27 (半濁点) and p.37 (句点): 「下中心から時計回り」. Its centre and radius come from the circle's
|
|
15
|
+
own outline (the middle of the ring); the outline is unchanged. strokesvg's line started above the ring and went
|
|
16
|
+
anticlockwise.
|
|
17
|
+
- 2026-10-26 — **っ ッ ゎ ヮ ヵ ヶ** added (not in strokesvg). Each is its base character (つ ツ わ ワ カ ケ) scaled
|
|
18
|
+
uniformly and moved so that its outline box fits Klee One's own small glyph box (read from the font's metrics;
|
|
19
|
+
the scale and move are recorded under `"derived"` in the file). Checked against the Klee One small glyphs by
|
|
20
|
+
overlay: they match within about 0.3 units (the font's small forms are very slightly bolder).
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# m-timer 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.3 (components 2.2.0)
|
|
6
|
+
|
|
7
|
+
- Requires base 1.1.0 (sub- and superscripts at least 24px, a measured text-width estimate).
|
|
8
|
+
- Fix: the title and text are fitted and wrapped by base's measured textWidth in the deck's font (0.56 em before).
|
|
9
|
+
|
|
10
|
+
## 2.0.2 (components 2.1.2)
|
|
11
|
+
|
|
12
|
+
- Fix: the element had no role or name, so assistive tech met the clock, the list and the buttons without knowing what they belong to; it is now role="group" named by the phases and their durations (「タイマー:① 付箋に書く 1分30秒、② …」; the role="status" announcements and the ±1 min buttons stay inside it), and an author aria-label is kept. Style id timer-2-0-2-css.
|
|
13
|
+
|
|
14
|
+
## 2.0.1 (components 2.0.0)
|
|
15
|
+
|
|
16
|
+
- `layout(ctx)` (spec §8.4 Layout): at a new laid-out size the part redraws its picture at that size; the ±1 min buttons are moved, not rebuilt, so focus and the extension are kept. Same size or a box of size 0: nothing changes (tools/test-layout.mjs).
|
|
17
|
+
|
|
18
|
+
## 2.0.0 (components 2.0.0-rc.1)
|
|
19
|
+
|
|
20
|
+
- Moved to `egatariParts.define({name: "timer", version: "2.0.0", requires: {base: "1.0.0"}, element: "m-timer"})`,
|
|
21
|
+
extending `base.MotionElement` with `base.el` / `prog`; `static partName = "timer"`. The DOM is byte-identical to 1.13.0
|
|
22
|
+
on its demo and on `tools/fixtures/c2-identity/timer.html` (the demo as an English lesson) at every step
|
|
23
|
+
(tools/test-c2-identity.mjs).
|
|
24
|
+
- Viewer input (spec §8.4): the extension (`ctx.extend`, ±1 min) is cleared only on the render where `ctx.entered` is true;
|
|
25
|
+
`ctx.reset` still only blurs a focused button. The `deck:pos` listener (1.13.0's fallback for players without
|
|
26
|
+
`ctx.entered`) is gone. Bells (`events(k)`) are unchanged.
|
|
27
|
+
- `render(k, t, ctx)` handles `ctx.entered` / `ctx.reset`, keeps the ctx without them and draws with `paint(k, t, ctx)`; a
|
|
28
|
+
redraw after viewer input (±1 min, print) calls `paint` with the last (k, t), so it never goes through the player's or
|
|
29
|
+
base's `render` again (1.13.0 called `render` with the kept ctx).
|
|
30
|
+
- Language: `/^ja\b/i.test(ctx.lang)`, read in `mount` and kept as `this.ja` (1.13.0: `DECK.ja`), for the built-in
|
|
31
|
+
strings, the phase list and the durations ("1分30秒" / "1 min 30 s"). Video: `ctx.mode === "video"` (1.13.0: `DECK.mode`).
|
|
32
|
+
- Print: `beforeprint` / `afterprint` on `document.defaultView` (1.13.0: `window`).
|
|
33
|
+
- Reports: a title or a phase-list entry that does not fit at 24 px, a text longer than 2 lines, an element too low for the
|
|
34
|
+
clock and too many phases for the list are `ctx.report("size", "[timer] …")` (1.13.0: `console.warn("m-timer: …")`).
|
|
35
|
+
- Ids: its style element is `timer-2-0-0-css` (1.13.0: `m-timer-css`); it is in `<head>`, not in the component's DOM, so
|
|
36
|
+
no id rewrite is needed in the identity test.
|
|
37
|
+
|
|
38
|
+
## 1.13.0
|
|
39
|
+
|
|
40
|
+
As released in the library's 1.13.0.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: m-timer
|
|
3
|
+
version: 2.0.3
|
|
4
|
+
series: common
|
|
5
|
+
tier: specialized
|
|
6
|
+
set: tools
|
|
7
|
+
summary: グループワークの進行タイマー。区切りごとに残り時間を大きく数え、区切りの一覧で今の区切りを示す
|
|
8
|
+
steps: 0 準備の画面、区切り 1 つが 1 段階(その長さ = sec 秒)
|
|
9
|
+
purposes: timebox
|
|
10
|
+
variants: fade
|
|
11
|
+
props: (なし)
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
依頼にグループワーク・作業時間・制限時間があるときだけ使う。→ キーで段階を進めると数え始める。
|
|
15
|
+
|
|
16
|
+
子の JSON:`{"ready"?: {"title", "text"}, "phases": [{"title", "short"?, "text"?, "sec", "bells"?}], "bells"?: […], "labels"?: {…}}`
|
|
17
|
+
|
|
18
|
+
- 区切り(`phases`)は 8 つまで。`sec` は秒の整数(3 分なら 180)。`short` は右の一覧に出す短い名前、`text` は 2 行まで
|
|
19
|
+
- 最後の 1 分は時計と棒が強調の色(テーマの `--emph`)、最後の 10 秒は時計が点滅
|
|
20
|
+
- 字は `<html lang>` で日本語か英語。`labels` で変えられる:`ready` `total` `remaining` `done` `start` `next` `end` `min` `sec` `plus` `minus`
|
|
21
|
+
- 実行系が対応していれば +1 分・−1 分のボタンが出る(同じスライドにいるあいだは延ばした時間が残る)
|
|
22
|
+
- ベル(学会タイマーのように):`"bells": [{"left": 300, "count": 1}, {"left": 120, "count": 2}, {"left": 0, "count": 3}]`(残り秒と回数)。全体か区切りごとに書く。書かなければ鳴らない
|
|
23
|
+
|
|
24
|
+
<!-- llm: omit -->
|
|
25
|
+
作る人向けの注(dev と確かめること)
|
|
26
|
+
|
|
27
|
+
- 元は雲居玄道が研修の資料のために作った部品(デッキの中の部品から部品庫へ。データの形はそのまま使える。古い書き方の `"done": "終了"` も `labels.done` と `labels.end` として受け付ける。`steps` 属性が無ければ区切りの数)
|
|
28
|
+
- 段階 k の t は経過時間なので、時計は (k, t) で決まる。`duration(k)` は作者の `sec`。fade(見せ方 0、これだけ):区切りが始まると題・説明・時計が 0.4 秒でフェードして現れる
|
|
29
|
+
- 終わった区切りは `--muted`(透明にはしない。4.5:1 を保つ)、今の区切りは `--term` の枠と `--term-tint`
|
|
30
|
+
- 点滅は注目のためだけ(共通の決まり §1.2)。動画・最後の状態(t = ∞)では止まる。動きを減らす設定では実行系が t = ∞ で描くので、時計は始めから 0:00(実行系への相談:時計の部品は動きを減らす設定でも実時間で数えたい)
|
|
31
|
+
- 授業の表示(`ctx.preview`)でも先の区切りの時計は出さない(一覧はいつも全部見える)。`static preview = "none"`(先の時間は中身ではない。docs/conventions.md §1.2)
|
|
32
|
+
- +1 分・−1 分(仕様 §8.4 `ctx.extend(seconds)`、egatari-spec 485ae54):render の ctx に `extend` があるときだけボタンを作る(Studio v0.4.3 には無いので出ない)。押すと `ctx.extend(±60)`。返り値が数ならそれを今の区切りの延長の合計とし、そうでなければ部品が合計を数える。縮めるのは 0:00 まで、延ばすのは 1 時間まで。延長は区切りごとの見る人の状態で、同じスライドにいるあいだは残り(`ctx.reset` でも残る。消えるのはボタンのフォーカスだけ。仕様 §8.4)、`ctx.entered`(ほかのスライドから入ったとき・飛んだとき)に戻る(2.0.0 から。1.x の `deck:pos` を聞く代わりはやめた)。`ctx.extend` が合計を返す実行系では、合計は実行系が持つ(部品は描くたびに `ctx.extend(0)` で読む)。変えたら `egatari-input`(`detail: {step, extend}`)。ボタンは 52 px の高さ、フォーカスがあれば `+` `-`。数字のキーは使わない。マウスで押した後はフォーカスを外す(Space で次の段階へ進めるように)
|
|
33
|
+
- 動画ではボタンを作らず、延長も使わない。印刷では隠し、作者の秒数で描く
|
|
34
|
+
- 区切りの始まりと終わりを `aria-live` で知らせる(毎秒は読まない)
|
|
35
|
+
- `static interactive = true`・`static viewerInput = true`(index.js だけ)
|
|
36
|
+
<!-- llm: end -->
|
|
@@ -0,0 +1,52 @@
|
|
|
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-timer の見本</title>
|
|
7
|
+
<!-- 組み方:node kit/build.mjs components/timer/demo.html -o components/timer/out/demo.html(架空の研修。見本なので秒数は短い。授業では 180 など) -->
|
|
8
|
+
<style>
|
|
9
|
+
/* 1 枚目は Studio の部品の一覧の見本の絵(本文の枠で撮る)にもなる。時計の 0 が枠の左端に付いて切れて見えないよう、少し内側に置く */
|
|
10
|
+
.slide:first-of-type .body{padding:0 10px}
|
|
11
|
+
</style>
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
<div id="stage">
|
|
15
|
+
|
|
16
|
+
<section class="slide noconcl">
|
|
17
|
+
<h2>ワーク:困りごとを集める(架空の研修)</h2>
|
|
18
|
+
<div class="body">
|
|
19
|
+
<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>
|
|
20
|
+
<m-timer style="height:420px">
|
|
21
|
+
<script type="application/json">{
|
|
22
|
+
"ready": {"title": "準備の確認", "text": "付箋とペン、A3 の用紙がそろっているか。\n終わらなくてよい。書けた所までを持ち帰る。"},
|
|
23
|
+
"phases": [
|
|
24
|
+
{"title": "① 付箋に書く", "short": "付箋に書く", "sec": 90, "text": "職場の困りごとを、付箋 1 枚に 1 件。\n個人で、3 枚を目安に。"},
|
|
25
|
+
{"title": "② 島で読み上げる", "short": "島で読み上げる", "sec": 15, "text": "順に読み上げて貼る。近いものを寄せる。"},
|
|
26
|
+
{"title": "③ 1 つ選ぶ", "short": "1 つ選ぶ", "sec": 20, "text": "よく起きて、手間の大きいものを 1 つ選ぶ。"}
|
|
27
|
+
],
|
|
28
|
+
"bells": [{"left": 60, "count": 1}, {"left": 10, "count": 2}, {"left": 0, "count": 3}]
|
|
29
|
+
}</script>
|
|
30
|
+
</m-timer>
|
|
31
|
+
</div>
|
|
32
|
+
</section>
|
|
33
|
+
|
|
34
|
+
<section class="slide noconcl">
|
|
35
|
+
<h2>字を変える(labels)</h2>
|
|
36
|
+
<div class="body">
|
|
37
|
+
<m-timer style="height:470px">
|
|
38
|
+
<script type="application/json">{
|
|
39
|
+
"ready": {"title": "合図を待つ", "text": "全員が席に着いたら始める。"},
|
|
40
|
+
"phases": [
|
|
41
|
+
{"title": "考える時間", "short": "1 人で考える", "sec": 20, "text": "話さずに、自分の考えをメモに書く。"},
|
|
42
|
+
{"title": "話す時間", "short": "2 人で話す", "sec": 15, "text": "隣の人と、メモを見せ合う。"}
|
|
43
|
+
],
|
|
44
|
+
"labels": {"total": "全部で", "remaining": "あと", "done": "そこまで", "start": "合図で始める", "next": "そこまで。次へ進む", "end": "そこまで"}
|
|
45
|
+
}</script>
|
|
46
|
+
</m-timer>
|
|
47
|
+
</div>
|
|
48
|
+
</section>
|
|
49
|
+
|
|
50
|
+
</div>
|
|
51
|
+
</body>
|
|
52
|
+
</html>
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
// m-timer:グループワークの進行タイマー。段階 0 は準備の画面、段階 k で phases[k-1] の残り時間を数える(元は雲居玄道が研修の資料のために作った部品)
|
|
2
|
+
// <m-timer style="height:432px"><script type="application/json">
|
|
3
|
+
// {"ready": {"title": "準備の確認", "text": "用紙とペンがそろっているか"},
|
|
4
|
+
// "phases": [{"title": "① 付箋に書く", "short": "付箋に書く", "text": "1 枚に 1 件", "sec": 180}, …]}
|
|
5
|
+
// (JSON の終わり)</m-timer>
|
|
6
|
+
// duration(k) = phases[k-1].sec。実行系は t を実時間で進めるので、時計は (k, t) だけで決まる。→ キー(段階を進める)がスタートの合図
|
|
7
|
+
// 左:題・説明・残り時間の大きな時計・進みの棒。右:区切りの一覧(今の区切りに枠、終わった区切りは --muted)
|
|
8
|
+
// 最後の 1 分は時計と棒が --emph。最後の 10 秒は時計が 1 秒おきに薄くなる(注目のため。動画・動きを減らす設定・最後の状態では止まる)
|
|
9
|
+
// 字は部品の中に書かない:授業の言語(ctx.lang。<html lang> から)で日本語か英語の表を選び、データの labels で上書きできる
|
|
10
|
+
// +1 分・−1 分(仕様 §8.4 ctx.extend、egatari-spec 485ae54):実行系が ctx.extend を渡すときだけボタンを出す。延ばした秒数は見る人の状態で、
|
|
11
|
+
// 同じスライドにいるあいだは残り、ほかのスライドから入ったとき・飛んだとき(ctx.entered)だけ戻る。ctx.reset ではボタンのフォーカスだけを戻す(仕様 §8.4)。動画・印刷は作者の秒数
|
|
12
|
+
// 2.0(Egatari spec §6.1 の部品):base の MotionElement・el・prog を使い、プレイヤーのグローバルは使わない。
|
|
13
|
+
// 延長を戻すのは ctx.entered だけ(1.x の deck:pos の代わりはない)。日本語かどうかは mount の ctx.lang、動画かどうかは ctx.mode。
|
|
14
|
+
// 要素の大きさの問題は ctx.report("size", …)。印刷の前後は document.defaultView の beforeprint・afterprint
|
|
15
|
+
egatariParts.define({name: "timer", version: "2.0.3", requires: {base: "1.1.0"}, element: "m-timer"}, function(deps){
|
|
16
|
+
"use strict";
|
|
17
|
+
var base = deps.base;
|
|
18
|
+
var CSS_ID = "timer-2-0-3-css"; // the style element this part writes, named with its name and version (spec §6.1 Identifiers)
|
|
19
|
+
var JA = {ready: "準備の確認", total: "合計", remaining: "残り", done: "時間", start: "準備ができたら → キーでスタート", next: "終了 → キーで次へ", end: "終了",
|
|
20
|
+
min: "分", sec: "秒", plus: "+1 分", minus: "−1 分"};
|
|
21
|
+
var EN = {ready: "Ready?", total: "Total", remaining: "Remaining", done: "Time's up", start: "When ready, press → to start", next: "Time's up. Press → for the next", end: "Time's up",
|
|
22
|
+
min: " min", sec: " s", plus: "+1 min", minus: "−1 min"};
|
|
23
|
+
var CSS = [
|
|
24
|
+
"m-timer .tm-say{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}",
|
|
25
|
+
"m-timer .tm-ctl{position:absolute;display:flex;gap:12px}",
|
|
26
|
+
"m-timer .tm-btn{min-width:112px;height:52px;padding:0 14px;font:700 27px/1 var(--font-cap,var(--font-sans,sans-serif));color:var(--fg);background:var(--bg);border:2px solid var(--term);border-radius:8px;cursor:pointer;touch-action:manipulation}",
|
|
27
|
+
"m-timer .tm-btn:active{background:var(--term-tint)}",
|
|
28
|
+
"m-timer .tm-btn:focus-visible{outline:3px solid var(--emph);outline-offset:2px}",
|
|
29
|
+
"@media print{m-timer .tm-ctl{display:none!important}}",
|
|
30
|
+
].join("\n");
|
|
31
|
+
return class extends base.MotionElement {
|
|
32
|
+
static partName = "timer"; // the registry name (define meta name), for report prefixes
|
|
33
|
+
static variants = ["fade"];
|
|
34
|
+
static interactive = true; // 操作できるパーツ(docs/conventions.md §6)
|
|
35
|
+
static preview = "none"; // 先の時間は中身ではないので、授業の表示でも先の区切りを見せない(仕様 §8.4、docs/conventions.md §1.2)
|
|
36
|
+
static clock = true; // 経った時間そのものが中身:動きを減らす設定でも実時間の t で描く(仕様 §9.1)
|
|
37
|
+
// 「道具」の組(頼まれたときだけ使う部品)と、新規作成の道具の札(docs/conventions.md §7。tools/release.mjs が manifest に写す。JSON で書く)
|
|
38
|
+
static group = "tool";
|
|
39
|
+
static tile = {"label": {"ja": "タイマー", "en": "Timer"}, "examples": {"ja": "グループワークの時間・残り時間・ベル", "en": "Group-work time, time left, bells"}, "icon": "timer"};
|
|
40
|
+
static viewerInput = true; // 見る人の入力(区切りの時間を延ばす・縮める。仕様 §8.4)
|
|
41
|
+
// データの形(kit/shape.js)
|
|
42
|
+
static shape = {
|
|
43
|
+
schema: {type: "object", additionalProperties: false, required: ["phases"], properties: {
|
|
44
|
+
ready: {type: "object", additionalProperties: false, properties: {title: {type: "string"}, text: {type: "string"}}},
|
|
45
|
+
phases: {type: "array", minItems: 1, maxItems: 8, items: {type: "object", additionalProperties: false, required: ["title", "sec"], properties: {
|
|
46
|
+
title: {type: "string"}, short: {type: "string"}, text: {type: "string"}, sec: {type: "integer"}, bells: {type: "array", maxItems: 6, items: {type: "object", additionalProperties: false, required: ["left"], properties: {left: {type: "integer"}, count: {type: "integer"}}}}}}},
|
|
47
|
+
bells: {type: "array", maxItems: 6, items: {type: "object", additionalProperties: false, required: ["left"], properties: {left: {type: "integer"}, count: {type: "integer"}}}},
|
|
48
|
+
done: {type: "string"},
|
|
49
|
+
labels: {type: "object", additionalProperties: false, properties: {
|
|
50
|
+
ready: {type: "string"}, total: {type: "string"}, remaining: {type: "string"}, done: {type: "string"}, start: {type: "string"},
|
|
51
|
+
next: {type: "string"}, end: {type: "string"}, min: {type: "string"}, sec: {type: "string"}, plus: {type: "string"}, minus: {type: "string"}}}}},
|
|
52
|
+
example: {ready: {title: "準備の確認", text: "用紙とペンがそろっているか"}, phases: [{title: "① 付箋に書く", short: "付箋に書く", sec: 180}, {title: "② 島で選ぶ", short: "島で選ぶ", sec: 300}]},
|
|
53
|
+
note: {en: "phases is a list of {\"title\", \"sec\"} (sec: whole seconds, not \"3分\"); one phase per step",
|
|
54
|
+
ja: "phases は {\"title\", \"sec\"} の並び(sec は秒の整数。\"3分\" のような字ではない)。区切り 1 つが 1 段階"},
|
|
55
|
+
};
|
|
56
|
+
static props = {};
|
|
57
|
+
get steps(){ return this.getAttribute("steps") !== null ? +this.getAttribute("steps") : ((this.data || {}).phases || []).length; }
|
|
58
|
+
// 字の表(授業の言語 ctx.lang で選ぶ。mount が this.ja を決めてから読む。データの labels が勝つ。古い書き方の "done" も受け付ける)
|
|
59
|
+
get L(){
|
|
60
|
+
if (this._L) return this._L;
|
|
61
|
+
var d = this.data || {}, tbl = this.ja ? JA : EN, o = {};
|
|
62
|
+
for (var k in tbl) o[k] = tbl[k];
|
|
63
|
+
if (typeof d.done === "string") o.done = o.end = d.done;
|
|
64
|
+
var lb = d.labels || {};
|
|
65
|
+
for (var j in lb) o[j] = lb[j];
|
|
66
|
+
return (this._L = o);
|
|
67
|
+
}
|
|
68
|
+
mount(ctx){
|
|
69
|
+
this.ja = /^ja\b/i.test(ctx.lang);
|
|
70
|
+
var self = this, d = this.data || {};
|
|
71
|
+
this.P = d.phases || [];
|
|
72
|
+
if (this.P.some(function(p){ return !(p.sec > 0); })) throw new Error("every phase needs sec > 0 (whole seconds)");
|
|
73
|
+
// 読み上げ:要素は区切りとその時間を名前にした group(中の知らせ role="status" と ±1 分のボタンはそのまま届く)。作者の aria-label があればそれを使う(上書きしない)
|
|
74
|
+
if (this._aria === undefined) this._aria = this.getAttribute("aria-label");
|
|
75
|
+
this.setAttribute("role", "group");
|
|
76
|
+
if (!this._aria) this.setAttribute("aria-label", (this.ja ? "タイマー:" : "Timer: ") + this.P.map(function(p){ return p.title + " " + self.span(p.sec); }).join(this.ja ? "、" : ", "));
|
|
77
|
+
this.video = ctx.mode === "video";
|
|
78
|
+
this.style.display = "block"; this.style.position = "relative";
|
|
79
|
+
if (!document.getElementById(CSS_ID)){ var st = document.createElement("style"); st.id = CSS_ID; st.textContent = CSS; document.head.appendChild(st); }
|
|
80
|
+
// 読み上げソフトへの知らせ(区切りの始まりと終わりだけ。毎秒は読まない)
|
|
81
|
+
this.say = document.createElement("div"); this.say.className = "tm-say"; this.say.setAttribute("role", "status"); this.say.setAttribute("aria-live", "polite");
|
|
82
|
+
this.appendChild(this.say);
|
|
83
|
+
this._ext = {};
|
|
84
|
+
this.total = this.P.reduce(function(a, p){ return a + p.sec; }, 0);
|
|
85
|
+
// 印刷は作者の秒数で描く(延長は消さない。afterprint で戻す)。beforeprint・afterprint は文書の窓(document.defaultView)に来る
|
|
86
|
+
var view = document.defaultView;
|
|
87
|
+
if (!this.video && view){
|
|
88
|
+
view.addEventListener("beforeprint", function(){ self._printing = true; self.redraw(); });
|
|
89
|
+
view.addEventListener("afterprint", function(){ self._printing = false; self.redraw(); });
|
|
90
|
+
}
|
|
91
|
+
this.place(ctx);
|
|
92
|
+
}
|
|
93
|
+
// 配置が変わった知らせ(仕様 §8.4 layout):要素の大きさが mount のときと変わったときだけ置き直す(変換で縮めるだけなら呼ばれない。
|
|
94
|
+
// 横に並んだ文の字が後から読み込まれて、段組みの中の幅が変わるときなど)。大きさ 0(隠れている)なら前の配置のまま
|
|
95
|
+
layout(ctx){
|
|
96
|
+
var W = this.clientWidth, H = this.clientHeight;
|
|
97
|
+
if (!W || !H || (W === this.W && H === this.H)) return;
|
|
98
|
+
this.place(ctx);
|
|
99
|
+
this.redraw();
|
|
100
|
+
}
|
|
101
|
+
// 大きさで決まる絵(svg と区切りの一覧、ボタンの位置)を作る。延長・読み上げの知らせは残す
|
|
102
|
+
place(ctx){
|
|
103
|
+
var self = this, D = base, d = this.data || {}, L = this.L;
|
|
104
|
+
var W = this.clientWidth, H = this.clientHeight;
|
|
105
|
+
if (this.svg) this.svg.remove();
|
|
106
|
+
var f = this.f = Math.max(0.6, Math.min(1.2, H / 432, W / 1180)), F = function(z){ return Math.max(24, Math.round(z * f)); };
|
|
107
|
+
var LW = this.LW = W * 0.525, RX = W * 0.576;
|
|
108
|
+
var svg = this.svg = D.el("svg", {viewBox: "0 0 " + W + " " + H, width: W, height: H, style: "display:block;overflow:visible"});
|
|
109
|
+
this.insertBefore(svg, this.say);
|
|
110
|
+
// 字の幅(base の textWidth:テーマの字で測った幅)
|
|
111
|
+
var est = this.est = function(s, z){ return D.textWidth(s, z, {font: self}); };
|
|
112
|
+
// 題(長ければ 24 px まで小さく)と説明(2 行まで。幅で折り返す)
|
|
113
|
+
var fit = function(s, max, z, what){
|
|
114
|
+
var y = z; while (y > 24 && est(s, y) > max) y--;
|
|
115
|
+
if (est(s, y) > max) ctx.report("size", "[timer] the " + what + " " + JSON.stringify(s) + " does not fit (" + Math.ceil(est(s, y) - max) + " px too wide); shorten it");
|
|
116
|
+
return y;
|
|
117
|
+
};
|
|
118
|
+
var wrap = function(s, max, z, what){
|
|
119
|
+
var out = [];
|
|
120
|
+
String(s || "").split("\n").forEach(function(line){
|
|
121
|
+
var cur = "";
|
|
122
|
+
[...line].forEach(function(c){ if (cur && est(cur + c, z) > max){ out.push(cur); cur = ""; } cur += c; });
|
|
123
|
+
out.push(cur);
|
|
124
|
+
});
|
|
125
|
+
if (out.length > 2) ctx.report("size", "[timer] the text of " + what + " needs " + out.length + " lines (2 fit); shorten it");
|
|
126
|
+
return out.slice(0, 2);
|
|
127
|
+
};
|
|
128
|
+
var heads = [d.ready || {}].concat(this.P);
|
|
129
|
+
this.heads = heads.map(function(h, j){
|
|
130
|
+
var title = h.title || (j === 0 ? L.ready : "");
|
|
131
|
+
return {title: title, size: fit(title, LW, F(44), j ? "title of phase " + j : "ready title"), lines: wrap(h.text, LW, F(30), j ? "phase " + j : "ready")};
|
|
132
|
+
});
|
|
133
|
+
this.ttl = D.el("text", {x: 0, y: 46 * f, "font-weight": 700}, svg);
|
|
134
|
+
this.l1 = D.el("text", {x: 0, y: 96 * f, "font-size": F(30), fill: "var(--fg)"}, svg);
|
|
135
|
+
this.l2 = D.el("text", {x: 0, y: 136 * f, "font-size": F(30), fill: "var(--fg)"}, svg);
|
|
136
|
+
this.lab = D.el("text", {x: 0, y: 190 * f, "font-size": F(26), fill: "var(--muted)"}, svg);
|
|
137
|
+
// 時計:「00:00」が左の幅に収まる大きさ。字の上端が「残り」の字に重ならないように下げる
|
|
138
|
+
var cz = Math.min(150 * f, LW / 3.0), cy = 190 * f + 14 + cz * 0.98, by = cy + 18 * f;
|
|
139
|
+
this.clock = D.el("text", {x: 0, y: cy.toFixed(1), "font-size": cz.toFixed(0), "font-weight": 700, style: "font-variant-numeric:tabular-nums"}, svg);
|
|
140
|
+
D.el("rect", {x: 0, y: by.toFixed(1), width: LW, height: 20 * f, rx: 10 * f, fill: "var(--line)"}, svg);
|
|
141
|
+
this.bar = D.el("rect", {x: 0, y: by.toFixed(1), width: 0, height: 20 * f, rx: 10 * f}, svg);
|
|
142
|
+
if (by + 20 * f > H - 40 * f) ctx.report("size", "[timer] the element is too low for the clock, the bar and the line under it (make it taller)");
|
|
143
|
+
this.foot = D.el("text", {x: 0, y: H - 4, "font-size": F(32), "font-weight": 700, fill: "var(--emph)"}, svg);
|
|
144
|
+
// 区切りの一覧
|
|
145
|
+
var n = this.P.length, top = 180 * f, rh = Math.min(48 * f, (H - top) / Math.max(n, 1));
|
|
146
|
+
if (rh < 34) ctx.report("size", "[timer] " + n + " phases do not fit in the list (make the element taller or use fewer phases)");
|
|
147
|
+
this.rows = this.P.map(function(p, j){
|
|
148
|
+
var y = top + j * rh, s = (j + 1) + (self.ja ? " " : " ") + self.span(p.sec) + (self.ja ? " " : " ") + (p.short || p.title);
|
|
149
|
+
var box = D.el("rect", {x: RX, y: y, width: W - RX, height: rh - 6, rx: 8, fill: "none", stroke: "none", "stroke-width": 2.5}, svg);
|
|
150
|
+
var tx = D.el("text", {x: RX + 14, y: y + rh / 2 + 7, "font-size": fit(s, W - RX - 28, F(28), "phase list entry")}, svg);
|
|
151
|
+
tx.textContent = s;
|
|
152
|
+
return {box: box, tx: tx};
|
|
153
|
+
});
|
|
154
|
+
this.RX = RX; this.W = W; this.H = H;
|
|
155
|
+
if (this.btns) Object.assign(this.btns.style, {left: RX + "px", top: Math.round(96 * f - 34) + "px"});
|
|
156
|
+
}
|
|
157
|
+
// 秒数の書き方:「3分」「20秒」「1分30秒」(英語は 3 min・20 s)
|
|
158
|
+
span(s){
|
|
159
|
+
var L = this.L, m = Math.floor(s / 60), r = s % 60;
|
|
160
|
+
return s < 60 ? s + L.sec : r === 0 ? m + L.min : m + L.min + (this.ja ? "" : " ") + r + L.sec;
|
|
161
|
+
}
|
|
162
|
+
clockText(s){ s = Math.max(0, Math.ceil(s - 1e-9)); return Math.floor(s / 60) + ":" + ("0" + (s % 60)).slice(-2); }
|
|
163
|
+
duration(k){ return k >= 1 && this.P[k - 1] ? this.P[k - 1].sec : 0; }
|
|
164
|
+
// 学会タイマーのようなベル(仕様 §8.4「Component sounds」):部品は音を鳴らさず、鳴らす時刻を宣言するだけ。鳴らすのは再生器
|
|
165
|
+
// (発表の再生で t が前へ越えたときだけ、Web Audio で合成。動画には同じ時刻で入る。延長は再生器がずらす)。
|
|
166
|
+
// bells は区切りの bells か、全体の bells:[{left: 残りの秒, count: 1〜3}]。書かなければ鳴らない。音だけに頼らず、時計と色でも示す
|
|
167
|
+
events(k){
|
|
168
|
+
var p = k >= 1 && this.P[k - 1];
|
|
169
|
+
if (!p) return [];
|
|
170
|
+
var bells = (p.bells || (this.data && this.data.bells) || []);
|
|
171
|
+
return bells.filter(function(b){ return b.left >= 0 && b.left <= p.sec; })
|
|
172
|
+
.map(function(b){ return {t: p.sec - b.left, sound: "bell", count: Math.max(1, Math.min(3, b.count || 1))}; })
|
|
173
|
+
.sort(function(a, b){ return a.t - b.t; });
|
|
174
|
+
}
|
|
175
|
+
// ---- 見る人の状態:区切りごとに延ばした秒数(−sec より短くはしない)
|
|
176
|
+
ext(k){ return this.video || this._printing ? 0 : this._ext[k] || 0; }
|
|
177
|
+
extend(dl){
|
|
178
|
+
var ctx = this._ctx, k = this._k;
|
|
179
|
+
if (this.video || !ctx || typeof ctx.extend !== "function" || !(k >= 1)) return;
|
|
180
|
+
var sec = this.P[k - 1].sec, cur = this._ext[k] || 0, el = this._t === Infinity ? sec + cur : Math.min(this._t || 0, sec + cur);
|
|
181
|
+
// 縮めるのは今の時刻まで(0:00 で終わる)。延ばすのは 1 時間まで
|
|
182
|
+
var next = Math.max(cur + dl, el - sec, -sec);
|
|
183
|
+
next = Math.min(next, 3600);
|
|
184
|
+
if (next === cur) return;
|
|
185
|
+
var r = ctx.extend(next - cur);
|
|
186
|
+
this._ext[k] = typeof r === "number" && isFinite(r) ? r : next;
|
|
187
|
+
this.redraw();
|
|
188
|
+
this.say.textContent = this.L.remaining + " " + this.clockText(sec + this._ext[k] - Math.min(el, sec + this._ext[k]));
|
|
189
|
+
this.dispatchEvent(new CustomEvent("egatari-input", {bubbles: true, detail: {step: k, extend: this._ext[k]}}));
|
|
190
|
+
}
|
|
191
|
+
reset(){
|
|
192
|
+
var had = Object.keys(this._ext).some(function(k){ return this._ext[k]; }, this);
|
|
193
|
+
this._ext = {};
|
|
194
|
+
if (had) this.dispatchEvent(new CustomEvent("egatari-input", {bubbles: true, detail: {step: this._k, extend: 0}}));
|
|
195
|
+
return had;
|
|
196
|
+
}
|
|
197
|
+
// 触った跡だけを戻す(ctx.reset):ボタンのフォーカスを外す。延長(見る人の入力)は残す
|
|
198
|
+
untouch(){
|
|
199
|
+
var a = document.activeElement;
|
|
200
|
+
if (a && a !== this && this.contains(a) && a.blur) a.blur();
|
|
201
|
+
}
|
|
202
|
+
// 入力のあとの描き直し:最後の (k, t) で paint だけを呼ぶ(render を通さないので、ctx.entered・ctx.reset を繰り返さない)
|
|
203
|
+
redraw(){ if (this._k !== undefined) this.paint(this._k, this._t, this._ctx); }
|
|
204
|
+
// +1 分・−1 分:実行系が ctx.extend を渡したときに初めて作る(渡さない実行系・動画では作らない)
|
|
205
|
+
buttons(){
|
|
206
|
+
if (this.btns || this.video) return;
|
|
207
|
+
var self = this, L = this.L, box = this.btns = document.createElement("div");
|
|
208
|
+
box.className = "tm-ctl";
|
|
209
|
+
Object.assign(box.style, {left: this.RX + "px", top: Math.round(96 * this.f - 34) + "px"});
|
|
210
|
+
[[L.minus, -60], [L.plus, 60]].forEach(function(b){
|
|
211
|
+
var e = document.createElement("button");
|
|
212
|
+
e.type = "button"; e.className = "tm-btn"; e.textContent = b[0]; e.setAttribute("aria-label", b[0]);
|
|
213
|
+
e.addEventListener("click", function(ev){ ev.stopPropagation(); self.extend(b[1]); if (ev.detail !== 0) e.blur(); });
|
|
214
|
+
e.addEventListener("keydown", function(ev){
|
|
215
|
+
var up = ev.key === "+", dn = ev.key === "-" || ev.key === "−";
|
|
216
|
+
if (up || dn){ ev.preventDefault(); ev.stopPropagation(); self.extend(up ? 60 : -60); }
|
|
217
|
+
});
|
|
218
|
+
box.appendChild(e);
|
|
219
|
+
});
|
|
220
|
+
this.appendChild(box);
|
|
221
|
+
}
|
|
222
|
+
render(k, t, ctx){
|
|
223
|
+
if (ctx.entered === true) this.reset();
|
|
224
|
+
if (ctx.reset) this.untouch();
|
|
225
|
+
// 描き直し(redraw)で reset・entered をもう一度使わないように、それを除いて覚える(extend などはそのまま)
|
|
226
|
+
this._k = k; this._t = t; this._ctx = Object.assign({}, ctx); delete this._ctx.reset; delete this._ctx.entered;
|
|
227
|
+
this.paint(k, t, this._ctx);
|
|
228
|
+
}
|
|
229
|
+
// (k, t) と延長の絵。ctx は render の ctx から reset・entered を除いたもの
|
|
230
|
+
paint(k, t, ctx){
|
|
231
|
+
var D = base, L = this.L, P = this.P, n = P.length, run = k >= 1 && P[k - 1];
|
|
232
|
+
var hasExt = !this.video && ctx && typeof ctx.extend === "function";
|
|
233
|
+
if (hasExt) this.buttons();
|
|
234
|
+
if (this.btns) this.btns.style.display = hasExt && run ? "" : "none";
|
|
235
|
+
// 延ばした合計は実行系が持つ(ctx.extend(0) は変えずに読むだけ。仕様 §8.4)。発表者の画面で延ばした分もこれでそろう
|
|
236
|
+
if (hasExt && run){ var r0 = ctx.extend(0); if (typeof r0 === "number" && isFinite(r0)) this._ext[k] = r0; }
|
|
237
|
+
var sec = run ? P[k - 1].sec : 0, end = sec + (run ? this.ext(k) : 0);
|
|
238
|
+
var el = !run ? 0 : t === Infinity ? end : Math.min(Math.max(0, t), end);
|
|
239
|
+
var rem = run ? end - el : this.total, finished = run && el >= end, warn = run && rem <= 60;
|
|
240
|
+
// fade(見せ方 0):区切りが始まると、題・説明・時計がフェードして現れる
|
|
241
|
+
var a = run && t !== Infinity ? D.prog(t, 0, 0.4) : 1;
|
|
242
|
+
var h = this.heads[run ? k : 0];
|
|
243
|
+
this.ttl.textContent = h.title; this.ttl.setAttribute("font-size", h.size);
|
|
244
|
+
this.ttl.style.fill = run ? "var(--term)" : "var(--emph)";
|
|
245
|
+
this.l1.textContent = h.lines[0] || ""; this.l2.textContent = h.lines[1] || "";
|
|
246
|
+
[this.ttl, this.l1, this.l2].forEach(function(e){ e.setAttribute("opacity", a.toFixed(3)); });
|
|
247
|
+
this.lab.textContent = !run ? L.total : finished ? L.done : L.remaining;
|
|
248
|
+
this.clock.textContent = this.clockText(rem);
|
|
249
|
+
this.clock.style.fill = !run ? "var(--muted)" : warn || finished ? "var(--emph)" : "var(--fg)";
|
|
250
|
+
// 最後の 10 秒は 1 秒おきに薄く(注目のため。動画・最後の状態では止まる。動きを減らす設定では実行系が最後の状態で描く)
|
|
251
|
+
var pulse = run && !finished && rem <= 10 && t !== Infinity && !this.video && Math.floor(t) % 2 === 1;
|
|
252
|
+
this.clock.setAttribute("opacity", (pulse ? 0.45 : a).toFixed(3));
|
|
253
|
+
this.bar.setAttribute("width", (this.LW * (run ? el / end : 0)).toFixed(1));
|
|
254
|
+
this.bar.style.fill = warn || finished ? "var(--emph)" : "var(--term)";
|
|
255
|
+
this.foot.textContent = !run ? L.start : finished ? (k < n ? L.next : L.end) : "";
|
|
256
|
+
this.rows.forEach(function(r, j){
|
|
257
|
+
var cur = run && j + 1 === k, done = run && j + 1 < k;
|
|
258
|
+
r.box.style.fill = cur ? "var(--term-tint)" : "none";
|
|
259
|
+
r.box.style.stroke = cur ? "var(--term)" : "none";
|
|
260
|
+
// 終わった区切りは --muted(薄くしても 4.5:1 は保つので、透明にはしない)
|
|
261
|
+
r.tx.style.fill = done ? "var(--muted)" : "var(--fg)";
|
|
262
|
+
r.tx.setAttribute("font-weight", cur ? "700" : "400");
|
|
263
|
+
});
|
|
264
|
+
var s = !run ? "" : finished ? h.title + ":" + L.done : h.title;
|
|
265
|
+
if (this._said !== s && !this.video){ this._said = s; this.say.textContent = s; }
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# m-tree 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) and markup-reader 1.0.1.
|
|
8
|
+
- Fix: node, branch and edge label widths use base's measured textWidth in the deck's font (digits and Latin were 0.6 em, so labels with numbers or English could run out of their boxes).
|
|
9
|
+
- Fix: a node label with sub- or superscripts gets room for the 24px sub- and superscripts of base 1.1.0: lines are moved apart where a subscript meets a superscript, and the box grows for a superscript in the first line or a subscript in the last (they overlapped, or reached the box's edge in English decks); other labels are unchanged.
|
|
10
|
+
|
|
11
|
+
## 2.0.1 (components 2.1.2)
|
|
12
|
+
|
|
13
|
+
- Fix: duplicate node ids were accepted silently; they are now reported as `data` (parent, edges and path use the last node with that id, as before).
|
|
14
|
+
- Fix: the element had no role or accessible name, and screen readers read the raw svg text; it now has role="img" and an aria-label that states the final state in one sentence (the root, the children of each node with their branch labels, the other links and the highlighted path). An author's aria-label is kept, and the svg is aria-hidden.
|
|
15
|
+
|
|
16
|
+
## 2.0.0 (components 2.0.0-rc.1 and 2.0.0)
|
|
17
|
+
|
|
18
|
+
- Moved to `egatariParts.define({name: "tree", version: "2.0.0", requires: {base: "1.0.0", "markup-reader": "1.0.0"}, element: "m-tree"})`,
|
|
19
|
+
extending `base.MotionElement` with `base.el` / `mtext` / `prog` / `lerp` / `variant` / `previewOpacity`; `static partName = "tree"`. The embedded variant block is gone (`base.variant`).
|
|
20
|
+
The DOM is byte-identical to 1.13.0 at every step (tools/test-c2-identity.mjs, with the formulas rendered at build time on the 2.0 side).
|
|
21
|
+
- Formulas are rendered at build time (Egatari spec §6.2), no longer by KaTeX at play time: `static build = {fields: {"nodes[].tex": "katex"}, options: {katex: {output: "html"}}}`. The producer adds `texHtml` beside each `tex` and `renderers: {katex: {version, options}}` at the top of the data (the shape now allows both). The part reads `texHtml` through `markup-reader` 1.0.0 (exactly the elements, attributes and style declarations of egatari-spec's `schema/rendered-markup-1.json`; anything else is dropped, an element with its subtree, an attribute or style declaration by itself, and reported at the end of mount once per kind with its count as `ctx.report("data", "[tree] …")`) into the same frame 1.13.0 drew (`foreignObject.smath` with an inline-block `div`), so the formula's DOM is that of 1.13.0's.
|
|
22
|
+
- Without `texHtml` (a file built without the renderer, or after a tier A edit of a `tex`) the `tex` source is shown as plain text in the same frame and reported once with the count: `ctx.report("data", "[tree] N tex field(s) not rendered at build time, e.g. … (the source is shown as text)")` (1.13.0 showed the source as text only when KaTeX was missing).
|
|
23
|
+
- Known differences from 1.13.0, all inside formulas and only through `tex`, as egatari-spec 56ae5da documents (§6.2: colours come only from classes and the theme): the colour of `\color` and `\textcolor`, the background and frame colour of `\colorbox` and `\fcolorbox`, `\pmb`'s shadow, and KaTeX's error colour for untrusted commands are dropped and reported; use `\hlE` `\hlT` `\hlM` (classes, spec §8.0), which are kept. Phantoms (`color: transparent`), boxes and their borders are kept. KaTeX writes `class=""` on some spans and an `<svg>`'s style as text when it draws in the page (1.13.0), and neither when it renders to markup: the identity test compares these as equal (`KATEX_EMPTY_CLASS`, `KATEX_SVG_STYLE`, approved in egatari-spec 56ae5da). The `\htmlClass` `\htmlId` `\htmlData` commands of spec §8.0 now work (1.13.0 drew them as errors: no trust at play time).
|
|
24
|
+
- A tree that does not fit is reported with `ctx.report("size", "[tree] …")` (1.13.0: `console.warn`).
|
|
25
|
+
- The preview view is `ctx.preview` alone (1.13.0 also accepted `ctx.mode === "lecture"`).
|
|
26
|
+
- Identity fixture `tools/fixtures/c2-identity/tree.html` (the v1.13.0 demo has no `tex`).
|
|
27
|
+
- Ids: none written.
|
|
28
|
+
|
|
29
|
+
## 1.13.0
|
|
30
|
+
|
|
31
|
+
As released in the library's 1.13.0.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: m-tree
|
|
3
|
+
version: 2.0.2
|
|
4
|
+
series: common
|
|
5
|
+
tier: standard
|
|
6
|
+
summary: 階層・分類の木(組織図、生物の分類など)を、根から 1 段ずつ組み立てる。座標は書かず、配置は部品が決める
|
|
7
|
+
steps: 節の深さの数(by="level"、既定)か節の数(by="node")。節と edges の step があればその最大
|
|
8
|
+
purposes: hierarchy
|
|
9
|
+
variants: fade, draw, grow
|
|
10
|
+
props: orient, by, link, size, fade, draw
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
組織図、生物や物質の分類、概念の上位と下位、章と節の構成など、親子の関係で並ぶものを上から順に見せるときに使う。
|
|
14
|
+
座標は書かない([共通の決まり](../../docs/conventions.ja.md) §2)。中身とつながりだけを書けば、部品が重ならないように並べる。
|
|
15
|
+
|
|
16
|
+
子の JSON:`{"nodes": [...], "edges": [...]}`(`edges` は省いてよい)。
|
|
17
|
+
|
|
18
|
+
- node:`id`、`label`(`\n` で改行)か `tex`(KaTeX)、`parent`(親の `id`。`parent` のない節(根)はちょうど 1 つ)、`note`(箱の**下**に小さな一言、`--muted`)、`tone`(`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`)、`step`、`at`(段階の中の開始秒)
|
|
19
|
+
- 子は配列の順に並ぶ。親は子の並びの中央に置く
|
|
20
|
+
- edge:親子のほかのつながり(`from` `to` `label` `tone` `dash` `step`)。破線で矢印つき、木の外側(`down` は下、`right` は右)へふくらむ。同じ深さの節どうしに向く。段階は既定で両端の遅いほう
|
|
21
|
+
- 子の `branch`:線の字(確率など)。`path`:根からの `id` の道を順に強調(`pathStep` で一度に。`pathNote`:末尾の一言)
|
|
22
|
+
- `orient`:`down`(既定、上から下)か `right`(左から右。分類を横に広げるとき)
|
|
23
|
+
- `by`:`level`(既定。根、それから深さごとに 1 段)か `node`(深さ優先の順に 1 つずつ。1 つの枝をたどって話すとき)。節の `step` が勝つ
|
|
24
|
+
- `link`:親子の線。`elbow`(既定、かぎ形)か `straight`(まっすぐ)。線の色は `--muted`、3 px
|
|
25
|
+
- `tone: emph` の箱は、地が `--emph-tint`、枠と字が `--emph`
|
|
26
|
+
- 入る大きさの目安(1280×720 の本文、高さ 440 px ほど):`down` は 1 段に 4 字ほどの箱が 8 個、`right` は 7 個ほど。深さは 5 段ほど。
|
|
27
|
+
それより多い葉(子のない節)が 1 つの親に並ぶと、子を 2 段に互い違いに並べる(`down` で 16 個ほど、`right` で 11 個ほどまで)。
|
|
28
|
+
さらに入らなければ名前を 2 行に折る。字は 24 px より小さくならず、入らない分は要素の箱からはみ出す(足りない px を `ctx.report` で知らせ、Studio の検査に出る)。多いときは木を分ける
|
|
29
|
+
- 見せ方(`variant`、共通の決まり §2.5):`fade`(既定。箱が下から 12 px 上がりながら現れ、それから線を引く)・`draw`(線を先に引き、その先に箱が親の側から 12 px 寄りながら現れる)・`grow`(箱が親の側から 12 px 寄りながら 0.92 倍から大きくなり、線は同時に親から引く)。書かなければ最初の見せ方
|
|
30
|
+
- 動きの上限:どの見せ方でも箱が動くのは 12 px まで(箱の中心で測る)、時間も `fade` の長さの中(共通の決まり §1.2)
|
|
31
|
+
- 授業の表示(`ctx.preview`)では、後の段階の箱と線をテーマの薄さで出しておく
|
|
32
|
+
|
|
33
|
+
見本は `demo.html`(架空の会社の組織図、動物の分類を右へ、見せ方の 3 種類、架空の値の確率の木)。
|
|
34
|
+
|
|
35
|
+
<!-- llm: omit -->
|
|
36
|
+
注意
|
|
37
|
+
|
|
38
|
+
- 配置:部分木を下から順に置き、隣の部分木とは段ごとの左右の端(輪郭)がぶつからないところまで寄せる(Reingold–Tilford の考え方)。間に挟まった小さな部分木は左に寄る
|
|
39
|
+
- 字の大きさは 27 px から入るまで 24 px まで縮める(`size` で固定できる)。箱の幅は字数から見積もる(和文 1 字 = 1 字幅、ほかは 0.6 字幅。字の読み込みを待たない)
|
|
40
|
+
- 24 px でも入らなければ、字は小さくせず(共通の決まり §2.3)、次の順に試す:葉だけの子が 3 つ以上ある親の子を 2 段に互い違いに並べる(子の多い親から 1 つずつ。奥の段への線は手前の段の箱の間を 12 px 空けて通る。`link="straight"` では使わない)→ 名前を 2 行に折る(4 字以上で `\n` も `*_^` もない名前。空白があれば真ん中に近い空白で、和文は真ん中あたりの平仮名の後ろで。空白のない欧文の 1 語は折らない)。どれでも入らなければ、はみ出しのいちばん少ない形で描く(並ぶ向きは中央から両側へ、深さの向きは先へはみ出す)。足りない px を `ctx.report("size", …)` で知らせる
|
|
41
|
+
- 動き:`fade` は下から、`draw` と `grow` は親の中心から箱の中心への向きに、12 px 寄ってくる(根はどの見せ方でも `fade` と同じ)
|
|
42
|
+
- `branch`:字は 24 px、`--fg`。`elbow` では曲がり角を親の側へ 20 px に寄せ、子へ入る線を長くしてそこに添える(`right` は線の上、`down` は線の外側の横)。段の間は名前が入るだけ広げ(`right` は名前の幅 + 52 px、`down` は 76 px 以上)、`down` では名前の分だけ箱の横に場所をとる。子を 2 段に互い違いに並べる形は使わない。`straight` では線の中ほどの外側に置く(子が 3 つ以上だと隣の線に近づくので、`elbow` のほうがよい)
|
|
43
|
+
- `path`:根から始まり、隣どうしが親子でなければ札(データの形の誤り)。既定では木(節と edges)の最後の段階の後に、線 1 本ごとに 1 段階を足す(段階の数が増える)。`pathStep` があれば、その段階の中で線を根から順に引く(1 本 `draw` 秒)。線は `--emph` 6 px を元の線の上に重ね、届いた箱を `--emph` の枠(4 px)で囲み、その線の `branch` を `--emph` にする。`pathNote` は終わりの箱の外(`right` は右、`down` は下)に箱の字の大きさで、最後の線が届いてから出る。その場所は木の奥の側にとるので、終わりの箱が最も深い段にないと、ほかの箱に重なることがある
|
|
44
|
+
- 授業の表示では、後の段階の道(線・枠・`pathNote`)をテーマの薄さで出す。`branch` の色は、その段階になるまで変えない
|
|
45
|
+
- edges は木の外側に場所をとる(`down` は下に 56 px、名前があれば 36 px 足す)。違う深さの節を結ぶと、ほかの箱の上を通ることがある
|
|
46
|
+
<!-- llm: end -->
|