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,139 @@
|
|
|
1
|
+
// m-sweep:パラメータを動かして関数の形の変化を見せる。前の形は灰色で残す
|
|
2
|
+
// <m-sweep f="u*u + c*u*u*u + c*c*u**4" values="[0,0.5,1]" xr="[-3,3]" yr="[0,16]" xt="[-2,0,2]" yt="[0,5,10,15]"
|
|
3
|
+
// xl="*u*" yl="損失" param="c" style="height:380px"></m-sweep>
|
|
4
|
+
// 段階 k(1〜values.length-1)で、値を values[k-1] から values[k] へ動かす
|
|
5
|
+
// 2.0(Egatari spec §6.1 の部品):base の MotionElement・el・mtext・prog・lerp・previewOpacity、plot の Plot、expr の compile を使い、
|
|
6
|
+
// プレイヤーのグローバルは使わない(1.x は式の評価器 egatari-expr を写して持っていた)
|
|
7
|
+
egatariParts.define({name: "sweep", version: "2.0.2", requires: {base: "1.1.0", expr: "1.0.0", plot: "1.0.1"}, element: "m-sweep"}, function(deps){
|
|
8
|
+
"use strict";
|
|
9
|
+
var base = deps.base, plot = deps.plot, expr = deps.expr;
|
|
10
|
+
// 関数 f を [a, b] で n 分割した点列(px)。有限でない値(NaN・±Infinity)の点は null
|
|
11
|
+
function samples(p, f, a, b, n){
|
|
12
|
+
var out = [];
|
|
13
|
+
for (var i = 0; i <= n; i++){ var v = a + (b - a) * i / n, x = p.x(v), y = p.y(f(v)); out.push(isFinite(x) && isFinite(y) ? [x, y] : null); }
|
|
14
|
+
return out;
|
|
15
|
+
}
|
|
16
|
+
// 点列の d。null の所で線を切り、次の有限な点から M で引き直す(plot の p.d と同じ字。切れ目がなければ同じ d)
|
|
17
|
+
function pathOf(pts){
|
|
18
|
+
var d = "", pen = false;
|
|
19
|
+
pts.forEach(function(q){ if (q){ d += (pen ? "L" : "M") + q[0].toFixed(1) + "," + q[1].toFixed(1); pen = true; } else pen = false; });
|
|
20
|
+
return d;
|
|
21
|
+
}
|
|
22
|
+
// 線分 s = [[x, y], [x, y]] が箱 r = [x0, y0, x1, y1] にかかるか(Liang–Barsky)
|
|
23
|
+
function segHitsBox(s, r){
|
|
24
|
+
var x = s[0][0], y = s[0][1], dx = s[1][0] - x, dy = s[1][1] - y, t0 = 0, t1 = 1;
|
|
25
|
+
var pp = [-dx, dx, -dy, dy], qq = [x - r[0], r[2] - x, y - r[1], r[3] - y];
|
|
26
|
+
for (var i = 0; i < 4; i++){
|
|
27
|
+
if (pp[i] === 0){ if (qq[i] < 0) return false; continue; }
|
|
28
|
+
var u = qq[i] / pp[i];
|
|
29
|
+
if (pp[i] < 0){ if (u > t1) return false; if (u > t0) t0 = u; }
|
|
30
|
+
else { if (u < t0) return false; if (u < t1) t1 = u; }
|
|
31
|
+
}
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
// 灰色の線の名前の置き場所:その線の上に、線の点を中心にして置く(字は背景色の縁取りで線を切るので、どの線の名前か読める)。
|
|
35
|
+
// bd(字を置ける範囲)の中で、置いた字(boxes)に重ならず、ほかの線(lines:点列の配列。cl の中だけ描かれる)にかかる数が最も少なく、
|
|
36
|
+
// 自分の線が字の高さの中に収まり(平らな所)、ほかの線から離れている所(40 px まで)。w は字の幅の見積もり、fs は字の大きさ。置けなければ null
|
|
37
|
+
function placeOn(own, w, fs, lines, boxes, bd, cl){
|
|
38
|
+
var best = null, bc = Infinity;
|
|
39
|
+
var hits = function(L, r){
|
|
40
|
+
var q = [Math.max(r[0], cl[0]), Math.max(r[1], cl[1]), Math.min(r[2], cl[2]), Math.min(r[3], cl[3])];
|
|
41
|
+
if (q[0] >= q[2] || q[1] >= q[3]) return false;
|
|
42
|
+
for (var i = 1; i < L.length; i++) if (L[i - 1] && L[i] && segHitsBox([L[i - 1], L[i]], q)) return true;
|
|
43
|
+
return false;
|
|
44
|
+
};
|
|
45
|
+
for (var j = 0; j < own.length; j += 3){
|
|
46
|
+
var q = own[j];
|
|
47
|
+
if (!q || q[0] < cl[0] || q[0] > cl[2] || q[1] < cl[1] || q[1] > cl[3]) continue; // 描かれている点だけ
|
|
48
|
+
// 横軸や上の端に沿う線では、字を範囲の中へ上下にずらす(線のすぐ上・下になる)
|
|
49
|
+
var y = q[1] + fs * 0.33;
|
|
50
|
+
y = Math.max(bd[1] + fs * 0.88, Math.min(bd[3] - fs * 0.22, y));
|
|
51
|
+
var r = [q[0] - w / 2, y - fs * 0.88, q[0] + w / 2, y + fs * 0.22];
|
|
52
|
+
if (r[0] < bd[0] || r[2] > bd[2]) continue;
|
|
53
|
+
if (boxes.some(function(b){ return r[0] < b[2] + 6 && b[0] < r[2] + 6 && r[1] < b[3] + 4 && b[1] < r[3] + 4; })) continue;
|
|
54
|
+
// ほかの線にかかれば 1 本につき 1000。自分の線が字の幅の間に字の高さより大きく上下すれば 300
|
|
55
|
+
var c = 0, r3 = [r[0] - 3, r[1] - 3, r[2] + 3, r[3] + 3], gap = 40, lo = Infinity, hi = -Infinity;
|
|
56
|
+
own.forEach(function(z){ if (z && z[0] >= r[0] && z[0] <= r[2]){ lo = Math.min(lo, z[1]); hi = Math.max(hi, z[1]); } });
|
|
57
|
+
if (hi - lo > fs * 0.9) c += 300;
|
|
58
|
+
lines.forEach(function(L){
|
|
59
|
+
if (L === own) return;
|
|
60
|
+
if (hits(L, r3)){ c += 1000; return; }
|
|
61
|
+
L.forEach(function(z){
|
|
62
|
+
if (z && z[0] >= cl[0] && z[0] <= cl[2] && z[1] >= cl[1] && z[1] <= cl[3]) gap = Math.min(gap, Math.hypot(Math.max(r[0] - z[0], 0, z[0] - r[2]), Math.max(r[1] - z[1], 0, z[1] - r[3])));
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
c += 40 - gap + (hi - lo) / fs;
|
|
66
|
+
if (c < bc){ bc = c; best = {x: q[0], y: y, box: r}; }
|
|
67
|
+
}
|
|
68
|
+
return best;
|
|
69
|
+
}
|
|
70
|
+
return class extends base.MotionElement {
|
|
71
|
+
static partName = "sweep"; // the registry name (define meta name), for report prefixes
|
|
72
|
+
// データの形(kit/shape.js):JSON の子はなく、属性で書く(values は数の配列、2 つ以上)
|
|
73
|
+
static shape = {schema: null, example: '<m-sweep f="u*u + c*u" values="[0,0.5,1]" xr="[-3,3]" yr="[0,10]"></m-sweep>'};
|
|
74
|
+
static props = {
|
|
75
|
+
f: {type: "string", default: "u*u", doc: "関数の式(算術の式。変数は横軸 u とパラメータ c。Math.exp(…) などの Math の関数と定数、+ - * / % **、比較と ? : が使える)"},
|
|
76
|
+
values: {type: "json", default: [0, 1], doc: "パラメータの値の列。段階ごとに次の値へ動く", shape: {type: "array", items: {type: "number"}, minItems: 2}, example: [0, 0.5, 1]},
|
|
77
|
+
param: {type: "string", default: "c", doc: "表示するパラメータの名前"},
|
|
78
|
+
xr: {type: "json", default: [-3, 3]}, yr: {type: "json", default: [0, 10]},
|
|
79
|
+
xt: {type: "json", default: []}, yt: {type: "json", default: []},
|
|
80
|
+
xl: {type: "string", default: ""}, yl: {type: "string", default: ""},
|
|
81
|
+
digits: {type: "number", default: 2, doc: "表示する値の小数の桁数"},
|
|
82
|
+
dur: {type: "number", default: 1.2, doc: "1 段階の動きの秒数"},
|
|
83
|
+
};
|
|
84
|
+
get steps(){ return this.getAttribute("steps") !== null ? +this.getAttribute("steps") : this.props.values.length - 1; }
|
|
85
|
+
mount(ctx){
|
|
86
|
+
var P = this.props, D = base, self = this;
|
|
87
|
+
this.classList.add("plot"); this.style.display = "block";
|
|
88
|
+
// 式は木にしてから計算する(コードとしては実行しない。Egatari spec §6)。書けない式は SyntaxError で、base が受け止めて札を出す(spec §6.1 Containment)
|
|
89
|
+
var g = expr.compile(P.f, {name: "f", vars: ["u", "c"]});
|
|
90
|
+
this.g = function(c){ return function(u){ return g(u, c); }; };
|
|
91
|
+
var p = this.p = plot.Plot(this, {xr: P.xr, yr: P.yr, xt: P.xt, yt: P.yt, xl: P.xl, yl: P.yl, m: {l: 86, r: 10, t: 40, b: 64}});
|
|
92
|
+
this.ghosts = P.values.map(function(){ return D.el("path", {fill: "none", stroke: "var(--line)", "stroke-width": 2.5, "clip-path": p.clip, opacity: 0}, p.svg); });
|
|
93
|
+
// 有限でない値のある線は、その所で切って引き、値ごとに 1 回知らせる
|
|
94
|
+
var pts = P.values.map(function(v, i){
|
|
95
|
+
var q = samples(p, self.g(v), P.xr[0], P.xr[1], 300);
|
|
96
|
+
self.ghosts[i].setAttribute("d", pathOf(q));
|
|
97
|
+
if (q.indexOf(null) >= 0) ctx.report("data", "[sweep] f is not a finite number (NaN or ±Infinity) at some u for " + P.param + " = " + v + "; the line is broken there");
|
|
98
|
+
return q;
|
|
99
|
+
});
|
|
100
|
+
this.cur = D.el("path", {fill: "none", stroke: "var(--emph)", "stroke-width": 3.5, "clip-path": p.clip}, p.svg);
|
|
101
|
+
this.lab = D.mtext(p.svg, p.m.l + 10, 30, "", {fill: "var(--emph)", "font-size": 27});
|
|
102
|
+
// 灰色の線の名前(「σ = 0.5」):最後の段階で残る線(最後の値と違う値。同じ値は最初の 1 本)に、--muted の 24px で線の上に(背景色で縁取って)書く。
|
|
103
|
+
// 5 本以上なら最初と最後だけ。置き場所は最後の段階の形(今の線と灰色の線)で決め、灰色の線が見えている間だけ出す
|
|
104
|
+
var V = P.values, L = V.length - 1, fs = 24, wOf = function(str){ return D.textWidth(str, fs, {font: self, mark: true}); }; // base の textWidth(記法の * _ ^ を除く)
|
|
105
|
+
var shown = [];
|
|
106
|
+
V.forEach(function(v, i){ if (i < L && v !== V[L] && V.indexOf(v) === i) shown.push(i); });
|
|
107
|
+
if (shown.length > 4) shown = [shown[0], shown[shown.length - 1]];
|
|
108
|
+
var lw = 0; V.forEach(function(v){ lw = Math.max(lw, wOf(P.param + " = " + v.toFixed(P.digits)) * 27 / 24); });
|
|
109
|
+
var boxes = [[p.m.l + 10, 30 - 27 * 0.88, p.m.l + 10 + lw, 30 + 27 * 0.22]];
|
|
110
|
+
var lines = [pts[L]].concat(V.map(function(v, i){ return i < L && v !== V[L] ? pts[i] : null; }).filter(Boolean));
|
|
111
|
+
// 字は図の中か上の余白に(横軸の目盛りの数字にはかからない)。線は clip の中だけ描かれる
|
|
112
|
+
var bd = [p.m.l + 4, 4, p.W - p.m.r, p.H - p.m.b - 2], cl = [p.m.l, p.m.t - 4, p.W - p.m.r, p.H - p.m.b];
|
|
113
|
+
this.glabs = [];
|
|
114
|
+
shown.forEach(function(i){
|
|
115
|
+
var str = P.param + " = " + V[i].toFixed(P.digits), at = placeOn(pts[i], wOf(str), fs, lines, boxes, bd, cl);
|
|
116
|
+
if (!at){ ctx.report("layout", "[sweep] no free place for the name of the grey line " + JSON.stringify(str) + " (not drawn)"); return; }
|
|
117
|
+
boxes.push(at.box);
|
|
118
|
+
self.glabs.push({i: i, el: D.mtext(p.svg, +at.x.toFixed(1), +at.y.toFixed(1), str, {"text-anchor": "middle", fill: "var(--muted)", stroke: "var(--bg)", "stroke-width": 6, "paint-order": "stroke", "font-size": fs, opacity: 0})});
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
duration(k){ return k >= 1 ? this.props.dur : 0; }
|
|
122
|
+
render(k, t, ctx){
|
|
123
|
+
var P = this.props, V = P.values, preview = !!ctx.preview, PV = preview ? base.previewOpacity(this) : 0;
|
|
124
|
+
// 先を薄く見せる表示:後の段階で動いていく先の値の線を、強調の色でテーマの --preview-opacity(なければ 0.45)で描く
|
|
125
|
+
var to = V[Math.min(k, V.length - 1)], from = k >= 1 ? V[k - 1] : to;
|
|
126
|
+
var c = base.lerp(from, to, base.prog(t, 0, P.dur));
|
|
127
|
+
this.cur.setAttribute("d", pathOf(samples(this.p, this.g(c), P.xr[0], P.xr[1], 300)));
|
|
128
|
+
this.lab.textContent = P.param + " = " + c.toFixed(P.digits);
|
|
129
|
+
V.forEach(function(v, i){
|
|
130
|
+
var e = this.ghosts[i], ahead = preview && i > k && v !== c, col = ahead ? "var(--emph)" : "var(--line)";
|
|
131
|
+
// style は base.el と同じ書き方で書く(style.stroke に代入すると "stroke: var(--x);" になり、作った直後と字が変わる)
|
|
132
|
+
e.setAttribute("style", "stroke:" + col + ";");
|
|
133
|
+
e.setAttribute("opacity", ahead ? PV : i < k && v !== c ? 1 : 0);
|
|
134
|
+
}, this);
|
|
135
|
+
// 灰色の線の名前は、その線が灰色で見えている間だけ
|
|
136
|
+
this.glabs.forEach(function(o){ o.el.setAttribute("opacity", o.i < k && V[o.i] !== c ? 1 : 0); });
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: markup-reader
|
|
3
|
+
version: 1.0.1
|
|
4
|
+
kind: library
|
|
5
|
+
summary: 組み立てのときに描いた結果(KaTeX の HTML・MathML、abcjs の SVG)を、決まった要素と属性だけで読んで置く。教材の作者が直接は書かない
|
|
6
|
+
requires: base@1.1.0
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
A library part (Egatari spec §6.1). Parts that show build-time rendered
|
|
10
|
+
output (spec §6.2) insert it only through this reader: today the six parts with `tex` fields (`m-collect`, `m-cycle`,
|
|
11
|
+
`m-fishbone`, `m-flow`, `m-timeline`, `m-tree`). `m-score` (abcjs SVG) reads only `LIST` (its svg entries) and keeps its
|
|
12
|
+
own tree reader, which its step plan uses without a DOM; the list is the same one. They require it as
|
|
13
|
+
`requires: {base: "1.1.0", "markup-reader": "1.0.1"}` and receive `{read, texFrame, sink, LIST}`:
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
var MR = deps["markup-reader"];
|
|
17
|
+
var dropped = MR.read(markup, parent, "html"); // appends what is admitted; returns what was dropped ([] if nothing)
|
|
18
|
+
var sk = MR.sink(this, ctx); // in mount
|
|
19
|
+
MR.texFrame(g, x, y, node, "tex", {size: 26, anchor: "middle", color: "var(--fg)", w: 200, h: 70}, sk);
|
|
20
|
+
sk.flush(); // at the end of mount: once per kind, with the count, ctx.report("data", "[<name>] …")
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
- **What it admits is exactly egatari-spec's normative `schema/rendered-markup-1.json`** (§6.2 "Rendered output is data"):
|
|
24
|
+
the listed elements per namespace (HTML, SVG, MathML), the listed attributes with the schema's value grammars (`id`,
|
|
25
|
+
`data-*`, `fill`/`stroke` only `none` or `currentColor`), and `style` only as the listed properties with a length or a
|
|
26
|
+
listed keyword, or the listed shorthands (margin, padding, border-width, border-style, border, border-<side>: each part a
|
|
27
|
+
length or a listed keyword), each set with `style.setProperty` (`color` only as `transparent`). An element not listed is
|
|
28
|
+
dropped with its subtree, an attribute or a style declaration only by itself; everything dropped is returned, and
|
|
29
|
+
reported once per element and kind with its count. `xmlns` is the namespace declaration of serialised markup: it must
|
|
30
|
+
name the element's namespace and is never set as an attribute.
|
|
31
|
+
- **No browser parser**: a small parser of its own (no `innerHTML`, no `DOMParser`); every element is made with
|
|
32
|
+
`createElementNS` in its namespace.
|
|
33
|
+
- **The list is generated, never edited here**: `node tools/markup-sync.mjs` writes it from the schema at the egatari-spec
|
|
34
|
+
commit pinned in `tools/spec.json`; `tools/test-markup-reader.mjs` checks that the embedded copy equals the schema, and runs
|
|
35
|
+
KaTeX's builder corpus through the reader: only the losses the spec documents (colours of `\color`, `\textcolor`,
|
|
36
|
+
`\colorbox`, `\fcolorbox`, `\pmb`'s shadow, `mathcolor`, `mathbackground`, KaTeX's error colour) may be dropped.
|
|
37
|
+
Additions are made in the spec, never in a reader.
|
|
38
|
+
- **`texFrame`** places a formula in an SVG figure as Egatari Studio's `kit/deck.js` did at play time (MIT, the same owner;
|
|
39
|
+
see NOTICE): a `foreignObject` (class `smath`) with an inline-block `div` of the given size and colour, `x` the anchor and
|
|
40
|
+
`y` the baseline. The formula is the producer's output `node[key + "Html"]` (e.g. `texHtml` beside `tex`). Without it (a
|
|
41
|
+
file built without the renderer, or after a tier A edit of the field) the `div` shows the TeX source as plain text and the
|
|
42
|
+
part reports `"[<name>] N tex field(s) not rendered at build time, …"` (spec §6.2 Missing output).
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
// markup-reader 1.0.0: the reader of build-time rendered markup (Egatari spec §6.2 "Rendered output is data"), a library part
|
|
2
|
+
// (spec §6.1). Parts that show what the producer rendered (KaTeX's HTML and MathML, abcjs's SVG) insert it only through this
|
|
3
|
+
// reader, never as HTML: a small parser of its own (no innerHTML, no DOMParser, no browser parser at all) that creates each
|
|
4
|
+
// element in its namespace (HTML, SVG, MathML) with createElementNS and sets only what egatari-spec's
|
|
5
|
+
// schema/rendered-markup-1.json (normative) admits:
|
|
6
|
+
// - an element listed for its namespace, else the element is dropped with its subtree;
|
|
7
|
+
// - an attribute listed for the element or globally for its namespace ("data-*" is a prefix), with the value grammar the
|
|
8
|
+
// schema gives for it (id, data-*, fill, stroke), else the attribute is dropped;
|
|
9
|
+
// - style only as the listed properties with a length or a listed keyword, or the listed shorthands (each part a length or
|
|
10
|
+
// a listed keyword), each set with style.setProperty (color only as transparent);
|
|
11
|
+
// - xmlns is the namespace declaration of serialised markup, not an attribute: it must name the namespace the reader
|
|
12
|
+
// creates the element in (else the element is dropped) and is never set;
|
|
13
|
+
// - a dropped element is removed with its subtree, a dropped attribute or style declaration only by itself;
|
|
14
|
+
// - text is kept (as text nodes; & < > " ' &#n; &#xh; decoded); comments, doctypes, CDATA and
|
|
15
|
+
// processing instructions are dropped.
|
|
16
|
+
// Everything dropped is listed in what read() returns, and a part reports it once (sink below, ctx.report("data", …)).
|
|
17
|
+
// The list is not edited here: it is the generated block below (node tools/markup-sync.mjs writes it from the spec's schema at
|
|
18
|
+
// the commit pinned in tools/spec.json; tools/test-markup-reader.mjs checks that it equals the schema). Additions are made in
|
|
19
|
+
// the spec, never in a reader.
|
|
20
|
+
//
|
|
21
|
+
// It returns {read, texFrame, sink, LIST}:
|
|
22
|
+
// read(markup, parent, ns) parse markup and append what is admitted to parent; ns is the namespace of parent's content
|
|
23
|
+
// ("html" by default, "svg", "mathml"). Returns the list of what was dropped (strings), [] when
|
|
24
|
+
// nothing was.
|
|
25
|
+
// texFrame(parent, x, y, item, key, o, sk) a formula in an SVG figure, from the producer's output item[key + "Html"]
|
|
26
|
+
// (spec §6.2: e.g. texHtml beside tex), framed as Egatari Studio's kit/deck.js did at play time:
|
|
27
|
+
// a foreignObject (class smath) holding an inline-block div of size o.size and colour o.color,
|
|
28
|
+
// placed so that x is the anchor (start, middle, end) and y the baseline. Without rendered
|
|
29
|
+
// output (a file built without the renderer, a tier A edit), the div shows item[key] as plain
|
|
30
|
+
// text (spec §6.2 Missing output) and sk.missing reports it. Returns the foreignObject.
|
|
31
|
+
// sink(part, ctx) {missing(src), dropped(src, list), flush()}: collects what an element has to report; flush(),
|
|
32
|
+
// at the end of mount, reports each kind once per element with its count (spec §6.2: once per
|
|
33
|
+
// instance and kind) through ctx.report("data", "[<name>] …"), <name> = the tag without m-.
|
|
34
|
+
// Kinds: "not rendered at build time", and each kind of drop (element, attribute, style property).
|
|
35
|
+
//
|
|
36
|
+
// Provenance of texFrame: the frame that the math-in-SVG function of Egatari Studio's kit/deck.js (DECK.svg + Math; the name is not written here, because
|
|
37
|
+
// that Studio build loads KaTeX at play time for any component code that names it) drew (https://github.com/egatari/egatari-studio,
|
|
38
|
+
// commit 03eaf0607598b993eb020f8e619caa53526bc771), MIT License, Copyright (c) 2026 Gendo Kumoi, the same owner and licence as
|
|
39
|
+
// this repository; KaTeX's render call there is replaced by read() of the producer's output.
|
|
40
|
+
egatariParts.define({name: "markup-reader", version: "1.0.1", requires: {base: "1.1.0"}}, function(deps){
|
|
41
|
+
"use strict";
|
|
42
|
+
var el = deps.base.el;
|
|
43
|
+
// ---- BEGIN rendered-markup-1 (generated by tools/markup-sync.mjs from egatari-spec schema/rendered-markup-1.json; do not edit) ----
|
|
44
|
+
var LIST = {"global":{"html":["class","aria-hidden","id","data-*","style"],"svg":["class","aria-hidden","id","data-*","style","transform"],"mathml":["class","style"]},"elements":{"html":{"span":[]},"svg":{"svg":["width","height","viewBox","preserveAspectRatio","role","aria-label","fill","stroke","stroke-width"],"g":["fill","stroke","stroke-width"],"path":["d","fill","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-dasharray"],"line":["x1","y1","x2","y2","stroke","stroke-width","stroke-dasharray"],"rect":["x","y","width","height","rx","ry","fill","stroke","stroke-width"],"circle":["cx","cy","r","fill","stroke","stroke-width"],"ellipse":["cx","cy","rx","ry","fill","stroke","stroke-width"],"polygon":["points","fill","stroke","stroke-width"],"polyline":["points","fill","stroke","stroke-width"],"text":["x","y","dx","dy","text-anchor","dominant-baseline","font-size","font-style","font-weight","fill","stroke"],"tspan":["x","y","dx","dy","font-size","font-style","font-weight","baseline-shift","fill","stroke"],"title":[]},"mathml":{"math":["display"],"semantics":[],"annotation":["encoding"],"mrow":[],"mi":["mathvariant","separator"],"mn":["mathvariant"],"mo":["accent","fence","largeop","lspace","mathvariant","maxsize","minsize","movablelimits","rspace","separator","stretchy","symmetric"],"ms":[],"mtext":["mathvariant"],"mspace":["width","height","depth","linebreak"],"mfrac":["linethickness"],"msqrt":[],"mroot":[],"msub":[],"msup":[],"msubsup":[],"munder":["accentunder"],"mover":["accent"],"munderover":["accent","accentunder"],"mtable":["columnalign","columnspacing","rowspacing","columnlines","rowlines","frame","width"],"mtr":[],"mtd":["columnalign","width"],"mstyle":["displaystyle","scriptlevel","mathsize"],"mpadded":["width","height","depth","lspace","voffset"],"menclose":["notation"],"mphantom":[]}},"values":{"id":"^[A-Za-z][A-Za-z0-9_.:-]{0,127}$","data-*":{"name":"^data-[a-z][a-z0-9-]{0,63}$","value":"^[^<>]{0,256}$"},"fill":["none","currentColor"],"stroke":["none","currentColor"],"length":"^-?(\\d+\\.?\\d*|\\.\\d+)(em|ex|px|%|pt|mu)?$"},"style":{"lengths":["border-bottom-width","border-left-width","border-right-width","border-top-width","border-width","bottom","font-size","height","left","line-height","margin-bottom","margin-left","margin-right","margin-top","max-width","min-width","padding-bottom","padding-left","padding-right","padding-top","right","top","vertical-align","width"],"keywords":{"position":["relative","absolute"],"display":["inline-block","inline","block","none"],"border-bottom-style":["solid","dashed"],"border-top-style":["solid","dashed"],"border-right-style":["solid","dashed"],"border-left-style":["solid","dashed"],"vertical-align":["top","middle","bottom","baseline"],"white-space":["nowrap"],"overflow":["hidden","visible"],"color":["transparent"]},"shorthands":{"margin":{"max":4},"padding":{"max":4},"border-width":{"max":4},"border-style":{"max":4,"keywords":["solid","dashed","dotted","double","none"]},"border":{"max":3,"keywords":["solid","dashed","dotted","double","none"]},"border-top":{"max":3,"keywords":["solid","dashed","none"]},"border-bottom":{"max":3,"keywords":["solid","dashed","none"]},"border-left":{"max":3,"keywords":["solid","dashed","none"]},"border-right":{"max":3,"keywords":["solid","dashed","none"]}}}};
|
|
45
|
+
// ---- END rendered-markup-1 ----
|
|
46
|
+
var NSURI = {html: "http://www.w3.org/1999/xhtml", svg: "http://www.w3.org/2000/svg", mathml: "http://www.w3.org/1998/Math/MathML"};
|
|
47
|
+
var LENGTH = new RegExp(LIST.values.length);
|
|
48
|
+
|
|
49
|
+
// ---------------------------------------------------------------- the parser (markup → tree; nothing is created here)
|
|
50
|
+
var ENT = {amp: "&", lt: "<", gt: ">", quot: "\"", apos: "'"};
|
|
51
|
+
function decode(s){
|
|
52
|
+
return s.replace(/&(#x[0-9A-Fa-f]{1,6}|#[0-9]{1,7}|[A-Za-z]+);/g, function(m, e){
|
|
53
|
+
if (e[0] === "#"){
|
|
54
|
+
var n = e[1] === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
|
|
55
|
+
return n > 0 && n <= 0x10ffff && !(n >= 0xd800 && n <= 0xdfff) ? String.fromCodePoint(n) : "�";
|
|
56
|
+
}
|
|
57
|
+
return Object.prototype.hasOwnProperty.call(ENT, e) ? ENT[e] : m;
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
// {kids: [node]}, node = {tag, attrs: [[name, value]], kids} | {text}; other = what the parser itself dropped
|
|
61
|
+
function parse(src, other){
|
|
62
|
+
var root = {tag: null, attrs: [], kids: []}, stack = [root], i = 0, n = src.length;
|
|
63
|
+
var top = function(){ return stack[stack.length - 1]; };
|
|
64
|
+
while (i < n){
|
|
65
|
+
var lt = src.indexOf("<", i);
|
|
66
|
+
if (lt < 0) lt = n;
|
|
67
|
+
if (lt > i){ top().kids.push({text: decode(src.slice(i, lt))}); i = lt; continue; }
|
|
68
|
+
if (src.startsWith("<!--", i)){ var ce = src.indexOf("-->", i + 4); other.push("a comment"); i = ce < 0 ? n : ce + 3; continue; }
|
|
69
|
+
if (src[i + 1] === "!" || src[i + 1] === "?"){ var de = src.indexOf(">", i); other.push("<" + src.slice(i + 1, Math.min(de < 0 ? n : de, i + 12))); i = de < 0 ? n : de + 1; continue; }
|
|
70
|
+
if (src[i + 1] === "/"){
|
|
71
|
+
var m = /^<\/([A-Za-z][^\s/>]*)\s*>/.exec(src.slice(i, i + 200));
|
|
72
|
+
if (!m){ top().kids.push({text: "<"}); i++; continue; }
|
|
73
|
+
var j = stack.length - 1;
|
|
74
|
+
while (j > 0 && stack[j].tag !== m[1]) j--;
|
|
75
|
+
if (j > 0) stack.length = j; else other.push("an end tag </" + m[1] + "> without its start");
|
|
76
|
+
i += m[0].length;
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
var t = /^<([A-Za-z][^\s/>]*)/.exec(src.slice(i, i + 200));
|
|
80
|
+
if (!t){ top().kids.push({text: "<"}); i++; continue; }
|
|
81
|
+
var node = {tag: t[1], attrs: [], kids: []}, seen = {};
|
|
82
|
+
i += t[0].length;
|
|
83
|
+
var self = false;
|
|
84
|
+
for (;;){
|
|
85
|
+
while (i < n && /\s/.test(src[i])) i++;
|
|
86
|
+
if (i >= n) break;
|
|
87
|
+
if (src[i] === ">"){ i++; break; }
|
|
88
|
+
if (src[i] === "/" && src[i + 1] === ">"){ i += 2; self = true; break; }
|
|
89
|
+
if (src[i] === "/"){ i++; continue; }
|
|
90
|
+
var a = /^[^\s"'>\/=]+/.exec(src.slice(i, i + 200));
|
|
91
|
+
if (!a){ i++; continue; }
|
|
92
|
+
var name = a[0], value = "";
|
|
93
|
+
i += name.length;
|
|
94
|
+
while (i < n && /\s/.test(src[i])) i++;
|
|
95
|
+
if (src[i] === "="){
|
|
96
|
+
i++;
|
|
97
|
+
while (i < n && /\s/.test(src[i])) i++;
|
|
98
|
+
var q = src[i];
|
|
99
|
+
if (q === "\"" || q === "'"){ var e = src.indexOf(q, i + 1); if (e < 0) e = n; value = src.slice(i + 1, e); i = e + 1; }
|
|
100
|
+
else { var u = /^[^\s>]*/.exec(src.slice(i)); value = u[0]; i += value.length; }
|
|
101
|
+
}
|
|
102
|
+
if (seen[name]) continue; // the first of repeated attributes counts (as in HTML)
|
|
103
|
+
seen[name] = true;
|
|
104
|
+
node.attrs.push([name, decode(value)]);
|
|
105
|
+
}
|
|
106
|
+
top().kids.push(node);
|
|
107
|
+
if (!self) stack.push(node);
|
|
108
|
+
}
|
|
109
|
+
return root;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// ---------------------------------------------------------------- the admission (the generated LIST)
|
|
113
|
+
function listed(names, a){
|
|
114
|
+
for (var i = 0; i < names.length; i++){
|
|
115
|
+
var x = names[i];
|
|
116
|
+
if (x === a || (x[x.length - 1] === "*" && a.indexOf(x.slice(0, -1)) === 0)) return x;
|
|
117
|
+
}
|
|
118
|
+
return null;
|
|
119
|
+
}
|
|
120
|
+
// The admitted declarations of a style attribute ([[property, value]]); the others go to drop
|
|
121
|
+
var own = function(o, k){ return Object.prototype.hasOwnProperty.call(o, k) ? o[k] : null; };
|
|
122
|
+
// A shorthand (margin, padding, border-width, border-style, border, border-<side>): at most max parts separated by spaces,
|
|
123
|
+
// each a length or one of its keywords
|
|
124
|
+
function shorthandOk(sh, x){
|
|
125
|
+
var parts = x.split(/\s+/).filter(Boolean), kws = sh.keywords || [];
|
|
126
|
+
return parts.length >= 1 && parts.length <= sh.max && parts.every(function(t){ return LENGTH.test(t) || kws.indexOf(t) >= 0; });
|
|
127
|
+
}
|
|
128
|
+
function styleOf(v, tag, drop){
|
|
129
|
+
var out = [];
|
|
130
|
+
v.split(";").forEach(function(d){
|
|
131
|
+
if (!d.trim()) return;
|
|
132
|
+
var c = d.indexOf(":"), p = (c < 0 ? d : d.slice(0, c)).trim().toLowerCase(), x = c < 0 ? "" : d.slice(c + 1).trim();
|
|
133
|
+
var kw = own(LIST.style.keywords, p), sh = LIST.style.shorthands ? own(LIST.style.shorthands, p) : null;
|
|
134
|
+
if ((LIST.style.lengths.indexOf(p) >= 0 && LENGTH.test(x)) || (kw && kw.indexOf(x) >= 0) || (sh && shorthandOk(sh, x))) out.push([p, x]);
|
|
135
|
+
else drop.push("style " + p + ":" + x + " on <" + tag + ">");
|
|
136
|
+
});
|
|
137
|
+
return out;
|
|
138
|
+
}
|
|
139
|
+
// Whether the value fits the schema's grammar for the attribute (as listed: x is the list entry, a the name)
|
|
140
|
+
var RE = {};
|
|
141
|
+
function re(s){ return RE[s] || (RE[s] = new RegExp(s)); }
|
|
142
|
+
function valueOk(x, a, v){
|
|
143
|
+
var g = Object.prototype.hasOwnProperty.call(LIST.values, x) ? LIST.values[x] : undefined;
|
|
144
|
+
if (x === "data-*") return re(g.name).test(a) && re(g.value).test(v);
|
|
145
|
+
if (g === undefined) return true;
|
|
146
|
+
return typeof g === "string" ? re(g).test(v) : g.indexOf(v) >= 0;
|
|
147
|
+
}
|
|
148
|
+
// The namespace of an element named tag inside content of namespace ns (svg and math switch, as in HTML)
|
|
149
|
+
function nsOf(tag, ns){ return ns === "html" ? (tag.toLowerCase() === "svg" ? "svg" : tag.toLowerCase() === "math" ? "mathml" : "html") : ns; }
|
|
150
|
+
function build(node, parent, ns, drop){
|
|
151
|
+
node.kids.forEach(function(k){
|
|
152
|
+
if (k.text !== undefined){ if (k.text) parent.appendChild(document.createTextNode(k.text)); return; }
|
|
153
|
+
var kns = nsOf(k.tag, ns), tag = kns === "html" || ns === "html" ? k.tag.toLowerCase() : k.tag;
|
|
154
|
+
var allowed = LIST.elements[kns], own = allowed && Object.prototype.hasOwnProperty.call(allowed, tag) ? allowed[tag] : null;
|
|
155
|
+
if (!own){ drop.push("element <" + k.tag + ">" + (parent.localName ? " in <" + parent.localName + ">" : "")); return; }
|
|
156
|
+
var xmlns = k.attrs.filter(function(a){ return a[0] === "xmlns"; })[0];
|
|
157
|
+
if (xmlns && xmlns[1] !== NSURI[kns]){ drop.push("element <" + k.tag + "> declared in namespace " + xmlns[1]); return; }
|
|
158
|
+
var e = document.createElementNS(NSURI[kns], tag);
|
|
159
|
+
k.attrs.forEach(function(a){
|
|
160
|
+
var name = kns === "html" ? a[0].toLowerCase() : a[0], v = a[1];
|
|
161
|
+
if (name === "xmlns") return;
|
|
162
|
+
var x = listed(own, name) || listed(LIST.global[kns], name);
|
|
163
|
+
if (!x || !valueOk(x, name, v)){ drop.push("attribute " + name + "=\"" + v.slice(0, 40) + "\" on <" + tag + ">"); return; }
|
|
164
|
+
// style: an empty attribute in its place among the others (so that attributes keep the producer's order), then each
|
|
165
|
+
// admitted declaration with setProperty; nothing of the producer's text is set as is. A value the browser refuses for its
|
|
166
|
+
// property (a negative height) sets nothing, and a style left empty is removed
|
|
167
|
+
if (name === "style"){ var st = styleOf(v, tag, drop); if (st.length){ e.setAttribute("style", ""); st.forEach(function(d){ e.style.setProperty(d[0], d[1]); }); if (!e.style.length) e.removeAttribute("style"); } return; }
|
|
168
|
+
e.setAttribute(name, v);
|
|
169
|
+
});
|
|
170
|
+
build(k, e, kns, drop);
|
|
171
|
+
parent.appendChild(e);
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
function read(markup, parent, ns){
|
|
175
|
+
var drop = [];
|
|
176
|
+
build(parse(String(markup), drop), parent, ns || "html", drop);
|
|
177
|
+
return drop;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// ---------------------------------------------------------------- reports (spec §6.2: once, code data)
|
|
181
|
+
// The kind of a drop, without its value: "element <a>", "attribute title on <span>", "style color on <span>", "a comment", …
|
|
182
|
+
function kindOf(x){
|
|
183
|
+
return x.replace(/^(attribute [^=]+)=".*" on (<[^>]+>)$/, "$1 on $2").replace(/^(element <[^>]+>) in <[^>]+>$/, "$1")
|
|
184
|
+
.replace(/^style ([a-z-]+):.* on (<[^>]+>)$/, "style $1 on $2").replace(/^(<!?\??[A-Za-z\[]*).*$/, "$1");
|
|
185
|
+
}
|
|
186
|
+
// What an element has to report (spec §6.2: once per instance and kind, with the count): kept per element across sinks,
|
|
187
|
+
// counted once per formula source (a formula measured and then drawn is read twice), reported by flush() at the end of mount
|
|
188
|
+
var state = new WeakMap();
|
|
189
|
+
function sink(part, ctx){
|
|
190
|
+
var name = part.tagName.toLowerCase().replace(/^m-/, ""); // = the part's name for every m-<name> element part
|
|
191
|
+
var st = state.get(part);
|
|
192
|
+
if (!st){ st = {kinds: {}, order: [], seen: {}, done: {}}; state.set(part, st); }
|
|
193
|
+
var q = function(s){ s = String(s); return JSON.stringify(s.length > 60 ? s.slice(0, 60) + "…" : s); };
|
|
194
|
+
var add = function(kind, src, msg){
|
|
195
|
+
var k = st.kinds[kind];
|
|
196
|
+
if (!k){ k = st.kinds[kind] = {n: 0, src: src, msg: msg}; st.order.push(kind); }
|
|
197
|
+
k.n++;
|
|
198
|
+
};
|
|
199
|
+
return {
|
|
200
|
+
missing: function(src){
|
|
201
|
+
if (st.seen["m\u0000" + src]) return;
|
|
202
|
+
st.seen["m\u0000" + src] = true;
|
|
203
|
+
add("missing", src, null);
|
|
204
|
+
},
|
|
205
|
+
dropped: function(src, list){
|
|
206
|
+
if (st.seen["d\u0000" + src]) return;
|
|
207
|
+
st.seen["d\u0000" + src] = true;
|
|
208
|
+
list.forEach(function(x){ add("drop " + kindOf(x), src, x); });
|
|
209
|
+
},
|
|
210
|
+
// Reports each kind not reported yet for this element, once, through ctx.report("data", "[<name>] …")
|
|
211
|
+
flush: function(){
|
|
212
|
+
st.order.forEach(function(kind){
|
|
213
|
+
if (st.done[kind]) return;
|
|
214
|
+
st.done[kind] = true;
|
|
215
|
+
var k = st.kinds[kind], msg = kind === "missing"
|
|
216
|
+
? k.n + " tex field(s) not rendered at build time, e.g. " + q(k.src) + " (the source is shown as text)"
|
|
217
|
+
: "rendered markup: dropped " + kind.slice(5) + " ×" + k.n + ", e.g. " + k.msg + " in tex " + q(k.src) + " (not in rendered-markup-1, spec §6.2)";
|
|
218
|
+
if (ctx && typeof ctx.report === "function") ctx.report("data", "[" + name + "] " + msg);
|
|
219
|
+
});
|
|
220
|
+
},
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
// ---------------------------------------------------------------- a formula in an SVG figure (kit/deck.js's frame)
|
|
225
|
+
function texFrame(parent, x, y, item, key, o, sk){
|
|
226
|
+
o = o || {};
|
|
227
|
+
var w = o.w || 600, h = o.h || 80, size = o.size || 24;
|
|
228
|
+
var fo = el("foreignObject", {x: 0, y: 0, width: w, height: h, class: "smath"}, parent);
|
|
229
|
+
var div = document.createElement("div");
|
|
230
|
+
div.setAttribute("xmlns", NSURI.html);
|
|
231
|
+
div.style.cssText = "display:inline-block;vertical-align:top;white-space:nowrap;line-height:1;font-size:" + size + "px;color:" + (o.color || "var(--fg)");
|
|
232
|
+
var src = item[key], html = item[key + "Html"];
|
|
233
|
+
if (typeof html === "string"){
|
|
234
|
+
var drop = read(html, div, "html");
|
|
235
|
+
if (drop.length && sk) sk.dropped(src, drop);
|
|
236
|
+
} else {
|
|
237
|
+
div.textContent = src;
|
|
238
|
+
if (sk) sk.missing(src);
|
|
239
|
+
}
|
|
240
|
+
fo.appendChild(div);
|
|
241
|
+
// 位置合わせ:x は anchor の位置、y はベースライン
|
|
242
|
+
var bw = div.offsetWidth || 0, base = size * 0.78;
|
|
243
|
+
var dx = o.anchor === "middle" ? -bw / 2 : o.anchor === "end" ? -bw : 0;
|
|
244
|
+
fo.setAttribute("x", x + dx); fo.setAttribute("y", y - base);
|
|
245
|
+
fo.setAttribute("width", Math.max(bw + 4, 1));
|
|
246
|
+
return fo;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
return {read: read, texFrame: texFrame, sink: sink, LIST: LIST};
|
|
250
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: hist-core
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
kind: library
|
|
5
|
+
summary: m-hist の代表値と度数の計算(平均値・中央値・最頻値、階級への数え上げ、度数分布表からの代表値)。教材の作者が直接は書かない
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
A library part (Egatari spec §6.1): it defines no element. `m-hist`
|
|
9
|
+
2.0.0 requires it as `requires: {"hist-core": "1.0.0"}`; `tools/test-stats.mjs` tests it without a browser. It requires
|
|
10
|
+
nothing, touches no DOM and keeps no state. Moved verbatim from m-hist 1.13.0, where it was the class's `static stats`.
|
|
11
|
+
|
|
12
|
+
```js
|
|
13
|
+
const S = deps["hist-core"];
|
|
14
|
+
S.mean([3, 5, 7]); // 5
|
|
15
|
+
S.median([3, 5, 6, 7]); // 5.5 (the mean of the middle two)
|
|
16
|
+
S.modes([1, 2, 2, 3]); // [2]; [] when every value appears once (2 or more values)
|
|
17
|
+
S.counts(values, start, width, nb) // counts per class: start + i·width 以上、start + (i+1)·width 未満
|
|
18
|
+
S.tableMedian(start, width, counts) // {bin, from, to, x} the median class, or {at, x} a class boundary
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Also `sorted`, `sum`, `binOf`, `mids` (class values), `tableMean`, `binModes`, `cumulative` and `clean` (rounds away
|
|
22
|
+
floating-point noise, 10 decimals).
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// hist-core 1.0.0: m-hist's statistics (a library part, Egatari spec §6.1): mean, median, mode, counting into classes
|
|
2
|
+
// (以上・未満), class values, and the frequency-table mean, mode and median class. Pure functions of their arguments: no DOM,
|
|
3
|
+
// no state. m-hist 2.0.0 requires it; tools/test-stats.mjs tests it. Moved verbatim from m-hist 1.13.0 (its `static stats`).
|
|
4
|
+
// returns {sorted, sum, mean, median, modes, binOf, counts, mids, tableMean, binModes, tableMedian, cumulative, clean}
|
|
5
|
+
egatariParts.define({name: "hist-core", version: "1.0.0", requires: {}}, function(){
|
|
6
|
+
"use strict";
|
|
7
|
+
function sorted(a){ return a.slice().sort(function(x, y){ return x - y; }); }
|
|
8
|
+
function sum(a){ var s = 0; for (var i = 0; i < a.length; i++) s += a[i]; return s; }
|
|
9
|
+
function mean(a){ return sum(a) / a.length; }
|
|
10
|
+
// 中央値:小さい順に並べた真ん中の値(偶数個なら真ん中の 2 つの平均)
|
|
11
|
+
function median(a){ var s = sorted(a), n = s.length; return n % 2 ? s[(n - 1) / 2] : (s[n / 2 - 1] + s[n / 2]) / 2; }
|
|
12
|
+
// 最頻値:いちばん多く出る値(同数なら全部、小さい順)。どの値も 1 回ずつ(2 個以上)なら最頻値はない([])
|
|
13
|
+
function modes(a){
|
|
14
|
+
var c = {}, keys = [], mx = 0;
|
|
15
|
+
a.forEach(function(v){ var k = String(v); if (!(k in c)){ c[k] = 0; keys.push(v); } c[k]++; mx = Math.max(mx, c[k]); });
|
|
16
|
+
if (mx === 1 && a.length > 1) return [];
|
|
17
|
+
return sorted(keys.filter(function(v){ return c[String(v)] === mx; }));
|
|
18
|
+
}
|
|
19
|
+
// 階級の番号(start + i·width 以上、start + (i+1)·width 未満。浮動小数の誤差を少し許す)
|
|
20
|
+
function binOf(v, start, width){ return Math.floor((v - start) / width + 1e-9); }
|
|
21
|
+
function counts(values, start, width, nb){
|
|
22
|
+
var c = []; for (var i = 0; i < nb; i++) c.push(0);
|
|
23
|
+
values.forEach(function(v){ var b = binOf(v, start, width); if (b >= 0 && b < nb) c[b]++; });
|
|
24
|
+
return c;
|
|
25
|
+
}
|
|
26
|
+
function mids(start, width, nb){ var m = []; for (var i = 0; i < nb; i++) m.push(clean(start + (i + 0.5) * width)); return m; }
|
|
27
|
+
// 度数分布表からの平均値:Σ(階級値 × 度数)÷ 度数の合計
|
|
28
|
+
function tableMean(mid, cnt){ var s = 0, n = 0; mid.forEach(function(m, i){ s += m * cnt[i]; n += cnt[i]; }); return s / n; }
|
|
29
|
+
// 度数分布表の最頻値:度数がいちばん多い階級の階級値(同数なら全部)
|
|
30
|
+
function binModes(mid, cnt){ var mx = Math.max.apply(null, cnt); return mx > 0 ? mid.filter(function(m, i){ return cnt[i] === mx; }) : []; }
|
|
31
|
+
// 度数分布表の中央値:真ん中の順位の値が入る階級({bin})。偶数個で真ん中の 2 つが別の階級なら、その境の値({at})
|
|
32
|
+
function tableMedian(start, width, cnt){
|
|
33
|
+
var n = sum(cnt), r1 = n % 2 ? (n + 1) / 2 : n / 2, r2 = n % 2 ? r1 : n / 2 + 1, find = function(r){ var c = 0; for (var i = 0; i < cnt.length; i++){ c += cnt[i]; if (c >= r) return i; } return cnt.length - 1; };
|
|
34
|
+
var a = find(r1), b = find(r2);
|
|
35
|
+
return a === b ? {bin: a, from: clean(start + a * width), to: clean(start + (a + 1) * width), x: clean(start + (a + 0.5) * width)} : {at: clean(start + b * width), x: clean(start + b * width)};
|
|
36
|
+
}
|
|
37
|
+
function cumulative(c){ var s = 0; return c.map(function(v){ return (s += v); }); }
|
|
38
|
+
function clean(v){ return +(+v).toFixed(10); }
|
|
39
|
+
return {sorted: sorted, sum: sum, mean: mean, median: median, modes: modes, binOf: binOf, counts: counts, mids: mids,
|
|
40
|
+
tableMean: tableMean, binModes: binModes, tableMedian: tableMedian, cumulative: cumulative, clean: clean};
|
|
41
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# m-hissan 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: "hissan", version: "2.0.0", requires: {base: "1.0.0"}, element: "m-hissan"})`,
|
|
8
|
+
extending `base.MotionElement` with `base.el` / `prog` / `variant`; `static partName = "hissan"`. The embedded
|
|
9
|
+
egatari-variant block is gone (`base.variant`). The DOM is byte-identical to 1.13.0 on its demo at every step
|
|
10
|
+
(tools/test-c2-identity.mjs).
|
|
11
|
+
- Reports instead of `console.warn("m-hissan: …")`, all from `mount` with the 1.13.0 messages: attribute values it does
|
|
12
|
+
not take (`build`, `per`, `carry`, options for another operation, `kari` with nothing to correct)
|
|
13
|
+
`ctx.report("attr", "[hissan] …")`, `digits` outside 0–8 `ctx.report("range", …)`, and a calculation that does not fit
|
|
14
|
+
(a decimal quotient that does not end within the height, an element too narrow or too low) `ctx.report("size", …)`.
|
|
15
|
+
`plan()`, which gives the step count, still reads only the attributes and collects these notes for `mount`.
|
|
16
|
+
- Expressions it cannot calculate (`expr="12+"`, a negative difference, division by zero, a number that is not one or has
|
|
17
|
+
more than 12 digits) still throw; base contains the exception and reports it once as `ctx.report("error", "[hissan]
|
|
18
|
+
steps: …")`. The thrown messages lost their own `m-hissan: ` prefix (1.13.0), so the part is named once.
|
|
19
|
+
- `static calc` (the calculation and layout, no DOM) stays on the class; tools/test-hissan.mjs reads it through `partClass`.
|
|
20
|
+
- The part's code now runs in strict mode as a whole (1.13.0: only its calculation).
|
|
21
|
+
- Ids: none written.
|
|
22
|
+
|
|
23
|
+
## 1.13.0
|
|
24
|
+
|
|
25
|
+
As released in the library's 1.13.0.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: m-hissan
|
|
3
|
+
version: 2.0.0
|
|
4
|
+
series: academic
|
|
5
|
+
tier: specialized
|
|
6
|
+
set: math
|
|
7
|
+
summary: 筆算(たし算・ひき算・かけ算・わり算、小数も)。式を書けば、部品が教科書の手順で計算して書く
|
|
8
|
+
steps: +−は位ごと、×は 1 段ごと(fine で 1 けたずつ)→たす、÷は商 1 けたごと(per="phase" で たてる・かける・ひく・おろす ごと)
|
|
9
|
+
purposes: process
|
|
10
|
+
variants: fade, draw
|
|
11
|
+
props: expr, build, fine, per, kari, rem, digits, carry, words, focus, dur
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
`<m-hissan expr="1003-457">`。式は `487+356` `36×24` `851÷23` `3.6×2.4` `7.56÷1.8`。
|
|
15
|
+
|
|
16
|
+
- くり上がり・くり下がり・小数点・あまり は部品が書く
|
|
17
|
+
- `fine="on"`:かけ算を 1 けたずつ
|
|
18
|
+
- `kari="on"`:仮の商を見せて 1 ずつ直す
|
|
19
|
+
- `carry="top"`:くり上がりを上の数の上に。`words="off"`:右の言葉を出さない
|
|
20
|
+
- `rem="on"`:商を整数で止めて あまり。`digits="2"`:商を小数第二位まで
|
|
21
|
+
|
|
22
|
+
<!-- llm: omit -->
|
|
23
|
+
作る人向けの注
|
|
24
|
+
|
|
25
|
+
- **数は部品が計算する**:作者は式と属性だけを書く。計算と配置は `customElements.get("m-hissan").calc`(DOM を使わない)にあり、tools/test-hissan.mjs が普通の計算(BigInt の小数)と照らし合わせ、位と列・商の位置を確かめる。式にならないもの・答えが負になるひき算・0 でわるわり算は、段階を数えるところで札を出す(tools/test-shape.mjs)
|
|
26
|
+
- **列=位**:大きな字 52 px、小さな字 26 px(くり上がり・くり下がり・数える番号・言葉も 24 px 以上。字を小さくして収めることはしない)、列の幅 56 px。BIZ UDPGothic の数字は幅がそろわない(`tabular-nums` が効かない)ので、字を 1 つずつ列の真ん中に置く。小数点は字でなく丸(字の箱が隣の数字に重ならないように)で、その位の列と右の列の境に置く
|
|
27
|
+
- **たし算**:くり上がりの 1 は、既定(`carry="line"`)では答えの線のすぐ上(2 つめの数と線の間)の、行き先の位の列に小さく。`carry="top"` は上の数の上。いちばん上の位のくり上がりは答えにそのまま書く
|
|
28
|
+
- **ひき算**:くり下げる位の字に斜線、上に 1 小さい数を小さく、くり下げてもらった位には小さな 1(24 px):その字の左肩(字の中ほどの高さ、その列の中。小さな数の行には入れない。ひき算だけ列の幅を 74 px にして場所をとる)。その位がすでにくり下げて小さな数になっていれば、その小さな数の左(「12」と読める)。0 が続くときは、0 でない位から順に斜線と 9(1003−457:千の位の 1 に斜線(0 は書かない)、百・十の位は 9、一の位は 13)。答えの上の位の 0 は書かない(52−48 の十の位は「0 は書かない」と言うだけの段)。上の数の小数の位が足りなければ 0 を書きたす(5−2.35 → 5.00)
|
|
29
|
+
- **かけ算**:かける数の 1 けたごとに 1 行(その位の列から書く)。かける数の 0 の位の行は書かない(123×405)。整数の終わりの 0 は右に出して書き、0 をのぞいた数で計算してから 0 をつける(340×26 → 34×26=884 → 8840)。小数は整数として計算し、両方の小数点の右のけた数を行の右に書き、積の右から数える弧と番号で数えて小数点をうつ。足りなければ一の位に 0 を書きたし(0.25×0.4 → 0.100)、終わりの 0 は斜線で消す(全部 0 なら小数点ごと:2.6+1.4 → 4.0)。`fine="on"` のくり上がりは、その行のすぐ上に小さく。たし算の行のくり上がりは書かない
|
|
30
|
+
- **わり算**:わる数、「)」と横線、横線の上に商。商は、わることができる最初の位の上から(その左の 0 は書かない)。商が 1 より小さいときだけ一の位に 0 を書く(3÷4 → 0.75、0.24÷6 → 0.04)。商が 0 の位は たてる と おろす だけ(612÷6)。ひいて 0 になったら 0 は書かずに次の位をおろす(最後だけ 0 を書く)。わる数が小数なら、はじめの段で両方の小数点を同じけただけ右へ(もとの小数点に ×、1 けたずつ矢印)。足りない位は 0 を書きたす(7.5÷0.25 → 750÷25)。商の小数点は、うつした小数点の上に、小数の位をおろすときにうつ。あまりは、もとの小数点にそろえて読む(7.5÷2.3 → 3 あまり 0.6、17.5÷3 → 5 あまり 2.5:のこりの位はそのままおろす)
|
|
31
|
+
- **段階**:`per="round"`(既定)は商 1 けた=1 段階で、段階の中で たてる → かける → ひく → おろす(1 つ 0.9 秒、`cues` はそれぞれの始まり)。言葉(手順の名前と計算)は右に出て、段階の中で替わる。`per="phase"` は 1 つずつ別の段階に。`kari="on"`:わる数を上の 1 けたの位で四捨五入(23→20、27→30)、わられる部分をその位で切り捨てて(85→80)見当をつける。見当が商と違う最初の 1 回だけ、1 ずつなおす:大きすぎれば たてる → かける → 斜線と線で消して「ひけないので、1 小さくする」、小さすぎれば たてる → かける → ひく → 消して「あまりが 27 より大きい(と同じな)ので、1 大きくする」。試しはどれも同じ行に書いて消す(最後の状態には残らない)。大きすぎる試しの積が わられる部分 より左にはみ出すとき(99÷14 の 14×9=126)は、列に書かずに言葉だけで言う(「14×9=126 は 99 より大きくてひけないので、1 小さくする(8)」)。わられる数はいつも「)」のすぐ右から始まり、図の幅は段階によって変わらない(tools/test-hissan.mjs)。ほかの回は正しい商をたてる
|
|
32
|
+
- **digits**:整数どうしは あまり(`rem` と同じ)。小数があり `digits` がなければ、わり切れるまで、ただしスライドの本文に入る高さ(470 px)までで止めて `ctx.report`。`digits` を書けばその位まで(入らなければ `ctx.report`。字は小さくしない)。要素の幅・高さに入らないときも `ctx.report`
|
|
33
|
+
- **右の言葉**(`words="off"` で出さない):段階の中だけ見え(次の手順の言葉で替わる)、最後の状態には最後の手順の言葉が残る。残る言葉(小数点の右のけた数・「あまり」)はその行の右に先に置き、言葉はその後ろ。`focus`:いま計算している位・行に `--emph` の薄い色
|
|
34
|
+
- 見せ方:`fade`(0)は字も線もフェード、`draw` は線・斜線・矢印・括弧を引く(字はフェード)。段階の数・長さ・最後の中身は同じ。授業の表示(`ctx.preview`)では先の段階を見せない(数字は計算そのものなので。`static preview = "none"`、docs/conventions.md §1.2)
|
|
35
|
+
<!-- llm: end -->
|
|
@@ -0,0 +1,40 @@
|
|
|
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-hissan の見本</title>
|
|
7
|
+
<!-- 組み方:node kit/build.mjs components/hissan/demo.html -o components/hissan/out/demo.html -->
|
|
8
|
+
<style>
|
|
9
|
+
</style>
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<div id="stage">
|
|
13
|
+
|
|
14
|
+
<section class="slide">
|
|
15
|
+
<h2>0 のあるひき算:1003−457</h2>
|
|
16
|
+
<div class="body">
|
|
17
|
+
<m-hissan expr="1003-457" style="height:400px"></m-hissan>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="concl"><span>→ 十の位も百の位も 0 なので、千の位から順にくり下げる</span></div>
|
|
20
|
+
</section>
|
|
21
|
+
|
|
22
|
+
<section class="slide">
|
|
23
|
+
<h2>2 けたをかけるかけ算:38×24</h2>
|
|
24
|
+
<div class="body">
|
|
25
|
+
<m-hissan expr="38×24" style="height:420px"></m-hissan>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="concl"><span>→ 38×2 の 76 は、十の位から書く</span></div>
|
|
28
|
+
</section>
|
|
29
|
+
|
|
30
|
+
<section class="slide">
|
|
31
|
+
<h2>2 けたでわるわり算:851÷23</h2>
|
|
32
|
+
<div class="body">
|
|
33
|
+
<m-hissan expr="851÷23" kari="on" style="height:440px"></m-hissan>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="concl"><span>→ 仮の商が大きすぎたら、1 小さくしてやり直す</span></div>
|
|
36
|
+
</section>
|
|
37
|
+
|
|
38
|
+
</div>
|
|
39
|
+
</body>
|
|
40
|
+
</html>
|