egatari 0.6.4 → 0.6.5-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +36 -0
- package/README.ja.md +18 -4
- package/README.md +18 -4
- package/SECURITY.md +18 -0
- package/bin/egatari.mjs +86 -3
- package/components.lock.json +246 -123
- package/components2.lock.json +824 -1
- package/kit/article-steps.mjs +27 -0
- package/kit/browser.mjs +14 -2
- package/kit/build.mjs +50 -1
- package/kit/check-messages.mjs +15 -7
- package/kit/check.mjs +46 -9
- package/kit/cli-hint.mjs +27 -0
- package/kit/core/article-cite.mjs +188 -0
- package/kit/core/article-links.mjs +174 -0
- package/kit/core/article-messages.mjs +119 -0
- package/kit/core/article-page.mjs +183 -0
- package/kit/core/article-render.mjs +410 -0
- package/kit/core/article-text.mjs +559 -0
- package/kit/core/article.mjs +267 -0
- package/kit/core/build-core.mjs +49 -9
- package/kit/core/citeproc-credit.mjs +3 -0
- package/kit/core/colab-core.mjs +1 -1
- package/kit/core/components-lock.mjs +18 -0
- package/kit/core/llm-fix.mjs +2 -1
- package/kit/core/llm-pack-assemble.mjs +5 -3
- package/kit/core/llm-pack-data.mjs +63 -80
- package/kit/core/new-deck.mjs +1 -1
- package/kit/core/part-labels.mjs +17 -5
- package/kit/core/parts2.mjs +11 -1
- package/kit/core/player.mjs +1 -1
- package/kit/core/portable.mjs +132 -16
- package/kit/core/quote-ja.mjs +5 -0
- package/kit/core/themes-lock.mjs +16 -0
- package/kit/core/tier-a.mjs +47 -3
- package/kit/deck.js +195 -45
- package/kit/instruction-version.json +3 -0
- package/kit/layouts.css +11 -10
- package/kit/panes.js +1288 -0
- package/kit/player.json +1 -1
- package/kit/player.lock.json +2 -2
- package/kit/tools.js +81 -20
- package/kit/track.js +308 -0
- package/package.json +20 -3
- package/render/only.mjs +21 -0
- package/render/render.mjs +11 -8
- package/tools/ids.mjs +77 -9
- package/tools/portable.mjs +2 -0
- package/tools/sheet.mjs +5 -3
- package/vendor/components/CATALOG.md +4 -4
- package/vendor/components/sha256/00e4bdbb7b9964c92809177fe7bb574e7184ed603dbc5008a485d82603d9a7bf/CHANGELOG.md +37 -0
- package/vendor/components/sha256/00e4bdbb7b9964c92809177fe7bb574e7184ed603dbc5008a485d82603d9a7bf/README.md +58 -0
- package/vendor/components/sha256/00e4bdbb7b9964c92809177fe7bb574e7184ed603dbc5008a485d82603d9a7bf/demo.html +121 -0
- package/vendor/components/sha256/00e4bdbb7b9964c92809177fe7bb574e7184ed603dbc5008a485d82603d9a7bf/index.js +894 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/CHANGELOG.md +44 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/README.md +32 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/demo.html +57 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/ABCJS-ADAPTER.md +101 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/LICENSE-abcjs.txt +21 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/chords.json +89 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/doremi.json +261 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/extras.json +192 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/kaeru.json +521 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/rhythm.json +248 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/ties.json +360 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/index.js +474 -0
- package/vendor/components/sha256/027a8fea4060337ccc0a926c1488066f1ae7a6c102a15032eae974304e12cb3b/CHANGELOG.md +28 -0
- package/vendor/components/sha256/027a8fea4060337ccc0a926c1488066f1ae7a6c102a15032eae974304e12cb3b/README.md +21 -0
- package/vendor/components/sha256/027a8fea4060337ccc0a926c1488066f1ae7a6c102a15032eae974304e12cb3b/demo.html +32 -0
- package/vendor/components/sha256/027a8fea4060337ccc0a926c1488066f1ae7a6c102a15032eae974304e12cb3b/index.js +139 -0
- package/vendor/components/sha256/03550bb20d425aa926258bab18b03bbc0cee292072e01bb6c78c429b3ae92c34/README.md +42 -0
- package/vendor/components/sha256/03550bb20d425aa926258bab18b03bbc0cee292072e01bb6c78c429b3ae92c34/index.js +250 -0
- package/vendor/components/sha256/07013c263cc595382dbcfd4931ca8b016f9dfb673440adf28911c95bd465cf9d/README.md +22 -0
- package/vendor/components/sha256/07013c263cc595382dbcfd4931ca8b016f9dfb673440adf28911c95bd465cf9d/index.js +41 -0
- package/vendor/components/sha256/0703ec58997237fceda0008c28dfa3e3370c21cdcb6d0cc99c29a83e4b9d0f11/CHANGELOG.md +25 -0
- package/vendor/components/sha256/0703ec58997237fceda0008c28dfa3e3370c21cdcb6d0cc99c29a83e4b9d0f11/README.md +35 -0
- package/vendor/components/sha256/0703ec58997237fceda0008c28dfa3e3370c21cdcb6d0cc99c29a83e4b9d0f11/demo.html +40 -0
- package/vendor/components/sha256/0703ec58997237fceda0008c28dfa3e3370c21cdcb6d0cc99c29a83e4b9d0f11/index.js +731 -0
- package/vendor/components/sha256/0b85af3a688ca012d7d1df082dab1f405048589dce78d411d4cffc1fb3a81998/CHANGELOG.md +19 -0
- package/vendor/components/sha256/0b85af3a688ca012d7d1df082dab1f405048589dce78d411d4cffc1fb3a81998/README.md +21 -0
- package/vendor/components/sha256/0b85af3a688ca012d7d1df082dab1f405048589dce78d411d4cffc1fb3a81998/demo.html +33 -0
- package/vendor/components/sha256/0b85af3a688ca012d7d1df082dab1f405048589dce78d411d4cffc1fb3a81998/index.js +106 -0
- package/vendor/components/sha256/0cf00baed0da1bc3ce5460eb1eff0a8dd5f7789168e83aaef751135cd3f8af89/CHANGELOG.md +21 -0
- package/vendor/components/sha256/0cf00baed0da1bc3ce5460eb1eff0a8dd5f7789168e83aaef751135cd3f8af89/README.md +34 -0
- package/vendor/components/sha256/0cf00baed0da1bc3ce5460eb1eff0a8dd5f7789168e83aaef751135cd3f8af89/demo.html +77 -0
- package/vendor/components/sha256/0cf00baed0da1bc3ce5460eb1eff0a8dd5f7789168e83aaef751135cd3f8af89/index.js +200 -0
- package/vendor/components/sha256/0eca723150eb30db0b3d3fdbd35b973d5344ac0d0e2ea8ab89d143a0870ab4fd/CHANGELOG.md +31 -0
- package/vendor/components/sha256/0eca723150eb30db0b3d3fdbd35b973d5344ac0d0e2ea8ab89d143a0870ab4fd/README.md +43 -0
- package/vendor/components/sha256/0eca723150eb30db0b3d3fdbd35b973d5344ac0d0e2ea8ab89d143a0870ab4fd/demo.html +47 -0
- package/vendor/components/sha256/0eca723150eb30db0b3d3fdbd35b973d5344ac0d0e2ea8ab89d143a0870ab4fd/index.js +484 -0
- package/vendor/components/sha256/0f47d93b78df1c0661a91d5fc46d6f7f5d1c45349065aab6bd3e659e07e317dd/CHANGELOG.md +23 -0
- package/vendor/components/sha256/0f47d93b78df1c0661a91d5fc46d6f7f5d1c45349065aab6bd3e659e07e317dd/README.md +44 -0
- package/vendor/components/sha256/0f47d93b78df1c0661a91d5fc46d6f7f5d1c45349065aab6bd3e659e07e317dd/demo.html +43 -0
- package/vendor/components/sha256/0f47d93b78df1c0661a91d5fc46d6f7f5d1c45349065aab6bd3e659e07e317dd/index.js +266 -0
- package/vendor/components/sha256/12704ccb92a1f864a18cce824a2400e8e3141e8dba7db34805cb1d8522aae08e/CHANGELOG.md +34 -0
- package/vendor/components/sha256/12704ccb92a1f864a18cce824a2400e8e3141e8dba7db34805cb1d8522aae08e/README.md +44 -0
- package/vendor/components/sha256/12704ccb92a1f864a18cce824a2400e8e3141e8dba7db34805cb1d8522aae08e/demo.html +56 -0
- package/vendor/components/sha256/12704ccb92a1f864a18cce824a2400e8e3141e8dba7db34805cb1d8522aae08e/index.js +429 -0
- package/vendor/components/sha256/149e8ddefbc384aafa8b961d48f8f56ad68ff75cc2429bd8c1ad6d8da661f5f6/CHANGELOG.md +25 -0
- package/vendor/components/sha256/149e8ddefbc384aafa8b961d48f8f56ad68ff75cc2429bd8c1ad6d8da661f5f6/README.md +42 -0
- package/vendor/components/sha256/149e8ddefbc384aafa8b961d48f8f56ad68ff75cc2429bd8c1ad6d8da661f5f6/demo.html +115 -0
- package/vendor/components/sha256/149e8ddefbc384aafa8b961d48f8f56ad68ff75cc2429bd8c1ad6d8da661f5f6/index.js +384 -0
- package/vendor/components/sha256/1ccdd24c9e0e7ca2661450c52eb6dcf9dbc2fb48d05fed2d01e2b9cfd5df1365/CHANGELOG.md +19 -0
- package/vendor/components/sha256/1ccdd24c9e0e7ca2661450c52eb6dcf9dbc2fb48d05fed2d01e2b9cfd5df1365/README.md +38 -0
- package/vendor/components/sha256/1ccdd24c9e0e7ca2661450c52eb6dcf9dbc2fb48d05fed2d01e2b9cfd5df1365/demo.html +72 -0
- package/vendor/components/sha256/1ccdd24c9e0e7ca2661450c52eb6dcf9dbc2fb48d05fed2d01e2b9cfd5df1365/index.js +248 -0
- package/vendor/components/sha256/240bd2ff9a1707c557f0a1af7f278a3f7661a8e680d3b932e367d4b337a3ad13/CHANGELOG.md +19 -0
- package/vendor/components/sha256/240bd2ff9a1707c557f0a1af7f278a3f7661a8e680d3b932e367d4b337a3ad13/README.md +36 -0
- package/vendor/components/sha256/240bd2ff9a1707c557f0a1af7f278a3f7661a8e680d3b932e367d4b337a3ad13/demo.html +70 -0
- package/vendor/components/sha256/240bd2ff9a1707c557f0a1af7f278a3f7661a8e680d3b932e367d4b337a3ad13/index.js +167 -0
- package/vendor/components/sha256/2a6b20b93f1169ef2435cdf3bfca57d24c9111fe9aaf8e61f0d049cf8a70e9df/CHANGELOG.md +34 -0
- package/vendor/components/sha256/2a6b20b93f1169ef2435cdf3bfca57d24c9111fe9aaf8e61f0d049cf8a70e9df/README.md +32 -0
- package/vendor/components/sha256/2a6b20b93f1169ef2435cdf3bfca57d24c9111fe9aaf8e61f0d049cf8a70e9df/demo.html +51 -0
- package/vendor/components/sha256/2a6b20b93f1169ef2435cdf3bfca57d24c9111fe9aaf8e61f0d049cf8a70e9df/index.js +302 -0
- package/vendor/components/sha256/2c9490ac960a5bb04ebc0c8fa0622392775f85ef8b8ebe93065991ce40afc097/CHANGELOG.md +41 -0
- package/vendor/components/sha256/2c9490ac960a5bb04ebc0c8fa0622392775f85ef8b8ebe93065991ce40afc097/README.md +35 -0
- package/vendor/components/sha256/2c9490ac960a5bb04ebc0c8fa0622392775f85ef8b8ebe93065991ce40afc097/demo.html +66 -0
- package/vendor/components/sha256/2c9490ac960a5bb04ebc0c8fa0622392775f85ef8b8ebe93065991ce40afc097/index.js +352 -0
- package/vendor/components/sha256/328a440e91684524068076e96cba5771cdceaa274d4b90033656259f05467135/CHANGELOG.md +35 -0
- package/vendor/components/sha256/328a440e91684524068076e96cba5771cdceaa274d4b90033656259f05467135/README.md +35 -0
- package/vendor/components/sha256/328a440e91684524068076e96cba5771cdceaa274d4b90033656259f05467135/demo.html +40 -0
- package/vendor/components/sha256/328a440e91684524068076e96cba5771cdceaa274d4b90033656259f05467135/index.js +747 -0
- package/vendor/components/sha256/3395706f819e0e70b4047da33486a4b59e65118faf8f918677061e397dae408c/CHANGELOG.md +35 -0
- package/vendor/components/sha256/3395706f819e0e70b4047da33486a4b59e65118faf8f918677061e397dae408c/README.md +43 -0
- package/vendor/components/sha256/3395706f819e0e70b4047da33486a4b59e65118faf8f918677061e397dae408c/demo.html +89 -0
- package/vendor/components/sha256/3395706f819e0e70b4047da33486a4b59e65118faf8f918677061e397dae408c/index.js +323 -0
- package/vendor/components/sha256/34b1375b0897f881b8d43e5dbaa928485cfab240e87c53a5868e714879a20f79/CHANGELOG.md +24 -0
- package/vendor/components/sha256/34b1375b0897f881b8d43e5dbaa928485cfab240e87c53a5868e714879a20f79/README.md +40 -0
- package/vendor/components/sha256/34b1375b0897f881b8d43e5dbaa928485cfab240e87c53a5868e714879a20f79/demo.html +70 -0
- package/vendor/components/sha256/34b1375b0897f881b8d43e5dbaa928485cfab240e87c53a5868e714879a20f79/index.js +561 -0
- package/vendor/components/sha256/37ea0051e8a1f2d7c2fa2d38e57730e5a3b1afabe9037a74fcad6e6f05356c09/CHANGELOG.md +27 -0
- package/vendor/components/sha256/37ea0051e8a1f2d7c2fa2d38e57730e5a3b1afabe9037a74fcad6e6f05356c09/README.md +50 -0
- package/vendor/components/sha256/37ea0051e8a1f2d7c2fa2d38e57730e5a3b1afabe9037a74fcad6e6f05356c09/demo.html +44 -0
- package/vendor/components/sha256/37ea0051e8a1f2d7c2fa2d38e57730e5a3b1afabe9037a74fcad6e6f05356c09/index.js +464 -0
- package/vendor/components/sha256/39c84138e7e4c6040eeb3d82d1c7fc801f513b2c26ac431ac8cc121a01f81698/CHANGELOG.md +23 -0
- package/vendor/components/sha256/39c84138e7e4c6040eeb3d82d1c7fc801f513b2c26ac431ac8cc121a01f81698/README.md +44 -0
- package/vendor/components/sha256/39c84138e7e4c6040eeb3d82d1c7fc801f513b2c26ac431ac8cc121a01f81698/demo.html +56 -0
- package/vendor/components/sha256/39c84138e7e4c6040eeb3d82d1c7fc801f513b2c26ac431ac8cc121a01f81698/index.js +402 -0
- package/vendor/components/sha256/3c36a26fd78dffdfa114bd7c9ca5cae494117bbcdda14bee5c2a01351e5f2eb2/CHANGELOG.md +27 -0
- package/vendor/components/sha256/3c36a26fd78dffdfa114bd7c9ca5cae494117bbcdda14bee5c2a01351e5f2eb2/README.md +49 -0
- package/vendor/components/sha256/3c36a26fd78dffdfa114bd7c9ca5cae494117bbcdda14bee5c2a01351e5f2eb2/demo.html +44 -0
- package/vendor/components/sha256/3c36a26fd78dffdfa114bd7c9ca5cae494117bbcdda14bee5c2a01351e5f2eb2/index.js +354 -0
- package/vendor/components/sha256/3c60c8e63279b8ee86957a5874c80f86a44f9ed92c1f615eace4a9dea1789da5/CHANGELOG.md +20 -0
- package/vendor/components/sha256/3c60c8e63279b8ee86957a5874c80f86a44f9ed92c1f615eace4a9dea1789da5/README.md +50 -0
- package/vendor/components/sha256/3c60c8e63279b8ee86957a5874c80f86a44f9ed92c1f615eace4a9dea1789da5/demo.html +61 -0
- package/vendor/components/sha256/3c60c8e63279b8ee86957a5874c80f86a44f9ed92c1f615eace4a9dea1789da5/index.js +141 -0
- package/vendor/components/sha256/3dba49cbbf7853212a6e5c393de030430d02b8b1a2ba4c8b722db2bb8afad12f/CHANGELOG.md +42 -0
- package/vendor/components/sha256/3dba49cbbf7853212a6e5c393de030430d02b8b1a2ba4c8b722db2bb8afad12f/README.md +32 -0
- package/vendor/components/sha256/3dba49cbbf7853212a6e5c393de030430d02b8b1a2ba4c8b722db2bb8afad12f/demo.html +54 -0
- package/vendor/components/sha256/3dba49cbbf7853212a6e5c393de030430d02b8b1a2ba4c8b722db2bb8afad12f/index.js +315 -0
- package/vendor/components/sha256/40452368224bdcd8c4910222285e6af9e120df17dbd1c3177c0abe9cb69075d1/CHANGELOG.md +30 -0
- package/vendor/components/sha256/40452368224bdcd8c4910222285e6af9e120df17dbd1c3177c0abe9cb69075d1/README.md +38 -0
- package/vendor/components/sha256/40452368224bdcd8c4910222285e6af9e120df17dbd1c3177c0abe9cb69075d1/demo.html +72 -0
- package/vendor/components/sha256/40452368224bdcd8c4910222285e6af9e120df17dbd1c3177c0abe9cb69075d1/index.js +267 -0
- package/vendor/components/sha256/4a5971c1f83efc1f57c444ce7d3fbf242b2bcca65c5c6e4b0b0d75eeb2751150/CHANGELOG.md +16 -0
- package/vendor/components/sha256/4a5971c1f83efc1f57c444ce7d3fbf242b2bcca65c5c6e4b0b0d75eeb2751150/README.md +27 -0
- package/vendor/components/sha256/4a5971c1f83efc1f57c444ce7d3fbf242b2bcca65c5c6e4b0b0d75eeb2751150/demo.html +42 -0
- package/vendor/components/sha256/4a5971c1f83efc1f57c444ce7d3fbf242b2bcca65c5c6e4b0b0d75eeb2751150/index.js +121 -0
- package/vendor/components/sha256/4e0e5eb48fc20ffc554786a7db66c4f5cee0c42eb0554bdc8c98323cdb168eb4/CHANGELOG.md +33 -0
- package/vendor/components/sha256/4e0e5eb48fc20ffc554786a7db66c4f5cee0c42eb0554bdc8c98323cdb168eb4/README.md +41 -0
- package/vendor/components/sha256/4e0e5eb48fc20ffc554786a7db66c4f5cee0c42eb0554bdc8c98323cdb168eb4/demo.html +70 -0
- package/vendor/components/sha256/4e0e5eb48fc20ffc554786a7db66c4f5cee0c42eb0554bdc8c98323cdb168eb4/index.js +592 -0
- package/vendor/components/sha256/50db2d3b84ee33b36c09a9a216ef6b337d2e5da2154e8aa62e790b0e63401796/CHANGELOG.md +23 -0
- package/vendor/components/sha256/50db2d3b84ee33b36c09a9a216ef6b337d2e5da2154e8aa62e790b0e63401796/README.md +43 -0
- package/vendor/components/sha256/50db2d3b84ee33b36c09a9a216ef6b337d2e5da2154e8aa62e790b0e63401796/demo.html +47 -0
- package/vendor/components/sha256/50db2d3b84ee33b36c09a9a216ef6b337d2e5da2154e8aa62e790b0e63401796/index.js +483 -0
- package/vendor/components/sha256/546ec63feccdc65569b7167e58b2e36a85be52f2538743dd2ecc3fc29ed6b883/CHANGELOG.md +19 -0
- package/vendor/components/sha256/546ec63feccdc65569b7167e58b2e36a85be52f2538743dd2ecc3fc29ed6b883/README.md +34 -0
- package/vendor/components/sha256/546ec63feccdc65569b7167e58b2e36a85be52f2538743dd2ecc3fc29ed6b883/demo.html +60 -0
- package/vendor/components/sha256/546ec63feccdc65569b7167e58b2e36a85be52f2538743dd2ecc3fc29ed6b883/index.js +209 -0
- package/vendor/components/sha256/556e7d45a761c4fa749cde186fb53f6c526ba6ede0b8f0f0bba5ac9e25e0d6f4/CHANGELOG.md +30 -0
- package/vendor/components/sha256/556e7d45a761c4fa749cde186fb53f6c526ba6ede0b8f0f0bba5ac9e25e0d6f4/README.md +79 -0
- package/vendor/components/sha256/556e7d45a761c4fa749cde186fb53f6c526ba6ede0b8f0f0bba5ac9e25e0d6f4/demo.html +50 -0
- package/vendor/components/sha256/556e7d45a761c4fa749cde186fb53f6c526ba6ede0b8f0f0bba5ac9e25e0d6f4/index.js +351 -0
- package/vendor/components/sha256/577008a069e7eb08057705a0800d975e82c8dfe0d0ba5fbf4f8974af7b298a7f/README.md +53 -0
- package/vendor/components/sha256/577008a069e7eb08057705a0800d975e82c8dfe0d0ba5fbf4f8974af7b298a7f/index.js +310 -0
- package/vendor/components/sha256/5a9959f8626f2c5280d0954c476baeadf03fecebda2443c3e83b8203ad554167/CHANGELOG.md +20 -0
- package/vendor/components/sha256/5a9959f8626f2c5280d0954c476baeadf03fecebda2443c3e83b8203ad554167/README.md +75 -0
- package/vendor/components/sha256/5a9959f8626f2c5280d0954c476baeadf03fecebda2443c3e83b8203ad554167/demo.html +50 -0
- package/vendor/components/sha256/5a9959f8626f2c5280d0954c476baeadf03fecebda2443c3e83b8203ad554167/index.js +342 -0
- package/vendor/components/sha256/5b44b272b917246219d2709f1b001964f87a3e07786cc9950087bbb8add3c721/CHANGELOG.md +24 -0
- package/vendor/components/sha256/5b44b272b917246219d2709f1b001964f87a3e07786cc9950087bbb8add3c721/README.md +26 -0
- package/vendor/components/sha256/5b44b272b917246219d2709f1b001964f87a3e07786cc9950087bbb8add3c721/demo.html +48 -0
- package/vendor/components/sha256/5b44b272b917246219d2709f1b001964f87a3e07786cc9950087bbb8add3c721/index.js +97 -0
- package/vendor/components/sha256/5c8ae7714fd8243c9b37539a5f0f8488d3ba20316ba81179e97b6160116d13c2/CHANGELOG.md +22 -0
- package/vendor/components/sha256/5c8ae7714fd8243c9b37539a5f0f8488d3ba20316ba81179e97b6160116d13c2/README.md +64 -0
- package/vendor/components/sha256/5c8ae7714fd8243c9b37539a5f0f8488d3ba20316ba81179e97b6160116d13c2/demo.html +97 -0
- package/vendor/components/sha256/5c8ae7714fd8243c9b37539a5f0f8488d3ba20316ba81179e97b6160116d13c2/index.js +875 -0
- package/vendor/components/sha256/68c9e866e3cd3e2f8179ede44a005c7f31cef0ed07fd5770ec33f0cc3aa80a41/CHANGELOG.md +21 -0
- package/vendor/components/sha256/68c9e866e3cd3e2f8179ede44a005c7f31cef0ed07fd5770ec33f0cc3aa80a41/README.md +50 -0
- package/vendor/components/sha256/68c9e866e3cd3e2f8179ede44a005c7f31cef0ed07fd5770ec33f0cc3aa80a41/demo.html +63 -0
- package/vendor/components/sha256/68c9e866e3cd3e2f8179ede44a005c7f31cef0ed07fd5770ec33f0cc3aa80a41/index.js +219 -0
- package/vendor/components/sha256/693e2aa59e822d38c48eca7271cc020f8e0a6f6189f2409895318ed2a3f0b809/CHANGELOG.md +28 -0
- package/vendor/components/sha256/693e2aa59e822d38c48eca7271cc020f8e0a6f6189f2409895318ed2a3f0b809/README.md +35 -0
- package/vendor/components/sha256/693e2aa59e822d38c48eca7271cc020f8e0a6f6189f2409895318ed2a3f0b809/demo.html +73 -0
- package/vendor/components/sha256/693e2aa59e822d38c48eca7271cc020f8e0a6f6189f2409895318ed2a3f0b809/index.js +228 -0
- package/vendor/components/sha256/6b24ab9b90b4f2275af9f61073fe9d65b8b9d16573d639ae07352f29b8b067a1/CHANGELOG.md +34 -0
- package/vendor/components/sha256/6b24ab9b90b4f2275af9f61073fe9d65b8b9d16573d639ae07352f29b8b067a1/README.md +65 -0
- package/vendor/components/sha256/6b24ab9b90b4f2275af9f61073fe9d65b8b9d16573d639ae07352f29b8b067a1/demo.html +97 -0
- package/vendor/components/sha256/6b24ab9b90b4f2275af9f61073fe9d65b8b9d16573d639ae07352f29b8b067a1/index.js +920 -0
- package/vendor/components/sha256/6c25dc07f75697e7388564ad689303c370d49142aab9e6672baec15a0313a2fa/CHANGELOG.md +31 -0
- package/vendor/components/sha256/6c25dc07f75697e7388564ad689303c370d49142aab9e6672baec15a0313a2fa/README.md +39 -0
- package/vendor/components/sha256/6c25dc07f75697e7388564ad689303c370d49142aab9e6672baec15a0313a2fa/demo.html +66 -0
- package/vendor/components/sha256/6c25dc07f75697e7388564ad689303c370d49142aab9e6672baec15a0313a2fa/index.js +304 -0
- package/vendor/components/sha256/75a20673474b3104da24a7cb0d0483394bed380ff1c108a9a529bcdd1de0f1fb/CHANGELOG.md +31 -0
- package/vendor/components/sha256/75a20673474b3104da24a7cb0d0483394bed380ff1c108a9a529bcdd1de0f1fb/README.md +40 -0
- package/vendor/components/sha256/75a20673474b3104da24a7cb0d0483394bed380ff1c108a9a529bcdd1de0f1fb/demo.html +92 -0
- package/vendor/components/sha256/75a20673474b3104da24a7cb0d0483394bed380ff1c108a9a529bcdd1de0f1fb/index.js +424 -0
- package/vendor/components/sha256/8534966fead40ce56110b49bd8cabcd3fb703665e7c164abdfcc9aa29f3ce018/CHANGELOG.md +26 -0
- package/vendor/components/sha256/8534966fead40ce56110b49bd8cabcd3fb703665e7c164abdfcc9aa29f3ce018/README.md +57 -0
- package/vendor/components/sha256/8534966fead40ce56110b49bd8cabcd3fb703665e7c164abdfcc9aa29f3ce018/demo.html +121 -0
- package/vendor/components/sha256/8534966fead40ce56110b49bd8cabcd3fb703665e7c164abdfcc9aa29f3ce018/index.js +875 -0
- package/vendor/components/sha256/85f2da6dbed2b9beedaf3ffdea237f3f7940f9b1d4c0d056caa67e937d2dad8d/CHANGELOG.md +20 -0
- package/vendor/components/sha256/85f2da6dbed2b9beedaf3ffdea237f3f7940f9b1d4c0d056caa67e937d2dad8d/README.md +46 -0
- package/vendor/components/sha256/85f2da6dbed2b9beedaf3ffdea237f3f7940f9b1d4c0d056caa67e937d2dad8d/demo.html +112 -0
- package/vendor/components/sha256/85f2da6dbed2b9beedaf3ffdea237f3f7940f9b1d4c0d056caa67e937d2dad8d/index.js +443 -0
- package/vendor/components/sha256/87ca8b6a8995a8fe11206e2def2d6df54075092d15f2f900b25767dbe9bf998e/CHANGELOG.md +22 -0
- package/vendor/components/sha256/87ca8b6a8995a8fe11206e2def2d6df54075092d15f2f900b25767dbe9bf998e/README.md +35 -0
- package/vendor/components/sha256/87ca8b6a8995a8fe11206e2def2d6df54075092d15f2f900b25767dbe9bf998e/demo.html +69 -0
- package/vendor/components/sha256/87ca8b6a8995a8fe11206e2def2d6df54075092d15f2f900b25767dbe9bf998e/index.js +217 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/CHANGELOG.md +46 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/LICENSE-strokesvg.txt +115 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/OFL.txt +93 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/README.md +30 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/demo.html +40 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/index.js +749 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/strokes-CHANGES.md +20 -0
- package/vendor/components/sha256/9043427ed434c76fba5b11ddd863c40d99b6157e194cfc729895cbaa4940496c/CHANGELOG.md +40 -0
- package/vendor/components/sha256/9043427ed434c76fba5b11ddd863c40d99b6157e194cfc729895cbaa4940496c/README.md +36 -0
- package/vendor/components/sha256/9043427ed434c76fba5b11ddd863c40d99b6157e194cfc729895cbaa4940496c/demo.html +52 -0
- package/vendor/components/sha256/9043427ed434c76fba5b11ddd863c40d99b6157e194cfc729895cbaa4940496c/index.js +268 -0
- package/vendor/components/sha256/9bec862c19d5442f80a2a548a5c24911219469332a6b7fc63689a56f1f3209f4/CHANGELOG.md +31 -0
- package/vendor/components/sha256/9bec862c19d5442f80a2a548a5c24911219469332a6b7fc63689a56f1f3209f4/README.md +46 -0
- package/vendor/components/sha256/9bec862c19d5442f80a2a548a5c24911219469332a6b7fc63689a56f1f3209f4/demo.html +112 -0
- package/vendor/components/sha256/9bec862c19d5442f80a2a548a5c24911219469332a6b7fc63689a56f1f3209f4/index.js +481 -0
- package/vendor/components/sha256/9cf9789f26ceaae205d48bb083e823e768413e3b2227f87de09e3cde2105a68b/CHANGELOG.md +36 -0
- package/vendor/components/sha256/9cf9789f26ceaae205d48bb083e823e768413e3b2227f87de09e3cde2105a68b/README.md +73 -0
- package/vendor/components/sha256/9cf9789f26ceaae205d48bb083e823e768413e3b2227f87de09e3cde2105a68b/demo.html +76 -0
- package/vendor/components/sha256/9cf9789f26ceaae205d48bb083e823e768413e3b2227f87de09e3cde2105a68b/index.js +805 -0
- package/vendor/components/sha256/a034214e470de8f6fa3032f65c8534c87862859525105bdfe94e347ad6a33587/CHANGELOG.md +24 -0
- package/vendor/components/sha256/a034214e470de8f6fa3032f65c8534c87862859525105bdfe94e347ad6a33587/README.md +35 -0
- package/vendor/components/sha256/a034214e470de8f6fa3032f65c8534c87862859525105bdfe94e347ad6a33587/demo.html +53 -0
- package/vendor/components/sha256/a034214e470de8f6fa3032f65c8534c87862859525105bdfe94e347ad6a33587/index.js +481 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/CHANGELOG.md +41 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/LICENSE-strokesvg.txt +115 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/OFL.txt +93 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/README.md +33 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/demo.html +40 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/index.js +749 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/strokes-CHANGES.md +20 -0
- package/vendor/components/sha256/a6486154cbfe25c500a64cbb2128be45c2e2365e848c34d4c5c10e9a93f6e73c/CHANGELOG.md +35 -0
- package/vendor/components/sha256/a6486154cbfe25c500a64cbb2128be45c2e2365e848c34d4c5c10e9a93f6e73c/README.md +35 -0
- package/vendor/components/sha256/a6486154cbfe25c500a64cbb2128be45c2e2365e848c34d4c5c10e9a93f6e73c/demo.html +53 -0
- package/vendor/components/sha256/a6486154cbfe25c500a64cbb2128be45c2e2365e848c34d4c5c10e9a93f6e73c/index.js +521 -0
- package/vendor/components/sha256/a6ad6867e21b4ffab426919d62f4293cbb447c7307f8f92e4a8c8d7c285fca6a/CHANGELOG.md +32 -0
- package/vendor/components/sha256/a6ad6867e21b4ffab426919d62f4293cbb447c7307f8f92e4a8c8d7c285fca6a/README.md +39 -0
- package/vendor/components/sha256/a6ad6867e21b4ffab426919d62f4293cbb447c7307f8f92e4a8c8d7c285fca6a/demo.html +70 -0
- package/vendor/components/sha256/a6ad6867e21b4ffab426919d62f4293cbb447c7307f8f92e4a8c8d7c285fca6a/index.js +166 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/CHANGELOG.md +56 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/README.md +35 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/demo.html +57 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/ABCJS-ADAPTER.md +101 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/LICENSE-abcjs.txt +21 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/chords.json +89 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/doremi.json +261 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/extras.json +192 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/kaeru.json +521 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/rhythm.json +248 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/ties.json +360 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/index.js +508 -0
- package/vendor/components/sha256/ae4f864445dff17a19df30c528cb44741558217080f8e6563e0c364025a4d0a6/CHANGELOG.md +31 -0
- package/vendor/components/sha256/ae4f864445dff17a19df30c528cb44741558217080f8e6563e0c364025a4d0a6/README.md +34 -0
- package/vendor/components/sha256/ae4f864445dff17a19df30c528cb44741558217080f8e6563e0c364025a4d0a6/demo.html +77 -0
- package/vendor/components/sha256/ae4f864445dff17a19df30c528cb44741558217080f8e6563e0c364025a4d0a6/index.js +222 -0
- package/vendor/components/sha256/b9ee9d0f48ab61977d3aa618e6155ccc3453dbf452235f438fa15db6f554f961/CHANGELOG.md +30 -0
- package/vendor/components/sha256/b9ee9d0f48ab61977d3aa618e6155ccc3453dbf452235f438fa15db6f554f961/README.md +50 -0
- package/vendor/components/sha256/b9ee9d0f48ab61977d3aa618e6155ccc3453dbf452235f438fa15db6f554f961/demo.html +61 -0
- package/vendor/components/sha256/b9ee9d0f48ab61977d3aa618e6155ccc3453dbf452235f438fa15db6f554f961/index.js +171 -0
- package/vendor/components/sha256/bd590a6619f80d659299e4e558f770e75244360450939d504a4eaf7989b0eb97/README.md +21 -0
- package/vendor/components/sha256/bd590a6619f80d659299e4e558f770e75244360450939d504a4eaf7989b0eb97/index.js +93 -0
- package/vendor/components/sha256/bd79435195d9657ad2cb690b49da192bbd20bf1fe25088ba63988dbacafa6f3d/CHANGELOG.md +18 -0
- package/vendor/components/sha256/bd79435195d9657ad2cb690b49da192bbd20bf1fe25088ba63988dbacafa6f3d/README.md +21 -0
- package/vendor/components/sha256/bd79435195d9657ad2cb690b49da192bbd20bf1fe25088ba63988dbacafa6f3d/demo.html +32 -0
- package/vendor/components/sha256/bd79435195d9657ad2cb690b49da192bbd20bf1fe25088ba63988dbacafa6f3d/index.js +53 -0
- package/vendor/components/sha256/be709cea3ba3d0a69138d4c55796f59f6322d97ad0bb8c3a75c3e9fcae5a0419/CHANGELOG.md +20 -0
- package/vendor/components/sha256/be709cea3ba3d0a69138d4c55796f59f6322d97ad0bb8c3a75c3e9fcae5a0419/README.md +40 -0
- package/vendor/components/sha256/be709cea3ba3d0a69138d4c55796f59f6322d97ad0bb8c3a75c3e9fcae5a0419/demo.html +92 -0
- package/vendor/components/sha256/be709cea3ba3d0a69138d4c55796f59f6322d97ad0bb8c3a75c3e9fcae5a0419/index.js +399 -0
- package/vendor/components/sha256/c252d5ceed6735b7ca8095ac8ef035dfc79f8492b2624d7d2eb94d2a27fafe2b/CHANGELOG.md +28 -0
- package/vendor/components/sha256/c252d5ceed6735b7ca8095ac8ef035dfc79f8492b2624d7d2eb94d2a27fafe2b/README.md +36 -0
- package/vendor/components/sha256/c252d5ceed6735b7ca8095ac8ef035dfc79f8492b2624d7d2eb94d2a27fafe2b/demo.html +70 -0
- package/vendor/components/sha256/c252d5ceed6735b7ca8095ac8ef035dfc79f8492b2624d7d2eb94d2a27fafe2b/index.js +179 -0
- package/vendor/components/sha256/c882093b0dc9215cf79d8f42afc5db46dce07c8b677f85148a3efa7355d7221b/CHANGELOG.md +25 -0
- package/vendor/components/sha256/c882093b0dc9215cf79d8f42afc5db46dce07c8b677f85148a3efa7355d7221b/README.md +32 -0
- package/vendor/components/sha256/c882093b0dc9215cf79d8f42afc5db46dce07c8b677f85148a3efa7355d7221b/demo.html +54 -0
- package/vendor/components/sha256/c882093b0dc9215cf79d8f42afc5db46dce07c8b677f85148a3efa7355d7221b/index.js +251 -0
- package/vendor/components/sha256/cd714d22f82d64c80db8fdef33ca03aa618803e8114662ee2692fc7c6ac7168c/CHANGELOG.md +34 -0
- package/vendor/components/sha256/cd714d22f82d64c80db8fdef33ca03aa618803e8114662ee2692fc7c6ac7168c/README.md +35 -0
- package/vendor/components/sha256/cd714d22f82d64c80db8fdef33ca03aa618803e8114662ee2692fc7c6ac7168c/demo.html +69 -0
- package/vendor/components/sha256/cd714d22f82d64c80db8fdef33ca03aa618803e8114662ee2692fc7c6ac7168c/index.js +244 -0
- package/vendor/components/sha256/d0fbcd5e36c0f38c2d8352acee060e783b58cd2ab1ff0f9e7a60da4b2a6e3232/CHANGELOG.md +19 -0
- package/vendor/components/sha256/d0fbcd5e36c0f38c2d8352acee060e783b58cd2ab1ff0f9e7a60da4b2a6e3232/README.md +44 -0
- package/vendor/components/sha256/d0fbcd5e36c0f38c2d8352acee060e783b58cd2ab1ff0f9e7a60da4b2a6e3232/demo.html +44 -0
- package/vendor/components/sha256/d0fbcd5e36c0f38c2d8352acee060e783b58cd2ab1ff0f9e7a60da4b2a6e3232/index.js +334 -0
- package/vendor/components/sha256/d159f55bb5a72bc67c4ffa856bf9e1735d3c37f5cad9673accffc1e1953182e0/CHANGELOG.md +37 -0
- package/vendor/components/sha256/d159f55bb5a72bc67c4ffa856bf9e1735d3c37f5cad9673accffc1e1953182e0/README.md +43 -0
- package/vendor/components/sha256/d159f55bb5a72bc67c4ffa856bf9e1735d3c37f5cad9673accffc1e1953182e0/demo.html +75 -0
- package/vendor/components/sha256/d159f55bb5a72bc67c4ffa856bf9e1735d3c37f5cad9673accffc1e1953182e0/index.js +348 -0
- package/vendor/components/sha256/d29e8fbfd371edf4dea02996c8b43028af511a5f1c212e3b5d89fff68a54e55e/CHANGELOG.md +20 -0
- package/vendor/components/sha256/d29e8fbfd371edf4dea02996c8b43028af511a5f1c212e3b5d89fff68a54e55e/README.md +39 -0
- package/vendor/components/sha256/d29e8fbfd371edf4dea02996c8b43028af511a5f1c212e3b5d89fff68a54e55e/demo.html +70 -0
- package/vendor/components/sha256/d29e8fbfd371edf4dea02996c8b43028af511a5f1c212e3b5d89fff68a54e55e/index.js +134 -0
- package/vendor/components/sha256/d4159ba1206d094364b7735750e5e2532aeabbc299e0d6858e3a0edb84495e11/README.md +22 -0
- package/vendor/components/sha256/d4159ba1206d094364b7735750e5e2532aeabbc299e0d6858e3a0edb84495e11/index.js +59 -0
- package/vendor/components/sha256/d92842c606795528d1246ddb050ac275e1b72659629185750a6e9ac7fdb763a3/README.md +20 -0
- package/vendor/components/sha256/d92842c606795528d1246ddb050ac275e1b72659629185750a6e9ac7fdb763a3/index.js +162 -0
- package/vendor/components/sha256/de611e2477042b14eb9c04bb98ad0bbe6d7b44ca829213dd1a7a2b94d8f946ae/CHANGELOG.md +33 -0
- package/vendor/components/sha256/de611e2477042b14eb9c04bb98ad0bbe6d7b44ca829213dd1a7a2b94d8f946ae/README.md +46 -0
- package/vendor/components/sha256/de611e2477042b14eb9c04bb98ad0bbe6d7b44ca829213dd1a7a2b94d8f946ae/demo.html +43 -0
- package/vendor/components/sha256/de611e2477042b14eb9c04bb98ad0bbe6d7b44ca829213dd1a7a2b94d8f946ae/index.js +278 -0
- package/vendor/components/sha256/de90044c2961a30c88570e41d0c41bfc5037fe691f6f81e12d8e9d3545cd6ec4/CHANGELOG.md +15 -0
- package/vendor/components/sha256/de90044c2961a30c88570e41d0c41bfc5037fe691f6f81e12d8e9d3545cd6ec4/README.md +25 -0
- package/vendor/components/sha256/de90044c2961a30c88570e41d0c41bfc5037fe691f6f81e12d8e9d3545cd6ec4/demo.html +48 -0
- package/vendor/components/sha256/de90044c2961a30c88570e41d0c41bfc5037fe691f6f81e12d8e9d3545cd6ec4/index.js +88 -0
- package/vendor/components/sha256/de9607f86221006e7bad43f1f661c751d9a6f8f9c62da5c7e0d7f1249b9afcd6/README.md +25 -0
- package/vendor/components/sha256/de9607f86221006e7bad43f1f661c751d9a6f8f9c62da5c7e0d7f1249b9afcd6/index.js +122 -0
- package/vendor/components/sha256/e6b022135d0a0bd85a508404f46005986b14d0d175af7ca54b4d024b1e490318/CHANGELOG.md +20 -0
- package/vendor/components/sha256/e6b022135d0a0bd85a508404f46005986b14d0d175af7ca54b4d024b1e490318/README.md +23 -0
- package/vendor/components/sha256/e6b022135d0a0bd85a508404f46005986b14d0d175af7ca54b4d024b1e490318/demo.html +236 -0
- package/vendor/components/sha256/e6b022135d0a0bd85a508404f46005986b14d0d175af7ca54b4d024b1e490318/index.js +572 -0
- package/vendor/components/sha256/e6bbe784ee452d52d534b8fb3a0924e65c49bbb5926139ef5eabd9193500b357/CHANGELOG.md +29 -0
- package/vendor/components/sha256/e6bbe784ee452d52d534b8fb3a0924e65c49bbb5926139ef5eabd9193500b357/README.md +23 -0
- package/vendor/components/sha256/e6bbe784ee452d52d534b8fb3a0924e65c49bbb5926139ef5eabd9193500b357/demo.html +33 -0
- package/vendor/components/sha256/e6bbe784ee452d52d534b8fb3a0924e65c49bbb5926139ef5eabd9193500b357/index.js +121 -0
- package/vendor/components/sha256/eb5efa15920d9883af15d105cc0f7a9b2c781d792faae34a43d44738138b219f/CHANGELOG.md +29 -0
- package/vendor/components/sha256/eb5efa15920d9883af15d105cc0f7a9b2c781d792faae34a43d44738138b219f/README.md +32 -0
- package/vendor/components/sha256/eb5efa15920d9883af15d105cc0f7a9b2c781d792faae34a43d44738138b219f/demo.html +56 -0
- package/vendor/components/sha256/eb5efa15920d9883af15d105cc0f7a9b2c781d792faae34a43d44738138b219f/index.js +232 -0
- package/vendor/components/sha256/ebded96e5827ecf359b73ac0d50a807227d9a06294bd5dabc84263e32c0eeebe/CHANGELOG.md +25 -0
- package/vendor/components/sha256/ebded96e5827ecf359b73ac0d50a807227d9a06294bd5dabc84263e32c0eeebe/README.md +71 -0
- package/vendor/components/sha256/ebded96e5827ecf359b73ac0d50a807227d9a06294bd5dabc84263e32c0eeebe/demo.html +76 -0
- package/vendor/components/sha256/ebded96e5827ecf359b73ac0d50a807227d9a06294bd5dabc84263e32c0eeebe/index.js +777 -0
- package/vendor/components/sha256/ed44804fc14b2755a82960d94cb0322858732ad789fd9a46704ee88955bd65e6/CHANGELOG.md +33 -0
- package/vendor/components/sha256/ed44804fc14b2755a82960d94cb0322858732ad789fd9a46704ee88955bd65e6/README.md +28 -0
- package/vendor/components/sha256/ed44804fc14b2755a82960d94cb0322858732ad789fd9a46704ee88955bd65e6/demo.html +236 -0
- package/vendor/components/sha256/ed44804fc14b2755a82960d94cb0322858732ad789fd9a46704ee88955bd65e6/index.js +600 -0
- package/vendor/components/sha256/ee8519d664179e6b6bb6d2f8cc5b1c07a0ebf3871a8681d28ddd08fecd5f3388/CHANGELOG.md +16 -0
- package/vendor/components/sha256/ee8519d664179e6b6bb6d2f8cc5b1c07a0ebf3871a8681d28ddd08fecd5f3388/README.md +38 -0
- package/vendor/components/sha256/ee8519d664179e6b6bb6d2f8cc5b1c07a0ebf3871a8681d28ddd08fecd5f3388/demo.html +115 -0
- package/vendor/components/sha256/ee8519d664179e6b6bb6d2f8cc5b1c07a0ebf3871a8681d28ddd08fecd5f3388/index.js +361 -0
- package/vendor/components/sha256/ef969fa27f1e11aa52a174874292366c7c8201c7c0d8236a7aef7d7eacf6a177/CHANGELOG.md +27 -0
- package/vendor/components/sha256/ef969fa27f1e11aa52a174874292366c7c8201c7c0d8236a7aef7d7eacf6a177/README.md +27 -0
- package/vendor/components/sha256/ef969fa27f1e11aa52a174874292366c7c8201c7c0d8236a7aef7d7eacf6a177/demo.html +42 -0
- package/vendor/components/sha256/ef969fa27f1e11aa52a174874292366c7c8201c7c0d8236a7aef7d7eacf6a177/index.js +233 -0
- package/vendor/components/sha256/f268cf809438c8af63a42f9c9121110fc7263e4d705c40c6206ce46cf7ec167b/README.md +23 -0
- package/vendor/components/sha256/f268cf809438c8af63a42f9c9121110fc7263e4d705c40c6206ce46cf7ec167b/index.js +180 -0
- package/vendor/components/sha256/f3f55f5ee11ebc66656ca40ff23cd2df6a48f09a2380469f96f8f48033ddf2f7/CHANGELOG.md +31 -0
- package/vendor/components/sha256/f3f55f5ee11ebc66656ca40ff23cd2df6a48f09a2380469f96f8f48033ddf2f7/README.md +36 -0
- package/vendor/components/sha256/f3f55f5ee11ebc66656ca40ff23cd2df6a48f09a2380469f96f8f48033ddf2f7/demo.html +50 -0
- package/vendor/components/sha256/f3f55f5ee11ebc66656ca40ff23cd2df6a48f09a2380469f96f8f48033ddf2f7/index.js +263 -0
- package/vendor/components/sha256/fa8c1e548234bdbfa401bb4b085c5ef24d607a006c377c8c1cf3bcfc52427a5e/CHANGELOG.md +20 -0
- package/vendor/components/sha256/fa8c1e548234bdbfa401bb4b085c5ef24d607a006c377c8c1cf3bcfc52427a5e/README.md +39 -0
- package/vendor/components/sha256/fa8c1e548234bdbfa401bb4b085c5ef24d607a006c377c8c1cf3bcfc52427a5e/demo.html +66 -0
- package/vendor/components/sha256/fa8c1e548234bdbfa401bb4b085c5ef24d607a006c377c8c1cf3bcfc52427a5e/index.js +258 -0
- package/vendor/components/sha256/fadd24868e2730ec14b8f3f1e9cb75b8577a48b8d71beaa12ef089f7a3ba0a7d/README.md +22 -0
- package/vendor/components/sha256/fadd24868e2730ec14b8f3f1e9cb75b8577a48b8d71beaa12ef089f7a3ba0a7d/index.js +37 -0
- package/vendor/components/sha256/faf6a2f0b5df589639de624e75c5b20594f517e4426f6415d152809249b00b92/README.md +19 -0
- package/vendor/components/sha256/faf6a2f0b5df589639de624e75c5b20594f517e4426f6415d152809249b00b92/index.js +200 -0
- package/vendor/components/sha256/fd07adeb4b775e139092dd69a3fcbca4528d08e67be6b9e9cf53d4fd06be775b/CHANGELOG.md +25 -0
- package/vendor/components/sha256/fd07adeb4b775e139092dd69a3fcbca4528d08e67be6b9e9cf53d4fd06be775b/README.md +32 -0
- package/vendor/components/sha256/fd07adeb4b775e139092dd69a3fcbca4528d08e67be6b9e9cf53d4fd06be775b/demo.html +51 -0
- package/vendor/components/sha256/fd07adeb4b775e139092dd69a3fcbca4528d08e67be6b9e9cf53d4fd06be775b/index.js +270 -0
- package/vendor/components/sha256/ffac8bd95044aeb032b20dc8412ced70d09759d993955ef66697d4f2aa7f97a5/CHANGELOG.md +19 -0
- package/vendor/components/sha256/ffac8bd95044aeb032b20dc8412ced70d09759d993955ef66697d4f2aa7f97a5/README.md +34 -0
- package/vendor/components/sha256/ffac8bd95044aeb032b20dc8412ced70d09759d993955ef66697d4f2aa7f97a5/demo.html +60 -0
- package/vendor/components/sha256/ffac8bd95044aeb032b20dc8412ced70d09759d993955ef66697d4f2aa7f97a5/index.js +209 -0
- package/vendor/components-2/manifest-2.2.0.json +1868 -0
- package/vendor/csl/SOURCE.json +17 -0
- package/vendor/csl/locales/locales-en-US.xml +864 -0
- package/vendor/csl/locales/locales-ja-JP.xml +676 -0
- package/vendor/csl/styles/apa.csl +2278 -0
- package/vendor/csl/styles/ieee.csl +519 -0
- package/vendor/csl/styles/sist02.csl +273 -0
- package/vendor/egatari-spec/SOURCE.json +3 -3
- package/vendor/egatari-spec/schema/deck-meta.schema.json +6 -0
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
// m-gendai:現代文の読解の図。傍線・二重傍線を引き、指示語から指す内容へ矢印を出し、段落を役割(主張・具体例・対比)の枠で囲んで線でつなぐ
|
|
2
|
+
// <m-gendai tate style="height:440px">
|
|
3
|
+
// @具体例#p1>p3
|
|
4
|
+
// 駅までの道を、私は{地図アプリ|#app}に頼って歩く。…{それ|>app}を閉じると、…
|
|
5
|
+
//
|
|
6
|
+
// @主張#p3
|
|
7
|
+
// 便利な道具は、私たちから=={迷う機会を奪う}==。…{迷うことこそが…営みなのである|_A}
|
|
8
|
+
// </m-gendai>
|
|
9
|
+
// 段落は空行で区切る。段落の頭の行「@役割#名前」で役割(主張・具体例・対比・反論・結論など、自由な言葉)と名前を付け、
|
|
10
|
+
// 「>名前」(その段落を支える・つながる。矢印)か「~名前」(対比。両向きの線)で別の段落とつなぐ。
|
|
11
|
+
// 本文の中:__語句__ 傍線、==語句== 二重傍線、{語句|しるし,…}(しるし:_A 傍線と記号 A、=B 二重傍線と記号 B、#名前 指す先、>名前 指示語)
|
|
12
|
+
// 段階(phases の順。中身のないものは飛ばす。既定は marks refs roles):marks 傍線 → refs 指示語の矢印 → roles 段落の枠と線
|
|
13
|
+
// 線と枠は、字の位置を測って SVG で描く(部品の中の座標。描く度に測るので、呼び出しの順によらない)
|
|
14
|
+
// 2.0(Egatari spec §6.1 の部品):base の MotionElement・el・prog・previewOpacity を使い、プレイヤーのグローバルは使わない。
|
|
15
|
+
// 書き方の誤りは ctx.report("data", "[gendai] …") で知らせる(1.x の console.warn("m-gendai: …") の代わり)。
|
|
16
|
+
// 読み取り(parse)は試験のために static testing に出す(ほかのパーツは読まない)
|
|
17
|
+
egatariParts.define({name: "gendai", version: "2.0.0", requires: {base: "1.0.0"}, element: "m-gendai"}, function(deps){
|
|
18
|
+
"use strict";
|
|
19
|
+
var base = deps.base;
|
|
20
|
+
var D = base;
|
|
21
|
+
|
|
22
|
+
// ---------------------------------------------------------------- 読み取り
|
|
23
|
+
// parse(文字列) → {paras: [{role, id, to, rel, runs: [{t, line, label, id, ref}]}], warnings}
|
|
24
|
+
function parse(src){
|
|
25
|
+
var paras = [], warnings = [], blocks = String(src || "").replace(/\r/g, "").split(/\n\s*\n/);
|
|
26
|
+
blocks.forEach(function(b){
|
|
27
|
+
var lines = b.split("\n").map(function(l){ return l.trim(); }).filter(Boolean);
|
|
28
|
+
if (!lines.length) return;
|
|
29
|
+
var p = {role: "", id: "", to: "", rel: "", runs: []};
|
|
30
|
+
var m = /^@([^#>~\s]*)(?:#([^>~\s]+))?(?:([>~])(\S+))?\s*$/.exec(lines[0]);
|
|
31
|
+
if (m){ p.role = m[1]; p.id = m[2] || ""; p.rel = m[3] || ""; p.to = m[4] || ""; lines.shift(); }
|
|
32
|
+
p.runs = inline(lines.join(""), warnings);
|
|
33
|
+
paras.push(p);
|
|
34
|
+
});
|
|
35
|
+
var ids = {};
|
|
36
|
+
paras.forEach(function(p){ if (p.id) ids[p.id] = true; });
|
|
37
|
+
paras.forEach(function(p){ if (p.to && !ids[p.to]) warnings.push("段落「" + p.to + "」がない(@" + p.role + ")"); });
|
|
38
|
+
var anchors = {};
|
|
39
|
+
paras.forEach(function(p){ p.runs.forEach(function(r){ if (r.id) anchors[r.id] = true; }); });
|
|
40
|
+
paras.forEach(function(p){ p.runs.forEach(function(r){ if (r.ref && !anchors[r.ref]) warnings.push("指す先「#" + r.ref + "」がない(" + r.t + ")"); }); });
|
|
41
|
+
return {paras: paras, warnings: warnings};
|
|
42
|
+
}
|
|
43
|
+
// 本文の中のしるし → 字の並び(runs)。run = {t, line: 0 | 1 | 2(傍線・二重傍線), label, id, ref}
|
|
44
|
+
function inline(s, warnings){
|
|
45
|
+
var runs = [], re = /__(.+?)__|==(.+?)==|\{([^{}|]+)\|([^{}]*)\}/g, last = 0, m;
|
|
46
|
+
var plain = function(t){ if (t) runs.push({t: t, line: 0, label: "", id: "", ref: ""}); };
|
|
47
|
+
while ((m = re.exec(s))){
|
|
48
|
+
plain(s.slice(last, m.index)); last = re.lastIndex;
|
|
49
|
+
if (m[1] !== undefined){ runs.push({t: m[1], line: 1, label: "", id: "", ref: ""}); continue; }
|
|
50
|
+
if (m[2] !== undefined){ runs.push({t: m[2], line: 2, label: "", id: "", ref: ""}); continue; }
|
|
51
|
+
var r = {t: m[3], line: 0, label: "", id: "", ref: ""};
|
|
52
|
+
m[4].split(/[,,、]/).map(function(f){ return f.trim(); }).filter(Boolean).forEach(function(f){
|
|
53
|
+
if (f[0] === "_"){ r.line = 1; r.label = f.slice(1); }
|
|
54
|
+
else if (f[0] === "="){ r.line = 2; r.label = f.slice(1); }
|
|
55
|
+
else if (f[0] === "#") r.id = f.slice(1);
|
|
56
|
+
else if (f[0] === ">") r.ref = f.slice(1);
|
|
57
|
+
else warnings.push("知らないしるし「" + f + "」(" + m[3] + ")");
|
|
58
|
+
});
|
|
59
|
+
runs.push(r);
|
|
60
|
+
}
|
|
61
|
+
plain(s.slice(last));
|
|
62
|
+
// 残った { } __ ==:閉じていないか、入れ子にしたしるし(しるしは入れ子にできない。{語句|=,#名前} のように 1 つにまとめる)
|
|
63
|
+
runs.forEach(function(r){ if (/[{}]|__|==/.test(r.t)) warnings.push("しるしの書き方が違う(閉じていない・入れ子):" + r.t); });
|
|
64
|
+
return runs;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// ---------------------------------------------------------------- 部品
|
|
68
|
+
var ROLE_COLOR = function(role){ return /主張|結論|筆者/.test(role) ? "var(--emph)" : /対比|反論|対立/.test(role) ? "var(--accent2)" : /具体|例/.test(role) ? "var(--term)" : "var(--muted)"; };
|
|
69
|
+
var PH = ["marks", "refs", "roles"];
|
|
70
|
+
// 枠をつなぐ線は札(枠の上の名前)から札へ、札と枠の外の通り道(縦書きは札の上、横書きは札の左)を通す。
|
|
71
|
+
// 通り道は線ごとに段(level)を分け、間の段落を越える線ほど外の段を通る。段の数だけ場所を空ける(線が札や枠に重ならないように)
|
|
72
|
+
var CHIP = 34; // 札の高さ
|
|
73
|
+
var STUB = 22, STEP = 16; // 札から 1 段目までの距離、段の間
|
|
74
|
+
var LH_TATE = 2.4; // 縦書きの行の送り(傍線と記号 A の入る列の間を空ける)
|
|
75
|
+
return class extends base.MotionElement {
|
|
76
|
+
static partName = "gendai"; // the registry name (define meta name), for report prefixes
|
|
77
|
+
static testing = {parse: parse}; // for tools/test-kokugo.mjs only (no part reads it)
|
|
78
|
+
// データの形(kit/shape.js):JSON ではなく、要素の中に本文の字(段落は空行で区切る)
|
|
79
|
+
static shape = {text: true, example: "@主張#p1\n便利な道具は、私たちから==迷う機会を奪う==。"};
|
|
80
|
+
static props = {
|
|
81
|
+
size: {type: "number", default: 28, doc: "本文の字の大きさ(px)"},
|
|
82
|
+
tate: {type: "bool", default: false, doc: "縦書きにする(段落は右から左へ、枠をつなぐ線は上を通す)"},
|
|
83
|
+
phases: {type: "string", default: "marks refs roles", doc: "段階の並び(marks 傍線・refs 指示語・roles 段落の枠から選ぶ。中身のないものは飛ばす)"},
|
|
84
|
+
draw: {type: "number", default: 0.7, doc: "線 1 本を引く秒数"},
|
|
85
|
+
};
|
|
86
|
+
get model(){ if (!this._m) this._m = parse(this._src !== undefined ? this._src : this.textContent); return this._m; }
|
|
87
|
+
get phaseList(){
|
|
88
|
+
var m = this.model, has = {
|
|
89
|
+
marks: m.paras.some(function(p){ return p.runs.some(function(r){ return r.line; }); }),
|
|
90
|
+
refs: m.paras.some(function(p){ return p.runs.some(function(r){ return r.ref; }); }),
|
|
91
|
+
roles: m.paras.some(function(p){ return p.role; })};
|
|
92
|
+
return String(this.props.phases || "").split(/[\s,]+/).filter(function(x){ return PH.indexOf(x) >= 0 && has[x]; });
|
|
93
|
+
}
|
|
94
|
+
get steps(){ return this.getAttribute("steps") !== null ? +this.getAttribute("steps") : this.phaseList.length; }
|
|
95
|
+
phaseStep(name){ return this.phaseList.indexOf(name) + 1; }
|
|
96
|
+
mount(ctx){
|
|
97
|
+
var self = this, P = this.props, tate = P.tate;
|
|
98
|
+
this._src = this.textContent;
|
|
99
|
+
var m = this.model;
|
|
100
|
+
m.warnings.forEach(function(w){ ctx.report("data", "[gendai] " + w); });
|
|
101
|
+
this.textContent = "";
|
|
102
|
+
this.classList.add("plot");
|
|
103
|
+
this.style.display = "block"; this.style.position = "relative";
|
|
104
|
+
this.style.fontFamily = "var(--font-mincho)";
|
|
105
|
+
var W =this.clientWidth || 1184, H = this.clientHeight || 440;
|
|
106
|
+
var roles = m.paras.some(function(p){ return p.role; });
|
|
107
|
+
// つなぐ線の段:つなぐ段落の間の短いものから順に、重なる線より 1 つ外の段へ
|
|
108
|
+
var pIdx = {};
|
|
109
|
+
m.paras.forEach(function(p, i){ if (p.id) pIdx[p.id] = i; });
|
|
110
|
+
var spans = m.paras.map(function(p, i){ return p.to && pIdx[p.to] !== undefined ? {i: i, lo: Math.min(i, pIdx[p.to]), hi: Math.max(i, pIdx[p.to])} : null; }).filter(Boolean)
|
|
111
|
+
.sort(function(a, b){ return (a.hi - a.lo) - (b.hi - b.lo) || a.lo - b.lo; });
|
|
112
|
+
var levelOf = {}, placed = [], nLev = 0;
|
|
113
|
+
spans.forEach(function(o){
|
|
114
|
+
var lv = 1;
|
|
115
|
+
placed.forEach(function(q){ if (q.lo < o.hi && o.lo < q.hi) lv = Math.max(lv, q.lv + 1); });
|
|
116
|
+
o.lv = lv; placed.push(o); levelOf[o.i] = lv; nLev = Math.max(nLev, lv);
|
|
117
|
+
});
|
|
118
|
+
this.nLev = nLev;
|
|
119
|
+
// 通り道と札の場所:縦書きは上に(札 + 段)、横書きは左に(段)と上に(札)
|
|
120
|
+
var lane = nLev ? STUB + (nLev - 1) * STEP + 10 : 0;
|
|
121
|
+
this.padTop = tate ? (roles ? CHIP + lane + 10 : 20) : (roles ? CHIP + 10 : 20);
|
|
122
|
+
this.padLeft = tate ? 0 : (nLev ? lane - 2 : 4);
|
|
123
|
+
// 重ね順:塗り(指す先の淡い色)→ 字 → 線・枠・矢印
|
|
124
|
+
this.back = D.el("svg", {width: W, height: H, viewBox: "0 0 " + W + " " + H, style: "position:absolute;left:0;top:0;overflow:visible;pointer-events:none"}, this);
|
|
125
|
+
var text = document.createElement("div");
|
|
126
|
+
text.style.cssText = "position:absolute;inset:0;font-size:" + P.size + "px;line-height:" + (tate ? LH_TATE : 1.85) + ";padding-top:" + this.padTop + "px;" + (tate ? "writing-mode:vertical-rl;" : "padding-left:" + this.padLeft + "px;");
|
|
127
|
+
this.appendChild(text);
|
|
128
|
+
this.front = D.el("svg", {width: W, height: H, viewBox: "0 0 " + W + " " + H, style: "position:absolute;left:0;top:0;overflow:visible;pointer-events:none"}, this);
|
|
129
|
+
this.text = text;
|
|
130
|
+
var byId = {};
|
|
131
|
+
this.paras = m.paras.map(function(p, pi){
|
|
132
|
+
var d = document.createElement("div");
|
|
133
|
+
// 枠の内側の余白と、段落の間(枠の名前の札が入る)
|
|
134
|
+
// 横書きは次の段落の札が前の枠に掛からないように空ける
|
|
135
|
+
d.style.cssText = "padding:10px 14px;text-indent:1em;" + (tate ? "margin:0 0 0 22px;" : "margin:0 0 " + (roles ? CHIP + 12 : 22) + "px 0;");
|
|
136
|
+
text.appendChild(d);
|
|
137
|
+
var P2 = {p: p, el: d, spans: []};
|
|
138
|
+
p.runs.forEach(function(r){
|
|
139
|
+
if (!r.line && !r.id && !r.ref){ d.appendChild(document.createTextNode(r.t)); return; }
|
|
140
|
+
var s = document.createElement("span"); s.textContent = r.t; d.appendChild(s);
|
|
141
|
+
P2.spans.push({r: r, el: s});
|
|
142
|
+
if (r.id) byId[r.id] = s;
|
|
143
|
+
});
|
|
144
|
+
return P2;
|
|
145
|
+
});
|
|
146
|
+
this.byId = byId;
|
|
147
|
+
// 傍線(引く順に)
|
|
148
|
+
this.lines = [];
|
|
149
|
+
this.paras.forEach(function(P2){ P2.spans.forEach(function(s){ if (s.r.line){
|
|
150
|
+
var g = D.el("g", {}, self.front), o = {el: s.el, r: s.r, g: g, segs: [], lab: null};
|
|
151
|
+
if (s.r.label) o.lab = D.el("text", {"font-size": 24, "font-weight": 700, fill: "var(--emph)", "text-anchor": "middle", opacity: 0}, g);
|
|
152
|
+
if (o.lab) o.lab.textContent = s.r.label;
|
|
153
|
+
self.lines.push(o);
|
|
154
|
+
} }); });
|
|
155
|
+
// 指示語 → 指す先
|
|
156
|
+
this.refs = [];
|
|
157
|
+
this.paras.forEach(function(P2){ P2.spans.forEach(function(s){ if (s.r.ref && byId[s.r.ref]){
|
|
158
|
+
self.refs.push({from: s.el, to: byId[s.r.ref],
|
|
159
|
+
fill: D.el("g", {opacity: 0}, self.back),
|
|
160
|
+
box: D.el("g", {opacity: 0}, self.front),
|
|
161
|
+
path: D.el("path", {fill: "none", stroke: "var(--emph)", "stroke-width": 3, "stroke-linecap": "round", pathLength: 1, "stroke-dasharray": 1, "stroke-dashoffset": 1}, self.front),
|
|
162
|
+
head: D.el("path", {d: "M0,0L-14,-7L-14,7Z", fill: "var(--emph)", opacity: 0}, self.front)});
|
|
163
|
+
} }); });
|
|
164
|
+
// 段落の枠・札・つなぐ線
|
|
165
|
+
var pById = {};
|
|
166
|
+
this.paras.forEach(function(P2){ if (P2.p.id) pById[P2.p.id] = P2; });
|
|
167
|
+
this.boxes = this.paras.filter(function(P2){ return P2.p.role; }).map(function(P2){
|
|
168
|
+
var c = ROLE_COLOR(P2.p.role);
|
|
169
|
+
var rect = D.el("rect", {fill: "none", stroke: c, "stroke-width": 2.5, rx: 10, pathLength: 1, "stroke-dasharray": 1, "stroke-dashoffset": 1}, self.front);
|
|
170
|
+
var chip = D.el("g", {opacity: 0}, self.front);
|
|
171
|
+
var cr = D.el("rect", {fill: "var(--bg)", stroke: c, "stroke-width": 2, rx: 14, height: 34}, chip);
|
|
172
|
+
var ct = D.el("text", {"font-size": 24, "font-weight": 700, fill: c, "text-anchor": "middle"}, chip);
|
|
173
|
+
ct.textContent = P2.p.role;
|
|
174
|
+
return {P2: P2, c: c, rect: rect, chip: chip, cr: cr, ct: ct};
|
|
175
|
+
});
|
|
176
|
+
this.links = this.paras.filter(function(P2){ return P2.p.to && pById[P2.p.to]; }).map(function(P2){
|
|
177
|
+
var c = P2.p.rel === "~" ? "var(--accent2)" : "var(--muted)";
|
|
178
|
+
return {a: P2, b: pById[P2.p.to], rel: P2.p.rel, c: c, lv: levelOf[self.paras.indexOf(P2)] || 1,
|
|
179
|
+
path: D.el("path", {fill: "none", stroke: c, "stroke-width": 2.5, "stroke-dasharray": P2.p.rel === "~" ? "none" : "none", pathLength: 1}, self.front),
|
|
180
|
+
h1: D.el("path", {d: "M0,0L-13,-6.5L-13,6.5Z", fill: c, opacity: 0}, self.front),
|
|
181
|
+
h0: P2.p.rel === "~" ? D.el("path", {d: "M0,0L-13,-6.5L-13,6.5Z", fill: c, opacity: 0}, self.front) : null};
|
|
182
|
+
});
|
|
183
|
+
this.setAttribute("aria-label", m.paras.map(function(p){ return (p.role ? "【" + p.role + "】" : "") + p.runs.map(function(r){ return r.t; }).join(""); }).join(" "));
|
|
184
|
+
}
|
|
185
|
+
// 要素の字の箱(行ごと)を部品の座標で。部品の外側の拡大(舞台の scale・段階の translate)によらない
|
|
186
|
+
rects(e){
|
|
187
|
+
var R = this.getBoundingClientRect(), sc = R.width / (this.offsetWidth || 1) || 1;
|
|
188
|
+
return [].map.call(e.getClientRects(), function(r){ return {l: (r.left - R.left) / sc, t: (r.top - R.top) / sc, r: (r.right - R.left) / sc, b: (r.bottom - R.top) / sc}; })
|
|
189
|
+
.filter(function(r){ return r.r - r.l > 0.5 && r.b - r.t > 0.5; });
|
|
190
|
+
}
|
|
191
|
+
box(e){ var r = this.rects(e), o = null; r.forEach(function(x){ o = o ? {l: Math.min(o.l, x.l), t: Math.min(o.t, x.t), r: Math.max(o.r, x.r), b: Math.max(o.b, x.b)} : x; }); return o; }
|
|
192
|
+
duration(k){
|
|
193
|
+
var name = this.phaseList[k - 1], P = this.props;
|
|
194
|
+
if (name === "marks") return this.lines.length * P.draw * 0.8 + 0.3;
|
|
195
|
+
if (name === "refs") return this.refs.length * (P.draw + 0.3) + 0.2;
|
|
196
|
+
if (name === "roles") return this.boxes.length * 0.35 + P.draw + (this.links.length ? 0.3 + P.draw : 0);
|
|
197
|
+
return 0;
|
|
198
|
+
}
|
|
199
|
+
render(k, t, ctx){
|
|
200
|
+
var self = this, P = this.props, tate = P.tate;
|
|
201
|
+
var at = function(name){ var s = self.phaseStep(name); if (!s) return -1; return k > s ? Infinity : k < s ? -1 : t; };
|
|
202
|
+
var pr = function(tt, a, d){ return tt < 0 ? 0 : D.prog(tt, a, d); };
|
|
203
|
+
var tm = at("marks"), trf = at("refs"), tro = at("roles");
|
|
204
|
+
// 先の段階を薄く見せる表示(授業の表示):後の段階の傍線・指示語の囲みと矢印・段落の枠と札とつなぐ線を、
|
|
205
|
+
// 引き終えた形のまま --preview-opacity の濃さで出す
|
|
206
|
+
var preview = !!ctx.preview, PV = preview ? base.previewOpacity(this) : 0.45;
|
|
207
|
+
var later = function(name){ return preview && self.phaseStep(name) > k; };
|
|
208
|
+
var fM = later("marks"), fR = later("refs"), fO = later("roles");
|
|
209
|
+
if (fM) tm = Infinity;
|
|
210
|
+
if (fR) trf = Infinity;
|
|
211
|
+
if (fO) tro = Infinity;
|
|
212
|
+
var f1 = function(x){ return x.toFixed(1); };
|
|
213
|
+
// ---- 傍線:縦書きは字の右、横書きは字の下。二重傍線は 2 本。行をまたぐときは行ごとに順に引く
|
|
214
|
+
this.lines.forEach(function(o, j){
|
|
215
|
+
var e = pr(tm, j * P.draw * 0.8, P.draw), rs = self.rects(o.el), total = 0;
|
|
216
|
+
rs.forEach(function(r){ total += tate ? r.b - r.t : r.r - r.l; });
|
|
217
|
+
while (o.g.childNodes.length > (o.lab ? 1 : 0)) o.g.removeChild(o.g.lastChild);
|
|
218
|
+
if (fM) o.g.setAttribute("opacity", PV); else o.g.removeAttribute("opacity");
|
|
219
|
+
var left = e * total;
|
|
220
|
+
rs.forEach(function(r){
|
|
221
|
+
var len = tate ? r.b - r.t : r.r - r.l, d = Math.max(0, Math.min(len, left)); left -= len;
|
|
222
|
+
if (d <= 0) return;
|
|
223
|
+
for (var q = 0; q < o.r.line; q++){
|
|
224
|
+
var off = 3 + q * 5;
|
|
225
|
+
var attrs = tate ? {x1: f1(r.r + off), x2: f1(r.r + off), y1: f1(r.t), y2: f1(r.t + d)} : {x1: f1(r.l), x2: f1(r.l + d), y1: f1(r.b + off), y2: f1(r.b + off)};
|
|
226
|
+
attrs.stroke = "var(--emph)"; attrs["stroke-width"] = 2.2;
|
|
227
|
+
D.el("line", attrs, o.g);
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
if (o.lab && rs.length){
|
|
231
|
+
var r0 = rs[0];
|
|
232
|
+
// 記号(A など)は線の始まりの外:縦書きは線の右の列の間で始まりより上、横書きは線の下の行の間
|
|
233
|
+
// 縦書きは線のすぐ右(列の間の、自分の列に寄ったところ)に、線の始まりから下へ
|
|
234
|
+
if (tate){ o.lab.setAttribute("x", f1(r0.r + 3 + o.r.line * 5 + 7)); o.lab.setAttribute("y", f1(r0.t + 22)); }
|
|
235
|
+
else { o.lab.setAttribute("x", f1(r0.l + 10)); o.lab.setAttribute("y", f1(r0.b + 3 + o.r.line * 5 + 20)); }
|
|
236
|
+
o.lab.setAttribute("opacity", pr(tm, j * P.draw * 0.8, 0.3).toFixed(3));
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
// ---- 指示語:指示語を四角で囲み、指す先に淡い色を敷き、指示語から指す先へ矢印
|
|
240
|
+
this.refs.forEach(function(o, j){
|
|
241
|
+
var a0 = j * (P.draw + 0.3), eb = pr(trf, a0, 0.3), ea = pr(trf, a0 + 0.25, P.draw);
|
|
242
|
+
var A = self.box(o.from), B = self.box(o.to);
|
|
243
|
+
while (o.box.firstChild) o.box.removeChild(o.box.firstChild);
|
|
244
|
+
while (o.fill.firstChild) o.fill.removeChild(o.fill.firstChild);
|
|
245
|
+
if (!A || !B){ o.box.setAttribute("opacity", 0); return; }
|
|
246
|
+
if (fR) eb = ea = PV;
|
|
247
|
+
D.el("rect", {x: f1(A.l - 3), y: f1(A.t - 2), width: f1(A.r - A.l + 6), height: f1(A.b - A.t + 4), rx: 5, fill: "none", stroke: "var(--emph)", "stroke-width": 2.5}, o.box);
|
|
248
|
+
self.rects(o.to).forEach(function(r){ D.el("rect", {x: f1(r.l - 2), y: f1(r.t), width: f1(r.r - r.l + 4), height: f1(r.b - r.t), rx: 4, fill: "var(--emph-tint)"}, o.fill); });
|
|
249
|
+
o.box.setAttribute("opacity", eb.toFixed(3)); o.fill.setAttribute("opacity", ea.toFixed(3));
|
|
250
|
+
// 矢印:指す先の行(字の箱)のうち指示語に近いものへ。同じ列(行)なら列の右(行の上)に弧、違えば列の頭(行の上)の側を通す
|
|
251
|
+
var ac = {x: (A.l + A.r) / 2, y: (A.t + A.b) / 2}, Bn = null, bd = Infinity;
|
|
252
|
+
self.rects(o.to).forEach(function(r){ var d = Math.hypot((r.l + r.r) / 2 - ac.x, (r.t + r.b) / 2 - ac.y); if (d < bd){ bd = d; Bn = r; } });
|
|
253
|
+
var x0, y0, x1, y1, cx, cy, same = tate ? Math.abs((Bn.l + Bn.r) / 2 - ac.x) < 6 : Math.abs((Bn.t + Bn.b) / 2 - ac.y) < 6;
|
|
254
|
+
if (tate && same){ var up = Bn.b <= A.t; x0 = A.r + 4; y0 = up ? A.t + 4 : A.b - 4; x1 = Bn.r + 4; y1 = up ? Bn.b - 4 : Bn.t + 4; cx = Math.max(x0, x1) + 44; cy = (y0 + y1) / 2; }
|
|
255
|
+
else if (tate){ x0 = ac.x; y0 = A.t - 4; x1 = (Bn.l + Bn.r) / 2; y1 = Bn.t - 4; cx = (x0 + x1) / 2; cy = Math.min(y0, y1) - 60; }
|
|
256
|
+
else if (same){ x0 = ac.x; y0 = A.t - 2; x1 = (Bn.l + Bn.r) / 2; y1 = Bn.t - 2; cx = (x0 + x1) / 2; cy = Math.min(y0, y1) - 46; }
|
|
257
|
+
else { var above = Bn.b <= A.t; x0 = ac.x; y0 = above ? A.t - 2 : A.b + 2; x1 = (Bn.l + Bn.r) / 2; y1 = above ? Bn.b + 2 : Bn.t - 2; cx = (x0 + x1) / 2 + 40; cy = (y0 + y1) / 2; }
|
|
258
|
+
// 指示語と指す先が同じ段落なら、弧の膨らみをその段落の枠の内側にとどめる(2 次曲線の頂は端と制御点の中ほど)
|
|
259
|
+
var para = o.from.parentNode === o.to.parentNode ? self.box(o.from.parentNode) : null, pad = 6;
|
|
260
|
+
if (para){
|
|
261
|
+
var mid = function(a, b){ return (a + b) / 2; };
|
|
262
|
+
if (cy < mid(y0, y1)) cy = Math.max(cy, 2 * (para.t + pad) - mid(y0, y1));
|
|
263
|
+
if (cx > mid(x0, x1)) cx = Math.min(cx, 2 * (para.r - pad) - mid(x0, x1));
|
|
264
|
+
}
|
|
265
|
+
o.path.setAttribute("d", "M" + f1(x0) + "," + f1(y0) + "Q" + f1(cx) + "," + f1(cy) + " " + f1(x1) + "," + f1(y1));
|
|
266
|
+
o.path.setAttribute("stroke-dashoffset", (fR ? 0 : 1 - ea).toFixed(4));
|
|
267
|
+
o.path.setAttribute("opacity", fR ? PV : ea > 0 ? 1 : 0);
|
|
268
|
+
o.head.setAttribute("transform", "translate(" + f1(x1) + " " + f1(y1) + ") rotate(" + (Math.atan2(y1 - cy, x1 - cx) * 180 / Math.PI).toFixed(1) + ")");
|
|
269
|
+
o.head.setAttribute("opacity", fR ? PV : ea >= 0.98 ? 1 : 0);
|
|
270
|
+
});
|
|
271
|
+
// ---- 段落の枠:順に囲み、札を出し、最後につなぐ線
|
|
272
|
+
var nb = this.boxes.length, tLink = nb * 0.35 + P.draw;
|
|
273
|
+
var boxOf = {}, chipOf = {};
|
|
274
|
+
this.boxes.forEach(function(o, j){
|
|
275
|
+
var e = pr(tro, j * 0.35, P.draw), el = o.P2.el;
|
|
276
|
+
var x = el.offsetLeft, y = el.offsetTop, w = el.offsetWidth, h = el.offsetHeight;
|
|
277
|
+
// offset は .text の中の座標。.text は部品の左上にある
|
|
278
|
+
boxOf[o.P2.p.id || j] = {x: x, y: y, w: w, h: h};
|
|
279
|
+
o.rect.setAttribute("x", x); o.rect.setAttribute("y", y); o.rect.setAttribute("width", w); o.rect.setAttribute("height", h);
|
|
280
|
+
o.rect.setAttribute("stroke-dashoffset", (1 - e).toFixed(4));
|
|
281
|
+
o.rect.setAttribute("opacity", fO ? PV : e > 0 ? 1 : 0);
|
|
282
|
+
// 札:縦書きは枠の上の辺の右寄り、横書きは左上の角
|
|
283
|
+
var tw = Array.from(o.P2.p.role).length * 24 + 24;
|
|
284
|
+
var cx = tate ? x + w - tw / 2 - 12 : x + tw / 2 + 12, cy = tate ? y - 17 : y - 17;
|
|
285
|
+
o.cr.setAttribute("x", f1(cx - tw / 2)); o.cr.setAttribute("y", f1(cy - 17)); o.cr.setAttribute("width", tw);
|
|
286
|
+
o.ct.setAttribute("x", f1(cx)); o.ct.setAttribute("y", f1(cy + 8.5));
|
|
287
|
+
o.chip.setAttribute("opacity", (fO ? PV : pr(tro, j * 0.35 + P.draw * 0.5, 0.3)).toFixed(3));
|
|
288
|
+
chipOf[o.P2.p.id || j] = {l: cx - tw / 2, r: cx + tw / 2, t: cy - 17, b: cy + 17, at: []};
|
|
289
|
+
});
|
|
290
|
+
// 札に付く線の端:縦書きは札の上の辺に左から、横書きは札の左の辺に上から並べる。
|
|
291
|
+
// 相手が左(上)にある線を先に、段の低い順に。相手が右(下)にある線は後に、段の高い順に(縦の線が横の線を横切らないように)
|
|
292
|
+
var ends = [];
|
|
293
|
+
this.links.forEach(function(o){
|
|
294
|
+
var A = chipOf[o.a.p.id], B = chipOf[o.b.p.id];
|
|
295
|
+
if (!A || !B) return;
|
|
296
|
+
var ca = tate ? (A.l + A.r) / 2 : (A.t + A.b) / 2, cb = tate ? (B.l + B.r) / 2 : (B.t + B.b) / 2;
|
|
297
|
+
o.ea = {link: o, chip: A, dir: cb < ca ? -1 : 1}; o.eb = {link: o, chip: B, dir: ca < cb ? -1 : 1};
|
|
298
|
+
A.at.push(o.ea); B.at.push(o.eb); ends.push(A, B);
|
|
299
|
+
});
|
|
300
|
+
ends.forEach(function(C){
|
|
301
|
+
if (C.done) return; C.done = true;
|
|
302
|
+
C.at.sort(function(p, q){ return p.dir !== q.dir ? p.dir - q.dir : p.dir < 0 ? p.link.lv - q.link.lv : q.link.lv - p.link.lv; });
|
|
303
|
+
var n = C.at.length;
|
|
304
|
+
C.at.forEach(function(e, i){
|
|
305
|
+
if (tate){ e.x = C.l + (C.r - C.l) * (i + 1) / (n + 1); e.y = C.t - 1; }
|
|
306
|
+
else { e.x = C.l - 1; e.y = C.t + (C.b - C.t) * (i + 1) / (n + 1); }
|
|
307
|
+
});
|
|
308
|
+
});
|
|
309
|
+
this.links.forEach(function(o){
|
|
310
|
+
if (!o.ea){ o.path.setAttribute("opacity", 0); o.h1.setAttribute("opacity", 0); if (o.h0) o.h0.setAttribute("opacity", 0); return; }
|
|
311
|
+
var e = pr(tro, tLink, P.draw), d, ang1, ang0, x0 = o.ea.x, y0 = o.ea.y, x1 = o.eb.x, y1 = o.eb.y, rr = 8;
|
|
312
|
+
if (tate){
|
|
313
|
+
// 札の上の辺から上へ出て、段の高さを横に通り、相手の札の上の辺へ下りる(角は丸める)
|
|
314
|
+
var top = Math.min(o.ea.chip.t, o.eb.chip.t), yl = top - STUB - (o.lv - 1) * STEP, sx = x1 < x0 ? -1 : 1;
|
|
315
|
+
d = "M" + f1(x0) + "," + f1(y0) + "V" + f1(yl + rr) + "Q" + f1(x0) + "," + f1(yl) + " " + f1(x0 + sx * rr) + "," + f1(yl) +
|
|
316
|
+
"H" + f1(x1 - sx * rr) + "Q" + f1(x1) + "," + f1(yl) + " " + f1(x1) + "," + f1(yl + rr) + "V" + f1(y1);
|
|
317
|
+
ang1 = 90; ang0 = 90;
|
|
318
|
+
} else {
|
|
319
|
+
// 札の左の辺から左へ出て、段の位置を縦に通り、相手の札の左の辺へ
|
|
320
|
+
var lft = Math.min(o.ea.chip.l, o.eb.chip.l), xl = lft - STUB - (o.lv - 1) * STEP, sy = y1 < y0 ? -1 : 1;
|
|
321
|
+
d = "M" + f1(x0) + "," + f1(y0) + "H" + f1(xl + rr) + "Q" + f1(xl) + "," + f1(y0) + " " + f1(xl) + "," + f1(y0 + sy * rr) +
|
|
322
|
+
"V" + f1(y1 - sy * rr) + "Q" + f1(xl) + "," + f1(y1) + " " + f1(xl + rr) + "," + f1(y1) + "H" + f1(x1);
|
|
323
|
+
ang1 = 0; ang0 = 0;
|
|
324
|
+
}
|
|
325
|
+
o.path.setAttribute("d", d);
|
|
326
|
+
o.path.setAttribute("stroke-dasharray", "1"); o.path.setAttribute("stroke-dashoffset", (1 - e).toFixed(4));
|
|
327
|
+
o.path.setAttribute("opacity", fO ? PV : e > 0 ? 1 : 0);
|
|
328
|
+
o.h1.setAttribute("transform", "translate(" + f1(x1) + " " + f1(y1) + ") rotate(" + ang1 + ")");
|
|
329
|
+
o.h1.setAttribute("opacity", fO ? PV : e >= 0.98 ? 1 : 0);
|
|
330
|
+
if (o.h0){ o.h0.setAttribute("transform", "translate(" + f1(x0) + " " + f1(y0) + ") rotate(" + ang0 + ")"); o.h0.setAttribute("opacity", fO ? PV : e >= 0.98 ? 1 : 0); }
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# m-cycle 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) and markup-reader 1.0.1.
|
|
8
|
+
- Fix: box and edge-label widths use base's measured textWidth in the deck's font (digits 0.6 em and Latin 0.62 em were too narrow, so boxes could be narrower than their text).
|
|
9
|
+
|
|
10
|
+
## 2.0.2 (components 2.1.2)
|
|
11
|
+
|
|
12
|
+
- Fix: an edge label was centred on its own line, so it straddled a vertical line and the centre name; it is now placed beside the line, clear of the boxes and the centre name, and `layout` is reported when there is no clear place.
|
|
13
|
+
- Fix: a box at 12 or 6 o'clock wider than the element was not checked; it now makes the layout fail and `size` is reported.
|
|
14
|
+
- Fix: a size below 24 was used as written, and a size that is not a number never stopped shrinking; a size below 24 is now 24, a non-number is the default 26, and both report `attr`.
|
|
15
|
+
- 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 centre name, the stages in order and the other links). An author's aria-label is kept, and the svg is aria-hidden.
|
|
16
|
+
|
|
17
|
+
## 2.0.1 (components 2.0.0)
|
|
18
|
+
|
|
19
|
+
- Render writes an attribute only when its value changes (the 1.13.1 fix): writing the same value again made Chrome repaint, and on macOS re-entering a step moved two pixels. The DOM at every step is unchanged (tools/test-cycle-rewrite.mjs).
|
|
20
|
+
|
|
21
|
+
## 2.0.0 (components 2.0.0-rc.1)
|
|
22
|
+
|
|
23
|
+
- Moved to `egatariParts.define({name: "cycle", version: "2.0.0", requires: {base: "1.0.0", "markup-reader": "1.0.0"}, element: "m-cycle"})`,
|
|
24
|
+
extending `base.MotionElement` with `base.el` / `mtext` / `prog` / `lerp` / `variant` / `previewOpacity`; `static partName = "cycle"`. The embedded variant block is gone (`base.variant`).
|
|
25
|
+
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).
|
|
26
|
+
- Formulas are rendered at build time (Egatari spec §6.2), no longer by KaTeX at play time: `static build = {fields: {"nodes[].tex": "katex", "center.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", "[cycle] …")`) 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.
|
|
27
|
+
- 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", "[cycle] 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).
|
|
28
|
+
- 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).
|
|
29
|
+
- An edge to an unknown node is reported with `ctx.report("data", "[cycle] …")` from mount (1.13.0: `console.warn` while planning the steps), and a cycle that does not fit even at 24 px with `ctx.report("size", "[cycle] …")`.
|
|
30
|
+
- The internal method `layout(size)` is renamed `arrange(size)`: in 2.0 `layout(ctx)` is the player's optional method (spec §8.4), which base calls with a ctx.
|
|
31
|
+
- The preview view is `ctx.preview` alone (1.13.0 also accepted `ctx.mode === "lecture"`).
|
|
32
|
+
- Identity fixture `tools/fixtures/c2-identity/cycle.html` (the v1.13.0 demo has no `tex`).
|
|
33
|
+
- Ids: none written.
|
|
34
|
+
|
|
35
|
+
## 1.13.0
|
|
36
|
+
|
|
37
|
+
As released in the library's 1.13.0.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: m-cycle
|
|
3
|
+
version: 2.0.3
|
|
4
|
+
series: common
|
|
5
|
+
tier: standard
|
|
6
|
+
summary: 循環の図。段階の箱を円の上に 12 時から時計回りに並べ、円に沿った矢印でつなぐ(最後から最初へ戻る矢印も)
|
|
7
|
+
steps: 段階の数(既定は 1 つ = 1 段階。per-step で n 個ずつ、node の step が優先)
|
|
8
|
+
purposes: cycle
|
|
9
|
+
variants: fade, draw, grow
|
|
10
|
+
props: per-step, size, dur, stagger
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
PDCA、水の循環、細胞周期、学習のサイクルなど、同じ順で回り続ける段階を見せるときに使う。
|
|
14
|
+
座標は書かない。段階の中身を配列の順に書けば、部品が並べる([共通の決まり](../../docs/conventions.ja.md) §2)。
|
|
15
|
+
|
|
16
|
+
子の JSON:`{"nodes": [...], "center": {...}, "edges": [...]}`(`center` と `edges` は省ける)。
|
|
17
|
+
|
|
18
|
+
- `nodes`:段階(3〜8 個を想定)。配列の順に回る。12 時の位置から時計回りに置き、となりの段階へ円に沿った矢印を引く。最後から最初へ戻る矢印は自動で引く
|
|
19
|
+
- `label`(`\n` で改行)か `tex`(KaTeX)、`note`(箱の中の 2 行目に小さく、`--muted`)、`tone`(`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`)、`step`、`at`、`id`
|
|
20
|
+
- `center`:真ん中の名前(`{"label": "PDCA", "note": "…"}`)。最初の段階と一緒に出る(`center.step` で変えられる)。`center` はオブジェクト。`m-pie` の `center` は字(文字列)なので取り違えない
|
|
21
|
+
- `label`(`\n` で改行)か `tex`(KaTeX)、`note`(箱の**中**の最後の行に小さく、`--muted`)、`tone`(`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`)、`step`、`at`
|
|
22
|
+
- `tone: emph` の箱は、地が `--emph-tint`、枠と字が `--emph`
|
|
23
|
+
- `edges`:ほかのつながり(`from` `to` は段階の `id`、`label` `tone` `dash` `step`)。箱の縁から縁への破線の矢印
|
|
24
|
+
- 矢印の色は `--muted`、3 px(`edges` も `tone` がなければ `--muted`)
|
|
25
|
+
|
|
26
|
+
並べ方:
|
|
27
|
+
|
|
28
|
+
- 横に長い場所では円を横に伸ばした楕円にする(縦の 1.9 倍まで。縦に長くはしない)。箱と矢印が要素の箱に入る大きさにする
|
|
29
|
+
- 段階:既定は 1 段階に 1 つ。入ってくる矢印はその段階の箱と一緒に出る。最後から最初へ戻る矢印は、最後の段階の箱が出たあとに引く
|
|
30
|
+
- 見せ方(`variant`):`fade`(既定。箱が下から 12 px 上がりながら現れてから入ってくる矢印を引く)・`draw`(矢印を先に引き、その先に箱が前の箱の側から 12 px 寄りながら出る)・`grow`(矢印を引きながら、箱が前の箱の側から 12 px 寄って 0.92 倍から大きくなる)。書かなければ最初の見せ方。どれも段階の数・長さ・最後の形は同じ
|
|
31
|
+
- 動きの上限:どの見せ方でも箱が動くのは 12 px まで(箱の中心で測る。大きさは 0.92 倍から、`fade` と同じ)、時間も `fade` の長さの中(共通の決まり §1.2)
|
|
32
|
+
- 授業の表示(`ctx.preview`):後の段階の箱と矢印をテーマの薄さで見せる
|
|
33
|
+
- `cues(k)`:同じ段階に 2 つ以上の箱があれば、2 つ目からの開始時刻を返す
|
|
34
|
+
|
|
35
|
+
見本は `demo.html`(PDCA、水の循環、見せ方の種類)。
|
|
36
|
+
|
|
37
|
+
<!-- llm: omit -->
|
|
38
|
+
注意
|
|
39
|
+
|
|
40
|
+
- 箱の幅は字数から見積もる(和文 1 字、数字 0.6 字、ほかの欧文 0.62 字)。字の読み込みを待たずに決まる
|
|
41
|
+
- 入らないとき(箱どうしが重なる・矢印を引く間がない・真ん中の名前が円に入らない)は字を `size` から 2px ずつ 24px まで縮め、それでも入らなければ `ctx.report("size", …)` で知らせる(Studio の検査に出る)
|
|
42
|
+
- 矢印は楕円の弧(SVG の `A`)で、箱から 8px 空けたところから次の箱の手前まで。段階が 8 個を超えると矢印が短くなりすぎる
|
|
43
|
+
<!-- llm: end -->
|
|
@@ -0,0 +1,75 @@
|
|
|
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-cycle の見本</title>
|
|
7
|
+
<!-- 組み方:node kit/build.mjs components/cycle/demo.html -o components/cycle/out/demo.html -->
|
|
8
|
+
<style>
|
|
9
|
+
.vcap{font-size:27px;line-height:1.3;margin:0 0 6px;color:var(--muted)}
|
|
10
|
+
</style>
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
<div id="stage">
|
|
14
|
+
|
|
15
|
+
<section class="slide">
|
|
16
|
+
<h2>PDCA サイクル</h2>
|
|
17
|
+
<div class="body">
|
|
18
|
+
<m-cycle style="height:430px">
|
|
19
|
+
<script type="application/json">{
|
|
20
|
+
"center": {"label": "PDCA"},
|
|
21
|
+
"nodes": [
|
|
22
|
+
{"label": "計画(Plan)", "note": "目標と手順を決める"},
|
|
23
|
+
{"label": "実行(Do)", "note": "計画どおりにやってみる"},
|
|
24
|
+
{"label": "評価(Check)", "note": "結果を目標と比べる"},
|
|
25
|
+
{"label": "改善(Act)", "note": "やり方を直して次へ", "tone": "emph"}
|
|
26
|
+
]
|
|
27
|
+
}</script>
|
|
28
|
+
</m-cycle>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="concl"><span>→ 1 周ごとに、やり方が少しずつよくなる</span></div>
|
|
31
|
+
</section>
|
|
32
|
+
|
|
33
|
+
<section class="slide">
|
|
34
|
+
<h2>水の循環</h2>
|
|
35
|
+
<div class="body">
|
|
36
|
+
<m-cycle style="height:430px">
|
|
37
|
+
<script type="application/json">{
|
|
38
|
+
"center": {"label": "水の循環", "note": "太陽の熱で動く"},
|
|
39
|
+
"nodes": [
|
|
40
|
+
{"label": "蒸発", "note": "海や地面の水が水蒸気に"},
|
|
41
|
+
{"label": "雲ができる", "note": "上空で冷えて水や氷の粒に"},
|
|
42
|
+
{"label": "雨・雪", "note": "粒が大きくなって落ちる"},
|
|
43
|
+
{"label": "しみこむ・流れる", "note": "地下水や川になる"},
|
|
44
|
+
{"label": "海へ", "note": "川が海に注ぐ"}
|
|
45
|
+
]
|
|
46
|
+
}</script>
|
|
47
|
+
</m-cycle>
|
|
48
|
+
</div>
|
|
49
|
+
<div class="concl"><span>→ 水は形を変えながら、地球の上を回り続ける</span></div>
|
|
50
|
+
</section>
|
|
51
|
+
|
|
52
|
+
<section class="slide">
|
|
53
|
+
<h2>見せ方の種類(variant)</h2>
|
|
54
|
+
<div class="body">
|
|
55
|
+
<div style="display:grid;grid-template-columns:1fr 1fr 1fr;gap:0 36px">
|
|
56
|
+
<div><p class="vcap">現れてから矢印(fade、既定)</p>
|
|
57
|
+
<m-cycle variant="fade" style="height:360px">
|
|
58
|
+
<script type="application/json">{"nodes": [{"label": "計画"}, {"label": "実行"}, {"label": "評価"}, {"label": "改善"}]}</script>
|
|
59
|
+
</m-cycle></div>
|
|
60
|
+
<div><p class="vcap">矢印を引いてから(draw)</p>
|
|
61
|
+
<m-cycle variant="draw" style="height:360px">
|
|
62
|
+
<script type="application/json">{"nodes": [{"label": "計画"}, {"label": "実行"}, {"label": "評価"}, {"label": "改善"}]}</script>
|
|
63
|
+
</m-cycle></div>
|
|
64
|
+
<div><p class="vcap">前の箱の側から大きくなる(grow)</p>
|
|
65
|
+
<m-cycle variant="grow" style="height:360px">
|
|
66
|
+
<script type="application/json">{"nodes": [{"label": "計画"}, {"label": "実行"}, {"label": "評価"}, {"label": "改善"}]}</script>
|
|
67
|
+
</m-cycle></div>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
<div class="concl"><span>→ 書かなければ最初の見せ方(fade)になる</span></div>
|
|
71
|
+
</section>
|
|
72
|
+
|
|
73
|
+
</div>
|
|
74
|
+
</body>
|
|
75
|
+
</html>
|