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,35 @@
|
|
|
1
|
+
# m-flow 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: edge text is placed by base's measured textWidth in the deck's font (digits and Latin were 0.6 em, so the space kept free for a label with numbers could be too short).
|
|
9
|
+
- Fix: in a box label of several lines, a line with a subscript (_) and the next line with a superscript (^) are moved apart by what the 24px sub- and superscripts of base 1.1.0 reach (they touched at 1.25 lines); labels without them are placed as before.
|
|
10
|
+
|
|
11
|
+
## 2.0.2 (components 2.1.2)
|
|
12
|
+
|
|
13
|
+
- Fix: an edge from a box to itself without `loop` had zero length, gave NaN coordinates and drew a stray arrowhead in the top-left corner. It is now drawn as a small loop on the right of the box (from 1/4 and 3/4 of its side), with a `data` report naming the edge; with `loop` it is the same loop on that side. An edge between two boxes with the same centre is reported and not drawn.
|
|
14
|
+
- Fix: duplicate node ids were silently accepted (edges went to the last one). They are now reported (`data`), and edges still use the last node with that id.
|
|
15
|
+
|
|
16
|
+
## 2.0.1 (components 2.0.0)
|
|
17
|
+
|
|
18
|
+
- Text kept clear (#140): two edges between the same two boxes in opposite directions, neither with `shift` or `loop`, are drawn 10 px each to their right. An edge's label and amount keep clear of the other edges' lines, of texts placed before them and of places where another line runs between the text and its own line; the amount may go to the label's side. When no place is free, `ctx.report("layout", …)`. The demos draw as in 2.0.0 (tools/test-c2-identity.mjs, tools/test-overlap.mjs).
|
|
19
|
+
|
|
20
|
+
## 2.0.0 (components 2.0.0-rc.1)
|
|
21
|
+
|
|
22
|
+
- Moved to `egatariParts.define({name: "flow", version: "2.0.0", requires: {base: "1.0.0", "markup-reader": "1.0.0"}, element: "m-flow"})`,
|
|
23
|
+
extending `base.MotionElement` with `base.el` / `mtext` / `prog` / `lerp` / `previewOpacity`; `static partName = "flow"`.
|
|
24
|
+
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).
|
|
25
|
+
- 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", "[flow] …")`) 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.
|
|
26
|
+
- 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", "[flow] 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).
|
|
27
|
+
- 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).
|
|
28
|
+
- An unknown `loop` value and an edge to an unknown node are reported with `ctx.report("data", "[flow] …")` (1.13.0: `console.warn` and `console.error`).
|
|
29
|
+
- The preview view is `ctx.preview` alone (1.13.0 also accepted `ctx.mode === "lecture"`).
|
|
30
|
+
- The v1.13.0 demo has formulas; no fixture.
|
|
31
|
+
- Ids: none written.
|
|
32
|
+
|
|
33
|
+
## 1.13.0
|
|
34
|
+
|
|
35
|
+
As released in the library's 1.13.0.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: m-flow
|
|
3
|
+
version: 2.0.3
|
|
4
|
+
series: common
|
|
5
|
+
tier: standard
|
|
6
|
+
summary: 流れ図の箱と矢印を段階ごとに出して、図を組み立てる
|
|
7
|
+
steps: nodes と edges の step の最大
|
|
8
|
+
purposes: process
|
|
9
|
+
props: fade, draw, size, pulse-dur, pulse-n, label-gap
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
証明や手法の各ステップに合わせて箱と矢印を出し、文と図の対応を見せるときに使う
|
|
13
|
+
(motion-slides スキル §6「図を組み立てる」)。
|
|
14
|
+
|
|
15
|
+
子の JSON:`{"nodes": [...], "edges": [...]}`。座標は要素の箱の px(`x`, `y` は箱の左上、`w`, `h` は大きさ)。
|
|
16
|
+
|
|
17
|
+
- node:`id` `label`(`\n` で改行)または `tex`(KaTeX)、`step`、`tone`(`term` / `emph` / `muted`)、`at`(段階の中の開始秒)、`shape:"diamond"`(判断)
|
|
18
|
+
- edge:`from` `to` `step`(既定は両端の箱の遅いほう)、`label`、`tone`、`dash`、`offset`(名前と線の距離)、`at`、`loop`(前の箱へ外側を回って戻る辺。回る側は `"left"` `"right"` `"top"` `"bottom"`、`true` なら両端が縦に並ぶとき右・横に並ぶとき下)
|
|
19
|
+
- 色:線と線の名前は `--fg`(`tone` があればその色)。`muted` の箱は枠が `--muted`、地が `--bg`、字は `--fg`
|
|
20
|
+
- 箱は薄く拡大しながら現れ、矢印は同じ段階の箱が出てから引く
|
|
21
|
+
|
|
22
|
+
<!-- llm: omit -->
|
|
23
|
+
色の履歴:v1.2.0 より前は、線の名前と `muted` の箱の字が `--muted` で、投影すると薄かった。
|
|
24
|
+
|
|
25
|
+
流れ図の判断と戻る辺(書かなければこれまでと同じ):
|
|
26
|
+
|
|
27
|
+
- node の `shape: "diamond"`:箱の `x` `y` `w` `h` に内接するひし形(判断)。字は真ん中に置くので、ひし形の幅は字の幅のおよそ 2 倍にする。はい/いいえは出ていく辺の `label`。矢印はひし形の辺で切る
|
|
28
|
+
- edge の `loop`:前の箱へ戻る辺を、箱を横切らずに外側から回す。`"left"` `"right"` `"top"` `"bottom"` は回る側、`true` は両端が縦に並ぶなら `right`、横に並ぶなら `bottom`。両端の箱のその側の辺の中点から出入りし、両端の間にある箱(と両端)のその側の端から 34 px 外を通る(かぎ形、角は丸い)。`label` はその線の外側に、図の外に出るなら内側に。`amount` は内側に。`pulse` も折れ線に沿って流れる
|
|
29
|
+
- 回る側の外に場所がいる(右なら箱の右端から 34 px と名前の幅)。図の外にはみ出さないよう、箱の置き方で場所を空けておく
|
|
30
|
+
<!-- llm: end -->
|
|
31
|
+
|
|
32
|
+
<!-- llm: business -->
|
|
33
|
+
お金・モノの流れ(ビジネスモデルの図)のための edge の欄(書かなければこれまでと同じ):
|
|
34
|
+
|
|
35
|
+
- `kind`:`money`(`--emph` の太線)・`service`(`--term`)・`data`(`--muted` の破線)。`tone` と `dash` を書けばそちらが勝つ
|
|
36
|
+
- `amount`:金額などを太字で添える。`label` もあれば線の反対の側に書く
|
|
37
|
+
- `shift`:線に垂直に(進む向きの右へ)ずらす px。同じ 2 つの箱の行きと帰りを `shift` を同じ値にして 2 本並べる。字はずらした側に書く
|
|
38
|
+
- `pulse`:点の列(`pulse-n` 個、0.22 秒おき)が始点から終点へ `pulse-dur` 秒で流れる。`true` なら辺の段階に(引き終わってから)1 回、`[段階, …]` ならその段階ごとに 1 回(辺の段階でなければ `pulseAt` 秒、既定 0.2 秒から)。位置は (k, t) だけで決まり、流れ終わると消える(最終状態には出ない)。`pulse` の段階は図の段階の数にも数える
|
|
39
|
+
- 辺の名前と `amount` は、箱に `label-gap`(既定 12)px より近いか図の外に出るなら、線から 6 px ずつ(60 px まで)離し、それでも離れなければ線の反対の側で試す(名前と金額が両側にあるときは自分の側だけ)。幅は字数からの見積もり。箱の矩形には `class="box"` が付き、`tools/test-components.mjs` はほかの箱に 4 px より近い字を知らせる。離した名前は線から遠くなるので、箱の間は名前が収まる幅にしておく
|
|
40
|
+
- `cues(k)`:pulse の開始時刻を返す(pulse のない図はこれまでどおり null)。口述原稿の `{cue}` の数と合えば、「お金は〜から〜へ{cue}」に合わせて流れる
|
|
41
|
+
<!-- llm: end -->
|
|
42
|
+
|
|
43
|
+
見本は `demo.html`(ベイズ決定の流れ、お金とサービスの流れ、判断とくり返しの流れ図)。
|
|
@@ -0,0 +1,89 @@
|
|
|
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-flow の見本</title>
|
|
7
|
+
<!-- 組み方:node kit/build.mjs components/flow/demo.html -o components/flow/out/demo.html -->
|
|
8
|
+
<style>
|
|
9
|
+
</style>
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<div id="stage">
|
|
13
|
+
|
|
14
|
+
<section class="slide">
|
|
15
|
+
<h2>ベイズ決定の流れ</h2>
|
|
16
|
+
<div class="body">
|
|
17
|
+
<m-flow style="height:420px">
|
|
18
|
+
<script type="application/json">{
|
|
19
|
+
"nodes": [
|
|
20
|
+
{"id": "w", "label": "観測 *w*", "x": 0, "y": 40, "w": 220, "h": 80, "step": 1},
|
|
21
|
+
{"id": "p", "tex": "p(y\\mid w)", "x": 330, "y": 40, "w": 240, "h": 80, "step": 1},
|
|
22
|
+
{"id": "L", "label": "損失 *L*(*y*, *a*)\n(与えられる)", "x": 330, "y": 260, "w": 240, "h": 100, "step": 2, "tone": "muted"},
|
|
23
|
+
{"id": "r", "tex": "r(a\\mid w)", "x": 680, "y": 150, "w": 220, "h": 80, "step": 3},
|
|
24
|
+
{"id": "a", "label": "決定 *a*^*", "x": 1000, "y": 150, "w": 184, "h": 80, "step": 4, "tone": "emph"}
|
|
25
|
+
],
|
|
26
|
+
"edges": [
|
|
27
|
+
{"from": "w", "to": "p", "step": 1, "label": "予測"},
|
|
28
|
+
{"from": "p", "to": "r", "step": 3},
|
|
29
|
+
{"from": "L", "to": "r", "step": 3, "dash": true},
|
|
30
|
+
{"from": "r", "to": "a", "step": 4, "label": "最小化", "tone": "emph"}
|
|
31
|
+
]
|
|
32
|
+
}</script>
|
|
33
|
+
</m-flow>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="concl"><span>→ 予測と損失から期待損失 <i>r</i> を作り,それを最小にする <i>a</i> を選ぶ</span></div>
|
|
36
|
+
</section>
|
|
37
|
+
|
|
38
|
+
<section class="slide">
|
|
39
|
+
<h2>お金とサービスの流れ(架空)</h2>
|
|
40
|
+
<div class="body">
|
|
41
|
+
<m-flow style="height:420px">
|
|
42
|
+
<script type="application/json">{
|
|
43
|
+
"nodes": [
|
|
44
|
+
{"id": "co", "label": "自社", "x": 470, "y": 20, "w": 240, "h": 80, "step": 1, "tone": "emph"},
|
|
45
|
+
{"id": "cu", "label": "顧客の会社", "x": 60, "y": 300, "w": 260, "h": 80, "step": 1},
|
|
46
|
+
{"id": "us", "label": "社員(使う人)", "x": 860, "y": 300, "w": 300, "h": 80, "step": 2},
|
|
47
|
+
{"id": "cl", "label": "クラウド", "x": 950, "y": 20, "w": 220, "h": 80, "step": 3, "tone": "muted"}
|
|
48
|
+
],
|
|
49
|
+
"edges": [
|
|
50
|
+
{"from": "co", "to": "cu", "kind": "service", "label": "使う権利", "shift": 14, "step": 1},
|
|
51
|
+
{"from": "cu", "to": "co", "kind": "money", "amount": "月 3 万円", "shift": 14, "step": 2, "pulse": [2, 3]},
|
|
52
|
+
{"from": "cu", "to": "us", "kind": "service", "label": "配る", "step": 2},
|
|
53
|
+
{"from": "us", "to": "co", "kind": "data", "label": "使い方の記録", "step": 3, "pulse": true},
|
|
54
|
+
{"from": "co", "to": "cl", "kind": "money", "amount": "売上の 15 %", "step": 3}
|
|
55
|
+
]
|
|
56
|
+
}</script>
|
|
57
|
+
</m-flow>
|
|
58
|
+
</div>
|
|
59
|
+
<div class="concl"><span>→ 会社が払い,社員が使い,記録が戻る</span></div>
|
|
60
|
+
</section>
|
|
61
|
+
|
|
62
|
+
<section class="slide">
|
|
63
|
+
<h2>1 から <i>n</i> までの和を求める手順(判断とくり返し)</h2>
|
|
64
|
+
<div class="body">
|
|
65
|
+
<m-flow aria-label="1 から n までの和を求める流れ図" style="height:420px">
|
|
66
|
+
<script type="application/json">{
|
|
67
|
+
"nodes": [
|
|
68
|
+
{"id": "init", "label": "*S* ← 0, *i* ← 1", "x": 0, "y": 70, "w": 220, "h": 80, "step": 1},
|
|
69
|
+
{"id": "dec", "label": "*i* ≤ *n* ?", "x": 290, "y": 40, "w": 260, "h": 140, "step": 1, "shape": "diamond"},
|
|
70
|
+
{"id": "add", "label": "*S* ← *S* + *i*", "x": 640, "y": 70, "w": 230, "h": 80, "step": 2},
|
|
71
|
+
{"id": "inc", "label": "*i* ← *i* + 1", "x": 950, "y": 70, "w": 220, "h": 80, "step": 2},
|
|
72
|
+
{"id": "out", "label": "*S* を出力", "x": 305, "y": 300, "w": 230, "h": 80, "step": 4, "tone": "emph"}
|
|
73
|
+
],
|
|
74
|
+
"edges": [
|
|
75
|
+
{"from": "init", "to": "dec", "step": 1},
|
|
76
|
+
{"from": "dec", "to": "add", "label": "はい", "step": 2},
|
|
77
|
+
{"from": "add", "to": "inc", "step": 2},
|
|
78
|
+
{"from": "inc", "to": "dec", "loop": "top", "label": "くり返す", "step": 3},
|
|
79
|
+
{"from": "dec", "to": "out", "label": "いいえ", "step": 4, "tone": "emph"}
|
|
80
|
+
]
|
|
81
|
+
}</script>
|
|
82
|
+
</m-flow>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="concl"><span>→ <i>i</i> が <i>n</i> をこえるまで足してから,<i>S</i> を出力する</span></div>
|
|
85
|
+
</section>
|
|
86
|
+
|
|
87
|
+
</div>
|
|
88
|
+
</body>
|
|
89
|
+
</html>
|
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
// m-flow:流れ図の箱と矢印を段階ごとに出して、図を組み立てる
|
|
2
|
+
// <m-flow style="height:400px"><script type="application/json">
|
|
3
|
+
// {"nodes":[{"id":"a","label":"観測 *w*","x":20,"y":40,"w":200,"h":70,"step":1}, …],
|
|
4
|
+
// "edges":[{"from":"a","to":"b","step":2,"label":"更新"}]}
|
|
5
|
+
// (JSON の終わり)</m-flow>
|
|
6
|
+
// 座標は要素の箱の px(x, y は箱の左上)。箱は段階 step で現れ、矢印は同じ段階の箱の後に引く
|
|
7
|
+
// 箱の字は label(*斜体*、_下付き、^上付き、\n で改行)か tex(KaTeX)。tone は term / emph / muted
|
|
8
|
+
// お金・モノの流れ(ビジネスモデルの図):edge の kind(money / service / data)で色と線種を決め、amount(金額など)を太字で添える。
|
|
9
|
+
// 同じ 2 つの箱の行きと帰りは shift(線に垂直にずらす px)で分ける。pulse の辺は、点の列が始点から終点へ流れる
|
|
10
|
+
// (pulse: true なら辺の段階に 1 回、[段階, …] ならその段階ごとに 1 回。位置は (k, t) だけで決まり、流れ終わると消える)
|
|
11
|
+
// 流れ図の判断:node の shape: "diamond"(箱の x, y, w, h に内接するひし形)。はい/いいえは出ていく辺の label
|
|
12
|
+
// 戻る辺:edge の loop(true / "left" / "right" / "top" / "bottom")。箱の横から出て、間の箱の外側を回って戻り先の箱の横に入る
|
|
13
|
+
// 2.0(Egatari spec §6.1 の部品):base の MotionElement・el・mtext・prog・lerp・previewOpacity を使い、プレイヤーのグローバルは使わない。
|
|
14
|
+
// 式(tex)は組み立てのときに KaTeX で描く(spec §6.2):build.fields の nodes[].tex を作り手が描いて texHtml を足し、
|
|
15
|
+
// この部品は markup-reader で決まった要素と属性だけを読んで置く(再生のときに KaTeX は動かない)。描いた結果がなければ tex を字のまま出して知らせる。
|
|
16
|
+
// 知らないデータ(loop の値、ない箱を指す辺)は ctx.report で知らせる(1.x の console.warn / console.error の代わり)
|
|
17
|
+
egatariParts.define({name: "flow", version: "2.0.3", requires: {base: "1.1.0", "markup-reader": "1.0.1"}, element: "m-flow"}, function(deps){
|
|
18
|
+
"use strict";
|
|
19
|
+
var base = deps.base, MR = deps["markup-reader"];
|
|
20
|
+
// 複数行の名前の行の位置(1 行目からの下がり、px)と、上下に足す余白。base 1.1.0 で mtext の下付き・上付きは 24px 以上になり、
|
|
21
|
+
// 行の間 lh(字の 1.25 倍)では上の行の下付きと下の行の上付きが重なる。下付きの字の下端は基線から添字の 0.75 倍まで、上付きの字の
|
|
22
|
+
// 上端は添字の 1.4 倍まで(Source Sans 3 で測った値。BIZ UDPGothic ではそれぞれ 0.5 倍と 1.2 倍)。上の行に下付き(_)があれば
|
|
23
|
+
// その下端から字の下の余白(字の 0.12 倍)を引いた分、下の行に上付き(^)があればその上端から字の上の高さ(0.88 倍)を引いた分だけ
|
|
24
|
+
// 行の間を広げる。top・bottom は 1 行目の上付き・最後の行の下付きの分(添字がなければどれも 0 で、行は lh ずつ)
|
|
25
|
+
function subX(s, fs){ var ss = Math.max(24, Math.round(fs * 0.75)); return /_./.test(s) ? Math.max(0, 0.75 * ss - 0.12 * fs) : 0; }
|
|
26
|
+
function supX(s, fs){ var ss = Math.max(24, Math.round(fs * 0.75)); return /\^./.test(s) ? Math.max(0, 1.4 * ss - 0.88 * fs) : 0; }
|
|
27
|
+
function lineYs(lines, lh, fs){
|
|
28
|
+
var y = [0];
|
|
29
|
+
for (var j = 1; j < lines.length; j++) y.push(y[j - 1] + lh + subX(lines[j - 1], fs) + supX(lines[j], fs));
|
|
30
|
+
y.top = supX(lines[0], fs); y.bottom = subX(lines[lines.length - 1], fs);
|
|
31
|
+
return y;
|
|
32
|
+
}
|
|
33
|
+
return class extends base.MotionElement {
|
|
34
|
+
static partName = "flow"; // the registry name (define meta name), for report prefixes
|
|
35
|
+
// 組み立てのときに描く欄(spec §6.2)。式の意味は字(tex)でも持つので、KaTeX の出力は HTML だけ
|
|
36
|
+
static build = {fields: {"nodes[].tex": "katex"}, options: {katex: {output: "html"}}};
|
|
37
|
+
// データの形(kit/shape.js)。座標は要素の箱の px(x, y は箱の左上)
|
|
38
|
+
static shape = {
|
|
39
|
+
schema: {type: "object", additionalProperties: false, required: ["nodes"], properties: {
|
|
40
|
+
nodes: {type: "array", minItems: 1, items: {type: "object", required: ["id", "x", "y", "w", "h"], properties: {
|
|
41
|
+
id: {type: ["string", "integer"]}, label: {type: "string"}, tex: {type: "string"}, texHtml: {type: "string"}, x: {type: "number"}, y: {type: "number"}, w: {type: "number"}, h: {type: "number"},
|
|
42
|
+
step: {type: "integer"}, tone: {type: "string"}, at: {type: "number"}, shape: {type: "string"}}}},
|
|
43
|
+
edges: {type: "array", items: {type: "object", required: ["from", "to"], properties: {
|
|
44
|
+
from: {type: ["string", "integer"]}, to: {type: ["string", "integer"]}, step: {type: "integer"}, label: {type: "string"}, tone: {type: "string"}, dash: {type: "boolean"},
|
|
45
|
+
kind: {enum: ["money", "service", "data"]}, amount: {type: ["string", "number"]}, shift: {type: "number"}, pulse: {type: ["boolean", "array"]}, pulseAt: {type: "number"}, offset: {type: "number"}, at: {type: "number"},
|
|
46
|
+
loop: {type: ["boolean", "string"]}}}},
|
|
47
|
+
renderers: {type: "object"}}},
|
|
48
|
+
example: {nodes: [{id: "a", label: "観測", x: 20, y: 40, w: 200, h: 70, step: 1}, {id: "b", label: "更新", x: 320, y: 40, w: 200, h: 70, step: 2}], edges: [{from: "a", to: "b", step: 2}]},
|
|
49
|
+
};
|
|
50
|
+
static props = {
|
|
51
|
+
fade: {type: "number", default: 0.45, doc: "箱が現れる秒数"},
|
|
52
|
+
draw: {type: "number", default: 0.6, doc: "矢印を引く秒数"},
|
|
53
|
+
size: {type: "number", default: 26, doc: "箱の字の大きさ(px)"},
|
|
54
|
+
"pulse-dur": {type: "number", default: 1.2, doc: "pulse の点が始点から終点まで流れる秒数"},
|
|
55
|
+
"pulse-n": {type: "number", default: 3, doc: "pulse で流れる点の数"},
|
|
56
|
+
"label-gap": {type: "number", default: 12, doc: "辺の名前・金額と箱との最小の間(px)。近ければ線から離す"},
|
|
57
|
+
};
|
|
58
|
+
get steps(){
|
|
59
|
+
if (this.getAttribute("steps") !== null) return +this.getAttribute("steps");
|
|
60
|
+
var d = this.data || {}, m = 0;
|
|
61
|
+
(d.nodes || []).concat(d.edges || []).forEach(function(x){ m = Math.max(m, x.step || 1); });
|
|
62
|
+
// pulse の段階([段階, …])も数える
|
|
63
|
+
(d.edges || []).forEach(function(x){ if (Array.isArray(x.pulse)) x.pulse.forEach(function(k){ m = Math.max(m, k); }); });
|
|
64
|
+
return m;
|
|
65
|
+
}
|
|
66
|
+
mount(ctx){
|
|
67
|
+
var P = this.props, D = base, self = this, data = this.data || {nodes: [], edges: []}, sk = MR.sink(this, ctx);
|
|
68
|
+
this.style.display = "block"; this.style.position = "relative";
|
|
69
|
+
var W = this.clientWidth, H = this.clientHeight;
|
|
70
|
+
var svg = D.el("svg", {viewBox: "0 0 " + W + " " + H, width: W, height: H, style: "display:block;overflow:visible"}, this);
|
|
71
|
+
var gE = D.el("g", {}, svg), gN = D.el("g", {}, svg);
|
|
72
|
+
var tone = {term: ["var(--term)", "var(--term-tint)", "var(--fg)"], emph: ["var(--emph)", "var(--emph-tint)", "var(--emph)"],
|
|
73
|
+
muted: ["var(--muted)", "var(--bg)", "var(--fg)"]}; // muted:枠は --muted、字は --fg(字は情報。薄い字は投影で読めない)
|
|
74
|
+
var byId = {}, dup = [];
|
|
75
|
+
// 箱。段階の中の開始時刻 at(既定 0)
|
|
76
|
+
this.nodes = (data.nodes || []).map(function(n){
|
|
77
|
+
var c = tone[n.tone || "term"] || tone.term, cx = n.x + n.w / 2, cy = n.y + n.h / 2;
|
|
78
|
+
var g = D.el("g", {opacity: 0}, gN);
|
|
79
|
+
if (n.shape === "diamond") D.el("polygon", {class: "box", points: [cx, n.y, n.x + n.w, cy, cx, n.y + n.h, n.x, cy].join(" "), "stroke-linejoin": "round", fill: c[1], stroke: c[0], "stroke-width": n.tone === "emph" ? 3 : 2.2}, g);
|
|
80
|
+
else D.el("rect", {class: "box", x: n.x, y: n.y, width: n.w, height: n.h, rx: 10, fill: c[1], stroke: c[0], "stroke-width": n.tone === "emph" ? 3 : 2.2}, g);
|
|
81
|
+
// 式の div は行の中の inline-block なので、上端にそろえないと親の行の高さの分だけ下へずれる
|
|
82
|
+
if (n.tex) MR.texFrame(g, cx, cy + P.size * 0.36, n, "tex", {size: P.size, anchor: "middle", color: c[2], w: n.w, h: n.h}, sk).firstChild.style.verticalAlign = "top";
|
|
83
|
+
else {
|
|
84
|
+
var lines = String(n.label || "").split("\n"), ys = lineYs(lines, P.size * 1.25, P.size), y0 = cy - ys[ys.length - 1] / 2 + P.size * 0.36;
|
|
85
|
+
lines.forEach(function(s, j){ D.mtext(g, cx, y0 + ys[j], s, {"text-anchor": "middle", "font-size": P.size, fill: c[2]}); });
|
|
86
|
+
}
|
|
87
|
+
var o = {g: g, cx: cx, cy: cy, n: n, step: n.step || 1, at: n.at || 0};
|
|
88
|
+
if (byId[n.id]) dup.push(JSON.stringify(n.id));
|
|
89
|
+
byId[n.id] = o;
|
|
90
|
+
return o;
|
|
91
|
+
});
|
|
92
|
+
// 同じ id の箱が 2 つ以上あれば、辺は後に書いた箱を指す(知らせる)
|
|
93
|
+
if (dup.length) ctx.report("data", "[flow] node ids are not unique: " + dup.join(", ") + " (edges use the last node with that id)");
|
|
94
|
+
// 矢印:箱の中心どうしを結ぶ線を、箱の縁で切る
|
|
95
|
+
function edgePt(n, dx, dy, gap){
|
|
96
|
+
var hw = n.w / 2 + gap, hh = n.h / 2 + gap;
|
|
97
|
+
// ひし形は |dx| / hw + |dy| / hh = 1 の上で切る
|
|
98
|
+
var s = n.shape === "diamond" ? 1 / (Math.abs(dx) / hw + Math.abs(dy) / hh) : Math.min(dx ? hw / Math.abs(dx) : Infinity, dy ? hh / Math.abs(dy) : Infinity);
|
|
99
|
+
return [n.x + n.w / 2 + dx * s, n.y + n.h / 2 + dy * s];
|
|
100
|
+
}
|
|
101
|
+
// 戻る辺の道:箱の side の側の辺の中点から出て、両端の間にある箱(と両端)の外側 28 px を回り、戻り先の同じ側に入る
|
|
102
|
+
function loopRoute(lp, A, B){
|
|
103
|
+
var sd = lp === true ? (Math.abs(B.y + B.h / 2 - A.y - A.h / 2) >= Math.abs(B.x + B.w / 2 - A.x - A.w / 2) ? "right" : "bottom") : lp;
|
|
104
|
+
if (!/^(left|right|top|bottom)$/.test(sd)){ ctx.report("data", "[flow] loop=" + JSON.stringify(lp) + " is not true, left, right, top or bottom (right is used)"); sd = "right"; }
|
|
105
|
+
var hz = sd === "left" || sd === "right", sg = sd === "right" || sd === "bottom" ? 1 : -1;
|
|
106
|
+
var out = function(n){ return hz ? [sg > 0 ? n.x + n.w + 6 : n.x - 6, n.y + n.h / 2] : [n.x + n.w / 2, sg > 0 ? n.y + n.h + 6 : n.y - 6]; };
|
|
107
|
+
var q0 = out(A), q1 = out(B), j = hz ? 1 : 0;
|
|
108
|
+
// 箱から同じ箱へ戻る辺:その側の辺の 1/4 と 3/4 の所から出入りする(小さな輪)
|
|
109
|
+
if (A === B){ var u = (hz ? A.h : A.w) / 4; q0[j] -= u; q1[j] += u; }
|
|
110
|
+
var lo = Math.min(q0[j], q1[j]), hi = Math.max(q0[j], q1[j]);
|
|
111
|
+
var ch = sg > 0 ? Math.max(q0[1 - j], q1[1 - j]) : Math.min(q0[1 - j], q1[1 - j]);
|
|
112
|
+
self.nodes.forEach(function(o){
|
|
113
|
+
var n = o.n, a0 = hz ? n.y : n.x, a1 = hz ? n.y + n.h : n.x + n.w;
|
|
114
|
+
if (a1 < lo - 12 || a0 > hi + 12) return;
|
|
115
|
+
var f = hz ? (sg > 0 ? n.x + n.w : n.x) : (sg > 0 ? n.y + n.h : n.y);
|
|
116
|
+
ch = sg > 0 ? Math.max(ch, f + 6) : Math.min(ch, f - 6);
|
|
117
|
+
});
|
|
118
|
+
ch += sg * 28;
|
|
119
|
+
var pts = hz ? [q0, [ch, q0[1]], [ch, q1[1]], q1] : [q0, [q0[0], ch], [q1[0], ch], q1];
|
|
120
|
+
return {pts: pts, poly: self.poly(pts), hz: hz, sg: sg, ch: ch};
|
|
121
|
+
}
|
|
122
|
+
// 線の形を先に全部決める(辺の字は、ほかの辺の線と先に置いた字を避けて置くので)
|
|
123
|
+
var es = data.edges || [];
|
|
124
|
+
// 同じ 2 つの箱の行きと帰りで、どちらも shift も loop も書いていなければ、それぞれ 10 px ずらす(2 本の間は 20 px)
|
|
125
|
+
var autoShift = function(e){
|
|
126
|
+
return !e.shift && !e.loop && es.some(function(f){ return f !== e && f.from === e.to && f.to === e.from && !f.shift && !f.loop; });
|
|
127
|
+
};
|
|
128
|
+
var geo = es.map(function(e){
|
|
129
|
+
var a = byId[e.from], b = byId[e.to];
|
|
130
|
+
if (!a || !b) return null;
|
|
131
|
+
var dx = b.cx - a.cx, dy = b.cy - a.cy, L = Math.hypot(dx, dy) || 1;
|
|
132
|
+
// 同じ箱へ戻る辺(loop なし)は、右に回る輪にする。中心の重なる 2 つの箱の辺は引けない
|
|
133
|
+
var lp = e.loop;
|
|
134
|
+
if (!lp && a === b){ ctx.report("data", "[flow] the edge " + JSON.stringify(e.from) + " → " + JSON.stringify(e.to) + " goes from a node to itself; it is drawn as a loop on the right (set loop to choose the side)"); lp = "right"; }
|
|
135
|
+
if (!lp && !dx && !dy){ ctx.report("data", "[flow] the edge " + JSON.stringify(e.from) + " → " + JSON.stringify(e.to) + " joins two nodes with the same centre (not drawn)"); return false; }
|
|
136
|
+
var p0 = lp ? null : edgePt(a.n, dx / L, dy / L, 6), p1 = lp ? null : edgePt(b.n, -dx / L, -dy / L, 6), route = null;
|
|
137
|
+
if (lp) route = loopRoute(lp, a.n, b.n);
|
|
138
|
+
if (route){ p0 = route.pts[0]; p1 = route.pts[3]; }
|
|
139
|
+
// shift:線に垂直に(進む向きの右へ)ずらす。行きと帰りの 2 本を並べるときに使う
|
|
140
|
+
var sh = e.shift || (autoShift(e) ? 10 : 0);
|
|
141
|
+
if (sh){ var sx = -dy / L * sh, sy = dx / L * sh; p0 = [p0[0] + sx, p0[1] + sy]; p1 = [p1[0] + sx, p1[1] + sy]; }
|
|
142
|
+
return {a: a, b: b, dx: dx, dy: dy, L: L, p0: p0, p1: p1, route: route, shift: sh};
|
|
143
|
+
});
|
|
144
|
+
// 線分(戻る辺は折れ線の 3 本)と、置いた字の箱 [x0, y0, x1, y1]
|
|
145
|
+
var segs = geo.map(function(q){ return !q ? [] : q.route ? [0, 1, 2].map(function(i){ return [q.route.pts[i], q.route.pts[i + 1]]; }) : [[q.p0, q.p1]]; });
|
|
146
|
+
var boxes = [];
|
|
147
|
+
this.edges = es.map(function(e, ei){
|
|
148
|
+
var q = geo[ei];
|
|
149
|
+
if (q === false) return null; // 知らせてある
|
|
150
|
+
if (!q){ ctx.report("data", "[flow] an edge refers to an unknown node: " + JSON.stringify(e.from) + " → " + JSON.stringify(e.to) + " (not drawn)"); return null; }
|
|
151
|
+
var a = q.a, b = q.b, dx = q.dx, dy = q.dy, L = q.L, p0 = q.p0, p1 = q.p1, route = q.route;
|
|
152
|
+
var others = [].concat.apply([], segs.filter(function(_, j){ return j !== ei; }));
|
|
153
|
+
// kind:money(--emph の太線)、service(--term)、data(--muted の破線)。tone と dash を書けばそちらが勝つ
|
|
154
|
+
var kind = {money: ["emph", false, 3.5], service: ["term", false, 2.5], data: ["muted", true, 2.5]}[e.kind] || [null, false, 2.5];
|
|
155
|
+
var tn = e.tone || kind[0], dash = e.dash !== undefined ? e.dash : kind[1];
|
|
156
|
+
var col = tn ? (tone[tn] || tone.term)[0] : "var(--fg)";
|
|
157
|
+
var g = D.el("g", {opacity: 0}, gE);
|
|
158
|
+
var line = route ? D.el("path", {d: "", fill: "none", "stroke-linejoin": "round", stroke: col, "stroke-width": kind[2], "stroke-dasharray": dash ? "8 6" : "none"}, g)
|
|
159
|
+
: D.el("line", {x1: p0[0], y1: p0[1], x2: p0[0], y2: p0[1], stroke: col, "stroke-width": kind[2], "stroke-dasharray": dash ? "8 6" : "none"}, g);
|
|
160
|
+
var head = D.el("path", {d: "M0,0L-16,-7L-16,7Z", fill: col}, g);
|
|
161
|
+
var lab = null, amt = null;
|
|
162
|
+
// 線の中点から、線に垂直な向き(上か右)へずらして置く。amount は反対の側(label がなければ同じ側)に太字で
|
|
163
|
+
var nx = -dy / L, ny = dx / L;
|
|
164
|
+
if (ny > 0 || (ny === 0 && nx < 0)){ nx = -nx; ny = -ny; }
|
|
165
|
+
// 字の箱が箱(node)に label-gap px より近いか、図の外に出るか、ほかの辺の線(4 px の間をとる)か先に置いた字に
|
|
166
|
+
// かかるか、自分の線とのあいだにほかの辺の線が入るなら、線から離していく(6 px ずつ、60 px まで)。
|
|
167
|
+
// それでも置けなければ線の反対の側で同じように試す(label は amount があるときは自分の側だけ。amount は両側)。
|
|
168
|
+
// どこにも置けなければ最初の位置に置いて知らせる(layout)。
|
|
169
|
+
// 幅は字から見積もる(base の textWidth:テーマの字で測った幅)ので、字の読み込みによらず同じ位置になる
|
|
170
|
+
var mid = [(p0[0] + p1[0]) / 2, (p0[1] + p1[1]) / 2];
|
|
171
|
+
var side = function(sg, text, attrs, both){
|
|
172
|
+
var fs = attrs["font-size"] || 24, base = e.offset !== undefined ? e.offset : 18, pos = null, anc0 = null, box0 = null, free = false;
|
|
173
|
+
var w = D.textWidth(text, fs, {font: self, mark: true});
|
|
174
|
+
var sides = both ? [sg, -sg] : [sg];
|
|
175
|
+
search: for (var si = 0; si < sides.length; si++){
|
|
176
|
+
var sgn = sides[si], anc = Math.abs(nx) < 0.3 ? "middle" : nx * sgn > 0 ? "start" : "end";
|
|
177
|
+
for (var extra = 0; extra <= 60; extra += 6){
|
|
178
|
+
var off = (base + extra) * sgn, mx = (p0[0] + p1[0]) / 2 + nx * off, my = (p0[1] + p1[1]) / 2 + ny * off;
|
|
179
|
+
var y = my + (ny * sgn < -0.3 ? 0 : ny * sgn > 0.3 ? 20 : 8);
|
|
180
|
+
var x0 = anc === "start" ? mx : anc === "end" ? mx - w : mx - w / 2, gp = P["label-gap"];
|
|
181
|
+
var bx = [x0, y - fs * 0.88, x0 + w, y + fs * 0.22], c = [(bx[0] + bx[2]) / 2, (bx[1] + bx[3]) / 2];
|
|
182
|
+
var hit = x0 < 0 || x0 + w > W || y - fs * 0.88 < 0 || y + fs * 0.22 > H || self.nodes.some(function(o){ var n = o.n;
|
|
183
|
+
return x0 < n.x + n.w + gp && x0 + w > n.x - gp && y - fs * 0.88 < n.y + n.h + gp && y + fs * 0.22 > n.y - gp; }) ||
|
|
184
|
+
boxes.some(function(r){ return bx[0] < r[2] + 4 && bx[2] > r[0] - 4 && bx[1] < r[3] + 4 && bx[3] > r[1] - 4; }) ||
|
|
185
|
+
others.some(function(sgm){ return segHitsBox(sgm, [bx[0] - 4, bx[1] - 4, bx[2] + 4, bx[3] + 4]) || segsCross(sgm, [mid, c]); });
|
|
186
|
+
if (!pos){ pos = [mx, y]; anc0 = anc; box0 = bx; }
|
|
187
|
+
if (!hit){ pos = [mx, y]; anc0 = anc; box0 = bx; free = true; break search; }
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
if (!free) ctx.report("layout", "[flow] no free place for the edge text " + JSON.stringify(text) + " (" + JSON.stringify(e.from) + " → " + JSON.stringify(e.to) + "): it touches a box, a line or another text; move the boxes apart or set offset");
|
|
191
|
+
boxes.push(box0);
|
|
192
|
+
return D.mtext(g, pos[0], pos[1], text, Object.assign({"text-anchor": anc0, "font-size": 24, opacity: 0}, attrs));
|
|
193
|
+
};
|
|
194
|
+
// shift でずらした辺は、ずらした側に書く(行きと帰りの字が同じ側に重ならない)
|
|
195
|
+
var sg = q.shift && (-dy * nx + dx * ny) * q.shift < 0 ? -1 : 1;
|
|
196
|
+
var hasAmt = e.amount !== undefined && e.amount !== "";
|
|
197
|
+
// 戻る辺の名前は回り道の長い線の外側に、金額は内側に。外側が図の外に出るなら名前も内側に
|
|
198
|
+
var rside = function(out, text, attrs){
|
|
199
|
+
var r = route, m = r.hz ? (r.pts[1][1] + r.pts[2][1]) / 2 : (r.pts[1][0] + r.pts[2][0]) / 2, o2 = out ? r.sg : -r.sg;
|
|
200
|
+
var tw = D.textWidth(text, 26, {font: self, mark: true});
|
|
201
|
+
if (out && (r.hz ? (o2 > 0 ? r.ch + 10 + tw > W : r.ch - 10 - tw < 0) : (o2 > 0 ? r.ch + 30 > H : r.ch - 34 < 0))) o2 = -o2;
|
|
202
|
+
var at2 = r.hz ? {x: r.ch + o2 * 10, y: m + 8, a: o2 > 0 ? "start" : "end"} : {x: m, y: r.ch + (o2 > 0 ? 30 : -10), a: "middle"};
|
|
203
|
+
var bx0 = at2.a === "start" ? at2.x : at2.a === "end" ? at2.x - tw : at2.x - tw / 2;
|
|
204
|
+
boxes.push([bx0, at2.y - 26 * 0.88, bx0 + tw, at2.y + 26 * 0.22]);
|
|
205
|
+
return D.mtext(g, +at2.x.toFixed(2), +at2.y.toFixed(2), text, Object.assign({"text-anchor": at2.a, "font-size": 24, opacity: 0}, attrs));
|
|
206
|
+
};
|
|
207
|
+
if (route){
|
|
208
|
+
if (e.label) lab = rside(true, e.label, {fill: tn ? col : "var(--fg)"});
|
|
209
|
+
if (hasAmt) amt = rside(!e.label, String(e.amount), {fill: col, "font-weight": 700, "font-size": 26});
|
|
210
|
+
} else {
|
|
211
|
+
if (e.label) lab = side(sg, e.label, {fill: tn ? col : "var(--fg)"}, !hasAmt);
|
|
212
|
+
if (hasAmt) amt = side(e.label ? -sg : sg, String(e.amount), {fill: col, "font-weight": 700, "font-size": 26}, true);
|
|
213
|
+
}
|
|
214
|
+
var step = e.step || Math.max(a.step, b.step);
|
|
215
|
+
// 同じ段階で出る箱があれば、その箱が出てから引く
|
|
216
|
+
var after = Math.max(a.step === step ? a.at + P.fade * 0.6 : 0, b.step === step ? b.at + P.fade * 0.6 : 0);
|
|
217
|
+
var at = e.at !== undefined ? e.at : after;
|
|
218
|
+
// pulse の段階と開始時刻:辺の段階なら引き終わってから、ほかの段階なら pulseAt(既定 0.2 秒)から
|
|
219
|
+
var pk = e.pulse === true ? [step] : Array.isArray(e.pulse) ? e.pulse : [];
|
|
220
|
+
var pulses = pk.map(function(k){ return {k: k, at: e.pulseAt !== undefined ? e.pulseAt : k === step ? +(at + P.draw).toFixed(3) : 0.2}; });
|
|
221
|
+
var dots = pulses.length ? Array.from({length: Math.max(1, P["pulse-n"])}, function(){ return D.el("circle", {r: kind[2] + 3.5, fill: col, stroke: "var(--bg)", "stroke-width": 2, opacity: 0}, gE); }) : [];
|
|
222
|
+
var o = {g: g, line: line, head: head, lab: lab, amt: amt, p0: p0, p1: p1, ang: Math.atan2(dy, dx) * 180 / Math.PI, step: step, at: at, pulses: pulses, dots: dots};
|
|
223
|
+
if (route) o.poly = route.poly;
|
|
224
|
+
return o;
|
|
225
|
+
}).filter(Boolean);
|
|
226
|
+
sk.flush(); // what the formulas have to report, once per kind (spec §6.2)
|
|
227
|
+
// 線分 s = [[x, y], [x, y]] が箱 r = [x0, y0, x1, y1] にかかるか(Liang–Barsky)
|
|
228
|
+
function segHitsBox(sg, r){
|
|
229
|
+
var x = sg[0][0], y = sg[0][1], ddx = sg[1][0] - x, ddy = sg[1][1] - y, t0 = 0, t1 = 1;
|
|
230
|
+
var pp = [-ddx, ddx, -ddy, ddy], qq = [x - r[0], r[2] - x, y - r[1], r[3] - y];
|
|
231
|
+
for (var i = 0; i < 4; i++){
|
|
232
|
+
if (pp[i] === 0){ if (qq[i] < 0) return false; continue; }
|
|
233
|
+
var u = qq[i] / pp[i];
|
|
234
|
+
if (pp[i] < 0){ if (u > t1) return false; if (u > t0) t0 = u; }
|
|
235
|
+
else { if (u < t0) return false; if (u < t1) t1 = u; }
|
|
236
|
+
}
|
|
237
|
+
return true;
|
|
238
|
+
}
|
|
239
|
+
// 2 つの線分が交わるか(端を除く)
|
|
240
|
+
function segsCross(s1, s2){
|
|
241
|
+
var o = function(a, b, c){ return (b[0] - a[0]) * (c[1] - a[1]) - (b[1] - a[1]) * (c[0] - a[0]); };
|
|
242
|
+
var d1 = o(s2[0], s2[1], s1[0]), d2 = o(s2[0], s2[1], s1[1]), d3 = o(s1[0], s1[1], s2[0]), d4 = o(s1[0], s1[1], s2[1]);
|
|
243
|
+
return d1 * d2 < 0 && d3 * d4 < 0;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
// 折れ線:点と累積の長さ(戻る辺)
|
|
247
|
+
poly(pts){
|
|
248
|
+
var L = [0];
|
|
249
|
+
for (var i = 1; i < pts.length; i++) L.push(L[i - 1] + Math.hypot(pts[i][0] - pts[i - 1][0], pts[i][1] - pts[i - 1][1]));
|
|
250
|
+
return {pts: pts, L: L, len: L[L.length - 1] || 1};
|
|
251
|
+
}
|
|
252
|
+
// 折れ線の始めから長さ len の点と向き(度)。d:そこまでの線
|
|
253
|
+
polyAt(pl, len){
|
|
254
|
+
var pts = pl.pts, want = Math.max(0, Math.min(pl.len, len)), i = 1, d = "M" + pts[0][0].toFixed(2) + "," + pts[0][1].toFixed(2);
|
|
255
|
+
while (i < pts.length - 1 && pl.L[i] < want){ d += "L" + pts[i][0].toFixed(2) + "," + pts[i][1].toFixed(2); i++; }
|
|
256
|
+
var u = (want - pl.L[i - 1]) / ((pl.L[i] - pl.L[i - 1]) || 1), x = base.lerp(pts[i - 1][0], pts[i][0], u), y = base.lerp(pts[i - 1][1], pts[i][1], u);
|
|
257
|
+
return {x: x, y: y, ang: Math.atan2(pts[i][1] - pts[i - 1][1], pts[i][0] - pts[i - 1][0]) * 180 / Math.PI, d: d + "L" + x.toFixed(2) + "," + y.toFixed(2)};
|
|
258
|
+
}
|
|
259
|
+
// pulse の点の列が流れ終わるまでの長さ(点の間は 0.22 秒)
|
|
260
|
+
pulseLen(){ return this.props["pulse-dur"] + 0.22 * (Math.max(1, this.props["pulse-n"]) - 1); }
|
|
261
|
+
duration(k){
|
|
262
|
+
var P = this.props, d = 0, pl = this.pulseLen();
|
|
263
|
+
this.nodes.forEach(function(o){ if (o.step === k) d = Math.max(d, o.at + P.fade); });
|
|
264
|
+
this.edges.forEach(function(o){
|
|
265
|
+
if (o.step === k) d = Math.max(d, o.at + P.draw + (o.lab || o.amt ? 0.3 : 0));
|
|
266
|
+
o.pulses.forEach(function(q){ if (q.k === k) d = Math.max(d, q.at + pl); });
|
|
267
|
+
});
|
|
268
|
+
return d;
|
|
269
|
+
}
|
|
270
|
+
// pulse の開始時刻を口述原稿の {cue} に合わせられる(pulse のない図はこれまでどおり null)
|
|
271
|
+
cues(k){
|
|
272
|
+
var c = [];
|
|
273
|
+
this.edges.forEach(function(o){ o.pulses.forEach(function(q){ if (q.k === k && q.at > 0 && c.indexOf(q.at) < 0) c.push(q.at); }); });
|
|
274
|
+
return c.length ? c.sort(function(a, b){ return a - b; }) : null;
|
|
275
|
+
}
|
|
276
|
+
render(k, t, ctx){
|
|
277
|
+
var P = this.props, D = base, self = this, preview = !!ctx.preview, PV = 0;
|
|
278
|
+
// 先を薄く見せる表示:後の段階の箱と矢印(名前・金額も)を、最後の形のままテーマの --preview-opacity(なければ 0.45)で描く。
|
|
279
|
+
// pulse の点は今の段階のものだけ
|
|
280
|
+
if (preview) PV = base.previewOpacity(this);
|
|
281
|
+
var ahead = function(step){ return preview && step > k; };
|
|
282
|
+
var pr = function(step, at, dur){ return step < k || ahead(step) ? 1 : step > k ? 0 : D.prog(t, at, dur); };
|
|
283
|
+
this.nodes.forEach(function(o){
|
|
284
|
+
var e = pr(o.step, o.at, P.fade), s = D.lerp(0.92, 1, e);
|
|
285
|
+
o.g.setAttribute("opacity", ahead(o.step) ? PV.toFixed(3) : e.toFixed(3));
|
|
286
|
+
o.g.setAttribute("transform", "translate(" + o.cx + " " + o.cy + ") scale(" + s.toFixed(4) + ") translate(" + (-o.cx) + " " + (-o.cy) + ")");
|
|
287
|
+
});
|
|
288
|
+
this.edges.forEach(function(o){
|
|
289
|
+
var e = pr(o.step, o.at, P.draw);
|
|
290
|
+
if (o.poly){
|
|
291
|
+
// 戻る辺:折れ線を始めから引き、矢じりは先端について動く(線は矢じりの根元まで)
|
|
292
|
+
var want = e * o.poly.len, tip = self.polyAt(o.poly, want), hs2 = Math.min(1, want / 20);
|
|
293
|
+
o.line.setAttribute("d", want > 0 ? self.polyAt(o.poly, want - Math.min(14, want)).d : "");
|
|
294
|
+
o.head.setAttribute("transform", "translate(" + tip.x.toFixed(2) + " " + tip.y.toFixed(2) + ") rotate(" + tip.ang.toFixed(2) + ") scale(" + hs2.toFixed(4) + ")");
|
|
295
|
+
} else {
|
|
296
|
+
var tx = D.lerp(o.p0[0], o.p1[0], e), ty = D.lerp(o.p0[1], o.p1[1], e);
|
|
297
|
+
var L = Math.hypot(o.p1[0] - o.p0[0], o.p1[1] - o.p0[1]) || 1, back = Math.min(14, e * L);
|
|
298
|
+
// 線は矢じりの根元まで。矢じりは線の先端について動く
|
|
299
|
+
o.line.setAttribute("x2", (tx - (o.p1[0] - o.p0[0]) / L * back).toFixed(2));
|
|
300
|
+
o.line.setAttribute("y2", (ty - (o.p1[1] - o.p0[1]) / L * back).toFixed(2));
|
|
301
|
+
// 矢じりは線が 20px 伸びるまでに大きくなる(始めに箱からはみ出さない)
|
|
302
|
+
var hs = Math.min(1, e * L / 20);
|
|
303
|
+
o.head.setAttribute("transform", "translate(" + tx.toFixed(2) + " " + ty.toFixed(2) + ") rotate(" + o.ang.toFixed(2) + ") scale(" + hs.toFixed(4) + ")");
|
|
304
|
+
}
|
|
305
|
+
o.g.setAttribute("opacity", ahead(o.step) ? PV : e > 0 ? 1 : 0);
|
|
306
|
+
var lo = pr(o.step, o.at + P.draw * 0.8, 0.3).toFixed(3);
|
|
307
|
+
if (o.lab) o.lab.setAttribute("opacity", lo);
|
|
308
|
+
if (o.amt) o.amt.setAttribute("opacity", lo);
|
|
309
|
+
// pulse:今の段階に pulse があれば、点の列を (t - 開始) から置く。流れ終わった点と t = Infinity では出さない
|
|
310
|
+
var q = null;
|
|
311
|
+
o.pulses.forEach(function(x){ if (x.k === k) q = x; });
|
|
312
|
+
o.dots.forEach(function(dot, j){
|
|
313
|
+
var u = q && t !== Infinity ? (t - q.at - 0.22 * j) / P["pulse-dur"] : -1;
|
|
314
|
+
if (u <= 0 || u >= 1 || e < 1){ dot.setAttribute("opacity", 0); return; }
|
|
315
|
+
var w = D.prog(u, 0, 1);
|
|
316
|
+
if (o.poly){ var pp = self.polyAt(o.poly, w * o.poly.len); dot.setAttribute("cx", pp.x.toFixed(2)); dot.setAttribute("cy", pp.y.toFixed(2)); }
|
|
317
|
+
else { dot.setAttribute("cx", D.lerp(o.p0[0], o.p1[0], w).toFixed(2)); dot.setAttribute("cy", D.lerp(o.p0[1], o.p1[1], w).toFixed(2)); }
|
|
318
|
+
dot.setAttribute("opacity", Math.min(1, u * 8, (1 - u) * 8).toFixed(3));
|
|
319
|
+
});
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# m-numberline changelog
|
|
2
|
+
|
|
3
|
+
The part's own versions (Egatari spec §6.1). Releases of the whole library are in the repository's CHANGELOG.md.
|
|
4
|
+
|
|
5
|
+
## 2.0.0 (components 2.0, alpha; not for lessons yet)
|
|
6
|
+
|
|
7
|
+
- Moved to `egatariParts.define({name: "numberline", version: "2.0.0", requires: {base: "1.0.0"}, element: "m-numberline"})`,
|
|
8
|
+
extending `base.MotionElement` with `base.el` / `mtext` / `prog` / `variant` / `previewOpacity`;
|
|
9
|
+
`static partName = "numberline"`. The embedded `egatari-variant` block is gone (`base.variant`). The DOM is
|
|
10
|
+
byte-identical to 1.13.0 on its demo at every step (tools/test-c2-identity.mjs).
|
|
11
|
+
- Reports (1.13.0: `console.warn("m-numberline: …")`): problems with the data or attributes (a line, mark or jump that
|
|
12
|
+
does not exist or lies outside its line, link with one line, magnify with two lines or outside its line, unknown build
|
|
13
|
+
names, lines not aligned at 0, `labels` values, a box mark on a magnified line) are
|
|
14
|
+
`ctx.report("data", "[numberline] …")`; an `arrow` value other than on/off, `ctx.report("attr", …)`; an element too small, `ctx.report("size", "[numberline] …")`. Values that are
|
|
15
|
+
not numbers and other refused data still throw; base contains them.
|
|
16
|
+
- The geometry used by tools/test-numberline.mjs is `static testing = {geom}` (1.13.0: `static geom`); no part reads it.
|
|
17
|
+
- The preview view is `ctx.preview` alone (1.13.0 also accepted `ctx.mode === "lecture"`).
|
|
18
|
+
- Kept from 1.11: the shape geometry is written again at the end of every render (the raster fix,
|
|
19
|
+
tools/test-raster-history.mjs).
|
|
20
|
+
- Ids: none written.
|
|
21
|
+
|
|
22
|
+
## 1.13.0
|
|
23
|
+
|
|
24
|
+
As released in the library's 1.13.0.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: m-numberline
|
|
3
|
+
version: 2.0.0
|
|
4
|
+
series: academic
|
|
5
|
+
tier: specialized
|
|
6
|
+
set: math
|
|
7
|
+
summary: 数直線。点・□・ジャンプ・不等式の範囲・0.1 の拡大。2 本で比例数直線
|
|
8
|
+
steps: build の順(既定 ticks,marks,links,jumps,ranges,magnify)に項目 1 つ = 1 段階。whole:全部で 1 段階
|
|
9
|
+
purposes: compare
|
|
10
|
+
variants: fade, draw
|
|
11
|
+
props: build, arrow, dur
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
子の JSON の値は数か `"1/3"`(分数で書く)。
|
|
15
|
+
|
|
16
|
+
- lines:1 本か 2 本(0 をそろえる)`{from, to, step, sub, label, unit, labels: "ends" | [値]}`
|
|
17
|
+
- marks:`{at, kind: "dot" | "open" | "box", label}`。box は □
|
|
18
|
+
- jumps:`{from, to, label}`(左向きも)
|
|
19
|
+
- ranges:`{from, to, incl: [true, false]}`。端がなければ矢印。重なれば共通部分を塗る
|
|
20
|
+
- link(2 本):`[[上の値, 下の値]]` か `{at, label: "×3"}`
|
|
21
|
+
- magnify:`{from, to, step}`。区間を下の線に広げる(既定 10 等分)
|
|
22
|
+
- 項目の `line`(0 か 1。拡大の線は 1, 2, …)、`show`(段階)
|
|
23
|
+
- `arrow="on"`:右端を矢印に
|
|
24
|
+
|
|
25
|
+
<!-- llm: omit -->
|
|
26
|
+
作る人向けの注
|
|
27
|
+
|
|
28
|
+
- 値は数のほか `"1/3"` `"-2/5"` の文字で書ける(有理数で計算するので 1/3 の目盛りがずれない)。from・to・step のどれかが分数の線は、目盛りの名前を分母をそろえた分数にする(0、1/3、2/3、1。整数は整数のまま)。小数の線は from・step の桁で丸め、終わりの 0 は落とす(0、0.1、…、1)。負の数はマイナス記号(−)。名前の中の `-3` `x > -2` のハイフンもマイナス記号にする。名前の中の `a/b` は縦に積んだ分数(分子・分母とも 24 px)で、分数のある行は 68 px の高さを取る。`*x*` は斜体
|
|
29
|
+
- 2 本の線:上の線の数は上、下の線の数は下に書き、間を結ぶ線(link)に使う。2 本とも 0 を含めば 0 の位置をそろえ、短い方の線は全幅にならない(0 を含まない線があれば `ctx.report` で知らせて別々に全幅)。2 本のときのジャンプは目盛りの名前の外側に弧(上の線は上、下の線は下)、拡大は使えない(`ctx.report` で知らせる)
|
|
30
|
+
- `labels`:`"all"`(既定)・`"ends"`・`"none"`・値の配列
|
|
31
|
+
- 名前の間引き:`labels` を書かなければ、線の両端の名前は必ず書き、その間の目盛りの名前だけを、隣と 12 px あくまで 2・5・10 … 目盛りおきにする(端や □ に 12 px より近い名前は落とす)。作る人が書いた名前(点の名前、`labels` の値、線の端)は間引かない。□(box)の値の目盛りの名前は □ に替わる。tools/test-numberline.mjs が確かめる
|
|
32
|
+
- 点の名前:線が 1 本でジャンプも範囲もなければ線のすぐ上、ほかは目盛りの名前の外側
|
|
33
|
+
- ジャンプの弧:狭い弧から順に置き、外の弧は内の弧(真ん中の 6 割)とその名前より 8 px 以上高くする。弧の終わりに矢印
|
|
34
|
+
- 範囲:端の丸(含めば塗った丸、含まなければ白抜き)は線の上。丸から縦に上がり、段の高さで横に引く。重なる範囲は別の段(線が 1 本なら上、2 本なら内側)。2 つ以上の範囲の共通部分は、線の上を太い `--emph` にし、段までを薄く塗る(共通部分の範囲の最後の段階で)
|
|
35
|
+
- 拡大の線の点:線が 1 本なら marks の `line: 1` は 1 つ目の拡大の線(2 は 2 つ目)。名前はその線の目盛りの名前の下。□ は点になる(`ctx.report` で知らせる)
|
|
36
|
+
- 拡大:元の線の区間を太い `--emph` にし、区間の幅から下の全幅の線へ広がりながら下りる(漏斗の破線がついてくる)。目盛りの名前は動きの後に出る。動きは見せ方によらない(部品の効果)。2 つ目からは前の拡大の線を広げる(0.1 → 0.01)。段階の長さは dur の 2 倍
|
|
37
|
+
- 段階:`build` は種類(ticks marks links jumps ranges magnify)をコンマで並べた順。書かなかった種類は既定の順で後ろに足す。項目の `show` が優先
|
|
38
|
+
- 見せ方:`fade`(0)はフェード。`draw` は線・弧・範囲の線を引き、目盛りと名前は左から順に出る。段階の数・長さ・最後の中身は同じ。授業の表示(`ctx.preview`)では先の段階をテーマの `--preview-opacity`(ないときは 0.45)で見せる
|
|
39
|
+
- 字はすべて 24 px(線の名前は 26 px の太字)。tools/test-numberline.mjs が目盛りの位置・分数の名前・重なる範囲の段・弧の高さを確かめる
|
|
40
|
+
<!-- llm: end -->
|