egatari 0.6.4 → 0.6.5-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (385) hide show
  1. package/NOTICE +36 -0
  2. package/README.ja.md +18 -4
  3. package/README.md +18 -4
  4. package/SECURITY.md +18 -0
  5. package/bin/egatari.mjs +86 -3
  6. package/components.lock.json +246 -123
  7. package/components2.lock.json +824 -1
  8. package/kit/article-steps.mjs +27 -0
  9. package/kit/browser.mjs +14 -2
  10. package/kit/build.mjs +50 -1
  11. package/kit/check-messages.mjs +15 -7
  12. package/kit/check.mjs +46 -9
  13. package/kit/cli-hint.mjs +27 -0
  14. package/kit/core/article-cite.mjs +188 -0
  15. package/kit/core/article-links.mjs +174 -0
  16. package/kit/core/article-messages.mjs +119 -0
  17. package/kit/core/article-page.mjs +183 -0
  18. package/kit/core/article-render.mjs +410 -0
  19. package/kit/core/article-text.mjs +559 -0
  20. package/kit/core/article.mjs +267 -0
  21. package/kit/core/build-core.mjs +49 -9
  22. package/kit/core/citeproc-credit.mjs +3 -0
  23. package/kit/core/colab-core.mjs +1 -1
  24. package/kit/core/components-lock.mjs +18 -0
  25. package/kit/core/llm-fix.mjs +2 -1
  26. package/kit/core/llm-pack-assemble.mjs +5 -3
  27. package/kit/core/llm-pack-data.mjs +63 -80
  28. package/kit/core/new-deck.mjs +1 -1
  29. package/kit/core/part-labels.mjs +17 -5
  30. package/kit/core/parts2.mjs +11 -1
  31. package/kit/core/player.mjs +1 -1
  32. package/kit/core/portable.mjs +132 -16
  33. package/kit/core/quote-ja.mjs +5 -0
  34. package/kit/core/themes-lock.mjs +16 -0
  35. package/kit/core/tier-a.mjs +47 -3
  36. package/kit/deck.js +195 -45
  37. package/kit/instruction-version.json +3 -0
  38. package/kit/layouts.css +11 -10
  39. package/kit/panes.js +1288 -0
  40. package/kit/player.json +1 -1
  41. package/kit/player.lock.json +2 -2
  42. package/kit/tools.js +81 -20
  43. package/kit/track.js +308 -0
  44. package/package.json +20 -3
  45. package/render/only.mjs +21 -0
  46. package/render/render.mjs +11 -8
  47. package/tools/ids.mjs +77 -9
  48. package/tools/portable.mjs +2 -0
  49. package/tools/sheet.mjs +5 -3
  50. package/vendor/components/CATALOG.md +4 -4
  51. package/vendor/components/sha256/00e4bdbb7b9964c92809177fe7bb574e7184ed603dbc5008a485d82603d9a7bf/CHANGELOG.md +37 -0
  52. package/vendor/components/sha256/00e4bdbb7b9964c92809177fe7bb574e7184ed603dbc5008a485d82603d9a7bf/README.md +58 -0
  53. package/vendor/components/sha256/00e4bdbb7b9964c92809177fe7bb574e7184ed603dbc5008a485d82603d9a7bf/demo.html +121 -0
  54. package/vendor/components/sha256/00e4bdbb7b9964c92809177fe7bb574e7184ed603dbc5008a485d82603d9a7bf/index.js +894 -0
  55. package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/CHANGELOG.md +44 -0
  56. package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/README.md +32 -0
  57. package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/demo.html +57 -0
  58. package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/ABCJS-ADAPTER.md +101 -0
  59. package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/LICENSE-abcjs.txt +21 -0
  60. package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/chords.json +89 -0
  61. package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/doremi.json +261 -0
  62. package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/extras.json +192 -0
  63. package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/kaeru.json +521 -0
  64. package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/rhythm.json +248 -0
  65. package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/ties.json +360 -0
  66. package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/index.js +474 -0
  67. package/vendor/components/sha256/027a8fea4060337ccc0a926c1488066f1ae7a6c102a15032eae974304e12cb3b/CHANGELOG.md +28 -0
  68. package/vendor/components/sha256/027a8fea4060337ccc0a926c1488066f1ae7a6c102a15032eae974304e12cb3b/README.md +21 -0
  69. package/vendor/components/sha256/027a8fea4060337ccc0a926c1488066f1ae7a6c102a15032eae974304e12cb3b/demo.html +32 -0
  70. package/vendor/components/sha256/027a8fea4060337ccc0a926c1488066f1ae7a6c102a15032eae974304e12cb3b/index.js +139 -0
  71. package/vendor/components/sha256/03550bb20d425aa926258bab18b03bbc0cee292072e01bb6c78c429b3ae92c34/README.md +42 -0
  72. package/vendor/components/sha256/03550bb20d425aa926258bab18b03bbc0cee292072e01bb6c78c429b3ae92c34/index.js +250 -0
  73. package/vendor/components/sha256/07013c263cc595382dbcfd4931ca8b016f9dfb673440adf28911c95bd465cf9d/README.md +22 -0
  74. package/vendor/components/sha256/07013c263cc595382dbcfd4931ca8b016f9dfb673440adf28911c95bd465cf9d/index.js +41 -0
  75. package/vendor/components/sha256/0703ec58997237fceda0008c28dfa3e3370c21cdcb6d0cc99c29a83e4b9d0f11/CHANGELOG.md +25 -0
  76. package/vendor/components/sha256/0703ec58997237fceda0008c28dfa3e3370c21cdcb6d0cc99c29a83e4b9d0f11/README.md +35 -0
  77. package/vendor/components/sha256/0703ec58997237fceda0008c28dfa3e3370c21cdcb6d0cc99c29a83e4b9d0f11/demo.html +40 -0
  78. package/vendor/components/sha256/0703ec58997237fceda0008c28dfa3e3370c21cdcb6d0cc99c29a83e4b9d0f11/index.js +731 -0
  79. package/vendor/components/sha256/0b85af3a688ca012d7d1df082dab1f405048589dce78d411d4cffc1fb3a81998/CHANGELOG.md +19 -0
  80. package/vendor/components/sha256/0b85af3a688ca012d7d1df082dab1f405048589dce78d411d4cffc1fb3a81998/README.md +21 -0
  81. package/vendor/components/sha256/0b85af3a688ca012d7d1df082dab1f405048589dce78d411d4cffc1fb3a81998/demo.html +33 -0
  82. package/vendor/components/sha256/0b85af3a688ca012d7d1df082dab1f405048589dce78d411d4cffc1fb3a81998/index.js +106 -0
  83. package/vendor/components/sha256/0cf00baed0da1bc3ce5460eb1eff0a8dd5f7789168e83aaef751135cd3f8af89/CHANGELOG.md +21 -0
  84. package/vendor/components/sha256/0cf00baed0da1bc3ce5460eb1eff0a8dd5f7789168e83aaef751135cd3f8af89/README.md +34 -0
  85. package/vendor/components/sha256/0cf00baed0da1bc3ce5460eb1eff0a8dd5f7789168e83aaef751135cd3f8af89/demo.html +77 -0
  86. package/vendor/components/sha256/0cf00baed0da1bc3ce5460eb1eff0a8dd5f7789168e83aaef751135cd3f8af89/index.js +200 -0
  87. package/vendor/components/sha256/0eca723150eb30db0b3d3fdbd35b973d5344ac0d0e2ea8ab89d143a0870ab4fd/CHANGELOG.md +31 -0
  88. package/vendor/components/sha256/0eca723150eb30db0b3d3fdbd35b973d5344ac0d0e2ea8ab89d143a0870ab4fd/README.md +43 -0
  89. package/vendor/components/sha256/0eca723150eb30db0b3d3fdbd35b973d5344ac0d0e2ea8ab89d143a0870ab4fd/demo.html +47 -0
  90. package/vendor/components/sha256/0eca723150eb30db0b3d3fdbd35b973d5344ac0d0e2ea8ab89d143a0870ab4fd/index.js +484 -0
  91. package/vendor/components/sha256/0f47d93b78df1c0661a91d5fc46d6f7f5d1c45349065aab6bd3e659e07e317dd/CHANGELOG.md +23 -0
  92. package/vendor/components/sha256/0f47d93b78df1c0661a91d5fc46d6f7f5d1c45349065aab6bd3e659e07e317dd/README.md +44 -0
  93. package/vendor/components/sha256/0f47d93b78df1c0661a91d5fc46d6f7f5d1c45349065aab6bd3e659e07e317dd/demo.html +43 -0
  94. package/vendor/components/sha256/0f47d93b78df1c0661a91d5fc46d6f7f5d1c45349065aab6bd3e659e07e317dd/index.js +266 -0
  95. package/vendor/components/sha256/12704ccb92a1f864a18cce824a2400e8e3141e8dba7db34805cb1d8522aae08e/CHANGELOG.md +34 -0
  96. package/vendor/components/sha256/12704ccb92a1f864a18cce824a2400e8e3141e8dba7db34805cb1d8522aae08e/README.md +44 -0
  97. package/vendor/components/sha256/12704ccb92a1f864a18cce824a2400e8e3141e8dba7db34805cb1d8522aae08e/demo.html +56 -0
  98. package/vendor/components/sha256/12704ccb92a1f864a18cce824a2400e8e3141e8dba7db34805cb1d8522aae08e/index.js +429 -0
  99. package/vendor/components/sha256/149e8ddefbc384aafa8b961d48f8f56ad68ff75cc2429bd8c1ad6d8da661f5f6/CHANGELOG.md +25 -0
  100. package/vendor/components/sha256/149e8ddefbc384aafa8b961d48f8f56ad68ff75cc2429bd8c1ad6d8da661f5f6/README.md +42 -0
  101. package/vendor/components/sha256/149e8ddefbc384aafa8b961d48f8f56ad68ff75cc2429bd8c1ad6d8da661f5f6/demo.html +115 -0
  102. package/vendor/components/sha256/149e8ddefbc384aafa8b961d48f8f56ad68ff75cc2429bd8c1ad6d8da661f5f6/index.js +384 -0
  103. package/vendor/components/sha256/1ccdd24c9e0e7ca2661450c52eb6dcf9dbc2fb48d05fed2d01e2b9cfd5df1365/CHANGELOG.md +19 -0
  104. package/vendor/components/sha256/1ccdd24c9e0e7ca2661450c52eb6dcf9dbc2fb48d05fed2d01e2b9cfd5df1365/README.md +38 -0
  105. package/vendor/components/sha256/1ccdd24c9e0e7ca2661450c52eb6dcf9dbc2fb48d05fed2d01e2b9cfd5df1365/demo.html +72 -0
  106. package/vendor/components/sha256/1ccdd24c9e0e7ca2661450c52eb6dcf9dbc2fb48d05fed2d01e2b9cfd5df1365/index.js +248 -0
  107. package/vendor/components/sha256/240bd2ff9a1707c557f0a1af7f278a3f7661a8e680d3b932e367d4b337a3ad13/CHANGELOG.md +19 -0
  108. package/vendor/components/sha256/240bd2ff9a1707c557f0a1af7f278a3f7661a8e680d3b932e367d4b337a3ad13/README.md +36 -0
  109. package/vendor/components/sha256/240bd2ff9a1707c557f0a1af7f278a3f7661a8e680d3b932e367d4b337a3ad13/demo.html +70 -0
  110. package/vendor/components/sha256/240bd2ff9a1707c557f0a1af7f278a3f7661a8e680d3b932e367d4b337a3ad13/index.js +167 -0
  111. package/vendor/components/sha256/2a6b20b93f1169ef2435cdf3bfca57d24c9111fe9aaf8e61f0d049cf8a70e9df/CHANGELOG.md +34 -0
  112. package/vendor/components/sha256/2a6b20b93f1169ef2435cdf3bfca57d24c9111fe9aaf8e61f0d049cf8a70e9df/README.md +32 -0
  113. package/vendor/components/sha256/2a6b20b93f1169ef2435cdf3bfca57d24c9111fe9aaf8e61f0d049cf8a70e9df/demo.html +51 -0
  114. package/vendor/components/sha256/2a6b20b93f1169ef2435cdf3bfca57d24c9111fe9aaf8e61f0d049cf8a70e9df/index.js +302 -0
  115. package/vendor/components/sha256/2c9490ac960a5bb04ebc0c8fa0622392775f85ef8b8ebe93065991ce40afc097/CHANGELOG.md +41 -0
  116. package/vendor/components/sha256/2c9490ac960a5bb04ebc0c8fa0622392775f85ef8b8ebe93065991ce40afc097/README.md +35 -0
  117. package/vendor/components/sha256/2c9490ac960a5bb04ebc0c8fa0622392775f85ef8b8ebe93065991ce40afc097/demo.html +66 -0
  118. package/vendor/components/sha256/2c9490ac960a5bb04ebc0c8fa0622392775f85ef8b8ebe93065991ce40afc097/index.js +352 -0
  119. package/vendor/components/sha256/328a440e91684524068076e96cba5771cdceaa274d4b90033656259f05467135/CHANGELOG.md +35 -0
  120. package/vendor/components/sha256/328a440e91684524068076e96cba5771cdceaa274d4b90033656259f05467135/README.md +35 -0
  121. package/vendor/components/sha256/328a440e91684524068076e96cba5771cdceaa274d4b90033656259f05467135/demo.html +40 -0
  122. package/vendor/components/sha256/328a440e91684524068076e96cba5771cdceaa274d4b90033656259f05467135/index.js +747 -0
  123. package/vendor/components/sha256/3395706f819e0e70b4047da33486a4b59e65118faf8f918677061e397dae408c/CHANGELOG.md +35 -0
  124. package/vendor/components/sha256/3395706f819e0e70b4047da33486a4b59e65118faf8f918677061e397dae408c/README.md +43 -0
  125. package/vendor/components/sha256/3395706f819e0e70b4047da33486a4b59e65118faf8f918677061e397dae408c/demo.html +89 -0
  126. package/vendor/components/sha256/3395706f819e0e70b4047da33486a4b59e65118faf8f918677061e397dae408c/index.js +323 -0
  127. package/vendor/components/sha256/34b1375b0897f881b8d43e5dbaa928485cfab240e87c53a5868e714879a20f79/CHANGELOG.md +24 -0
  128. package/vendor/components/sha256/34b1375b0897f881b8d43e5dbaa928485cfab240e87c53a5868e714879a20f79/README.md +40 -0
  129. package/vendor/components/sha256/34b1375b0897f881b8d43e5dbaa928485cfab240e87c53a5868e714879a20f79/demo.html +70 -0
  130. package/vendor/components/sha256/34b1375b0897f881b8d43e5dbaa928485cfab240e87c53a5868e714879a20f79/index.js +561 -0
  131. package/vendor/components/sha256/37ea0051e8a1f2d7c2fa2d38e57730e5a3b1afabe9037a74fcad6e6f05356c09/CHANGELOG.md +27 -0
  132. package/vendor/components/sha256/37ea0051e8a1f2d7c2fa2d38e57730e5a3b1afabe9037a74fcad6e6f05356c09/README.md +50 -0
  133. package/vendor/components/sha256/37ea0051e8a1f2d7c2fa2d38e57730e5a3b1afabe9037a74fcad6e6f05356c09/demo.html +44 -0
  134. package/vendor/components/sha256/37ea0051e8a1f2d7c2fa2d38e57730e5a3b1afabe9037a74fcad6e6f05356c09/index.js +464 -0
  135. package/vendor/components/sha256/39c84138e7e4c6040eeb3d82d1c7fc801f513b2c26ac431ac8cc121a01f81698/CHANGELOG.md +23 -0
  136. package/vendor/components/sha256/39c84138e7e4c6040eeb3d82d1c7fc801f513b2c26ac431ac8cc121a01f81698/README.md +44 -0
  137. package/vendor/components/sha256/39c84138e7e4c6040eeb3d82d1c7fc801f513b2c26ac431ac8cc121a01f81698/demo.html +56 -0
  138. package/vendor/components/sha256/39c84138e7e4c6040eeb3d82d1c7fc801f513b2c26ac431ac8cc121a01f81698/index.js +402 -0
  139. package/vendor/components/sha256/3c36a26fd78dffdfa114bd7c9ca5cae494117bbcdda14bee5c2a01351e5f2eb2/CHANGELOG.md +27 -0
  140. package/vendor/components/sha256/3c36a26fd78dffdfa114bd7c9ca5cae494117bbcdda14bee5c2a01351e5f2eb2/README.md +49 -0
  141. package/vendor/components/sha256/3c36a26fd78dffdfa114bd7c9ca5cae494117bbcdda14bee5c2a01351e5f2eb2/demo.html +44 -0
  142. package/vendor/components/sha256/3c36a26fd78dffdfa114bd7c9ca5cae494117bbcdda14bee5c2a01351e5f2eb2/index.js +354 -0
  143. package/vendor/components/sha256/3c60c8e63279b8ee86957a5874c80f86a44f9ed92c1f615eace4a9dea1789da5/CHANGELOG.md +20 -0
  144. package/vendor/components/sha256/3c60c8e63279b8ee86957a5874c80f86a44f9ed92c1f615eace4a9dea1789da5/README.md +50 -0
  145. package/vendor/components/sha256/3c60c8e63279b8ee86957a5874c80f86a44f9ed92c1f615eace4a9dea1789da5/demo.html +61 -0
  146. package/vendor/components/sha256/3c60c8e63279b8ee86957a5874c80f86a44f9ed92c1f615eace4a9dea1789da5/index.js +141 -0
  147. package/vendor/components/sha256/3dba49cbbf7853212a6e5c393de030430d02b8b1a2ba4c8b722db2bb8afad12f/CHANGELOG.md +42 -0
  148. package/vendor/components/sha256/3dba49cbbf7853212a6e5c393de030430d02b8b1a2ba4c8b722db2bb8afad12f/README.md +32 -0
  149. package/vendor/components/sha256/3dba49cbbf7853212a6e5c393de030430d02b8b1a2ba4c8b722db2bb8afad12f/demo.html +54 -0
  150. package/vendor/components/sha256/3dba49cbbf7853212a6e5c393de030430d02b8b1a2ba4c8b722db2bb8afad12f/index.js +315 -0
  151. package/vendor/components/sha256/40452368224bdcd8c4910222285e6af9e120df17dbd1c3177c0abe9cb69075d1/CHANGELOG.md +30 -0
  152. package/vendor/components/sha256/40452368224bdcd8c4910222285e6af9e120df17dbd1c3177c0abe9cb69075d1/README.md +38 -0
  153. package/vendor/components/sha256/40452368224bdcd8c4910222285e6af9e120df17dbd1c3177c0abe9cb69075d1/demo.html +72 -0
  154. package/vendor/components/sha256/40452368224bdcd8c4910222285e6af9e120df17dbd1c3177c0abe9cb69075d1/index.js +267 -0
  155. package/vendor/components/sha256/4a5971c1f83efc1f57c444ce7d3fbf242b2bcca65c5c6e4b0b0d75eeb2751150/CHANGELOG.md +16 -0
  156. package/vendor/components/sha256/4a5971c1f83efc1f57c444ce7d3fbf242b2bcca65c5c6e4b0b0d75eeb2751150/README.md +27 -0
  157. package/vendor/components/sha256/4a5971c1f83efc1f57c444ce7d3fbf242b2bcca65c5c6e4b0b0d75eeb2751150/demo.html +42 -0
  158. package/vendor/components/sha256/4a5971c1f83efc1f57c444ce7d3fbf242b2bcca65c5c6e4b0b0d75eeb2751150/index.js +121 -0
  159. package/vendor/components/sha256/4e0e5eb48fc20ffc554786a7db66c4f5cee0c42eb0554bdc8c98323cdb168eb4/CHANGELOG.md +33 -0
  160. package/vendor/components/sha256/4e0e5eb48fc20ffc554786a7db66c4f5cee0c42eb0554bdc8c98323cdb168eb4/README.md +41 -0
  161. package/vendor/components/sha256/4e0e5eb48fc20ffc554786a7db66c4f5cee0c42eb0554bdc8c98323cdb168eb4/demo.html +70 -0
  162. package/vendor/components/sha256/4e0e5eb48fc20ffc554786a7db66c4f5cee0c42eb0554bdc8c98323cdb168eb4/index.js +592 -0
  163. package/vendor/components/sha256/50db2d3b84ee33b36c09a9a216ef6b337d2e5da2154e8aa62e790b0e63401796/CHANGELOG.md +23 -0
  164. package/vendor/components/sha256/50db2d3b84ee33b36c09a9a216ef6b337d2e5da2154e8aa62e790b0e63401796/README.md +43 -0
  165. package/vendor/components/sha256/50db2d3b84ee33b36c09a9a216ef6b337d2e5da2154e8aa62e790b0e63401796/demo.html +47 -0
  166. package/vendor/components/sha256/50db2d3b84ee33b36c09a9a216ef6b337d2e5da2154e8aa62e790b0e63401796/index.js +483 -0
  167. package/vendor/components/sha256/546ec63feccdc65569b7167e58b2e36a85be52f2538743dd2ecc3fc29ed6b883/CHANGELOG.md +19 -0
  168. package/vendor/components/sha256/546ec63feccdc65569b7167e58b2e36a85be52f2538743dd2ecc3fc29ed6b883/README.md +34 -0
  169. package/vendor/components/sha256/546ec63feccdc65569b7167e58b2e36a85be52f2538743dd2ecc3fc29ed6b883/demo.html +60 -0
  170. package/vendor/components/sha256/546ec63feccdc65569b7167e58b2e36a85be52f2538743dd2ecc3fc29ed6b883/index.js +209 -0
  171. package/vendor/components/sha256/556e7d45a761c4fa749cde186fb53f6c526ba6ede0b8f0f0bba5ac9e25e0d6f4/CHANGELOG.md +30 -0
  172. package/vendor/components/sha256/556e7d45a761c4fa749cde186fb53f6c526ba6ede0b8f0f0bba5ac9e25e0d6f4/README.md +79 -0
  173. package/vendor/components/sha256/556e7d45a761c4fa749cde186fb53f6c526ba6ede0b8f0f0bba5ac9e25e0d6f4/demo.html +50 -0
  174. package/vendor/components/sha256/556e7d45a761c4fa749cde186fb53f6c526ba6ede0b8f0f0bba5ac9e25e0d6f4/index.js +351 -0
  175. package/vendor/components/sha256/577008a069e7eb08057705a0800d975e82c8dfe0d0ba5fbf4f8974af7b298a7f/README.md +53 -0
  176. package/vendor/components/sha256/577008a069e7eb08057705a0800d975e82c8dfe0d0ba5fbf4f8974af7b298a7f/index.js +310 -0
  177. package/vendor/components/sha256/5a9959f8626f2c5280d0954c476baeadf03fecebda2443c3e83b8203ad554167/CHANGELOG.md +20 -0
  178. package/vendor/components/sha256/5a9959f8626f2c5280d0954c476baeadf03fecebda2443c3e83b8203ad554167/README.md +75 -0
  179. package/vendor/components/sha256/5a9959f8626f2c5280d0954c476baeadf03fecebda2443c3e83b8203ad554167/demo.html +50 -0
  180. package/vendor/components/sha256/5a9959f8626f2c5280d0954c476baeadf03fecebda2443c3e83b8203ad554167/index.js +342 -0
  181. package/vendor/components/sha256/5b44b272b917246219d2709f1b001964f87a3e07786cc9950087bbb8add3c721/CHANGELOG.md +24 -0
  182. package/vendor/components/sha256/5b44b272b917246219d2709f1b001964f87a3e07786cc9950087bbb8add3c721/README.md +26 -0
  183. package/vendor/components/sha256/5b44b272b917246219d2709f1b001964f87a3e07786cc9950087bbb8add3c721/demo.html +48 -0
  184. package/vendor/components/sha256/5b44b272b917246219d2709f1b001964f87a3e07786cc9950087bbb8add3c721/index.js +97 -0
  185. package/vendor/components/sha256/5c8ae7714fd8243c9b37539a5f0f8488d3ba20316ba81179e97b6160116d13c2/CHANGELOG.md +22 -0
  186. package/vendor/components/sha256/5c8ae7714fd8243c9b37539a5f0f8488d3ba20316ba81179e97b6160116d13c2/README.md +64 -0
  187. package/vendor/components/sha256/5c8ae7714fd8243c9b37539a5f0f8488d3ba20316ba81179e97b6160116d13c2/demo.html +97 -0
  188. package/vendor/components/sha256/5c8ae7714fd8243c9b37539a5f0f8488d3ba20316ba81179e97b6160116d13c2/index.js +875 -0
  189. package/vendor/components/sha256/68c9e866e3cd3e2f8179ede44a005c7f31cef0ed07fd5770ec33f0cc3aa80a41/CHANGELOG.md +21 -0
  190. package/vendor/components/sha256/68c9e866e3cd3e2f8179ede44a005c7f31cef0ed07fd5770ec33f0cc3aa80a41/README.md +50 -0
  191. package/vendor/components/sha256/68c9e866e3cd3e2f8179ede44a005c7f31cef0ed07fd5770ec33f0cc3aa80a41/demo.html +63 -0
  192. package/vendor/components/sha256/68c9e866e3cd3e2f8179ede44a005c7f31cef0ed07fd5770ec33f0cc3aa80a41/index.js +219 -0
  193. package/vendor/components/sha256/693e2aa59e822d38c48eca7271cc020f8e0a6f6189f2409895318ed2a3f0b809/CHANGELOG.md +28 -0
  194. package/vendor/components/sha256/693e2aa59e822d38c48eca7271cc020f8e0a6f6189f2409895318ed2a3f0b809/README.md +35 -0
  195. package/vendor/components/sha256/693e2aa59e822d38c48eca7271cc020f8e0a6f6189f2409895318ed2a3f0b809/demo.html +73 -0
  196. package/vendor/components/sha256/693e2aa59e822d38c48eca7271cc020f8e0a6f6189f2409895318ed2a3f0b809/index.js +228 -0
  197. package/vendor/components/sha256/6b24ab9b90b4f2275af9f61073fe9d65b8b9d16573d639ae07352f29b8b067a1/CHANGELOG.md +34 -0
  198. package/vendor/components/sha256/6b24ab9b90b4f2275af9f61073fe9d65b8b9d16573d639ae07352f29b8b067a1/README.md +65 -0
  199. package/vendor/components/sha256/6b24ab9b90b4f2275af9f61073fe9d65b8b9d16573d639ae07352f29b8b067a1/demo.html +97 -0
  200. package/vendor/components/sha256/6b24ab9b90b4f2275af9f61073fe9d65b8b9d16573d639ae07352f29b8b067a1/index.js +920 -0
  201. package/vendor/components/sha256/6c25dc07f75697e7388564ad689303c370d49142aab9e6672baec15a0313a2fa/CHANGELOG.md +31 -0
  202. package/vendor/components/sha256/6c25dc07f75697e7388564ad689303c370d49142aab9e6672baec15a0313a2fa/README.md +39 -0
  203. package/vendor/components/sha256/6c25dc07f75697e7388564ad689303c370d49142aab9e6672baec15a0313a2fa/demo.html +66 -0
  204. package/vendor/components/sha256/6c25dc07f75697e7388564ad689303c370d49142aab9e6672baec15a0313a2fa/index.js +304 -0
  205. package/vendor/components/sha256/75a20673474b3104da24a7cb0d0483394bed380ff1c108a9a529bcdd1de0f1fb/CHANGELOG.md +31 -0
  206. package/vendor/components/sha256/75a20673474b3104da24a7cb0d0483394bed380ff1c108a9a529bcdd1de0f1fb/README.md +40 -0
  207. package/vendor/components/sha256/75a20673474b3104da24a7cb0d0483394bed380ff1c108a9a529bcdd1de0f1fb/demo.html +92 -0
  208. package/vendor/components/sha256/75a20673474b3104da24a7cb0d0483394bed380ff1c108a9a529bcdd1de0f1fb/index.js +424 -0
  209. package/vendor/components/sha256/8534966fead40ce56110b49bd8cabcd3fb703665e7c164abdfcc9aa29f3ce018/CHANGELOG.md +26 -0
  210. package/vendor/components/sha256/8534966fead40ce56110b49bd8cabcd3fb703665e7c164abdfcc9aa29f3ce018/README.md +57 -0
  211. package/vendor/components/sha256/8534966fead40ce56110b49bd8cabcd3fb703665e7c164abdfcc9aa29f3ce018/demo.html +121 -0
  212. package/vendor/components/sha256/8534966fead40ce56110b49bd8cabcd3fb703665e7c164abdfcc9aa29f3ce018/index.js +875 -0
  213. package/vendor/components/sha256/85f2da6dbed2b9beedaf3ffdea237f3f7940f9b1d4c0d056caa67e937d2dad8d/CHANGELOG.md +20 -0
  214. package/vendor/components/sha256/85f2da6dbed2b9beedaf3ffdea237f3f7940f9b1d4c0d056caa67e937d2dad8d/README.md +46 -0
  215. package/vendor/components/sha256/85f2da6dbed2b9beedaf3ffdea237f3f7940f9b1d4c0d056caa67e937d2dad8d/demo.html +112 -0
  216. package/vendor/components/sha256/85f2da6dbed2b9beedaf3ffdea237f3f7940f9b1d4c0d056caa67e937d2dad8d/index.js +443 -0
  217. package/vendor/components/sha256/87ca8b6a8995a8fe11206e2def2d6df54075092d15f2f900b25767dbe9bf998e/CHANGELOG.md +22 -0
  218. package/vendor/components/sha256/87ca8b6a8995a8fe11206e2def2d6df54075092d15f2f900b25767dbe9bf998e/README.md +35 -0
  219. package/vendor/components/sha256/87ca8b6a8995a8fe11206e2def2d6df54075092d15f2f900b25767dbe9bf998e/demo.html +69 -0
  220. package/vendor/components/sha256/87ca8b6a8995a8fe11206e2def2d6df54075092d15f2f900b25767dbe9bf998e/index.js +217 -0
  221. package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/CHANGELOG.md +46 -0
  222. package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/LICENSE-strokesvg.txt +115 -0
  223. package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/OFL.txt +93 -0
  224. package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/README.md +30 -0
  225. package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/demo.html +40 -0
  226. package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/index.js +749 -0
  227. package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/strokes-CHANGES.md +20 -0
  228. package/vendor/components/sha256/9043427ed434c76fba5b11ddd863c40d99b6157e194cfc729895cbaa4940496c/CHANGELOG.md +40 -0
  229. package/vendor/components/sha256/9043427ed434c76fba5b11ddd863c40d99b6157e194cfc729895cbaa4940496c/README.md +36 -0
  230. package/vendor/components/sha256/9043427ed434c76fba5b11ddd863c40d99b6157e194cfc729895cbaa4940496c/demo.html +52 -0
  231. package/vendor/components/sha256/9043427ed434c76fba5b11ddd863c40d99b6157e194cfc729895cbaa4940496c/index.js +268 -0
  232. package/vendor/components/sha256/9bec862c19d5442f80a2a548a5c24911219469332a6b7fc63689a56f1f3209f4/CHANGELOG.md +31 -0
  233. package/vendor/components/sha256/9bec862c19d5442f80a2a548a5c24911219469332a6b7fc63689a56f1f3209f4/README.md +46 -0
  234. package/vendor/components/sha256/9bec862c19d5442f80a2a548a5c24911219469332a6b7fc63689a56f1f3209f4/demo.html +112 -0
  235. package/vendor/components/sha256/9bec862c19d5442f80a2a548a5c24911219469332a6b7fc63689a56f1f3209f4/index.js +481 -0
  236. package/vendor/components/sha256/9cf9789f26ceaae205d48bb083e823e768413e3b2227f87de09e3cde2105a68b/CHANGELOG.md +36 -0
  237. package/vendor/components/sha256/9cf9789f26ceaae205d48bb083e823e768413e3b2227f87de09e3cde2105a68b/README.md +73 -0
  238. package/vendor/components/sha256/9cf9789f26ceaae205d48bb083e823e768413e3b2227f87de09e3cde2105a68b/demo.html +76 -0
  239. package/vendor/components/sha256/9cf9789f26ceaae205d48bb083e823e768413e3b2227f87de09e3cde2105a68b/index.js +805 -0
  240. package/vendor/components/sha256/a034214e470de8f6fa3032f65c8534c87862859525105bdfe94e347ad6a33587/CHANGELOG.md +24 -0
  241. package/vendor/components/sha256/a034214e470de8f6fa3032f65c8534c87862859525105bdfe94e347ad6a33587/README.md +35 -0
  242. package/vendor/components/sha256/a034214e470de8f6fa3032f65c8534c87862859525105bdfe94e347ad6a33587/demo.html +53 -0
  243. package/vendor/components/sha256/a034214e470de8f6fa3032f65c8534c87862859525105bdfe94e347ad6a33587/index.js +481 -0
  244. package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/CHANGELOG.md +41 -0
  245. package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/LICENSE-strokesvg.txt +115 -0
  246. package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/OFL.txt +93 -0
  247. package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/README.md +33 -0
  248. package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/demo.html +40 -0
  249. package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/index.js +749 -0
  250. package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/strokes-CHANGES.md +20 -0
  251. package/vendor/components/sha256/a6486154cbfe25c500a64cbb2128be45c2e2365e848c34d4c5c10e9a93f6e73c/CHANGELOG.md +35 -0
  252. package/vendor/components/sha256/a6486154cbfe25c500a64cbb2128be45c2e2365e848c34d4c5c10e9a93f6e73c/README.md +35 -0
  253. package/vendor/components/sha256/a6486154cbfe25c500a64cbb2128be45c2e2365e848c34d4c5c10e9a93f6e73c/demo.html +53 -0
  254. package/vendor/components/sha256/a6486154cbfe25c500a64cbb2128be45c2e2365e848c34d4c5c10e9a93f6e73c/index.js +521 -0
  255. package/vendor/components/sha256/a6ad6867e21b4ffab426919d62f4293cbb447c7307f8f92e4a8c8d7c285fca6a/CHANGELOG.md +32 -0
  256. package/vendor/components/sha256/a6ad6867e21b4ffab426919d62f4293cbb447c7307f8f92e4a8c8d7c285fca6a/README.md +39 -0
  257. package/vendor/components/sha256/a6ad6867e21b4ffab426919d62f4293cbb447c7307f8f92e4a8c8d7c285fca6a/demo.html +70 -0
  258. package/vendor/components/sha256/a6ad6867e21b4ffab426919d62f4293cbb447c7307f8f92e4a8c8d7c285fca6a/index.js +166 -0
  259. package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/CHANGELOG.md +56 -0
  260. package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/README.md +35 -0
  261. package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/demo.html +57 -0
  262. package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/ABCJS-ADAPTER.md +101 -0
  263. package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/LICENSE-abcjs.txt +21 -0
  264. package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/chords.json +89 -0
  265. package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/doremi.json +261 -0
  266. package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/extras.json +192 -0
  267. package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/kaeru.json +521 -0
  268. package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/rhythm.json +248 -0
  269. package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/ties.json +360 -0
  270. package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/index.js +508 -0
  271. package/vendor/components/sha256/ae4f864445dff17a19df30c528cb44741558217080f8e6563e0c364025a4d0a6/CHANGELOG.md +31 -0
  272. package/vendor/components/sha256/ae4f864445dff17a19df30c528cb44741558217080f8e6563e0c364025a4d0a6/README.md +34 -0
  273. package/vendor/components/sha256/ae4f864445dff17a19df30c528cb44741558217080f8e6563e0c364025a4d0a6/demo.html +77 -0
  274. package/vendor/components/sha256/ae4f864445dff17a19df30c528cb44741558217080f8e6563e0c364025a4d0a6/index.js +222 -0
  275. package/vendor/components/sha256/b9ee9d0f48ab61977d3aa618e6155ccc3453dbf452235f438fa15db6f554f961/CHANGELOG.md +30 -0
  276. package/vendor/components/sha256/b9ee9d0f48ab61977d3aa618e6155ccc3453dbf452235f438fa15db6f554f961/README.md +50 -0
  277. package/vendor/components/sha256/b9ee9d0f48ab61977d3aa618e6155ccc3453dbf452235f438fa15db6f554f961/demo.html +61 -0
  278. package/vendor/components/sha256/b9ee9d0f48ab61977d3aa618e6155ccc3453dbf452235f438fa15db6f554f961/index.js +171 -0
  279. package/vendor/components/sha256/bd590a6619f80d659299e4e558f770e75244360450939d504a4eaf7989b0eb97/README.md +21 -0
  280. package/vendor/components/sha256/bd590a6619f80d659299e4e558f770e75244360450939d504a4eaf7989b0eb97/index.js +93 -0
  281. package/vendor/components/sha256/bd79435195d9657ad2cb690b49da192bbd20bf1fe25088ba63988dbacafa6f3d/CHANGELOG.md +18 -0
  282. package/vendor/components/sha256/bd79435195d9657ad2cb690b49da192bbd20bf1fe25088ba63988dbacafa6f3d/README.md +21 -0
  283. package/vendor/components/sha256/bd79435195d9657ad2cb690b49da192bbd20bf1fe25088ba63988dbacafa6f3d/demo.html +32 -0
  284. package/vendor/components/sha256/bd79435195d9657ad2cb690b49da192bbd20bf1fe25088ba63988dbacafa6f3d/index.js +53 -0
  285. package/vendor/components/sha256/be709cea3ba3d0a69138d4c55796f59f6322d97ad0bb8c3a75c3e9fcae5a0419/CHANGELOG.md +20 -0
  286. package/vendor/components/sha256/be709cea3ba3d0a69138d4c55796f59f6322d97ad0bb8c3a75c3e9fcae5a0419/README.md +40 -0
  287. package/vendor/components/sha256/be709cea3ba3d0a69138d4c55796f59f6322d97ad0bb8c3a75c3e9fcae5a0419/demo.html +92 -0
  288. package/vendor/components/sha256/be709cea3ba3d0a69138d4c55796f59f6322d97ad0bb8c3a75c3e9fcae5a0419/index.js +399 -0
  289. package/vendor/components/sha256/c252d5ceed6735b7ca8095ac8ef035dfc79f8492b2624d7d2eb94d2a27fafe2b/CHANGELOG.md +28 -0
  290. package/vendor/components/sha256/c252d5ceed6735b7ca8095ac8ef035dfc79f8492b2624d7d2eb94d2a27fafe2b/README.md +36 -0
  291. package/vendor/components/sha256/c252d5ceed6735b7ca8095ac8ef035dfc79f8492b2624d7d2eb94d2a27fafe2b/demo.html +70 -0
  292. package/vendor/components/sha256/c252d5ceed6735b7ca8095ac8ef035dfc79f8492b2624d7d2eb94d2a27fafe2b/index.js +179 -0
  293. package/vendor/components/sha256/c882093b0dc9215cf79d8f42afc5db46dce07c8b677f85148a3efa7355d7221b/CHANGELOG.md +25 -0
  294. package/vendor/components/sha256/c882093b0dc9215cf79d8f42afc5db46dce07c8b677f85148a3efa7355d7221b/README.md +32 -0
  295. package/vendor/components/sha256/c882093b0dc9215cf79d8f42afc5db46dce07c8b677f85148a3efa7355d7221b/demo.html +54 -0
  296. package/vendor/components/sha256/c882093b0dc9215cf79d8f42afc5db46dce07c8b677f85148a3efa7355d7221b/index.js +251 -0
  297. package/vendor/components/sha256/cd714d22f82d64c80db8fdef33ca03aa618803e8114662ee2692fc7c6ac7168c/CHANGELOG.md +34 -0
  298. package/vendor/components/sha256/cd714d22f82d64c80db8fdef33ca03aa618803e8114662ee2692fc7c6ac7168c/README.md +35 -0
  299. package/vendor/components/sha256/cd714d22f82d64c80db8fdef33ca03aa618803e8114662ee2692fc7c6ac7168c/demo.html +69 -0
  300. package/vendor/components/sha256/cd714d22f82d64c80db8fdef33ca03aa618803e8114662ee2692fc7c6ac7168c/index.js +244 -0
  301. package/vendor/components/sha256/d0fbcd5e36c0f38c2d8352acee060e783b58cd2ab1ff0f9e7a60da4b2a6e3232/CHANGELOG.md +19 -0
  302. package/vendor/components/sha256/d0fbcd5e36c0f38c2d8352acee060e783b58cd2ab1ff0f9e7a60da4b2a6e3232/README.md +44 -0
  303. package/vendor/components/sha256/d0fbcd5e36c0f38c2d8352acee060e783b58cd2ab1ff0f9e7a60da4b2a6e3232/demo.html +44 -0
  304. package/vendor/components/sha256/d0fbcd5e36c0f38c2d8352acee060e783b58cd2ab1ff0f9e7a60da4b2a6e3232/index.js +334 -0
  305. package/vendor/components/sha256/d159f55bb5a72bc67c4ffa856bf9e1735d3c37f5cad9673accffc1e1953182e0/CHANGELOG.md +37 -0
  306. package/vendor/components/sha256/d159f55bb5a72bc67c4ffa856bf9e1735d3c37f5cad9673accffc1e1953182e0/README.md +43 -0
  307. package/vendor/components/sha256/d159f55bb5a72bc67c4ffa856bf9e1735d3c37f5cad9673accffc1e1953182e0/demo.html +75 -0
  308. package/vendor/components/sha256/d159f55bb5a72bc67c4ffa856bf9e1735d3c37f5cad9673accffc1e1953182e0/index.js +348 -0
  309. package/vendor/components/sha256/d29e8fbfd371edf4dea02996c8b43028af511a5f1c212e3b5d89fff68a54e55e/CHANGELOG.md +20 -0
  310. package/vendor/components/sha256/d29e8fbfd371edf4dea02996c8b43028af511a5f1c212e3b5d89fff68a54e55e/README.md +39 -0
  311. package/vendor/components/sha256/d29e8fbfd371edf4dea02996c8b43028af511a5f1c212e3b5d89fff68a54e55e/demo.html +70 -0
  312. package/vendor/components/sha256/d29e8fbfd371edf4dea02996c8b43028af511a5f1c212e3b5d89fff68a54e55e/index.js +134 -0
  313. package/vendor/components/sha256/d4159ba1206d094364b7735750e5e2532aeabbc299e0d6858e3a0edb84495e11/README.md +22 -0
  314. package/vendor/components/sha256/d4159ba1206d094364b7735750e5e2532aeabbc299e0d6858e3a0edb84495e11/index.js +59 -0
  315. package/vendor/components/sha256/d92842c606795528d1246ddb050ac275e1b72659629185750a6e9ac7fdb763a3/README.md +20 -0
  316. package/vendor/components/sha256/d92842c606795528d1246ddb050ac275e1b72659629185750a6e9ac7fdb763a3/index.js +162 -0
  317. package/vendor/components/sha256/de611e2477042b14eb9c04bb98ad0bbe6d7b44ca829213dd1a7a2b94d8f946ae/CHANGELOG.md +33 -0
  318. package/vendor/components/sha256/de611e2477042b14eb9c04bb98ad0bbe6d7b44ca829213dd1a7a2b94d8f946ae/README.md +46 -0
  319. package/vendor/components/sha256/de611e2477042b14eb9c04bb98ad0bbe6d7b44ca829213dd1a7a2b94d8f946ae/demo.html +43 -0
  320. package/vendor/components/sha256/de611e2477042b14eb9c04bb98ad0bbe6d7b44ca829213dd1a7a2b94d8f946ae/index.js +278 -0
  321. package/vendor/components/sha256/de90044c2961a30c88570e41d0c41bfc5037fe691f6f81e12d8e9d3545cd6ec4/CHANGELOG.md +15 -0
  322. package/vendor/components/sha256/de90044c2961a30c88570e41d0c41bfc5037fe691f6f81e12d8e9d3545cd6ec4/README.md +25 -0
  323. package/vendor/components/sha256/de90044c2961a30c88570e41d0c41bfc5037fe691f6f81e12d8e9d3545cd6ec4/demo.html +48 -0
  324. package/vendor/components/sha256/de90044c2961a30c88570e41d0c41bfc5037fe691f6f81e12d8e9d3545cd6ec4/index.js +88 -0
  325. package/vendor/components/sha256/de9607f86221006e7bad43f1f661c751d9a6f8f9c62da5c7e0d7f1249b9afcd6/README.md +25 -0
  326. package/vendor/components/sha256/de9607f86221006e7bad43f1f661c751d9a6f8f9c62da5c7e0d7f1249b9afcd6/index.js +122 -0
  327. package/vendor/components/sha256/e6b022135d0a0bd85a508404f46005986b14d0d175af7ca54b4d024b1e490318/CHANGELOG.md +20 -0
  328. package/vendor/components/sha256/e6b022135d0a0bd85a508404f46005986b14d0d175af7ca54b4d024b1e490318/README.md +23 -0
  329. package/vendor/components/sha256/e6b022135d0a0bd85a508404f46005986b14d0d175af7ca54b4d024b1e490318/demo.html +236 -0
  330. package/vendor/components/sha256/e6b022135d0a0bd85a508404f46005986b14d0d175af7ca54b4d024b1e490318/index.js +572 -0
  331. package/vendor/components/sha256/e6bbe784ee452d52d534b8fb3a0924e65c49bbb5926139ef5eabd9193500b357/CHANGELOG.md +29 -0
  332. package/vendor/components/sha256/e6bbe784ee452d52d534b8fb3a0924e65c49bbb5926139ef5eabd9193500b357/README.md +23 -0
  333. package/vendor/components/sha256/e6bbe784ee452d52d534b8fb3a0924e65c49bbb5926139ef5eabd9193500b357/demo.html +33 -0
  334. package/vendor/components/sha256/e6bbe784ee452d52d534b8fb3a0924e65c49bbb5926139ef5eabd9193500b357/index.js +121 -0
  335. package/vendor/components/sha256/eb5efa15920d9883af15d105cc0f7a9b2c781d792faae34a43d44738138b219f/CHANGELOG.md +29 -0
  336. package/vendor/components/sha256/eb5efa15920d9883af15d105cc0f7a9b2c781d792faae34a43d44738138b219f/README.md +32 -0
  337. package/vendor/components/sha256/eb5efa15920d9883af15d105cc0f7a9b2c781d792faae34a43d44738138b219f/demo.html +56 -0
  338. package/vendor/components/sha256/eb5efa15920d9883af15d105cc0f7a9b2c781d792faae34a43d44738138b219f/index.js +232 -0
  339. package/vendor/components/sha256/ebded96e5827ecf359b73ac0d50a807227d9a06294bd5dabc84263e32c0eeebe/CHANGELOG.md +25 -0
  340. package/vendor/components/sha256/ebded96e5827ecf359b73ac0d50a807227d9a06294bd5dabc84263e32c0eeebe/README.md +71 -0
  341. package/vendor/components/sha256/ebded96e5827ecf359b73ac0d50a807227d9a06294bd5dabc84263e32c0eeebe/demo.html +76 -0
  342. package/vendor/components/sha256/ebded96e5827ecf359b73ac0d50a807227d9a06294bd5dabc84263e32c0eeebe/index.js +777 -0
  343. package/vendor/components/sha256/ed44804fc14b2755a82960d94cb0322858732ad789fd9a46704ee88955bd65e6/CHANGELOG.md +33 -0
  344. package/vendor/components/sha256/ed44804fc14b2755a82960d94cb0322858732ad789fd9a46704ee88955bd65e6/README.md +28 -0
  345. package/vendor/components/sha256/ed44804fc14b2755a82960d94cb0322858732ad789fd9a46704ee88955bd65e6/demo.html +236 -0
  346. package/vendor/components/sha256/ed44804fc14b2755a82960d94cb0322858732ad789fd9a46704ee88955bd65e6/index.js +600 -0
  347. package/vendor/components/sha256/ee8519d664179e6b6bb6d2f8cc5b1c07a0ebf3871a8681d28ddd08fecd5f3388/CHANGELOG.md +16 -0
  348. package/vendor/components/sha256/ee8519d664179e6b6bb6d2f8cc5b1c07a0ebf3871a8681d28ddd08fecd5f3388/README.md +38 -0
  349. package/vendor/components/sha256/ee8519d664179e6b6bb6d2f8cc5b1c07a0ebf3871a8681d28ddd08fecd5f3388/demo.html +115 -0
  350. package/vendor/components/sha256/ee8519d664179e6b6bb6d2f8cc5b1c07a0ebf3871a8681d28ddd08fecd5f3388/index.js +361 -0
  351. package/vendor/components/sha256/ef969fa27f1e11aa52a174874292366c7c8201c7c0d8236a7aef7d7eacf6a177/CHANGELOG.md +27 -0
  352. package/vendor/components/sha256/ef969fa27f1e11aa52a174874292366c7c8201c7c0d8236a7aef7d7eacf6a177/README.md +27 -0
  353. package/vendor/components/sha256/ef969fa27f1e11aa52a174874292366c7c8201c7c0d8236a7aef7d7eacf6a177/demo.html +42 -0
  354. package/vendor/components/sha256/ef969fa27f1e11aa52a174874292366c7c8201c7c0d8236a7aef7d7eacf6a177/index.js +233 -0
  355. package/vendor/components/sha256/f268cf809438c8af63a42f9c9121110fc7263e4d705c40c6206ce46cf7ec167b/README.md +23 -0
  356. package/vendor/components/sha256/f268cf809438c8af63a42f9c9121110fc7263e4d705c40c6206ce46cf7ec167b/index.js +180 -0
  357. package/vendor/components/sha256/f3f55f5ee11ebc66656ca40ff23cd2df6a48f09a2380469f96f8f48033ddf2f7/CHANGELOG.md +31 -0
  358. package/vendor/components/sha256/f3f55f5ee11ebc66656ca40ff23cd2df6a48f09a2380469f96f8f48033ddf2f7/README.md +36 -0
  359. package/vendor/components/sha256/f3f55f5ee11ebc66656ca40ff23cd2df6a48f09a2380469f96f8f48033ddf2f7/demo.html +50 -0
  360. package/vendor/components/sha256/f3f55f5ee11ebc66656ca40ff23cd2df6a48f09a2380469f96f8f48033ddf2f7/index.js +263 -0
  361. package/vendor/components/sha256/fa8c1e548234bdbfa401bb4b085c5ef24d607a006c377c8c1cf3bcfc52427a5e/CHANGELOG.md +20 -0
  362. package/vendor/components/sha256/fa8c1e548234bdbfa401bb4b085c5ef24d607a006c377c8c1cf3bcfc52427a5e/README.md +39 -0
  363. package/vendor/components/sha256/fa8c1e548234bdbfa401bb4b085c5ef24d607a006c377c8c1cf3bcfc52427a5e/demo.html +66 -0
  364. package/vendor/components/sha256/fa8c1e548234bdbfa401bb4b085c5ef24d607a006c377c8c1cf3bcfc52427a5e/index.js +258 -0
  365. package/vendor/components/sha256/fadd24868e2730ec14b8f3f1e9cb75b8577a48b8d71beaa12ef089f7a3ba0a7d/README.md +22 -0
  366. package/vendor/components/sha256/fadd24868e2730ec14b8f3f1e9cb75b8577a48b8d71beaa12ef089f7a3ba0a7d/index.js +37 -0
  367. package/vendor/components/sha256/faf6a2f0b5df589639de624e75c5b20594f517e4426f6415d152809249b00b92/README.md +19 -0
  368. package/vendor/components/sha256/faf6a2f0b5df589639de624e75c5b20594f517e4426f6415d152809249b00b92/index.js +200 -0
  369. package/vendor/components/sha256/fd07adeb4b775e139092dd69a3fcbca4528d08e67be6b9e9cf53d4fd06be775b/CHANGELOG.md +25 -0
  370. package/vendor/components/sha256/fd07adeb4b775e139092dd69a3fcbca4528d08e67be6b9e9cf53d4fd06be775b/README.md +32 -0
  371. package/vendor/components/sha256/fd07adeb4b775e139092dd69a3fcbca4528d08e67be6b9e9cf53d4fd06be775b/demo.html +51 -0
  372. package/vendor/components/sha256/fd07adeb4b775e139092dd69a3fcbca4528d08e67be6b9e9cf53d4fd06be775b/index.js +270 -0
  373. package/vendor/components/sha256/ffac8bd95044aeb032b20dc8412ced70d09759d993955ef66697d4f2aa7f97a5/CHANGELOG.md +19 -0
  374. package/vendor/components/sha256/ffac8bd95044aeb032b20dc8412ced70d09759d993955ef66697d4f2aa7f97a5/README.md +34 -0
  375. package/vendor/components/sha256/ffac8bd95044aeb032b20dc8412ced70d09759d993955ef66697d4f2aa7f97a5/demo.html +60 -0
  376. package/vendor/components/sha256/ffac8bd95044aeb032b20dc8412ced70d09759d993955ef66697d4f2aa7f97a5/index.js +209 -0
  377. package/vendor/components-2/manifest-2.2.0.json +1868 -0
  378. package/vendor/csl/SOURCE.json +17 -0
  379. package/vendor/csl/locales/locales-en-US.xml +864 -0
  380. package/vendor/csl/locales/locales-ja-JP.xml +676 -0
  381. package/vendor/csl/styles/apa.csl +2278 -0
  382. package/vendor/csl/styles/ieee.csl +519 -0
  383. package/vendor/csl/styles/sist02.csl +273 -0
  384. package/vendor/egatari-spec/SOURCE.json +3 -3
  385. package/vendor/egatari-spec/schema/deck-meta.schema.json +6 -0
@@ -439,9 +439,6 @@ export const PACK = {
439
439
  "m-hist": [
440
440
  "spread"
441
441
  ],
442
- "m-kakijun": [
443
- "process"
444
- ],
445
442
  "m-map-japan": [
446
443
  "spatial"
447
444
  ],
@@ -518,10 +515,6 @@ export const PACK = {
518
515
  "fade",
519
516
  "grow"
520
517
  ],
521
- "m-kakijun": [
522
- "draw",
523
- "pen"
524
- ],
525
518
  "m-kanbun": [],
526
519
  "m-keyboard": [
527
520
  "light",
@@ -648,10 +641,6 @@ export const PACK = {
648
641
  "tag": "m-hist",
649
642
  "set": "stats"
650
643
  },
651
- {
652
- "tag": "m-kakijun",
653
- "set": "kokugo"
654
- },
655
644
  {
656
645
  "tag": "m-kanbun",
657
646
  "set": "kokugo"
@@ -747,11 +736,12 @@ export const PACK = {
747
736
  ],
748
737
  "extra": [
749
738
  "m-codetree",
750
- "m-collect"
739
+ "m-collect",
740
+ "m-kakijun"
751
741
  ],
752
- "partsSrc": "https://github.com/egatari/components/blob/v2.1.2/components/",
742
+ "partsSrc": "https://github.com/egatari/components/blob/v2.2.0/components/",
753
743
  "en": {
754
- "common": "# Instructions for the AI\n\nPack version: `b47ccdba`\n\nYou will write one short **Egatari lesson**: an HTML slide deck with step-by-step reveals (`deck.html`) and a spoken script for it (`narration.md`). Both files are built and quality-checked automatically; anything not described here is not available. Write the lesson in the language the user asks for (slides and narration in the same language). Standards have ids such as **R-fit**; a fix request names the standards a draft broke. The user's request is in **What I want** at the end (or in the conversation before it): choose sensibly for any field that is empty or missing, and if both A and B are left, follow the one with content.\n\n**Before you start (the most common failures):**\n\n- **Both code blocks must be complete and closed.** Never stop in the middle of a block (R-output). Without an outline, keep the lesson short (5–8 slides). When the request gives an outline and a range of its slides, write exactly the slides of that range: the editor asks for at most 6 at a time, so they fit.\n- **Sizes on the 1280×720 slide** (the quality checker measures them, R-fit): the body area is 1184 × 443 px (to 565 px; 1184 × 558 with `noconcl`). Body text is 32 px with 46 px per line, so about **8 lines** fit; every overflowing 46 px is one line to cut. **All text, also inside figures and components, is at least 24 px.**\n- **Charts and figures:** components draw their labels at 24–28 px whatever their size (their SVG uses their own pixels), so size the component, not the text. A component of 380 px leaves room for one short line; with two lines, use 330 px.\n- **Inline `<svg>`:** its text is scaled by displayed width ÷ viewBox width, so write the viewBox in the pixels it is shown at, e.g. `<svg viewBox=\"0 0 560 320\" width=\"560\" height=\"320\">`, with `font-size` ≥ 24. Never combine `width:100%` with another viewBox width (a 600-wide viewBox shown 580 px wide turns 24 into 23.2 px). Prefer a component when one fits.\n\n## 1. Output format\n\n- **R-output** Reply with **exactly two fenced code blocks**, in this order, labelled `deck.html` and `narration.md` (the opening lines are ```` ```deck.html ```` and ```` ```narration.md ````). Put nothing between them; a one-line note before or after is fine. Never split a file over several blocks. Do not output files, a canvas or attachments: write both code blocks in the body of your chat message. Do not reference other files (no images, no `{{FIG:…}}`, no `{{JSON:…}}`, no external URLs, no `<link>`), and never stop in the middle of a block: if the deck would be too long, make fewer slides (but for a range of an outline, write exactly the requested slides).\n- **R-outline** When the request asks for an **outline only** (a long lesson made in two passes), reply with exactly one fenced code block labelled `outline` (the opening line is ```` ```outline ````) and no `deck.html` or `narration.md`: a Markdown table with the columns `#`, heading and point (one line), one row per slide, every slide of the lesson in order. Each later request names a range (“slides 7–12 of the outline”): write exactly those slides, following their headings and points.\n- **R-noids** Do **not** write slide ids. Write `<section class=\"slide\">` without `id`, and narration headings without `{#…}`. The editor adds ids after import. When you are given a deck that already has ids (a fix request), keep every existing `id=\"…\"` and `{#…}` exactly as it is.\n\n## 2. deck.html\n\n### 2.1 Skeleton\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>Lesson title</title>\n</head>\n<body>\n<div id=\"stage\">\n <section class=\"slide cover noconcl static\"> … </section>\n <section class=\"slide\"> … </section>\n</div>\n</body>\n</html>\n```\n\n- `lang`: `en`, `ja`, … (the language of the lesson). `data-theme`: `sumi` for business and pitch decks, `kokugo` for Japanese language arts, otherwise `default`.\n- No `<script>` except component data (§2.6), no `<link>`. A `<style>` block is allowed only for layout (sizes, gaps), never colors.\n\n### 2.2 Slides\n\n- Normal slide: `<h2>` heading, `<div class=\"body\">…</div>`, then `<div class=\"concl\"><span>…</span></div>` (the conclusion line: one short sentence).\n- Cover: `<section class=\"slide cover noconcl static\">` with optional `<div class=\"venue\">…</div>`, `<h1>title</h1>`, optional `<div class=\"au\">…</div>`.\n- Chapter divider: `<section class=\"slide sec noconcl static\"><h1>chapter title</h1></section>`.\n- Classes on `<section>`: `noconcl` (no conclusion line), `static` (no steps), `nostep` (all list items visible from the start), `layout-tate` (Japanese vertical writing; only with the kokugo part set, which describes it), and the `data-morph` attribute (§2.5).\n- Inside `.body`: `<p class=\"sub\">` sub-heading, `<div class=\"big\">` main equation, `<p class=\"note\">` note, `<div class=\"thm\">` theorem box, `<div class=\"cols\">` side-by-side columns, ordinary `<p>`, `<ul>`, `<ol>`, `<table>`.\n- Inline emphasis (the only way to color text): `term` (term or question), `emph` (conclusion, problem, goal), `muted` (known result, de-emphasized), `b` (bold).\n- **R-headings** Every slide heading (`h1` on the cover and dividers, `h2` elsewhere) is **different** from all the others (add a word if two would be the same), and the narration section of that slide starts with `## ` followed by **exactly the same heading text** (tags such as `<br>` dropped).\n- **R-colors** Colors only through the theme: the classes above and the math macros `\\hlE` `\\hlT` `\\hlM`; no hex, `rgb()`, named colors, `\\color` or `\\textcolor`. In a component or inline SVG: **Use only the theme's CSS variables for colors**: `var(--fg)` `var(--term)` `var(--emph)` `var(--muted)` `var(--accent2)` `var(--line)`. In SVG write `style=\"stroke:var(--emph)\"` rather than an attribute (`DECK.el` moves `fill` and `stroke` into style automatically when they contain `var(`)\n\n### 2.3 Steps (reveal order = speaking order)\n\n- **R-steps** Step 0 is the slide as it first appears: context only (heading, sub-heading, one framing sentence). An element with `data-step=\"k\"` (k = 1, 2, …) appears at step k; material (list items, equations, table rows, figure parts) appears in the order you talk about it. An equation and the sentence that introduces it share one step (wrap both in `<div data-step=\"k\">`). About 5 steps per slide at most.\n- The conclusion line automatically becomes the **last step**, `concl`; never put `data-step` on it.\n- If a slide has **no** `data-step` anywhere, its top-level list items (`.body > ul > li`, `.body > ol > li`) are numbered 1, 2, … automatically. As soon as any element has `data-step`, nothing is automatic: give every revealed element its `data-step`.\n- A component adds its own steps (§3), starting at its `data-from` (default 1).\n- So the steps of a slide are `0 … max` plus `concl` if it has a conclusion line. A `static` slide has only step 0.\n\n### 2.4 Math (KaTeX, rendered at build time)\n\n- **R-math** Inline `\\( … \\)`, display `\\[ … \\]`. Write `<` as `\\lt` and `>` as `\\gt` inside math. Allowed macros besides standard KaTeX: `\\hlE{…}` (emph) `\\hlT{…}` (term) `\\hlM{…}` (muted), `\\htmlId{ID}{…}`, `\\htmlData{mark=ID}{…}`, `\\htmlClass{…}{…}`, `\\morph{ID}{…}`. No `\\newcommand`, no `\\color`. Define each symbol where it is first used (`\\(\\mu\\)`: the mean).\n\n### 2.5 Attention marks and morphs\n\n- **R-marks** The narration’s `{mark:ID}` (§4) marks a target on the **same slide**. Targets: an element in the slide with `id=\"ID\"` or `data-mark=\"ID\"`. For part of an equation, KaTeX's `\\htmlId{ID}{…}` / `\\htmlData{mark=ID}{…}` (the build allows only these two and `\\htmlClass`). If the same ID is used on several slides, use `data-mark` (ids must be unique in the document)\n- Morph (optional): `<section class=\"slide\" data-morph>` slides elements from the previous slide into place; pair elements with the same `data-id=\"…\"` on both slides, or equation parts with `\\morph{ID}{…}` on both. Only elements visible at step 0 move.\n\n### 2.6 Components\n\n- **R-components** Animated figures are the Web Components `<m-…>` of the catalog (§3), used inside `.body`. Give each a height (`style=\"height:380px\"`) and an `aria-label`. Data goes in **one** child `<script type=\"application/json\">…</script>` written inline (never `{{JSON:…}}`). **Numbers in figures must be correct** (compute them; never invent values for looks; label made-up business figures as fictional). Function formulas are arithmetic expressions only (`Math.exp(x)`, `x**2`); they are never run as code. Use components only where motion explains something; most slides need none.\n\n### 2.7 Choosing a representation\n\n- **R-purpose** Choose the representation from what the slide must say, not from habit. If the author names a chart type, use it. The table lists every part; use only those in the text you were given (§3, and the part sets included). If a part that is not included would fit better, say so in a one-line note.\n\n{{PURPOSES}}\n\n- **R-whole** Lists, KPI cards and pies are shown whole; do not reveal them line by line unless the narration discusses each item in turn (for a list, give it one `data-step` or put `nostep` on the slide).\n\n### 2.8 Fitting the slide (1280×720; the quality checker reports errors)\n\n- **R-title** Heading: Japanese at most 26 units (full-width character = 1, ASCII = 0.5); English at most 60 characters. Never ends with a colon.\n- **R-concl** Conclusion line: Japanese at most 35 units; English at most 70 characters. One line.\n- **R-fit** The body must end above 565 px (680 px with `noconcl`): about 8 lines / 100 Japanese characters / 60 English words per slide, or one `big` equation and 3 short bullets, or a component of height ≤ 380 px and one short line (≤ 330 px with two). If it does not fit, split the slide; never shrink text and never set font sizes. Text in figures is at least 24 px.\n- **R-style** Japanese slides: plain style (だ・である, 体言止め), no です・ます on slides, one punctuation style in the whole deck (`、。` or `,.`). English slides: short phrases, sentence case.\n\n## 3. Component catalog\n\nThese standard components may be used in any lesson; a part set, when it is included after §6, adds the components of its kind of material. Generated from the component READMEs (their notes are in Japanese). “steps” is how many slide steps a component uses (from `data-from`, default 1). Timing attributes (durations and delays in seconds) are not listed; their defaults fit the narration. Attribute values of type json are written as JSON in the attribute (`values=\"[0.1,0.5]\"`). In “data shape”, `?` marks an optional field; where no type is written, label, tex, note and tone are str, step is int and at is num.\n\n{{CATALOG}}\n\n## 4. narration.md\n\n```markdown\n# Narration: <lesson title>\n\n## The decay law\n[0] Here is the decay law. We follow how many atoms are left.\n[1] The number left is the starting number times a shrinking exponential.\n[2] {mark:n0|circle}{N₀|N naught} is the number at the start, at time zero.\n[concl] The half-life depends only on the decay constant.\n```\n\n- One section per slide, **in slide order, for every slide (cover included)**: `## <slide heading>` (R-headings), no `{#id}` (R-noids).\n- **R-narr-steps** Step markers `[0]`, `[1]`, … and `[concl]`. **Every step of every slide has narration** (step 0 to max, and `[concl]` if the slide has a conclusion line), and there are **no markers for steps that do not exist** (a `static` cover has only `[0]`; a slide without a conclusion line has no `[concl]`; never `[01]`). Within a step, talk only about what appears at that step.\n- **R-dialogue** **One narrator by default**: write no speaker names. Write a dialogue only when asked (if asked for three or more speakers, keep two roles and say so first): lines start with `Expert:` or `Novice:` (continuation lines indented; a line without a speaker is Expert), shaped as a cognitive apprenticeship:\n - Novice is never a mere backchannel: Novice voices the question a learner is likely to have, or paraphrases (“So …, is that right?”)\n - Expert answers and adds one example or analogy, or confirms (or corrects) the paraphrase and takes one step further\n - Only at a comprehension fork (where learners tend to misunderstand, or a “why” remains): at most one exchange per slide, 2–3 turns. Elsewhere Expert alone\n - Never a turn that is only “I see”, or that repeats the previous turn. Example: `Novice: So a larger rate always gets there faster?` `Expert: Not always. Too large, and each step jumps across the valley, like striding downhill onto the opposite slope.`\n- `{note:…}`: presenter directions.\n- `{cue}`: a sync point inside a step, one per entry of the component’s `cues(k)` (only where a component’s README asks for it; otherwise omit).\n- `{mark:ID}`, `{mark:ID|effect}`, `{mark:ID|effect|hold=seconds}`, `{mark:clear}`: placed **right before** the words about the target; at most 1–2 per step; still say the thing in words. Effects: `underline` (default; a hand-drawn underline from left to right), `circle` (a hand-drawn circle), `box` (a rounded frame), `spot` (dims everything except the area around the target with the background color), `laser` (a dot of light slides to below the target and stays briefly)\n- **R-reading** `{display|reading}` gives the reading of **one symbol or one term**: `{θ|theta}`, `{N₀|N naught}`, `{x̄|x bar}`, `{論語|ろんご}`. One symbol may carry a star, a prime, a subscript or superscript, or a hat/bar/tilde (`{Q*|Q star}`, `{x′|x prime}`, `{θ̂|theta hat}`). Write the display part in plain Unicode, not LaTeX, and never as an expression or several symbols (`{1-η|…}`, `{a*b|…}` and `{θとη|…}` are wrong: give each symbol its own reading and say the relation in words).\n- **R-formula** **Never read an equation aloud**: no LaTeX, no `\\`, `^`, `_`, and no strings such as `a + b = c` in the narration. Say what the equation means (“the number left is the starting number times a shrinking exponential”).\n- Japanese narration is polite spoken Japanese (です・ます); English narration is plain spoken English. About 5 Japanese characters or 2.5 English words per second; 1–3 sentences per turn.\n\n## 5. Fix requests\n\nWhen the user pastes a **fix request** (a list of findings with the ids of the standards, followed by the current files), fix exactly those findings, keep everything else, keep every `id=\"…\"` and `{#…}` unchanged (R-noids), and reply again with the two blocks (R-output). If the request contains only some slides, return only those `<section>` elements in the `deck.html` block (no `<html>`) and only their sections in the `narration.md` block; the editor puts them back in place by id.\n\n## 6. Worked example\n\nA small lesson, fictional, showing the structure only (do not copy its content). Note how the steps add up: the list of 2 items gives steps 1–2 and `[concl]`<!--part:m-flow-->; the `m-flow` with 4 boxes gives steps 1–4<!--/part-->. The static cover has `[0]` only. Some part sets end with an example of their own.\n\n### Common (English, default theme, marks<!--part:m-flow-->, m-flow<!--/part-->)\n\n```deck.html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>How a web page arrives</title>\n</head>\n<body>\n<div id=\"stage\">\n\n<section class=\"slide cover noconcl static\">\n <div class=\"venue\">Computing basics, lesson 1 (a fictional course)</div>\n <h1>How a web page arrives</h1>\n</section>\n\n<section class=\"slide\">\n <h2>Two programs take part</h2>\n <div class=\"body\">\n <p>Opening a page is a conversation between two programs.</p>\n <ul>\n <li id=\"browser\">The <span class=\"term\">browser</span> asks for the page and draws it</li>\n <li id=\"server\">The <span class=\"term\">server</span> keeps the page and sends it back</li>\n </ul>\n </div>\n <div class=\"concl\"><span>Every page load is a request and a reply</span></div>\n</section><!--part:m-flow-->\n\n<section class=\"slide\">\n <h2>From the address to the screen</h2>\n <div class=\"body\">\n <m-flow style=\"height:300px\" aria-label=\"Four stages: type the address, send a request, send the page back, draw the page\">\n <script type=\"application/json\">{\"nodes\": [\n {\"id\": \"a\", \"label\": \"Type the\\naddress\", \"x\": 10, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 1},\n {\"id\": \"b\", \"label\": \"Send a\\nrequest\", \"x\": 315, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 2},\n {\"id\": \"c\", \"label\": \"Send the\\npage back\", \"x\": 620, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 3, \"tone\": \"term\"},\n {\"id\": \"d\", \"label\": \"Draw the\\npage\", \"x\": 925, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 4, \"tone\": \"emph\"}\n ], \"edges\": [\n {\"from\": \"a\", \"to\": \"b\"}, {\"from\": \"b\", \"to\": \"c\"}, {\"from\": \"c\", \"to\": \"d\"}\n ]}</script>\n </m-flow>\n </div>\n <div class=\"concl\"><span>A slow page is slow in one of these four stages</span></div>\n</section><!--/part-->\n\n</div>\n</body>\n</html>\n```\n\n```narration.md\n# Narration: How a web page arrives\n\n## How a web page arrives\n[0] Today we follow a web page on its way from a server to your screen.\n\n## Two programs take part\n[0] Opening a page is a conversation between two programs.\n[1] {mark:browser}The browser is the program you look at. It asks for the page and then draws it.\n[2] {mark:server}The server is a program on another computer. It keeps the page and sends it back when asked.\n[concl] Every page load is a request and a reply.<!--part:m-flow-->\n\n## From the address to the screen\n[0] Let us put the steps in order.\n[1] First you type the address of the page.\n[2] The browser turns it into a request and sends it to the server.\n[3] The server finds the page and sends it back.\n[4] The browser draws the page on the screen.\n[concl] When a page is slow, one of these four stages is taking the time.<!--/part-->\n```",
744
+ "common": "# Instructions for the AI\n\nPack version: `68eeb33a`\n\nYou will write one short **Egatari lesson**: an HTML slide deck with step-by-step reveals (`deck.html`) and a spoken script for it (`narration.md`). Both files are built and quality-checked automatically; anything not described here is not available. Write the lesson in the language the user asks for (slides and narration in the same language). Standards have ids such as **R-fit**; a fix request names the standards a draft broke. The user's request is in **What I want** at the end (or in the conversation before it): choose sensibly for any field that is empty or missing, and if both A and B are left, follow the one with content.\n\n**Before you start (the most common failures):**\n\n- **Both code blocks must be complete and closed.** Never stop in the middle of a block (R-output). Without an outline, keep the lesson short (5–8 slides). When the request gives an outline and a range of its slides, write exactly the slides of that range: the editor asks for at most 6 at a time, so they fit.\n- **Sizes on the 1280×720 slide** (the quality checker measures them, R-fit): the body area is 1184 × 443 px (to 565 px; 1184 × 558 with `noconcl`). Body text is 32 px with 46 px per line, so about **8 lines** fit; every overflowing 46 px is one line to cut. **All text, also inside figures and components, is at least 24 px.**\n- **Charts and figures:** components draw their labels at 24–28 px whatever their size (their SVG uses their own pixels), so size the component, not the text. A component of 380 px leaves room for one short line; with two lines, use 330 px.\n- **Inline `<svg>`:** its text is scaled by displayed width ÷ viewBox width, so write the viewBox in the pixels it is shown at, e.g. `<svg viewBox=\"0 0 560 320\" width=\"560\" height=\"320\">`, with `font-size` ≥ 24. Never combine `width:100%` with another viewBox width (a 600-wide viewBox shown 580 px wide turns 24 into 23.2 px). Prefer a component when one fits.\n\n## 1. Output format\n\n- **R-output** Reply with **exactly two fenced code blocks**, in this order, labelled `deck.html` and `narration.md` (the opening lines are ```` ```deck.html ```` and ```` ```narration.md ````). Put nothing between them; a one-line note before or after is fine. Never split a file over several blocks. Do not output files, a canvas or attachments: write both code blocks in the body of your chat message. Do not reference other files (no images, no `{{FIG:…}}`, no `{{JSON:…}}`, no external URLs, no `<link>`), and never stop in the middle of a block: if the deck would be too long, make fewer slides (but for a range of an outline, write exactly the requested slides).\n- **R-outline** When the request asks for an **outline only** (a long lesson made in two passes), reply with exactly one fenced code block labelled `outline` (the opening line is ```` ```outline ````) and no `deck.html` or `narration.md`: a Markdown table with the columns `#`, heading and point (one line), one row per slide, every slide of the lesson in order. Each later request names a range (“slides 7–12 of the outline”): write exactly those slides, following their headings and points.\n- **R-noids** Do **not** write slide ids. Write `<section class=\"slide\">` without `id`, and narration headings without `{#…}`. The editor adds ids after import. When you are given a deck that already has ids (a fix request), keep every existing `id=\"…\"` and `{#…}` exactly as it is.\n\n## 2. deck.html\n\n### 2.1 Skeleton\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>Lesson title</title>\n</head>\n<body>\n<div id=\"stage\">\n <section class=\"slide cover noconcl static\"> … </section>\n <section class=\"slide\"> … </section>\n</div>\n</body>\n</html>\n```\n\n- `lang`: `en`, `ja`, … (the language of the lesson). `data-theme`: `sumi` for business and pitch decks, `kokugo` for Japanese language arts, otherwise `default`.\n- No `<script>` except component data (§2.6), no `<link>`. A `<style>` block is allowed only for layout (sizes, gaps), never colors.\n\n### 2.2 Slides\n\n- Normal slide: `<h2>` heading, `<div class=\"body\">…</div>`, then `<div class=\"concl\"><span>…</span></div>` (the conclusion line: one short sentence).\n- Cover: `<section class=\"slide cover noconcl static\">` with optional `<div class=\"venue\">…</div>`, `<h1>title</h1>`, optional `<div class=\"au\">…</div>`.\n- Chapter divider: `<section class=\"slide sec noconcl static\"><h1>chapter title</h1></section>`.\n- Classes on `<section>`: `noconcl` (no conclusion line), `static` (no steps), `nostep` (all list items visible from the start), `layout-tate` (Japanese vertical writing; only with the kokugo part set, which describes it), and the `data-morph` attribute (§2.5).\n- Inside `.body`: `<p class=\"sub\">` sub-heading, `<div class=\"big\">` main equation, `<p class=\"note\">` note, `<div class=\"thm\">` theorem box, `<div class=\"cols\">` side-by-side columns, ordinary `<p>`, `<ul>`, `<ol>`, `<table>`.\n- Inline emphasis (the only way to color text): `term` (term or question), `emph` (conclusion, problem, goal), `muted` (known result, de-emphasized), `b` (bold).\n- **R-headings** Every slide heading (`h1` on the cover and dividers, `h2` elsewhere) is **different** from all the others (add a word if two would be the same), and the narration section of that slide starts with `## ` followed by **exactly the same heading text** (tags such as `<br>` dropped).\n- **R-colors** Colors only through the theme: the classes above and the math macros `\\hlE` `\\hlT` `\\hlM`; no hex, `rgb()`, named colors, `\\color` or `\\textcolor`. In a component or inline SVG: **Use only the theme's CSS variables for colors**: `var(--fg)` `var(--term)` `var(--emph)` `var(--muted)` `var(--accent2)` `var(--line)`. In SVG write `style=\"stroke:var(--emph)\"` rather than an attribute (`DECK.el` moves `fill` and `stroke` into style automatically when they contain `var(`)\n\n### 2.3 Steps (reveal order = speaking order)\n\n- **R-steps** Step 0 is the slide as it first appears: context only (heading, sub-heading, one framing sentence). An element with `data-step=\"k\"` (k = 1, 2, …) appears at step k; material (list items, equations, table rows, figure parts) appears in the order you talk about it. An equation and the sentence that introduces it share one step (wrap both in `<div data-step=\"k\">`). About 5 steps per slide at most.\n- The conclusion line automatically becomes the **last step**, `concl`; never put `data-step` on it.\n- If a slide has **no** `data-step` anywhere, its top-level list items (`.body > ul > li`, `.body > ol > li`) are numbered 1, 2, … automatically. As soon as any element has `data-step`, nothing is automatic: give every revealed element its `data-step`.\n- A component adds its own steps (§3), starting at its `data-from` (default 1).\n- So the steps of a slide are `0 … max` plus `concl` if it has a conclusion line. A `static` slide has only step 0.\n\n### 2.4 Math (KaTeX, rendered at build time)\n\n- **R-math** Inline `\\( … \\)`, display `\\[ … \\]`. Write `<` as `\\lt` and `>` as `\\gt` inside math. Allowed macros besides standard KaTeX: `\\hlE{…}` (emph) `\\hlT{…}` (term) `\\hlM{…}` (muted), `\\htmlId{ID}{…}`, `\\htmlData{mark=ID}{…}`, `\\htmlClass{…}{…}`, `\\morph{ID}{…}`. No `\\newcommand`, no `\\color`. Define each symbol where it is first used (`\\(\\mu\\)`: the mean).\n\n### 2.5 Attention marks and morphs\n\n- **R-marks** The narration’s `{mark:ID}` (§4) marks a target on the **same slide**. Targets: an element in the slide with `id=\"ID\"` or `data-mark=\"ID\"`. For part of an equation, KaTeX's `\\htmlId{ID}{…}` / `\\htmlData{mark=ID}{…}` (the build allows only these two and `\\htmlClass`). If the same ID is used on several slides, use `data-mark` (ids must be unique in the document)\n- Morph (optional): `<section class=\"slide\" data-morph>` slides elements from the previous slide into place; pair elements with the same `data-id=\"…\"` on both slides, or equation parts with `\\morph{ID}{…}` on both. Only elements visible at step 0 move.\n\n### 2.6 Components\n\n- **R-components** Animated figures are the Web Components `<m-…>` of the catalog (§3), used inside `.body`. Give each a height (`style=\"height:380px\"`) and an `aria-label`. Data goes in **one** child `<script type=\"application/json\">…</script>` written inline (never `{{JSON:…}}`). **Numbers in figures must be correct** (compute them; never invent values for looks; label made-up business figures as fictional). Function formulas are arithmetic expressions only (`Math.exp(x)`, `x**2`); they are never run as code. Use components only where motion explains something; most slides need none.\n\n### 2.7 Choosing a representation\n\n- **R-purpose** Choose the representation from what the slide must say, not from habit. If the author names a chart type, use it. The table lists every part; use only those in the text you were given (§3, and the part sets included). If a part that is not included would fit better, say so in a one-line note.\n\n{{PURPOSES}}\n\n- **R-whole** Lists, KPI cards and pies are shown whole; do not reveal them line by line unless the narration discusses each item in turn (for a list, give it one `data-step` or put `nostep` on the slide).\n\n### 2.8 Fitting the slide (1280×720; the quality checker reports errors)\n\n- **R-title** Heading: Japanese at most 26 units (full-width character = 1, ASCII = 0.5); English at most 60 characters. Never ends with a colon.\n- **R-concl** Conclusion line: Japanese at most 35 units; English at most 70 characters. One line.\n- **R-fit** The body must end above 565 px (680 px with `noconcl`): about 8 lines / 100 Japanese characters / 60 English words per slide, or one `big` equation and 3 short bullets, or a component of height ≤ 380 px and one short line (≤ 330 px with two). If it does not fit, split the slide; never shrink text and never set font sizes. Text in figures is at least 24 px.\n- **R-style** Japanese slides: plain style (だ・である, 体言止め), no です・ます on slides, one punctuation style in the whole deck (`、。` or `,.`). English slides: short phrases, sentence case.\n\n## 3. Component catalog\n\nThese standard components may be used in any lesson; a part set, when it is included after §6, adds the components of its kind of material. Generated from the component READMEs (their notes are in Japanese). “steps” is how many slide steps a component uses (from `data-from`, default 1). Timing attributes (durations and delays in seconds) are not listed; their defaults fit the narration. Attribute values of type json are written as JSON in the attribute (`values=\"[0.1,0.5]\"`). In “data shape”, `?` marks an optional field; where no type is written, label, tex, note and tone are str, step is int and at is num. In a name or label, `*…*` is italic and `_` `^` make only the next character a subscript or superscript; to show the symbol itself, write the full-width _ ^ *.\n\n{{CATALOG}}\n\n## 4. narration.md\n\n```markdown\n# Narration: <lesson title>\n\n## The decay law\n[0] Here is the decay law. We follow how many atoms are left.\n[1] The number left is the starting number times a shrinking exponential.\n[2] {mark:n0|circle}{N₀|N naught} is the number at the start, at time zero.\n[concl] The half-life depends only on the decay constant.\n```\n\n- One section per slide, **in slide order, for every slide (cover included)**: `## <slide heading>` (R-headings), no `{#id}` (R-noids).\n- **R-narr-steps** Step markers `[0]`, `[1]`, … and `[concl]`. **Every step of every slide has narration** (step 0 to max, and `[concl]` if the slide has a conclusion line), and there are **no markers for steps that do not exist** (a `static` cover has only `[0]`; a slide without a conclusion line has no `[concl]`; never `[01]`). Within a step, talk only about what appears at that step.\n- **R-dialogue** **One narrator by default**: write no speaker names. Write a dialogue only when asked (if asked for three or more speakers, keep two roles and say so first): lines start with `Expert:` or `Novice:` (continuation lines indented; a line without a speaker is Expert), shaped as a cognitive apprenticeship:\n - Novice is never a mere backchannel: Novice voices the question a learner is likely to have, or paraphrases (“So …, is that right?”)\n - Expert answers and adds one example or analogy, or confirms (or corrects) the paraphrase and takes one step further\n - Only at a comprehension fork (where learners tend to misunderstand, or a “why” remains): at most one exchange per slide, 2–3 turns. Elsewhere Expert alone\n - Never a turn that is only “I see”, or that repeats the previous turn. Example: `Novice: So a larger rate always gets there faster?` `Expert: Not always. Too large, and each step jumps across the valley, like striding downhill onto the opposite slope.`\n- `{note:…}`: presenter directions.\n- `{cue}`: a sync point inside a step, one per entry of the component’s `cues(k)` (only where a component’s README asks for it; otherwise omit).\n- `{mark:ID}`, `{mark:ID|effect}`, `{mark:ID|effect|hold=seconds}`, `{mark:clear}`: placed **right before** the words about the target; at most 1–2 per step; still say the thing in words. Effects: `underline` (default; a hand-drawn underline from left to right), `circle` (a hand-drawn circle), `box` (a rounded frame), `spot` (dims everything except the area around the target with the background color), `laser` (a dot of light slides to below the target and stays briefly)\n- **R-reading** `{display|reading}` gives the reading of **one symbol or one term**: `{θ|theta}`, `{N₀|N naught}`, `{x̄|x bar}`, `{論語|ろんご}`. One symbol may carry a star, a prime, a subscript or superscript, or a hat/bar/tilde (`{Q*|Q star}`, `{x′|x prime}`, `{θ̂|theta hat}`). Write the display part in plain Unicode, not LaTeX, and never as an expression or several symbols (`{1-η|…}`, `{a*b|…}` and `{θとη|…}` are wrong: give each symbol its own reading and say the relation in words).\n- **R-formula** **Never read an equation aloud**: no LaTeX, no `\\`, `^`, `_`, and no strings such as `a + b = c` in the narration. Say what the equation means (“the number left is the starting number times a shrinking exponential”).\n- Japanese narration is polite spoken Japanese (です・ます); English narration is plain spoken English. About 5 Japanese characters or 2.5 English words per second; 1–3 sentences per turn.\n\n## 5. Fix requests\n\nWhen the user pastes a **fix request** (a list of findings with the ids of the standards, followed by the current files), fix exactly those findings, keep everything else, keep every `id=\"…\"` and `{#…}` unchanged (R-noids), and reply again with the two blocks (R-output). If the request contains only some slides, return only those `<section>` elements in the `deck.html` block (no `<html>`) and only their sections in the `narration.md` block; the editor puts them back in place by id.\n\n## 6. Worked example\n\nA small lesson, fictional, showing the structure only (do not copy its content). Note how the steps add up: the list of 2 items gives steps 1–2 and `[concl]`<!--part:m-flow-->; the `m-flow` with 4 boxes gives steps 1–4<!--/part-->. The static cover has `[0]` only. Some part sets end with an example of their own.\n\n### Common (English, default theme, marks<!--part:m-flow-->, m-flow<!--/part-->)\n\n```deck.html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>How a web page arrives</title>\n</head>\n<body>\n<div id=\"stage\">\n\n<section class=\"slide cover noconcl static\">\n <div class=\"venue\">Computing basics, lesson 1 (a fictional course)</div>\n <h1>How a web page arrives</h1>\n</section>\n\n<section class=\"slide\">\n <h2>Two programs take part</h2>\n <div class=\"body\">\n <p>Opening a page is a conversation between two programs.</p>\n <ul>\n <li id=\"browser\">The <span class=\"term\">browser</span> asks for the page and draws it</li>\n <li id=\"server\">The <span class=\"term\">server</span> keeps the page and sends it back</li>\n </ul>\n </div>\n <div class=\"concl\"><span>Every page load is a request and a reply</span></div>\n</section><!--part:m-flow-->\n\n<section class=\"slide\">\n <h2>From the address to the screen</h2>\n <div class=\"body\">\n <m-flow style=\"height:300px\" aria-label=\"Four stages: type the address, send a request, send the page back, draw the page\">\n <script type=\"application/json\">{\"nodes\": [\n {\"id\": \"a\", \"label\": \"Type the\\naddress\", \"x\": 10, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 1},\n {\"id\": \"b\", \"label\": \"Send a\\nrequest\", \"x\": 315, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 2},\n {\"id\": \"c\", \"label\": \"Send the\\npage back\", \"x\": 620, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 3, \"tone\": \"term\"},\n {\"id\": \"d\", \"label\": \"Draw the\\npage\", \"x\": 925, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 4, \"tone\": \"emph\"}\n ], \"edges\": [\n {\"from\": \"a\", \"to\": \"b\"}, {\"from\": \"b\", \"to\": \"c\"}, {\"from\": \"c\", \"to\": \"d\"}\n ]}</script>\n </m-flow>\n </div>\n <div class=\"concl\"><span>A slow page is slow in one of these four stages</span></div>\n</section><!--/part-->\n\n</div>\n</body>\n</html>\n```\n\n```narration.md\n# Narration: How a web page arrives\n\n## How a web page arrives\n[0] Today we follow a web page on its way from a server to your screen.\n\n## Two programs take part\n[0] Opening a page is a conversation between two programs.\n[1] {mark:browser}The browser is the program you look at. It asks for the page and then draws it.\n[2] {mark:server}The server is a program on another computer. It keeps the page and sends it back when asked.\n[concl] Every page load is a request and a reply.<!--part:m-flow-->\n\n## From the address to the screen\n[0] Let us put the steps in order.\n[1] First you type the address of the page.\n[2] The browser turns it into a request and sends it to the server.\n[3] The server finds the page and sends it back.\n[4] The browser draws the page on the screen.\n[concl] When a page is slow, one of these four stages is taking the time.<!--/part-->\n```",
755
745
  "request": "# What I want\n\n*(Fill in A or B and delete the other; delete fields you leave empty.)*\n\n**A. Make a new lesson**\n\n- Title (used as is on the cover):\n- Audience:\n- Length (slides or minutes):\n- Language:\n- Speakers: one narrator\n- Other wishes:\n\n**B. From the material and discussion in this chat**\n\nMake the lesson from the material given in this chat and what we have discussed so far.\n\n- Title (used as is on the cover):\n- Audience:\n- Length (slides or minutes):\n- Language:\n- Speakers: one narrator\n- Other wishes:",
756
746
  "sets": {
757
747
  "stats": "## Part set: stats (statistics charts)\n\nFor lessons and talks with data: distributions, box plots, heatmaps, and a distribution updated one observation at a time. Use the `default` theme. Give the source and the size of every data set on the slide or in the narration, and never invent data that looks real (R-components).\n\n- **Axis charts** (<!--part:m-hist-->`m-hist`, <!--/part--><!--part:m-boxplot-->`m-boxplot`, <!--/part--><!--part:m-seq-->`m-seq`, <!--/part-->and the like) reserve 86 px at the left and 80 px in all at the top and bottom for ticks and axis names: give them a height of **300–380 px** and a width of **at least 560 px** (in `<div class=\"cols\">`, give the chart column at least 55%).\n- Make the axis ranges contain every plotted value (computed as R-components says).\n\nComponents of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
@@ -768,7 +758,7 @@ export const PACK = {
768
758
  "m-bars": {
769
759
  "set": "standard",
770
760
  "row": "| `<m-bars>` | 棒を段階ごとに 0 から伸ばす(縦棒・横棒・組の棒・積み上げ棒)。値の軸の上限を段階で広げて「軸を突き抜ける伸び」も見せられる | 組の step と scale の step の最大(既定は組 1 つ = 1 段階。per-step で n 組ずつ) | `{groups:[{label?,value?:num,values?:num[],step?,at?,tone?} (value or values),…],series?:{label?,tone?}[],scale?:{step,max?:num,at?}[],max?:num}` |",
771
- "entry": "### `<m-bars>`\n\nData example (child `<script type=\"application/json\">`): `{\"series\":[{\"label\":\"売上\"}],\"groups\":[{\"label\":\"1 年目\",\"value\":1.2},{\"label\":\"2 年目\",\"value\":3.4}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `orient` | string | `\"v\"` | v(縦棒)か h(横棒。順位や比較に) |\n| `max` | number | `0` | 値の軸の上限(0 = 自動。scale があれば最初の上限) |\n| `unit` | string | `\"\"` | 値の単位(数字の後ろに付ける。億円、%、社 など) |\n| `digits` | number | `0` | 値の小数桁 |\n| `per-step` | number | `1` | 1 段階に出す組の数(0 = 全部を段階 1 で) |\n| `count` | bool | `false` | 値の数字を伸びに合わせて数え上げる |\n| `ticks` | bool | `true` | 値の軸の目盛りと格子 |\n| `al` | string | `\"\"` | 値の軸の名前 |\n| `stack` | bool | `false` | 組の値を 1 本に積み上げる(積み上げ棒) |\n\n年ごとの売上・費用、聞き取りの結果の順位、導入の前と後の比較など、量を 1 つずつ見せて比べるときに使う。\n\n- group:`label`(`\\n` で 2 行)、`value`(系列が 1 つ)か `values`(系列の数だけ)、`step`(既定は per-step から)、`at`(段階の中の開始秒。既定は同じ段階の中で stagger ずつずらす)、`tone`(`emph` などテーマの変数の名前。その組の棒をすべてその色にし、値の数字も同じ色にする)\n- series:`label`(最初の組の棒の上に直接書く。凡例は作らない)、`tone`(既定は `--series-1..4` の順。系列が 1 つなら `--term`)\n- scale:`[{\"step\": 3, \"max\": 27, \"at\": 0.4}]`。その段階の at 秒から zoom 秒かけて、値の軸の上限を max へ動かす(対数で補間)。動く間は前の上限までの範囲を薄い帯で残し、目盛りは前の組と次の組を入れ替える。上限を超える棒は軸の上端で止まり、上限が広がるにつれて伸びる\n- 横棒(`orient=\"h\"`)は組の名前を左に、値を棒の右に書く。順位を見せるなら `ticks=\"false\"` で目盛りを消してよい\n- 積み上げ棒(`stack=\"true\"`、`\"percent\"` なら各組 100 %):組の `values` を横に並べず 1 本に積み上げる(全体と内訳を組ごとに見せるとき)。合計を棒の端に、それぞれの値を区切りの中に書く。軸の上限は合計から決まる。組の `tone` は合計の数字の色。値は 0 以上にする(負の値は 0 として描く)\n\n注意\n\n- 系列の名前は最初の組の棒の上に書くので、組の棒が細いと隣の系列の名前と重なる。系列は 2〜3 つまでにする"
761
+ "entry": "### `<m-bars>`\n\nData example (child `<script type=\"application/json\">`): `{\"series\":[{\"label\":\"売上\"}],\"groups\":[{\"label\":\"1 年目\",\"value\":1.2},{\"label\":\"2 年目\",\"value\":3.4}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `orient` | string | `\"v\"` | v(縦棒)か h(横棒。順位や比較に) |\n| `max` | number | `0` | 値の軸の上限(0 = 自動。scale があれば最初の上限) |\n| `unit` | string | `\"\"` | 値の単位(数字の後ろに付ける。億円、%、社 など) |\n| `digits` | number | `0` | 値の小数桁 |\n| `per-step` | number | `1` | 1 段階に出す組の数(0 = 全部を段階 1 で) |\n| `count` | bool | `false` | 値の数字を伸びに合わせて数え上げる |\n| `ticks` | bool | `true` | 値の軸の目盛りと格子 |\n| `al` | string | `\"\"` | 値の軸の名前 |\n| `stack` | bool | `false` | 組の値を 1 本に積み上げる(積み上げ棒)。\\ |\n\n年ごとの売上・費用、聞き取りの結果の順位、導入の前と後の比較など、量を 1 つずつ見せて比べるときに使う。\n\n- group:`label`(`\\n` で 2 行)、`value`(系列が 1 つ)か `values`(系列の数だけ)、`step`(既定は per-step から)、`at`(段階の中の開始秒。既定は同じ段階の中で stagger ずつずらす)、`tone`(`emph` などテーマの変数の名前。その組の棒をすべてその色にし、値の数字も同じ色にする)\n- series:`label`(系列が 2 つ以上のとき、最初の組の棒に直接書く。縦棒は棒の上、横棒は値の数字の右(負の棒は下・左)。凡例は作らない)、`tone`(既定は `--series-1..4` の順。系列が 1 つなら `--term`)\n- scale:`[{\"step\": 3, \"max\": 27, \"at\": 0.4}]`。その段階の at 秒から zoom 秒かけて、値の軸の上限を max へ動かす(対数で補間)。動く間は前の上限までの範囲を薄い帯で残し、目盛りは前の組と次の組を入れ替える。上限を超える棒は軸の上端で止まり、上限が広がるにつれて伸びる\n- 横棒(`orient=\"h\"`)は組の名前を左に、値を棒の右に書く。順位を見せるなら `ticks=\"false\"` で目盛りを消してよい\n- 積み上げ棒(`stack=\"true\"`、`\"percent\"` なら各組 100 %):組の `values` を横に並べず 1 本に積み上げる(全体と内訳を組ごとに見せるとき)。合計を棒の端に、それぞれの値を区切りの中に書く。軸の上限は合計から決まる。組の `tone` は合計の数字の色。値は 0 以上にする(負の値は 0 として描く)\n\n注意\n\n- 値の数字は既定で棒が伸びきってから出す。伸びる途中の値は読めてしまうと「データ」に見えるため。数え上げたいときだけ `count=\"true\"`。積み上げ棒で `count=\"true\"` にすると数え上げるのは端の合計だけで、区切りの値と系列の名前は伸びきってから出る(段階の長さはその分 0.35 秒長い)\n- 系列の名前は最初の組の棒に書くので、組の棒が細いと隣の系列の名前と重なる。系列は 2〜3 つまでにする"
772
762
  },
773
763
  "m-boxplot": {
774
764
  "set": "stats",
@@ -789,23 +779,23 @@ export const PACK = {
789
779
  "m-curves": {
790
780
  "set": "standard",
791
781
  "row": "| `<m-curves>` | 同じ座標軸に線を 1 本ずつ引く(線の名前は凡例でなく線の端に直接書く) | step の最大(既定は系列の数) | `[{label?,f?:str,pts?:[num,num][],tone?,step?,labelAt?:num,color?:str,dash?:bool,xr?:[num,num],at?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\"\\|\"start\"\\|\"middle\"\\|\"end\",dx?:num,dy?:num,ly?:num} (f or pts),…]` — the data is the array itself, not {\"series\": […]}; axes go in attributes (xr=\"[0,10]\" xl=\"…\"); the expression field is f in x (not fn, not u) |",
792
- "entry": "### `<m-curves>`\n\nData example (child `<script type=\"application/json\">`): `[{\"label\":\"需要 D\",\"f\":\"10 - x\"},{\"label\":\"供給 S\",\"f\":\"2 + x\"},{\"label\":\"均衡\",\"pts\":[[4,0],[4,6]],\"dash\":true}]`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `xr` | json | `[0, 1]` | 横軸の範囲 |\n| `yr` | json | `[0, 1]` | 縦軸の範囲 |\n| `xt` | json | `[]` | x tick values * |\n| `yt` | json | `[]` | y tick values * |\n| `xf` | number | | 横軸の目盛りの小数桁 |\n| `yf` | number | | 縦軸の目盛りの小数桁 |\n| `xl` | string | `\"\"` | x axis name (`*italic*` `_sub` `^sup`) * |\n| `yl` | string | `\"\"` | y axis name * |\n| `n` | number | `300` | f を描く分割数 |\n| `lw` | number | `3.5` | 線の太さ |\n\n同じ予測分布に平均・中央値・分位点を順に引く、損失関数を 1 つずつ重ねる、など\n「一つの図で比較の軸を一つずつ見せる」ときに使う。\n\n系列は子の `<script type=\"application/json\">` に配列で書く。\n1 系列 = 1 段階(書いた順)。`step` で変えられ、同じ `step` の系列は一緒に引く。口述原稿の [n] はこの段階に合わせる。\n\n| 欄 | 意味 |\n|---|---|\n| `label` | 線の名前(`*斜体*` `_下付き` `^上付き`) |\n| `f` | x の算術の式(`exp(…)` `sqrt(…)` `PI` などの `Math` の関数と定数、`N(x, 平均, 標準偏差)`、`+ - * / % **`、比較と `? :`。下を見よ)。`xr` で描く範囲を狭められる |\n| `pts` | 点列 `[[x, y], …]`(縦線や実測の折れ線) |\n| `tone` | `term` `emph` `accent2` `muted` `fg` `series-1..4`(既定は `series-1..4` の順) |\n| `dash` | 破線 |\n| `labelAt` / `anchor` / `dx` / `dy` / `ly` | 名前の位置:横軸の値 `labelAt` の点に置く(既定は線の端)。`anchor` は向き(`right` `left` `above` `below`)。`ly` は縦軸の値で高さを決める |\n\n`f` は算術の式で、コードとしては実行しない:数、`x`、`Math` の関数と定数(`sin(x)` とも `Math.sin(x)` とも書ける。`Math.random` は使えない)、`N(x, 平均, 標準偏差)`、`+ - * / % **`、比較(`< <= > >= == !=`)、`&& || !`、`? :`、括弧。べき乗は `**`(`^` は書けない)。書けない式は図の代わりに札が出る。",
782
+ "entry": "### `<m-curves>`\n\nData example (child `<script type=\"application/json\">`): `[{\"label\":\"需要 D\",\"f\":\"10 - x\"},{\"label\":\"供給 S\",\"f\":\"2 + x\"},{\"label\":\"均衡\",\"pts\":[[4,0],[4,6]],\"dash\":true}]`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `xr` | json | `[0, 1]` | 横軸の範囲 |\n| `yr` | json | `[0, 1]` | 縦軸の範囲 |\n| `xt` | json | `[]` | x tick values * |\n| `yt` | json | `[]` | y tick values * |\n| `xf` | number | | 横軸の目盛りの小数桁 |\n| `yf` | number | | 縦軸の目盛りの小数桁 |\n| `xl` | string | `\"\"` | x axis name (`*italic*` `_sub` `^sup`) * |\n| `yl` | string | `\"\"` | y axis name * |\n| `n` | number | `300` | f を描く分割数 |\n| `lw` | number | `3.5` | 線の太さ |\n\n同じ予測分布に平均・中央値・分位点を順に引く、損失関数を 1 つずつ重ねる、など\n「一つの図で比較の軸を一つずつ見せる」ときに使う。\n\n系列は子の `<script type=\"application/json\">` に配列で書く。\n1 系列 = 1 段階(書いた順)。`step` で変えられ、同じ `step` の系列は一緒に引く。口述原稿の [n] はこの段階に合わせる。\n\n| 欄 | 意味 |\n|---|---|\n| `label` | 線の名前 |\n| `f` | x の算術の式(`exp(…)` `sqrt(…)` `PI` などの `Math` の関数と定数、`N(x, 平均, 標準偏差)`、`+ - * / % **`、比較と `? :`。下を見よ)。`xr` で描く範囲を狭められる |\n| `pts` | 点列 `[[x, y], …]`(縦線や実測の折れ線) |\n| `tone` | `term` `emph` `accent2` `muted` `fg` `series-1..4`(既定は `series-1..4` の順) |\n| `dash` | 破線 |\n| `labelAt` / `anchor` / `dx` / `dy` / `ly` | 名前の位置:横軸の値 `labelAt` の点に置く(既定は線の端)。`anchor` は向き(`right` `left` `above` `below`)。`ly` は縦軸の値で高さを決める |\n\n`f` は算術の式で、コードとしては実行しない:数、`x`、`Math` の関数と定数(`sin(x)` とも `Math.sin(x)` とも書ける。`Math.random` は使えない)、`N(x, 平均, 標準偏差)`、`+ - * / % **`、比較(`< <= > >= == !=`)、`&& || !`、`? :`、括弧。べき乗は `**`(`^` は書けない)。書けない式は図の代わりに札が出る。",
793
783
  "sup": true
794
784
  },
795
785
  "m-cycle": {
796
786
  "set": "standard",
797
787
  "row": "| `<m-cycle>` | 循環の図。段階の箱を円の上に 12 時から時計回りに並べ、円に沿った矢印でつなぐ(最後から最初へ戻る矢印も) | 段階の数(既定は 1 つ = 1 段階。per-step で n 個ずつ、node の step が優先) | `{nodes:{id?:str\\|int,label?,tex?,note?,tone?,step?,at?}[],center?:{label?,tex?,note?,tone?,step?,at?},edges?:{from:str\\|int,to:str\\|int,label?,tone?,dash?:bool,step?,at?}[]}` |",
798
- "entry": "### `<m-cycle>`\n\nData example (child `<script type=\"application/json\">`): `{\"center\":{\"label\":\"PDCA\"},\"nodes\":[{\"label\":\"計画\"},{\"label\":\"実行\"},{\"label\":\"評価\"},{\"label\":\"改善\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `per-step` | number | `1` | 1 段階に出す段階(箱)の数(0 = 全部を段階 1 で) |\n| `size` | number | `26` | 箱の字の大きさ(px。入らなければ 24 まで縮める) |\n\nPDCA、水の循環、細胞周期、学習のサイクルなど、同じ順で回り続ける段階を見せるときに使う。\n座標は書かない。段階の中身を配列の順に書けば、部品が並べる(共通の決まり §2)。\n\n子の JSON の並び:`center` と `edges` は省ける。\n\n- `nodes`:段階(3〜8 個を想定)。配列の順に回る。12 時の位置から時計回りに置き、となりの段階へ円に沿った矢印を引く。最後から最初へ戻る矢印は自動で引く\n - `label`(`\\n` で改行)か `tex`(KaTeX)、`note`(箱の中の 2 行目に小さく、`--muted`)、`tone`(`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`)、`step`、`at`、`id`\n- `center`:真ん中の名前(`{\"label\": \"PDCA\", \"note\": \"…\"}`)。最初の段階と一緒に出る(`center.step` で変えられる)。`center` はオブジェクト。<!--part:m-pie-->`m-pie` の `center` は字(文字列)なので取り違えない<!--/part-->\n - `label`(`\\n` で改行)か `tex`(KaTeX)、`note`(箱の**中**の最後の行に小さく、`--muted`)、`tone`(`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`)、`step`、`at`、`id`\n - `tone: emph` の箱は、地が `--emph-tint`、枠と字が `--emph`\n- `edges`:ほかのつながり(`from` `to` は段階の `id`、`label` `tone` `dash` `step`)。箱の縁から縁への破線の矢印\n- 矢印の色は `--muted`、3 px(`edges` も `tone` がなければ `--muted`)\n\n並べ方:\n\n- 横に長い場所では円を横に伸ばした楕円にする(縦の 1.9 倍まで。縦に長くはしない)。箱と矢印が要素の箱に入る大きさにする\n- 段階:既定は 1 段階に 1 つ。入ってくる矢印はその段階の箱と一緒に出る。最後から最初へ戻る矢印は、最後の段階の箱が出たあとに引く\n- 見せ方(`variant`):`fade`・`draw`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 動きの上限:どの見せ方でも箱が動くのは 12 px まで(箱の中心で測る。大きさは 0.92 倍から、`fade` と同じ)、時間も `fade` の長さの中(共通の決まり §1.2)\n- 授業の表示(`ctx.preview`):後の段階の箱と矢印をテーマの薄さで見せる\n- `cues(k)`:同じ段階に 2 つ以上の箱があれば、2 つ目からの開始時刻を返す"
788
+ "entry": "### `<m-cycle>`\n\nData example (child `<script type=\"application/json\">`): `{\"center\":{\"label\":\"PDCA\"},\"nodes\":[{\"label\":\"計画\"},{\"label\":\"実行\"},{\"label\":\"評価\"},{\"label\":\"改善\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `per-step` | number | `1` | 1 段階に出す段階(箱)の数(0 = 全部を段階 1 で) |\n| `size` | number | `26` | 箱の字の大きさ(px。入らなければ 24 まで縮める) |\n\nPDCA、水の循環、細胞周期、学習のサイクルなど、同じ順で回り続ける段階を見せるときに使う。\n座標は書かない。段階の中身を配列の順に書けば、部品が並べる(共通の決まり §2)。\n\n子の JSON の並び:`center` と `edges` は省ける。\n\n- `nodes`:段階(3〜8 個を想定)。配列の順に回る。12 時の位置から時計回りに置き、となりの段階へ円に沿った矢印を引く。最後から最初へ戻る矢印は自動で引く\n - `label`(`\\n` で改行)か `tex`(KaTeX)、`note`(箱の中の 2 行目に小さく、`--muted`)、`tone`(`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`)、`step`、`at`、`id`\n- `center`:真ん中の名前(`{\"label\": \"PDCA\", \"note\": \"…\"}`)。最初の段階と一緒に出る(`center.step` で変えられる)。`center` はオブジェクト。<!--part:m-pie-->`m-pie` の `center` は字(文字列)なので取り違えない<!--/part-->\n - `label`(`\\n` で改行)か `tex`(KaTeX)、`note`(箱の**中**の最後の行に小さく、`--muted`)、`tone`(`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`)、`step`、`at`\n - `tone: emph` の箱は、地が `--emph-tint`、枠と字が `--emph`\n- `edges`:ほかのつながり(`from` `to` は段階の `id`、`label` `tone` `dash` `step`)。箱の縁から縁への破線の矢印\n- 矢印の色は `--muted`、3 px(`edges` も `tone` がなければ `--muted`)\n\n並べ方:\n\n- 横に長い場所では円を横に伸ばした楕円にする(縦の 1.9 倍まで。縦に長くはしない)。箱と矢印が要素の箱に入る大きさにする\n- 段階:既定は 1 段階に 1 つ。入ってくる矢印はその段階の箱と一緒に出る。最後から最初へ戻る矢印は、最後の段階の箱が出たあとに引く\n- 見せ方(`variant`):`fade`・`draw`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 動きの上限:どの見せ方でも箱が動くのは 12 px まで(箱の中心で測る。大きさは 0.92 倍から、`fade` と同じ)、時間も `fade` の長さの中(共通の決まり §1.2)\n- 授業の表示(`ctx.preview`):後の段階の箱と矢印をテーマの薄さで見せる\n- `cues(k)`:同じ段階に 2 つ以上の箱があれば、2 つ目からの開始時刻を返す"
799
789
  },
800
790
  "m-fishbone": {
801
791
  "set": "standard",
802
792
  "row": "| `<m-fishbone>` | 原因と結果の図(特性要因図・フィッシュボーン図)を、大骨 1 本ずつ組み立て、最後に結果(頭)を出す。座標は書かず、配置は部品が決める | 大骨の数 + 1(頭)。節と edges の step があればその最大 | `{effect:{label?,tex?,note?,tone?,step?,at?},nodes:{id:str\\|int,label?,tex?,note?,tone?,parent?:str\\|int,step?,at?}[],edges?:{from:str\\|int,to:str\\|int,label?,tone?,dash?:bool,step?,at?}[]}` — parent のない節が大骨(分類)、その子が原因、孫が細かい原因(3 段まで) |",
803
- "entry": "### `<m-fishbone>`\n\nData example (child `<script type=\"application/json\">`): `{\"effect\":{\"label\":\"配送の遅れ\"},\"nodes\":[{\"id\":\"p\",\"label\":\"人\"},{\"id\":\"p1\",\"label\":\"人手が足りない\",\"parent\":\"p\"},{\"id\":\"m\",\"label\":\"機械\"},{\"id\":\"m1\",\"label\":\"車の故障\",\"parent\":\"m\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `order` | string | `\"causes-first\"` | 段階の順:causes-first(大骨 1 本ずつ、最後に頭、既定)か effect-first(頭と背骨が先) |\n| `size` | number | `0` | 箱の字の大きさ(px。0 = 27 から入るまで 24 まで縮める) |\n\n品質管理の 4M(人・機械・方法・材料)で不良や遅れの原因を洗い出すとき、理科で「なぜうまくいかないのか」を分けて考えるときなど、\n1 つの結果に効く原因を分類して見せるときに使う。座標は書かない(共通の決まり §2)。\n\n子の JSON の並び:`edges` は省いてよい。\n\n- effect:結果(頭)。`label`(`\\n` で改行)か `tex`、`note`(箱の下の一言)、`tone`(既定 `emph`)、`step`、`at`\n- node:`id`、`label`(または `tex`)、`note`、`parent`、`tone`、`step`、`at`。`parent` のない節が大骨(分類)、その子が原因、孫が細かい原因(3 段まで)\n - 大骨は配列の順に、左から、上・下・上・下と交互に付く。分類の名前は大骨の外の端の箱に書く(`note` は箱の**外側**に小さく)\n - 原因と細かい原因の `tex` は式(KaTeX)として線の上に、`note` は名前の後ろに続けて小さく(`--muted`)書く\n - 原因は大骨に付く横の線の上に、細かい原因は原因の線から大骨と平行に下ろした線に付く横の線の上に書く\n - `tone`:大骨なら箱と骨の色、原因なら字と線の色(`emph` は太字)。`emph` の箱は地が `--emph-tint`、枠と字が `--emph`\n - 線の色は `--muted`。背骨は 5 px(図の中心の線)、大骨は 3.5 px、原因の線は 2.5 px\n- edge:原因どうしのほかのつながり(`from` `to` `label` `tone` `dash` `step`)。破線で矢印つき、字の左へふくらむ。同じ大骨の原因どうしに向く\n- `order`:`causes-first`(既定。大骨 1 本ずつ(その原因と一緒に)、最後に頭)か `effect-first`(頭と背骨を先に出し、それから大骨 1 本ずつ)。節の `step` が勝つ(原因だけ後の段階にもできる)\n- 見せ方(`variant`):`fade`・`draw`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 動きの上限:どの見せ方でも箱と字が動くのは 12 px まで(箱の中心で測る)、時間も `fade` の長さの中(共通の決まり §1.2)\n- 入る大きさの目安(1280×720 の本文、高さ 440 px ほど):大骨 1 本あたりの行(原因と細かい原因の数)は 3 つまで(短ければ 4 つ)、大骨は 4〜6 本、原因は 10 字ほどまで。字は 24 px より小さくならず、入らない分は要素の箱から上下・左右にはみ出す(`console.warn` が足りない px を言う)。多いときは図を分けるか、原因を短く言い換える\n- 授業の表示(`ctx.preview`)では、後の段階の骨と字をテーマの薄さで出しておく"
793
+ "entry": "### `<m-fishbone>`\n\nData example (child `<script type=\"application/json\">`): `{\"effect\":{\"label\":\"配送の遅れ\"},\"nodes\":[{\"id\":\"p\",\"label\":\"人\"},{\"id\":\"p1\",\"label\":\"人手が足りない\",\"parent\":\"p\"},{\"id\":\"m\",\"label\":\"機械\"},{\"id\":\"m1\",\"label\":\"車の故障\",\"parent\":\"m\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `order` | string | `\"causes-first\"` | 段階の順:causes-first(大骨 1 本ずつ、最後に頭、既定)か effect-first(頭と背骨が先) |\n| `size` | number | `0` | 箱の字の大きさ(px。0 = 27 から入るまで 24 まで縮める) |\n\n品質管理の 4M(人・機械・方法・材料)で不良や遅れの原因を洗い出すとき、理科で「なぜうまくいかないのか」を分けて考えるときなど、\n1 つの結果に効く原因を分類して見せるときに使う。座標は書かない(共通の決まり §2)。\n\n子の JSON の並び:`edges` は省いてよい。\n\n- effect:結果(頭)。`label`(`\\n` で改行)か `tex`、`note`(箱の下の一言)、`tone`(既定 `emph`)、`step`、`at`\n- node:`id`、`label`(または `tex`)、`note`、`parent`、`tone`、`step`、`at`。`parent` のない節が大骨(分類)、その子が原因、孫が細かい原因(3 段まで)\n - 大骨は配列の順に、左から、上・下・上・下と交互に付く。分類の名前は大骨の外の端の箱に書く(`note` は箱の**外側**に小さく)\n - 原因と細かい原因の `tex` は式(KaTeX)として線の上に、`note` は名前の後ろに続けて小さく(`--muted`)書く\n - 原因は大骨に付く横の線の上に、細かい原因は原因の線から大骨と平行に下ろした線に付く横の線の上に書く\n - `tone`:大骨なら箱と骨の色、原因なら字と線の色(`emph` は太字)。`emph` の箱は地が `--emph-tint`、枠と字が `--emph`\n - 線の色は `--muted`。背骨は 5 px(図の中心の線)、大骨は 3.5 px、原因の線は 2.5 px\n- edge:原因どうしのほかのつながり(`from` `to` `label` `tone` `dash` `step`)。破線で矢印つき、字の左へふくらむ。同じ大骨の原因どうしに向く\n- `order`:`causes-first`(既定。大骨 1 本ずつ(その原因と一緒に)、最後に頭)か `effect-first`(頭と背骨を先に出し、それから大骨 1 本ずつ)。節の `step` が勝つ(原因だけ後の段階にもできる)\n- 見せ方(`variant`):`fade`・`draw`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 動きの上限:どの見せ方でも箱と字が動くのは 12 px まで(箱の中心で測る)、時間も `fade` の長さの中(共通の決まり §1.2)\n- 入る大きさの目安(1280×720 の本文、高さ 440 px ほど):大骨 1 本あたりの行(原因と細かい原因の数)は 3 つまで(短ければ 4 つ)、大骨は 4〜6 本、原因は 10 字ほどまで。字は 24 px より小さくならず、入らない分は要素の箱から上下・左右にはみ出す(足りない px を `ctx.report` で知らせ、Studio の検査に出る)。多いときは図を分けるか、原因を短く言い換える\n- 授業の表示(`ctx.preview`)では、後の段階の骨と字をテーマの薄さで出しておく"
804
794
  },
805
795
  "m-flow": {
806
796
  "set": "standard",
807
- "row": "| `<m-flow>` | 流れ図の箱と矢印を段階ごとに出して、図を組み立てる | nodes と edges の step の最大 | `{nodes:{id:str\\|int,label?,tex?,x:num,y:num,w:num,h:num,step?,tone?,at?}[],edges?:{from:str\\|int,to:str\\|int,step?,label?,tone?,dash?:bool,kind?:\"money\"\\|\"service\"\\|\"data\",amount?:str\\|num,shift?:num,pulse?:bool\\|any[],offset?:num,at?}[]}` |",
808
- "entry": "### `<m-flow>`\n\nData example (child `<script type=\"application/json\">`): `{\"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}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `26` | 箱の字の大きさ(px) |\n| `pulse-n` | number | `3` | pulse で流れる点の数 |\n| `label-gap` | number | `12` | 辺の名前・金額と箱との最小の間(px)。近ければ線から離す |\n\n証明や手法の各ステップに合わせて箱と矢印を出し、文と図の対応を見せるときに使う。\n\n座標は要素の箱の px(`x`, `y` は箱の左上、`w`, `h` は大きさ)。\n\n- node:`id` `label`(`*斜体*` `_下付き` `^上付き`、`\\n` で改行)または `tex`(KaTeX)、`step`、`tone`(`term` / `emph` / `muted`)、`at`(段階の中の開始秒)、`shape:\"diamond\"`(判断)\n- edge:`from` `to` `step`(既定は両端の箱の遅いほう)、`label`、`tone`、`dash`、`offset`(名前と線の距離)、`at`、`loop:true`(戻る辺)\n- 色:線と線の名前は `--fg`(`tone` があればその色)。`muted` の箱は枠が `--muted`、地が `--bg`、字は `--fg`\n- 箱は薄く拡大しながら現れ、矢印は同じ段階の箱が出てから引く",
797
+ "row": "| `<m-flow>` | 流れ図の箱と矢印を段階ごとに出して、図を組み立てる | nodes と edges の step の最大 | `{nodes:{id:str\\|int,label?,tex?,x:num,y:num,w:num,h:num,step?,tone?,at?,shape?:str}[],edges?:{from:str\\|int,to:str\\|int,step?,label?,tone?,dash?:bool,kind?:\"money\"\\|\"service\"\\|\"data\",amount?:str\\|num,shift?:num,pulse?:bool\\|any[],pulseAt?:num,offset?:num,at?,loop?:bool\\|str}[]}` |",
798
+ "entry": "### `<m-flow>`\n\nData example (child `<script type=\"application/json\">`): `{\"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}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `26` | 箱の字の大きさ(px) |\n| `pulse-n` | number | `3` | pulse で流れる点の数 |\n| `label-gap` | number | `12` | 辺の名前・金額と箱との最小の間(px)。近ければ線から離す |\n\n証明や手法の各ステップに合わせて箱と矢印を出し、文と図の対応を見せるときに使う。\n\n座標は要素の箱の px(`x`, `y` は箱の左上、`w`, `h` は大きさ)。\n\n- node:`id` `label`(`\\n` で改行)または `tex`(KaTeX)、`step`、`tone`(`term` / `emph` / `muted`)、`at`(段階の中の開始秒)、`shape:\"diamond\"`(判断)\n- edge:`from` `to` `step`(既定は両端の箱の遅いほう)、`label`、`tone`、`dash`、`offset`(名前と線の距離)、`at`、`loop`(前の箱へ外側を回って戻る辺。回る側は `\"left\"` `\"right\"` `\"top\"` `\"bottom\"`、`true` なら両端が縦に並ぶとき右・横に並ぶとき下)\n- 色:線と線の名前は `--fg`(`tone` があればその色)。`muted` の箱は枠が `--muted`、地が `--bg`、字は `--fg`\n- 箱は薄く拡大しながら現れ、矢印は同じ段階の箱が出てから引く",
809
799
  "ext": {
810
800
  "business": "お金・モノの流れ(ビジネスモデルの図)のための edge の欄(書かなければこれまでと同じ):\n\n- `kind`:`money`(`--emph` の太線)・`service`(`--term`)・`data`(`--muted` の破線)。`tone` と `dash` を書けばそちらが勝つ\n- `amount`:金額などを太字で添える。`label` もあれば線の反対の側に書く\n- `shift`:線に垂直に(進む向きの右へ)ずらす px。同じ 2 つの箱の行きと帰りを `shift` を同じ値にして 2 本並べる。字はずらした側に書く\n- `pulse`:点の列(`pulse-n` 個、0.22 秒おき)が始点から終点へ `pulse-dur` 秒で流れる。`true` なら辺の段階に(引き終わってから)1 回、`[段階, …]` ならその段階ごとに 1 回(辺の段階でなければ `pulseAt` 秒、既定 0.2 秒から)。位置は (k, t) だけで決まり、流れ終わると消える(最終状態には出ない)。`pulse` の段階は図の段階の数にも数える\n- `cues(k)`:pulse の開始時刻を返す(pulse のない図はこれまでどおり null)。口述原稿の `{cue}` の数と合えば、「お金は〜から〜へ{cue}」に合わせて流れる"
811
801
  }
@@ -813,12 +803,12 @@ export const PACK = {
813
803
  "m-gendai": {
814
804
  "set": "kokugo",
815
805
  "row": "| `<m-gendai>` | 現代文の読解の図:傍線・二重傍線を引き、指示語から指す内容へ矢印、段落を役割(主張・具体例・対比)の枠で囲んで線でつなぐ | 中身のある phases の数(既定 marks refs roles) | text inside the element (not JSON) |",
816
- "entry": "### `<m-gendai>`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `28` | 本文の字の大きさ(px) |\n| `tate` | bool | `false` | 縦書きにする(段落は右から左へ、枠をつなぐ線は上を通す) |\n| `phases` | string | `\"marks refs roles\"` | 段階の並び(marks 傍線・refs 指示語・roles 段落の枠から選ぶ。中身のないものは飛ばす) |\n\n現代文の文章の構造(筆者の主張と、それを支える具体例・対比)と、指示語の指す内容を見せるときに使う。段階 0 は本文だけ。\n\n#### 書き方\n\n段落は空行で区切る。段落の頭の行で役割と名前、つながりを書く(なくてもよい)。\n\n```\n@具体例#p1>p3\n駅までの道を、私は{地図アプリ|#app}に頼って歩く。…{それ|>app}を閉じると、…\n\n@対比#p2~p1\n…\n\n@主張#p3\n便利な道具は、私たちから==迷う機会を奪う==。だが、{迷うことこそが…|_A}。\n```\n\n- `@役割#名前>名前`:役割(自由な言葉。主張・結論は `--emph`、対比・反論は `--accent2`、具体例は `--term`、ほかは `--muted`)、この段落の名前、矢印でつなぐ段落。`~名前` は対比(両向きの線)\n- `__語句__` 傍線、`==語句==` 二重傍線\n- `{語句|しるし,…}`:`_A` 傍線と記号 A、`=B` 二重傍線と記号 B(記号なしは `_` `=`)、`#名前` 指示語が指す先、`>名前` 指示語。しるしは入れ子にできない(`{語句|=,#q}` のように 1 つにまとめる)\n\n#### 段階\n\n`phases`(既定 `marks refs roles`)の順に。中身のないものは段階にしない。\n\n- `marks`:傍線・二重傍線を順に引く(縦書きは字の右、横書きは字の下。行をまたぐときは行ごとに続けて)。記号(A など)は線の始まりのすぐ外に付く。縦書きは傍線と記号が入るように行の送りを広く取る(2.4)\n- `refs`:指示語を囲み、指す先に淡い色を敷いて、指示語から矢印(指す先の行のうち近いほうへ)\n- `roles`:段落を役割の色の枠で囲み、札を付け、最後につなぐ線。線は札から札へ、札と枠の外の通り道(縦書きは札の上、横書きは札の左)を通り、矢じりは相手の札の辺に当たる。間の段落を越える線ほど外の段を通し、段の数だけ場所を空ける(線は札にも枠にも重ならない)"
806
+ "entry": "### `<m-gendai>`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `28` | 本文の字の大きさ(px) |\n| `tate` | bool | `false` | 縦書きにする(段落は右から左へ、枠をつなぐ線は上を通す) |\n| `phases` | string | `\"marks refs roles\"` | 段階の並び(marks 傍線・refs 指示語・roles 段落の枠から選ぶ。中身のないものは飛ばす) |\n\n現代文の文章の構造(筆者の主張と、それを支える具体例・対比)と、指示語の指す内容を見せるときに使う。段階 0 は本文だけ。\n\n#### 書き方\n\n段落は空行で区切る。段落の頭の行で役割と名前、つながりを書く(なくてもよい)。\n\n```\n@具体例#p1>p3\n駅までの道を、私は{地図アプリ|#app}に頼って歩く。…{それ|>app}を閉じると、…\n\n@対比#p2~p1\n…\n\n@主張#p3\n便利な道具は、私たちから==迷う機会を奪う==。だが、{迷うことこそが…|_A}。\n```\n\n- `@役割#名前>名前`:役割(自由な言葉)、この段落の名前、矢印でつなぐ段落。`~名前` は対比(両向きの線)\n- `__語句__` 傍線、`==語句==` 二重傍線\n- `{語句|しるし,…}`:`_A` 傍線と記号 A、`=B` 二重傍線と記号 B(記号なしは `_` `=`)、`#名前` 指示語が指す先、`>名前` 指示語。しるしは入れ子にしない(`,` で 1 つにまとめる)\n\n#### 段階\n\n`phases`(既定 `marks refs roles`)の順に。中身のないものは段階にしない。\n\n- `marks`:傍線・二重傍線を順に引く。記号(A など)は線の始まりに付く\n- `refs`:指示語を囲み、指す先に色を敷いて矢印\n- `roles`:段落を役割の色の枠で囲み、札を付け、最後につなぐ線"
817
807
  },
818
808
  "m-heatmap": {
819
809
  "set": "stats",
820
810
  "row": "| `<m-heatmap>` | ヒートマップ。値で塗ったセルの格子(混同行列・相関行列・注意の重み) | rows:行を 1 つずつ(normalize=\"row\" の既定)。whole:全体を 1 段階。cells:全体、それから強調を 1 つずつ(highlight があるときの既定) | `{rows:str[],cols:str[],values:num[][],unit?:str,digits?:num,highlight?:num[][]}` — values[row][col], one row per label in rows and one number per label in cols; highlight [[row, col] or [row, col, step]] (0-based) |",
821
- "entry": "### `<m-heatmap>`\n\nData example (child `<script type=\"application/json\">`): `{\"rows\":[\"ねこ\",\"いぬ\"],\"cols\":[\"ねこ\",\"いぬ\"],\"values\":[[45,5],[6,44]]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `scale` | string | `\"sequential\"` | sequential か diverging(center を地の色に 2 色) |\n| `center` | number | `0` | diverging の真ん中の値 |\n| `range` | json | `null` | 色の範囲 [最小, 最大] |\n| `tone` | string | `\"term\"` | 濃い側の色:term・emph・accent2 |\n| `lowtone` | string | `\"emph\"` | diverging の center より下の色 |\n| `normalize` | string | `\"none\"` | row:行ごとの割合(混同行列) |\n| `show` | string | `\"percent\"` | normalize=row の数字:percent・count・both |\n| `numbers` | string | `\"auto\"` | セルの数字:auto・on・off |\n| `diag` | string | `\"off\"` | on:対角を枠で強調 |\n| `build` | string | `\"\"` | rows・whole・cells |\n| `rotate` | string | `\"auto\"` | 列の名前:auto・0・90 |\n| `xl` | string | `\"\"` | 列の見出し |\n| `yl` | string | `\"\"` | 行の見出し |\n| `unit` | string | | |\n| `digits` | number | | |\n\n`highlight: [[行, 列], …]`(0 から。3 つ目に段階)で --emph の枠。\n\n- 混同行列:`normalize=\"row\" diag=\"on\"`(数字は `show` で割合・数・両方)\n- 相関行列:`scale=\"diverging\" range=\"[-1,1]\"`(center の上下で 2 色)\n- 書かなければ最初の見せ方(fade)"
811
+ "entry": "### `<m-heatmap>`\n\nData example (child `<script type=\"application/json\">`): `{\"rows\":[\"ねこ\",\"いぬ\"],\"cols\":[\"ねこ\",\"いぬ\"],\"values\":[[45,5],[6,44]]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `scale` | string | `\"sequential\"` | sequential か diverging(center を地の色に 2 色) |\n| `center` | number | `0` | diverging の真ん中の値 |\n| `range` | json | `null` | 色の範囲 [最小, 最大] |\n| `tone` | string | `\"term\"` | 濃い側の色:term・emph・accent2 |\n| `lowtone` | string | `\"emph\"` | diverging の center より下の色 |\n| `normalize` | string | `\"none\"` | row:行ごとの割合(混同行列) |\n| `show` | string | `\"percent\"` | normalize=row の数字:percent・count・both |\n| `numbers` | string | `\"auto\"` | セルの数字:auto・on・off |\n| `diag` | string | `\"off\"` | on:対角を枠で強調 |\n| `build` | string | `\"\"` | rows・whole・cells |\n| `rotate` | string | `\"auto\"` | 列の名前:auto・0・90 |\n| `xl` | string | `\"\"` | 列の見出し |\n| `yl` | string | `\"\"` | 行の見出し |\n| `unit` | string | | セルの数字の後ろに付ける単位(JSON の unit より先) |\n| `digits` | number | | セルの数字の小数桁(既定は値の桁、2 桁まで。割合は 0) |\n\n`highlight: [[行, 列], …]`(0 から。3 つ目に段階)で --emph の枠。\n\n- 混同行列:`normalize=\"row\" diag=\"on\"`(数字は `show` で割合・数・両方)\n- 相関行列:`scale=\"diverging\" range=\"[-1,1]\"`(center の上下で 2 色)\n- 書かなければ最初の見せ方(fade)"
822
812
  },
823
813
  "m-hissan": {
824
814
  "set": "math",
@@ -831,15 +821,10 @@ export const PACK = {
831
821
  "entry": "### `<m-hist>`\n\nData example (child `<script type=\"application/json\">`): `{\"values\":[23,31,27,18,25,29,33,22,26,28],\"bins\":{\"start\":15,\"width\":5}}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `xr` | json | `null` | 横軸の範囲(書かなければ階級から) |\n| `yr` | json | `null` | 縦軸の範囲(書かなければ度数から) |\n| `xt` | json | `null` | 横軸の目盛り(書かなければ階級の境) |\n| `yt` | json | `null` | 縦軸の目盛り(書かなければ自動) |\n| `xf` | number | | 横軸の目盛りの小数桁 |\n| `yf` | number | | 縦軸の目盛りの小数桁 |\n| `xl` | string | `\"\"` | x axis name (`*italic*` `_sub` `^sup`) * |\n| `yl` | string | `\"\"` | y axis name * |\n| `unit` | string | `\"\"` | 代表値の数の後ろに付ける単位 |\n| `digits` | number | | 代表値の小数桁(書かなければ値の桁+1 まで) |\n| `polygon` | string | `\"off\"` | on:度数折れ線 |\n| `relative` | string | `\"off\"` | on:相対度数 |\n| `cumulative` | string | `\"off\"` | on:累積度数 |\n| `kind` | string | `\"bars\"` | bars(柱状グラフ)か dots(ドットプロット) |\n| `marks` | string | `\"\"` | 代表値の印:mean,median,mode のどれか(書いた順に 1 つずつ) |\n| `build` | string | `\"whole\"` | whole・values(値を 1 つずつ数える)・bins(階級を 1 つずつ) |\n\n子の JSON の並び:部品が数える。か `{\"table\": [{\"from\", \"to\", \"count\"}]}`。2 組なら `\"series\": [{\"label\", \"values\" か \"table\"}]`(重ねる)。\n\n- 階級は start 以上 start+width 未満\n- `kind=\"dots\"`:ドットプロット(values が要る)\n- `polygon` `relative` `cumulative`:`\"on\"`\n- `marks=\"mean,median,mode\"`:代表値の線\n- `build=\"values\"`:値を 1 つずつ積む。`\"bins\"`:階級を 1 つずつ",
832
822
  "sup": true
833
823
  },
834
- "m-kakijun": {
835
- "set": "kokugo",
836
- "row": "| `<m-kakijun>` | かな(ひらがな・カタカナ)の書き順。字を 1 画ずつ、書く順と向きのとおりに書いて見せる | 字 1 つ=1 段階(段階の中で 1 画ずつ)。per=\"stroke\" なら 1 画=1 段階 | attributes only (no JSON child): `size=\"240\"` |",
837
- "entry": "### `<m-kakijun>`\n\nExample: `<m-kakijun text=\"あさ\" style=\"height:320px\"></m-kakijun>`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `text` | string | `\"\"` | 書く字(ひらがな・カタカナ、濁音・半濁音、小さい字、ー)。1 字以上 |\n| `per` | string | `\"char\"` | char(字 1 つ=1 段階)か stroke(1 画=1 段階) |\n| `writing` | string | `\"yoko\"` | yoko(横書き:左から右)か tate(縦書き:上から下、行は右から左)。小さい字の位置が変わる |\n| `grid` | string | `\"cross\"` | cross(四角い枠と十字の補助線)か none |\n| `ghost` | string | `\"on\"` | on:まだ書いていない画を薄く見せる。off:見せない |\n| `nums` | string | `\"on\"` | on:画の書き始めに丸い番号 |\n| `ends` | string | `\"off\"` | on:画の終わりに とめ・はね・はらい |\n| `size` | json | `null` | 字の枠の一辺(px)。書かなければ要素に合わせて 200〜300 |\n\n`<m-kakijun text=\"あさ\" style=\"height:320px\"></m-kakijun>`。ひらがな・カタカナ、濁音・半濁音、小さい字(ゃ・っ など)、ー を書ける。\n\n- 枠と十字の補助線の中に書く(`grid=\"none\"` で消す)。まだ書いていない画は薄く(`ghost=\"off\"` で見せない)\n- 書き始めに丸い番号(`nums=\"off\"` で消す)。`ends=\"on\"`:画の終わりに とめ・はね・はらい\n- `writing=\"tate\"`:縦書き(上から下)。小さい字はます目の右上、横書きでは左下\n- データにない字(漢字・記号)は書き順なしでそのまま出す"
838
- },
839
824
  "m-kanbun": {
840
825
  "set": "kokugo",
841
- "row": "| `<m-kanbun>` | 白文に返り点・送り仮名を付け、訓読の順に字をたどり(返り点で上へ戻るところに弧)、書き下し文にする(縦書き) | phases の数(order は句の数だけ。既定:訓点 1+句の数+書き下し文 1) | text inside the element (not JSON) |",
842
- "entry": "### `<m-kanbun>`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `60` | 漢字の大きさ(px)。送り仮名・返り点はその 0.42 倍(24px より小さくしない) |\n| `phases` | string | `\"kunten order kaki\"` | 段階の並び(kunten 訓点・order 読む順・kaki 書き下し文から選ぶ) |\n| `kaki` | number | `36` | 書き下し文の字の大きさ(px) |\n| `nums` | bool | `true` | 読む順の番号を字の左上に出す |\n\n漢文の授業で、白文 → 訓点 → 読む順 → 書き下し文 を 1 枚で見せるときに使う。段階 0 は白文。\n\n#### 書き方\n\n要素の中に、1 行に 1 列(句)を書く。行の中の空白は読まない。字の後ろに付けるもの(順は問わない):\n\n| 書き方 | 意味 | 例 |\n|---|---|---|\n| `(…)` | 送り仮名(片仮名。右下に出す) | `覚(エ)` |\n| `[…]` | 返り点:`レ` `一` `二` `三` `四` `五` `上` `中` `下` `甲` `乙` `丙` `丁` `天` `地` `人`、`一レ` `上レ` `甲レ` `天レ` | `聞(ク)[二]啼鳥(ヲ)[一]` |\n| `レ` | レ点(`[レ]` と同じ) | `不{=ず}レ覚(エ)レ暁(ヲ)` |\n| `{…}` | 振り仮名(右に出す。書き下し文ではルビ) | `濺{そそ}(ギ)` |\n| `{=…}` | 書き下し文で平仮名にする字(助字)の読み | `不{=ず}`、`也{=なり}` |\n| `{-}` | 置き字(読まない。読む順の段階から薄くする) | `而{-}` |\n| `(右\\|二度目)` | 再読文字:右の送り仮名と二度目の読み。二度目の片仮名は左の送り仮名として出す | `未(ダ\\|ず)`、`将(ニ\\|ス)` |\n| `字-字` | 竪点(続けて読む熟語。返り点はまとまり全体に効く) | `読-書` |\n| `、` `。` | 句読点(白文では出さない。書き下し文では、そこまでの字を読み終えたところに置く) | `人(ヲ)、` |\n\n括弧は全角でもよい。\n\n#### 段階\n\n`phases`(既定 `kunten order kaki`)の順に 1 段階ずつ:\n\n- `kunten`:返り点・送り仮名・振り仮名・句読点が出る\n- `order`:句(列)ごとに 1 段階。目(朱の枠)が読む順に字をたどる。読んだ字には番号(左上。再読文字の二度目は右上)と淡い色。上へ戻るところに弧の矢印。`slot` 秒で 1 字。1 句 = 1 ステップ。台本の [n] は句ごとに書く\n- `kaki`:書き下し文が左に縦書きで出る(部品の高さで折り返す)\n\n`phases=\"kunten kaki\"` のように一部だけにもできる(`kunten` を外すと訓点は初めから出る)。\n\n#### 注意\n\n- 字は要素の高さと幅に自動で合わせる。収まらなければ、横は句を分け(1 枚に 2 句など)、縦は要素を高くする"
826
+ "row": "| `<m-kanbun>` | 白文に返り点・送り仮名を付け、訓読の順に字をたどり(返り点で上へ戻るところに弧)、書き下し文にする(縦書き) | phases の数(order は句の数だけ、order-by=\"all\" なら 1。既定:訓点 1+句の数+書き下し文 1) | text inside the element (not JSON) |",
827
+ "entry": "### `<m-kanbun>`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `60` | 漢字の大きさ(px)。送り仮名・返り点はその 0.42 倍(24px より小さくしない) |\n| `phases` | string | `\"kunten order kaki\"` | 段階の並び(kunten 訓点・order 読む順・kaki 書き下し文から選ぶ) |\n| `kaki` | number | `36` | 書き下し文の字の大きさ(px) |\n| `nums` | bool | `true` | 読む順の番号を字の左上に出す |\n| `order-by` | string | `\"col\"` | 読む順の段階の分け方:col は列(句)ごとに 1 段階、all は読む順の全体で 1 段階(まで) |\n\n漢文の授業で、白文 → 訓点 → 読む順 → 書き下し文 を 1 枚で見せるときに使う。段階 0 は白文。\n\n#### 書き方\n\n要素の中に、1 行に 1 列(句)を書く。行の中の空白は読まない。字の後ろに付けるもの(順は問わない):\n\n| 書き方 | 意味 | 例 |\n|---|---|---|\n| `(…)` | 送り仮名(片仮名。右下に出す) | `覚(エ)` |\n| `[…]` | 返り点:`レ` `一` `二` `三` `四` `五` `上` `中` `下` `甲` `乙` `丙` `丁` `天` `地` `人`、`一レ` `上レ` `甲レ` `天レ` | `聞(ク)[二]啼鳥(ヲ)[一]` |\n| `レ` | レ点(`[レ]` と同じ) | `不{=ず}レ覚(エ)レ暁(ヲ)` |\n| `{…}` | 振り仮名(右に出す。書き下し文ではルビ) | `濺{そそ}(ギ)` |\n| `{=…}` | 書き下し文で平仮名にする字(助字)の読み | `不{=ず}`、`也{=なり}` |\n| `{-}` | 置き字(読まない) | `而{-}` |\n| `(右\\|二度目)` | 再読文字:右の送り仮名と二度目の読み | `未(ダ\\|ず)`、`将(ニ\\|ス)` |\n| `字-字` | 竪点(続けて読む熟語。返り点はまとまり全体に効く) | `読-書` |\n| `、` `。` | 句読点(白文では出さない) | `人(ヲ)、` |\n\n括弧は全角でもよい。\n\n#### 段階\n\n`phases`(既定 `kunten order kaki`)の順に 1 段階ずつ:\n\n- `kunten`:返り点・送り仮名・振り仮名・句読点が出る\n- `order`:句(列)ごとに 1 段階。読む順に字をたどり、番号と、上へ戻るところに弧の矢印を付ける。`slot` 秒で 1 字。台本の [n] は句ごとに書く\n - `order-by=\"all\"`:読む順の全体を 1 段階でたどる(既定 `col` は句ごとに 1 段階)。口述原稿の `{cue}` を句ごとに置ける\n- `kaki`:書き下し文が左に縦書きで出る\n\n`phases=\"kunten kaki\"` のように一部だけにもできる(`kunten` を外すと訓点は初めから出る)。\n\n#### 注意\n\n- 字は要素の大きさに合わせる。収まらなければ句を分けるか、要素を高くする"
843
828
  },
844
829
  "m-keyboard": {
845
830
  "set": "music",
@@ -849,27 +834,27 @@ export const PACK = {
849
834
  "m-kobun": {
850
835
  "set": "kokugo",
851
836
  "row": "| `<m-kobun>` | 古文を語に切り(スラッシュ)、品詞で色を分けて 1 文ずつ見せ、最後に現代語訳と並べる。助動詞を押すと活用表と意味 | 文の数(現代語訳があれば +1) | text inside the element (not JSON) |",
852
- "entry": "### `<m-kobun>`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `34` | 本文の字の大きさ(px) |\n| `tate` | bool | `false` | 縦書きにする(品詞は語の左、現代語訳は文の左に) |\n| `yaku` | bool | `true` | 現代語訳(= の行)があれば、最後の段階で並べる |\n| `detail` | bool | `false` | 品詞の下に [ ] の中をすべて(活用の種類・活用形など)出す |\n\n古文の品詞分解を、板書のように 1 文ずつ見せるときに使う。段階 0 は切っていない本文。\n\n#### 書き方\n\n1 行が 1 文(1 段階)。語は `/` で切り、語の後ろの `[ ]` に品詞(と、`・` で区切って詳しいこと)を書く。`[ ]` の後ろの字(`、` `。`)は語に付けて出す。\n\n```\n春[名]/は[係助]/あけぼの[名]。\n= 春は明け方(がよい)。\n紫だち[動・タ四・連用]/たる[助動・たり・存続・連体]/雲[名]/の[格助]/…\n```\n\n- 品詞:`名` `代` `動` `補動` `形` `形動` `副` `連体` `接` `感` `助動` `格助` `係助` `副助` `接助` `終助` `間助` `接頭` `接尾`(色:動詞 `--term`、形容詞・形容動詞 `--accent2`、助動詞 `--emph`、助詞 `--muted`、ほか `--fg`)\n- 助動詞:`[助動・基本形・この文での意味・活用形]`。基本形は部品の中の表(文語の助動詞 28 語。`なり`・`たり` は意味で断定と伝聞推定・完了を分ける)から引く。表にないものは知らせる\n- `= …` の行:直前の文の現代語訳(最後の段階で、本文の下、縦書きでは左に出す)\n- `{漢字|かな}`:振り仮名\n\n#### 属性\n\n- `tate`:縦書き(品詞は語の左)\n- `detail`:品詞の下に `[ ]` の中をすべて出す(活用の種類・活用形まで。語の間が広がる)\n- `yaku=\"false\"`:現代語訳の段階を作らない"
837
+ "entry": "### `<m-kobun>`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `34` | 本文の字の大きさ(px) |\n| `tate` | bool | `false` | 縦書きにする(品詞は語の左、現代語訳は文の左に) |\n| `yaku` | bool | `true` | 現代語訳(= の行)があれば、最後の段階で並べる |\n| `detail` | bool | `false` | 品詞の下に [ ] の中をすべて(活用の種類・活用形など)出す |\n\n古文の品詞分解を、板書のように 1 文ずつ見せるときに使う。段階 0 は切っていない本文。\n\n#### 書き方\n\n1 行が 1 文(1 段階)。語は `/` で切り、語の後ろの `[ ]` に品詞(と、`・` で区切って詳しいこと)を書く。`[ ]` の後ろの字(`、` `。`)は語に付けて出す。\n\n```\n春[名]/は[係助]/あけぼの[名]。\n= 春は明け方(がよい)。\n紫だち[動・タ四・連用]/たる[助動・たり・存続・連体]/雲[名]/の[格助]/…\n```\n\n- 品詞:`名` `代` `動` `補動` `形` `形動` `副` `連体` `接` `感` `助動` `格助` `係助` `副助` `接助` `終助` `間助` `接頭` `接尾`\n- 助動詞:`[助動・基本形・この文での意味・活用形]`。基本形は文語の助動詞 28 語の表から引く(`なり`・`たり` は意味で分ける)。表にないものは知らせる\n- `= …` の行:直前の文の現代語訳(最後の段階で、本文の下、縦書きでは左に出す)\n- `{漢字|かな}`:振り仮名\n\n#### 属性\n\n- `tate`:縦書き(品詞は語の左)\n- `detail`:品詞の下に `[ ]` の中をすべて出す(活用の種類・活用形まで。語の間が広がる)\n - `detail` がなければ、助動詞の意味・活用形は押したときの札にだけ出る(印刷には出ない)。印刷や動画で見せるなら `detail` を付ける\n- `yaku=\"false\"`:現代語訳の段階を作らない"
853
838
  },
854
839
  "m-kpi": {
855
840
  "set": "standard",
856
841
  "row": "| `<m-kpi>` | 大きな数字の札(KPI)を段階ごとに出す。数字は数え上げ、下に増減の矢印と一言 | 札の step の最大(既定は札 1 枚 = 1 段階。per-step で n 枚ずつ) | `{cards:{label?,value:num,digits?:int,unit?:str,prefix?:str,from?:num,tone?,delta?:{dir?:\"up\"\\|\"down\",text?:str,good?:bool},note?,step?,at?}[]}` |",
857
- "entry": "### `<m-kpi>`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `cols` | number | `0` | 1 行の札の数(0 = 札の数、4 まで) |\n| `digits` | number | `0` | 数字の小数桁(札の digits が優先) |\n| `per-step` | number | `1` | 1 段階に出す札の数(0 = 全部を段階 1 で) |\n| `count` | bool | `true` | 数字を数え上げる |\n| `size` | number | `0` | 数字の字の大きさ(px。0 = 札の高さから) |\n\n表紙の直後の「掴みの数字」、試験導入の結果、市場規模の要約など、少数の数字を大きく見せるときに使う。\n\n- `label`:札の上の名前。`value`:数字(`digits` 桁、3 桁ごとにカンマ)。`unit`:数字の後ろの単位(小さめの字)。`prefix`:数字の前の記号(`−` `+` `約` など)\n- `from`:数え上げを始める値(既定 0。「20 分 → 7.5 分」のように減らす数も見せられる)\n- `tone`:数字と札の上の帯の色(`term`(既定)・`emph`・`accent2`・`series-1..4`)\n- `delta`:`{\"dir\": \"up\" | \"down\", \"text\": \"前の期から 4 社\", \"good\": true}`。▲ / ▼ と一言を数字の下に出す。良い向き(`good`、既定は `up` なら良い)なら `--term`、悪い向きなら `--emph`\n- `note`:札の下端の一言(`--muted`)\n- 見せ方(`variant`):`count`・`rise`・`flip`・`underline`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 札の並び:`cols`(既定は札の数、4 まで)列で、行が足りなければ折り返す\n- `cues(k)`:同じ段階に 2 枚以上の札があれば、2 枚目からの開始時刻を返す(口述原稿の `{cue}` に合わせられる)"
842
+ "entry": "### `<m-kpi>`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `cols` | number | `0` | 1 行の札の数(0 = 札の数、4 まで) |\n| `digits` | number | `0` | 数字の小数桁(札の digits が優先) |\n| `per-step` | number | `1` | 1 段階に出す札の数(0 = 全部を段階 1 で) |\n| `count` | bool | `true` | 数字を数え上げる |\n| `size` | number | `0` | 数字の字の大きさ(px。0 = 札の高さから) |\n\n表紙の直後の「掴みの数字」、試験導入の結果、市場規模の要約など、少数の数字を大きく見せるときに使う。\n\n- `label`:札の上の名前。`value`:数字(`digits` 桁、3 桁ごとにカンマ)。`unit`:数字の後ろの単位(小さめの字)。`prefix`:数字の前の記号(`+` `約` など)。負の `value` は自分で − が付くので、`prefix` に `−` を重ねない(`\"prefix\": \"−\"` と `-12` は「−−12」)。減った量を正の数で見せるときだけ `value` を正にして `prefix: \"−\"`\n- `from`:数え上げを始める値(既定 0。「20 分 → 7.5 分」のように減らす数も見せられる)\n- `tone`:数字と札の上の帯の色(`term`(既定)・`emph`・`accent2`・`series-1..4`)\n- `delta`:`{\"dir\": \"up\" | \"down\", \"text\": \"前の期から 4 社\", \"good\": true}`。▲ / ▼ と一言を数字の下に出す。良い向き(`good`、既定は `up` なら良い)なら `--term`、悪い向きなら `--emph`\n- `note`:札の下端の一言(`--muted`)\n- 見せ方(`variant`):`count`・`rise`・`flip`・`underline`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 札の並び:`cols`(既定は札の数、4 まで)列で、行が足りなければ折り返す\n- `cues(k)`:同じ段階に 2 枚以上の札があれば、2 枚目からの開始時刻を返す(口述原稿の `{cue}` に合わせられる)"
858
843
  },
859
844
  "m-map-japan": {
860
845
  "set": "maps",
861
846
  "row": "| `<m-map-japan>` | 日本の 47 都道府県の地図。地域の強調、統計の塗り分け、点、矢印、経度・緯度の重ね描きを段階ごとに出す | 項目の step の最大(既定 1)。地図そのものは段階 0 から出ている | `{regions?:[{id?:str\\|int,group?:str,label?,tone?,step?,at?} (id or group),…],values?:object,classes?:num[],valuesStep?:int,points?:[{lon?:num,lat?:num,code?:str\\|int,label?,tone?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\",step?,at?} (lon + lat or code),…],flows?:{from:str\\|int\\|any[],to:str\\|int\\|any[],label?,tone?,value?:num,bend?:num,via?:any[][],labelAt?:any[],step?,at?}[],shapes?:[{polygon?:any[][],line?:any[][],label?,labelAt?:any[],tone?,dash?:bool,step?,at?} (polygon or line),…]}` — prefectures by JIS code \"01\"–\"47\" (or \"JP-13\", \"東京都\") in regions[].id; the 8 regions (hokkaido, tohoku, kanto, chubu, kinki, chugoku, shikoku, kyushu) in regions[].group; values is an object {code: number}; classes are the lower bounds of the classes (default 4, at most 5); points, shapes and flows[].via use lon/lat in degrees |",
862
- "entry": "### `<m-map-japan>`\n\nData example (child `<script type=\"application/json\">`): `{\"regions\":[{\"id\":\"13\",\"tone\":\"emph\",\"step\":1},{\"group\":\"kinki\",\"tone\":\"series-2\",\"step\":2}],\"points\":[{\"lon\":135.5,\"lat\":34.69,\"label\":\"大阪\",\"step\":3}],\"flows\":[{\"from\":\"13\",\"to\":\"27\",\"step\":4}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `layout` | string | `\"inset\"` | inset(南西諸島を枠に入れて描く)か true(本当の位置。日本が小さくなる) |\n| `islands` | string | `\"main\"` | main か all(inset で小笠原諸島の枠も描く) |\n| `labels` | string | `\"focus\"` | 地域の名前:focus(regions に書いた地域だけ)・all(名前が中に入る都道府県すべて)・none |\n| `show` | string | `\"none\"` | 塗り分けた地域の上に値を書くか:none(書かない、既定)・value(中に入る地域だけ値を書く) |\n| `unit` | string | `\"\"` | 値の単位(凡例の見出しに書く) |\n| `digits` | number | `0` | 値の小数桁 |\n| `legend` | string | `\"\"` | 凡例の見出し(例:人口)。unit があれば後ろに(単位)を足す |\n\n地理・歴史の授業で場所を示すときに使う。子の JSON(どれも `step` `at` `tone` を持てる):\n\n- `regions`:`id`(`\"01\"`〜`\"47\"`)か `group`(`hokkaido` `tohoku` `kanto` `chubu` `kinki` `chugoku` `shikoku` `kyushu`)。`label`\n- `values`:`{\"13\": 1406, …}` と `classes`(階級の下限、既定は 4 階級、5 つまで)で塗り分け。凡例に階級を書く\n- `points`:`lon` `lat`(または `code` で県庁の位置)、`label`、`anchor`\n- `flows`:`from` `to`(番号か `[経度, 緯度]`)の矢印。`via`(通る点 `[[経度, 緯度], …]`。海の道は沖に)、`label` `labelAt` `value`\n- `shapes`:`polygon` か `line`(`[[経度, 緯度], …]`)。`label` `dash`\n\n`labels`:`focus`(既定)・`all`・`none`。`show=\"value\"` で入る地域に値を書く(既定は書かない)。\n\n日本の範囲・東西南北の端・排他的経済水域を見せるときは layout=\"true\"(小窓なし、本当の位置)\n\n地図データ:Natural Earth(パブリックドメイン)を加工。"
847
+ "entry": "### `<m-map-japan>`\n\nData example (child `<script type=\"application/json\">`): `{\"regions\":[{\"id\":\"13\",\"tone\":\"emph\",\"step\":1},{\"group\":\"kinki\",\"tone\":\"series-2\",\"step\":2}],\"points\":[{\"lon\":135.5,\"lat\":34.69,\"label\":\"大阪\",\"step\":3}],\"flows\":[{\"from\":\"13\",\"to\":\"27\",\"step\":4}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `layout` | string | `\"inset\"` | inset(南西諸島を枠に入れて描く)か true(本当の位置。日本が小さくなる) |\n| `islands` | string | `\"main\"` | main か all(inset で小笠原諸島の枠も描く) |\n| `labels` | string | `\"focus\"` | 地域の名前:focus(regions に書いた地域だけ)・all(名前が中に入る都道府県すべて)・none |\n| `show` | string | `\"none\"` | 塗り分けた地域の上に値を書くか:none(書かない、既定)・value(中に入る地域だけ値を書く) |\n| `unit` | string | `\"\"` | 値の単位(凡例の見出しに書く) |\n| `digits` | number | `0` | 値の小数桁 |\n| `legend` | string | `\"\"` | 凡例の見出し(例:人口)。unit があれば後ろに(単位)を足す |\n\n地理・歴史の授業で場所を示すときに使う。子の JSON(どれも `step` `at` `tone` を持てる):\n\n- `regions`:`id`(`\"01\"`〜`\"47\"`)か `group`(`hokkaido` `tohoku` `kanto` `chubu` `kinki` `chugoku` `shikoku` `kyushu`)。`label`\n- `values`:`{\"13\": 1406, …}` と `classes`(階級の下限、既定は 4 階級、5 つまで)で塗り分け。凡例に階級を書く。塗り分けの段階は `valuesStep`(既定 1。`values` は `step` を持てない)\n- `points`:`lon` `lat`(または `code` で県庁の位置)、`label`、`anchor`\n- `flows`:`from` `to`(番号か `[経度, 緯度]`)の矢印。`via`(通る点 `[[経度, 緯度], …]`。海の道は沖に)、`label` `labelAt` `value`(数。線の太さが値で変わる:いちばん大きい値で 10 px、0 で 3 px、ないと 4 px)\n- `shapes`:`polygon` か `line`(`[[経度, 緯度], …]`)。`label` `dash`\n\n`labels`:`focus`(既定)・`all`・`none`。`show=\"value\"` で入る地域に値を書く(既定は書かない)。\n\n日本の範囲・東西南北の端・排他的経済水域を見せるときは layout=\"true\"(小窓なし、本当の位置)\n\n地図データ:Natural Earth(パブリックドメイン)を加工。"
863
848
  },
864
849
  "m-map-world": {
865
850
  "set": "maps",
866
851
  "row": "| `<m-map-world>` | 世界の国・地域の地図(太平洋が中央)。国や州の強調、区分と値の塗り分け、点、矢印を段階ごとに出す | 項目の step の最大(既定 1)。地図そのものは段階 0 から出ている | `{regions?:[{id?:str,group?:str,label?,tone?,step?,at?} (id or group),…],categories?:{label,ids:str[],tone?,step?,at?}[],values?:object,classes?:num[],valuesStep?:int,points?:[{lon?:num,lat?:num,code?:str,label?,tone?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\",step?,at?} (lon + lat or code),…],flows?:{from:str\\|any[],to:str\\|any[],label?,tone?,value?:num,bend?:num,via?:any[][],labelAt?:any[],step?,at?}[],shapes?:[{polygon?:any[][],line?:any[][],label?,labelAt?:any[],tone?,dash?:bool,step?,at?} (polygon or line),…]}` — countries by ISO alpha-3 or Natural Earth code (\"JPN\", \"USA\") or Japanese name; the six regions (asia, europe, africa, north-america, south-america, oceania) in regions[].group and categories[].ids; values is an object {code: number}; classes are the lower bounds (default 4, at most 5); points, shapes and [lon, lat] in flows use degrees |",
867
- "entry": "### `<m-map-world>`\n\nData example (child `<script type=\"application/json\">`): `{\"regions\":[{\"id\":\"JPN\",\"tone\":\"emph\",\"step\":1},{\"group\":\"africa\",\"tone\":\"series-2\",\"step\":2}],\"points\":[{\"lon\":139.69,\"lat\":35.69,\"label\":\"東京\",\"step\":3}],\"flows\":[{\"from\":[139.69,35.69],\"to\":\"AUS\",\"step\":4}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `labels` | string | `\"focus\"` | 名前:focus(regions に書いた地域だけ)・all(名前が中に入る国すべて)・none |\n| `grid` | string | `\"none\"` | none・equator(赤道)・graticule(30° ごとの経線・緯線と赤道) |\n| `show` | string | `\"none\"` | 塗り分けた国の上に値を書くか:none(既定)・value(中に入る国だけ) |\n| `unit` | string | `\"\"` | 値の単位(凡例の見出しに書く) |\n| `digits` | number | `0` | 値の小数桁 |\n| `legend` | string | `\"\"` | 凡例の見出し(例:人口)。unit があれば後ろに(単位)を足す |\n\n世界地理・歴史の授業で国や都市の場所を示すときに使う。子の JSON(どれも `step` `at` `tone` を持てる):\n\n- `regions`:`id`(`\"JPN\"` など ISO の 3 文字か国名)か `group`(六州)。`label`\n- `categories`:`label` と `ids`(国か州)。凡例に出す。4 区分まで\n- `values`:`{\"JPN\": 72, …}` と `classes`(階級の下限)\n- `points`:`lon` `lat`、`label`、`anchor`\n- `flows`:`from` `to`(`[経度, 緯度]` か国)、`via` `label` `value` `bend`\n\n継ぎ目は 30°W(大西洋を横切る矢印は描けない)。\n\n地図データ:Natural Earth(パブリックドメイン)を加工。"
852
+ "entry": "### `<m-map-world>`\n\nData example (child `<script type=\"application/json\">`): `{\"regions\":[{\"id\":\"JPN\",\"tone\":\"emph\",\"step\":1},{\"group\":\"africa\",\"tone\":\"series-2\",\"step\":2}],\"points\":[{\"lon\":139.69,\"lat\":35.69,\"label\":\"東京\",\"step\":3}],\"flows\":[{\"from\":[139.69,35.69],\"to\":\"AUS\",\"step\":4}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `labels` | string | `\"focus\"` | 名前:focus(regions に書いた地域だけ)・all(名前が中に入る国すべて)・none |\n| `grid` | string | `\"none\"` | none・equator(赤道)・graticule(30° ごとの経線・緯線と赤道) |\n| `show` | string | `\"none\"` | 塗り分けた国の上に値を書くか:none(既定)・value(中に入る国だけ) |\n| `unit` | string | `\"\"` | 値の単位(凡例の見出しに書く) |\n| `digits` | number | `0` | 値の小数桁 |\n| `legend` | string | `\"\"` | 凡例の見出し(例:人口)。unit があれば後ろに(単位)を足す |\n\n世界地理・歴史の授業で国や都市の場所を示すときに使う。子の JSON(どれも `step` `at` `tone` を持てる):\n\n- `regions`:`id`(`\"JPN\"` など ISO の 3 文字か国名)か `group`(六州)。`label`\n- `categories`:`label` と `ids`(国か州)。凡例に出す。4 区分まで\n- `values`:`{\"JPN\": 72, …}` と `classes`(階級の下限)。塗り分けの段階は `valuesStep`(既定 1)\n- `points`:`lon` `lat`、`label`、`anchor`\n- `flows`:`from` `to`(`[経度, 緯度]` か国)、`via` `label` `bend`、`value`(数。線の太さが値で変わる:いちばん大きい値で 10 px)、`labelAt`(名前を置く `[経度, 緯度]`)\n- `shapes`:重ね描き。`polygon`(3 点以上の `[[経度, 緯度], …]`、薄く塗る)か `line`(2 点以上)。`label` `labelAt` `dash`\n\n継ぎ目は 30°W(大西洋を横切る矢印は描けない)。\n\n地図データ:Natural Earth(パブリックドメイン)を加工。"
868
853
  },
869
854
  "m-market": {
870
855
  "set": "business",
871
856
  "row": "| `<m-market>` | 市場規模の入れ子の円(TAM / SAM / SOM)。外の円から 1 つずつ、前の円の大きさから縮んで現れる | rings の数 | `{rings:{key?:str,value:num,basis?:str,tone?}[]}` |",
872
- "entry": "### `<m-market>`\n\nData example (child `<script type=\"application/json\">`): `{\"rings\":[{\"key\":\"TAM\",\"value\":3000,\"basis\":\"国内の…\"},{\"key\":\"SAM\",\"value\":600,\"basis\":\"…\"},{\"key\":\"SOM\",\"value\":30,\"basis\":\"…\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `unit` | string | `\"\"` | 値の単位(数字の後ろに付ける) |\n| `digits` | number | `0` | 値の小数桁 |\n| `scale` | string | `\"fixed\"` | fixed(決まった比)か area(面積を値に比例) |\n| `layout` | string | `\"bottom\"` | bottom(下端をそろえる)か center(同心) |\n| `count` | bool | `false` | 値の数字を縮みに合わせて数え上げる |\n\n市場の大きさを、全体(TAM)から手の届く範囲(SAM)、最初に取る範囲(SOM)へ絞り込んで見せるときに使う。\n\n子の JSON の並び:外から順。\n\n- 段階 j で j 番目の円が、1 つ外の円の大きさと位置から縮んで現れる。前の円はそのまま残る\n- 名前(`key`)・値・根拠(`basis`、何を数えたか)は円の右に書き、円の中の点から引き出し線で結ぶ。値は `digits` 桁で 3 桁ごとにカンマを入れ、`unit` を後ろに付ける\n- `scale=\"fixed\"`(既定)は見やすい決まった比(1・0.64・0.34・0.16)。`scale=\"area\"` は面積を値に比例させる(小さすぎる円は最も大きい円の 0.14 倍の半径にする)。面積に比例させると SOM がほとんど見えないことが多いので、既定は fixed にして値を字で示す\n- `layout=\"bottom\"`(既定)は円の下端をそろえ、`layout=\"center\"` は同心にする\n- 色は外の 2 つが `--term`、内の円が `--emph`(`tone` で変えられる)\n- 値の数字は円が縮みきってから出す。`count=\"true\"` なら縮みに合わせて数え上げる"
857
+ "entry": "### `<m-market>`\n\nData example (child `<script type=\"application/json\">`): `{\"rings\":[{\"key\":\"TAM\",\"value\":3000,\"basis\":\"国内の…\"},{\"key\":\"SAM\",\"value\":600,\"basis\":\"…\"},{\"key\":\"SOM\",\"value\":30,\"basis\":\"…\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `unit` | string | `\"\"` | 値の単位(数字の後ろに付ける) |\n| `digits` | number | `0` | 値の小数桁 |\n| `scale` | string | `\"fixed\"` | fixed(決まった比)か area(面積を値に比例) |\n| `layout` | string | `\"bottom\"` | bottom(下端をそろえる)か center(同心) |\n| `count` | bool | `false` | 値の数字を縮みに合わせて数え上げる |\n\n市場の大きさを、全体(TAM)から手の届く範囲(SAM)、最初に取る範囲(SOM)へ絞り込んで見せるときに使う。\n\n子の JSON の並び:外から順。\n\n- 段階 j で j 番目の円が、1 つ外の円の大きさと位置から縮んで現れる。前の円はそのまま残る\n- 名前(`key`)・値・根拠(`basis`、何を数えたか)は円の右に書き、円の中の点から引き出し線で結ぶ。値は `digits` 桁で 3 桁ごとにカンマを入れ、`unit` を後ろに付ける\n- `scale=\"fixed\"`(既定)は見やすい決まった比(1・0.64・0.34・0.16)。`scale=\"area\"` は面積を値に比例させる(小さすぎる円は最も大きい円の 0.14 倍の半径にする)。面積に比例させると SOM がほとんど見えないことが多いので、既定は fixed にして値を字で示す\n- `layout=\"bottom\"`(既定)は円の下端をそろえ、`layout=\"center\"` は同心にする\n- 色は外の 2 つが `--term`、内の円が `--emph`(`tone` で変えられる:`term`・`emph`・`muted`・`accent2`・`series-1..4`。ほかの値は `term`)\n- `dur`:1 つの円が縮んで現れる秒数(既定 0.9)。数字はそのあと 0.35 秒で出る\n- 値の数字は円が縮みきってから出す。`count=\"true\"` なら縮みに合わせて数え上げる"
873
858
  },
874
859
  "m-menu": {
875
860
  "set": "standard",
@@ -879,7 +864,7 @@ export const PACK = {
879
864
  "m-numberline": {
880
865
  "set": "math",
881
866
  "row": "| `<m-numberline>` | 数直線。点・□・ジャンプ・不等式の範囲・0.1 の拡大。2 本で比例数直線 | build の順(既定 ticks,marks,links,jumps,ranges,magnify)に項目 1 つ = 1 段階。whole:全部で 1 段階 | `{lines:{from:num\\|str,to:num\\|str,step?:num\\|str,sub?:int,unit?:str,label?,labels?:str\\|any[]}[],marks?:{at:num\\|str,line?:int,label?,kind?:\"dot\"\\|\"open\"\\|\"box\",tone?,show?:int}[],jumps?:{from:num\\|str,to:num\\|str,line?:int,label?,tone?,show?:int}[],ranges?:[{from?:num\\|str,to?:num\\|str,incl?:[bool,bool],line?:int,label?,tone?,show?:int} (from or to),…],link?:(any[]\\|object)[],magnify?:{from:num\\|str,to:num\\|str,step?:num\\|str,labels?:str\\|any[],show?:int}[]}` — lines [{from, to, step, sub, unit, label, labels}] (1 or 2); marks [{at, kind: dot\\|open\\|box, label}]; jumps [{from, to, label}]; ranges [{from, to, incl: [bool, bool]}]; link [[top value, bottom value]]; magnify [{from, to, step}]. Values are numbers or \"1/3\" |",
882
- "entry": "### `<m-numberline>`\n\nData example (child `<script type=\"application/json\">`): `{\"lines\":[{\"from\":0,\"to\":10,\"step\":1}],\"marks\":[{\"at\":3}],\"jumps\":[{\"from\":3,\"to\":7,\"label\":\"+4\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `build` | string | `\"ticks,marks,links,jumps,ranges,magnify\"` | 出す順(種類をコンマで)か whole(全部を 1 段階で) |\n| `arrow` | string | `\"off\"` | on:線の右の端を矢印に |\n\n子の JSON の値は数か `\"1/3\"`(分数で書く)。\n\n- lines:1 本か 2 本(0 をそろえる)`{from, to, step, sub, label, unit, labels: \"ends\" | [値]}`\n- marks:`{at, kind: \"dot\" | \"open\" | \"box\", label}`。box は □\n- jumps:`{from, to, label}`(左向きも)\n- ranges:`{from, to, incl: [true, false]}`。端がなければ矢印。重なれば共通部分を塗る\n- link(2 本):`[[上の値, 下の値]]` か `{at, label: \"×3\"}`\n- magnify:`{from, to, step}`。区間を下の線に広げる(既定 10 等分)\n- 項目の `line`(0 か 1。拡大の線は 1, 2, …)、`show`(段階)\n- `arrow=\"on\"`:右端を矢印に"
867
+ "entry": "### `<m-numberline>`\n\nData example (child `<script type=\"application/json\">`): `{\"lines\":[{\"from\":0,\"to\":10,\"step\":1}],\"marks\":[{\"at\":3}],\"jumps\":[{\"from\":3,\"to\":7,\"label\":\"+4\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `build` | string | `\"ticks,marks,links,jumps,ranges,magnify\"` | 出す順(種類をコンマで)か whole(全部を 1 段階で) |\n| `arrow` | string | `\"off\"` | on:線の右の端を矢印に |\n\n子の JSON の値は数か `\"1/3\"`(分数で書く)。\n\n- lines:1 本か 2 本(0 をそろえる)`{from, to, step, sub, label, unit, labels: \"ends\" | [値]}`\n- marks:`{at, kind: \"dot\" | \"open\" | \"box\", label}`。box は □\n- jumps:`{from, to, label}`(左向きも)\n- ranges:`{from, to, incl: [true, false]}`。端がなければ矢印。重なれば共通部分を塗る\n- link(2 本):`[[上の値, 下の値]]`(破線)か `{at: [上の値, 下の値], label: \"×3\"}`(上の線から下の線への矢印。`dir: \"up\"` なら下から上へ)\n- magnify:`{from, to, step}`。区間を下の線に広げる(既定 10 等分)\n- 項目の `line`(0 か 1。拡大の線は 1, 2, …)、`show`(段階)\n- `tone`(marks・jumps・ranges・名前のある link):`term`・`emph`・`muted`・`accent2`・`fg`・`series-1..4`。既定は `term`、範囲は `series-1..4` の順\n- `arrow=\"on\"`:右端を矢印に"
883
868
  },
884
869
  "m-orbit": {
885
870
  "set": "science",
@@ -899,18 +884,18 @@ export const PACK = {
899
884
  "m-quad": {
900
885
  "set": "standard",
901
886
  "row": "| `<m-quad>` | 2 軸の位置づけ(ポジショニングマップ・SWOT 風の 4 象限)に、点を段階ごとに 1 つずつ置く | 点の step と to.step の最大(既定は点 1 つ = 1 段階) | `{x?:{lo?:str,hi?:str},y?:{lo?:str,hi?:str},quads?:{tr?:str,tl?:str,bl?:str,br?:str,fill?:str},items:{label?,x:num,y:num,step?,at?,tone?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\",r?:num,self?:bool,to?:{x:num,y:num,label?,step?,at?}}[]}` |",
902
- "entry": "### `<m-quad>`\n\nData example (child `<script type=\"application/json\">`): `{\"x\":{\"lo\":\"手作業\",\"hi\":\"自動\"},\"y\":{\"lo\":\"高い\",\"hi\":\"安い\"},\"items\":[{\"label\":\"A 社\",\"x\":0.25,\"y\":0.7},{\"label\":\"自社\",\"x\":0.8,\"y\":0.82,\"self\":true}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `26` | 点の名前の字の大きさ(px) |\n| `quads-step` | number | `0` | 象限の名前を出す段階(0 = 初めから) |\n\n競合と自社の位置づけ、施策の分類(効果×手間)、SWOT のように、2 つの軸の上に項目を 1 つずつ置いて\n「空いている場所」を見せるときに使う。\n\n- `x` `y`:軸の両端の言葉(横軸は軸の下の両端、縦軸は軸の上端と下端の外)。軸と言葉は段階 0 から見える\n- `quads`:象限の名前(tr = 右上、tl = 左上、bl = 左下、br = 右下)。`fill` に象限の名前(`\"tr\"` など)を書くとその象限を淡く塗り、名前を `--term` で書く。名前は `quads-step` の段階で現れる(既定 0 = 初めから)\n- item:`label`、`x` `y`(0〜1。0.5 が軸の交わるところ)、`step`(既定は前の点の次の段階)、`at`(段階の中の開始秒)、`tone`(`term` / `fg`、既定は `--muted`)、`anchor`(名前の位置:`right`(既定)・`left`・`above`・`below`)、`r`(丸の半径)\n- `self: true` の点は `--emph` で大きく描き、現れたときに輪が 1 回広がる(最終状態では輪は出ない)\n- `to: {\"x\", \"y\", \"label\", \"step\", \"at\"}`:移動先。`to.step`(既定は点の次の段階)に、点が破線の跡を引きながら滑り、着いたら移動先の上に `label` を出す\n- `cues(k)`:同じ段階に 2 つ以上の点があれば、2 つ目からの開始時刻(at)を返す。口述原稿の `{cue}` の数と合えば、点が言葉に合わせて現れる"
887
+ "entry": "### `<m-quad>`\n\nData example (child `<script type=\"application/json\">`): `{\"x\":{\"lo\":\"手作業\",\"hi\":\"自動\"},\"y\":{\"lo\":\"高い\",\"hi\":\"安い\"},\"items\":[{\"label\":\"A 社\",\"x\":0.25,\"y\":0.7},{\"label\":\"自社\",\"x\":0.8,\"y\":0.82,\"self\":true}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `26` | 点の名前の字の大きさ(px) |\n| `quads-step` | number | `0` | 象限の名前を出す段階(0 = 初めから) |\n\n競合と自社の位置づけ、施策の分類(効果×手間)、SWOT のように、2 つの軸の上に項目を 1 つずつ置いて\n「空いている場所」を見せるときに使う。\n\n- `x` `y`:軸の両端の言葉(横軸は軸の下の両端、縦軸は軸の上端と下端の外)。軸と言葉は段階 0 から見える\n- `quads`:象限の名前(tr = 右上、tl = 左上、bl = 左下、br = 右下)。`fill` に象限の名前(`\"tr\"` など)を書くとその象限を淡く塗り、名前を `--term` で書く。名前は `quads-step` の段階で現れる(既定 0 = 初めから)\n- item:`label`、`x` `y`(0〜1。0.5 が軸の交わるところ)、`step`(既定は前の点の次の段階)、`at`(段階の中の開始秒)、`tone`(`term` / `fg`、既定は `--muted`)、`anchor`(名前の位置:`right`(既定)・`left`・`above`・`below`)、`r`(丸の半径)\n- `self: true` の点は `--emph` で大きく描き、現れたときに輪が 1 回広がる(最終状態では輪は出ない)\n- `to: {\"x\", \"y\", \"label\", \"step\", \"at\"}`:移動先。`to.step`(既定は点の次の段階)に、点が破線の跡を引きながら滑り、着いたら移動先の上に `label` を出す\n- `cues(k)`:同じ段階に 2 つ以上の点があれば、2 つ目からの開始時刻(at)を返す。口述原稿の `{cue}` の数と合えば、点が言葉に合わせて現れる\n\n注意\n\n- 象限の名前は、点・点の名前・軸の言葉にかからない隅に置く。どの隅もかかるときは点の名前を置き直す(置き場がなければ `ctx.report` で知らせる)\n- 点の名前どうし・移動先の名前との重なりは置き直さない。近い点の名前は重なることがあるので、`anchor` を変えるか座標をずらす"
903
888
  },
904
889
  "m-scatter": {
905
890
  "set": "standard",
906
891
  "row": "| `<m-scatter>` | 散布図。点の組(系列)を段階ごとに出し、そのあと傾向の線(最小二乗の直線か、書いた 2 点)を引く | 系列の数 + 傾向の線(既定は系列 1 つ = 1 段階、そのあと線をまとめて 1 段階。系列・線の step で直接) | `{series:{label?,tone?,step?,at?,points:([num,num]\\|{x:num,y:num,label?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\",tone?})[]}[],trend?:str\\|{fit?:\"linear\",pts?:[[num,num],[num,num]],series?:int\\|any[],label?,tone?,dash?:bool,step?,at?,digits?:int}\\|[the same {…},…]}` — points are [x, y] or {\"x\", \"y\", \"label\"}; axes go in attributes (xr=\"[0,10]\" xl=\"…\"); trend is \"linear\" or {\"fit\": \"linear\", \"label\": \"…\"} or {\"pts\": [[x0, y0], [x1, y1]]} |",
907
- "entry": "### `<m-scatter>`\n\nData example (child `<script type=\"application/json\">`): `{\"series\":[{\"label\":\"晴れ\",\"points\":[[24,210],[28,380],[31,560],{\"x\":34,\"y\":690,\"label\":\"猛暑日\"}]}],\"trend\":\"linear\"}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `xr` | json | `null` | 横軸の範囲(書かなければデータから) |\n| `yr` | json | `null` | 縦軸の範囲(書かなければデータから) |\n| `xt` | json | `null` | 横軸の目盛り(書かなければ自動) |\n| `yt` | json | `null` | 縦軸の目盛り(書かなければ自動) |\n| `xf` | number | | 横軸の目盛りの小数桁 |\n| `yf` | number | | 縦軸の目盛りの小数桁 |\n| `xl` | string | `\"\"` | x axis name (`*italic*` `_sub` `^sup`) * |\n| `yl` | string | `\"\"` | y axis name * |\n| `r` | number | `9` | 点の半径(px) |\n\n気温と売上、勉強時間と点数、価格と販売数など、2 つの量の関係を見せるときに使う。\n点を出してから傾向の線を引く(共通の決まり §3 の「点、それから傾向」)。\n\n- series:`points`(点の並び。`[x, y]` か `{\"x\", \"y\", \"label\", \"anchor\", \"tone\"}`)、`label`(系列の名前。図の上に印と一緒に書く)、`tone`(`term` `emph` `accent2` `muted` `fg` `series-1..4`。既定は `series-1..4` の順)、`step`(1 系列 = 1 段階(書いた順)。同じ `step` の系列は一緒に出す)、`at`(段階の中の開始秒)\n - 点の `label` は点の横に書く(右 → 左 → 上 → 下の順に、ほかの点・字・軸と重ならない所。`anchor`(`right` `left` `above` `below`)で最初に試す向きを決められる)。外れた点や目立つ点だけに付ける\n - 系列ごとに印の形が変わる(丸・四角・三角・ひし形)。色だけに頼らない\n- trend:`\"linear\"`(全部の点の最小二乗の直線)、または `{\"fit\": \"linear\", \"series\": 0, \"label\", \"tone\", \"dash\", \"step\", \"at\", \"digits\"}`、または `{\"pts\": [[x0, y0], [x1, y1]]}`(書いた 2 点を結ぶ線分。ちょうど 2 つの `[x, y]`。縦の線も書ける)。2 本以上は配列にする\n - `series`:当てはめに使う系列の番号(0 から数える。1 つ目の系列が 0。数か番号の配列。既定は全部)\n - `label`:線の名前(図の上に書く)。`{r}` は相関係数、`{a}` は傾き、`{b}` は切片に置き換わる(`digits` 桁、既定 2)。例:`\"傾向(r = {r})\"`\n - `step`:既定は最後の系列の次の段階(線が何本あっても同じ段階)\n - 当てはめた直線は当てはめた点の x の範囲に、`pts` の線は書いた 2 点の間に引き、軸の枠の中で切る。枠の外に出る線は描かず、`ctx.report` で知らせる\n - `pts` の縦の線では `{a}` `{b}`(傾き・切片)は空になる。`{r}` は当てはめた直線だけ\n- 軸の属性:`xr` `yr`(範囲)、`xt` `yt`(目盛り)、`xf` `yf`(目盛りの小数桁)、`xl` `yl`(軸の名前)。`xr` `yr` を書かなければデータから切りのよい範囲を、`xt` `yt` を書かなければ目盛りを決める\n- 見せ方(`variant`):`fade`・`sweep`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 授業の表示(`ctx.preview`)では、先の段階の点と線をテーマの薄さで見せる",
892
+ "entry": "### `<m-scatter>`\n\nData example (child `<script type=\"application/json\">`): `{\"series\":[{\"label\":\"晴れ\",\"points\":[[24,210],[28,380],[31,560],{\"x\":34,\"y\":690,\"label\":\"猛暑日\"}]}],\"trend\":\"linear\"}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `xr` | json | `null` | 横軸の範囲(書かなければデータから) |\n| `yr` | json | `null` | 縦軸の範囲(書かなければデータから) |\n| `xt` | json | `null` | 横軸の目盛り(書かなければ自動) |\n| `yt` | json | `null` | 縦軸の目盛り(書かなければ自動) |\n| `xf` | number | | 横軸の目盛りの小数桁 |\n| `yf` | number | | 縦軸の目盛りの小数桁 |\n| `xl` | string | `\"\"` | x axis name (`*italic*` `_sub` `^sup`) * |\n| `yl` | string | `\"\"` | y axis name * |\n| `r` | number | `9` | 点の半径(px) |\n\n気温と売上、勉強時間と点数、価格と販売数など、2 つの量の関係を見せるときに使う。\n点を出してから傾向の線を引く(共通の決まり §3 の「点、それから傾向」)。\n\n- series:`points`(点の並び。`[x, y]` か `{\"x\", \"y\", \"label\", \"anchor\", \"tone\"}`)、`label`(系列の名前。図の上に印と一緒に書く)、`tone`(`term` `emph` `accent2` `muted` `fg` `series-1..4`。既定は `series-1..4` の順)、`step`(1 系列 = 1 段階(書いた順)。同じ `step` の系列は一緒に出す)、`at`(段階の中の開始秒)\n - 点の `label` は点の横に書く(右 → 左 → 上 → 下の順に、ほかの点・字・軸と重ならない所。`anchor`(`right` `left` `above` `below`)で最初に試す向きを決められる)。外れた点や目立つ点だけに付ける\n - 系列ごとに印の形が変わる(丸・四角・三角・ひし形)。色だけに頼らない。形と既定の色は 4 系列までで、5 つ目からは同じ組がくり返すので、系列は 4 つまでにする\n- trend:`\"linear\"`(全部の点の最小二乗の直線)、または `{\"fit\": \"linear\", \"series\": 0, \"label\", \"tone\", \"dash\", \"step\", \"at\", \"digits\"}`、または `{\"pts\": [[x0, y0], [x1, y1]]}`(書いた 2 点を結ぶ線分。ちょうど 2 つの `[x, y]`。縦の線も書ける)。2 本以上は配列にする\n - `series`:当てはめに使う系列の番号(0 から数える。1 つ目の系列が 0。数か番号の配列。既定は全部)\n - `label`:線の名前(図の上に書く)。`{r}` は相関係数、`{a}` は傾き、`{b}` は切片に置き換わる(`digits` 桁、既定 2)。例:`\"傾向(r = {r})\"`\n - `step`:既定は最後の系列の次の段階(線が何本あっても同じ段階)\n - 当てはめた直線は当てはめた点の x の範囲に、`pts` の線は書いた 2 点の間に引き、軸の枠の中で切る。枠の外に出る線は描かず、`ctx.report` で知らせる\n - `pts` の縦の線では `{a}` `{b}`(傾き・切片)は空になる。`{r}` は当てはめた直線だけ\n- 軸の属性:`xr` `yr`(範囲)、`xt` `yt`(目盛り)、`xf` `yf`(目盛りの小数桁)、`xl` `yl`(軸の名前)。`xr` `yr` を書かなければデータから切りのよい範囲を、`xt` `yt` を書かなければ目盛りを決める\n- 見せ方(`variant`):`fade`・`sweep`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 授業の表示(`ctx.preview`)では、先の段階の点と線をテーマの薄さで見せる",
908
893
  "sup": true
909
894
  },
910
895
  "m-score": {
911
896
  "set": "music",
912
- "row": "| `<m-score>` | 楽譜(五線譜)を 1 音・和音ずつ、または 1 小節ずつ出して音も鳴らす。ABC 記譜法で書く | 音符・和音・休符 1 つ=1 段階。by=\"measure\" なら 1 小節=1 段階 | `{abc:str}` — write abc only; the build adds abcSvg, abcMap and renderers |",
913
- "entry": "### `<m-score>`\n\nData example (child `<script type=\"application/json\">`): `{\"abc\":\"X:1\\nM:4/4\\nL:1/4\\nQ:1/4=96\\nK:C\\nC D E F |]\"}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `by` | string | `\"note\"` | note(1 音・和音ずつ)\\| measure(1 小節ずつ) |\n| `names` | string | `\"none\"` | 符頭の下の名前:solfa(ドレミ)\\| abc \\| iroha(ハニホ)\\| none |\n\n- `abc`:ABC 記譜法。`M:` 拍子、`L:` 基本の長さ、`Q:1/4=96` 速さ、`K:` 調、`[CEG]` 和音、`z` 休符、`-` タイ\n- `names`:符頭の下に `solfa`(ドレミ)・`abc`・`iroha`(ハニホ)。既定は `none`\n- `by=\"measure\"`:1 小節ずつ(音は小節の中で順に鳴る)"
897
+ "row": "| `<m-score>` | 楽譜(五線譜)を 1 音・和音ずつ、または 1 小節ずつ出して音も鳴らす。ABC 記譜法で書く | 音符・和音・休符 1 つ=1 段階。by=\"measure\" なら 1 小節=1 段階(per-step=\"N\" なら N 小節。弱起の小節は次の段階に入る) | `{abc:str}` — write abc only; the build adds abcSvg, abcMap and renderers |",
898
+ "entry": "### `<m-score>`\n\nData example (child `<script type=\"application/json\">`): `{\"abc\":\"X:1\\nM:4/4\\nL:1/4\\nQ:1/4=96\\nK:C\\nC D E F |]\"}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `by` | string | `\"note\"` | note(1 音・和音ずつ)\\| measure(1 小節ずつ) |\n| `names` | string | `\"none\"` | 符頭の下の名前:solfa(ドレミ)\\| abc \\| iroha(ハニホ)\\| none |\n| `per-step` | number | `1` | by=\\ |\n\n- `abc`:ABC 記譜法。`M:` 拍子、`L:` 基本の長さ、`Q:1/4=96` 速さ、`K:` 調、`[CEG]` 和音、`z` 休符、`-` タイ\n- `names`:符頭の下に `solfa`(ドレミ)・`abc`・`iroha`(ハニホ)。既定は `none`\n- `by=\"measure\"`:1 小節ずつ(音は小節の中で順に鳴る)\n- `per-step=\"N\"`:`by=\"measure\"` で N 小節を 1 段階にする(既定 1)。段階の長さは N 小節の長さそのまま\n- `by=\"note\"` は音の名前・高さを 1 つずつ見せるためのもので、各段階は 1.2 秒以上になりリズムは保たれない。リズムを聞かせるときは `by=\"measure\"`。速い曲は `per-step` で 1 段階が 1.2 秒以上になるように(弱起の小節は自動で次の小節とまとめる)"
914
899
  },
915
900
  "m-seq": {
916
901
  "set": "stats",
@@ -932,26 +917,26 @@ export const PACK = {
932
917
  "m-tape": {
933
918
  "set": "math",
934
919
  "row": "| `<m-tape>` | テープ図・線分図。全体や部分を括弧で括り、わからない量は □ か ?。行から行へ「2 倍」の矢印 | steps(既定):行 → 括弧 → 倍の矢印を 1 つずつ。rows:行 1 つ = 1 段階。whole:全部で 1 段階 | `{rows:{label?,tone?,show?:int,segs:{v:num,label?,unknown?:str}[]}[],brace?:{row:int,from:int,to:int,label?,side?:\"above\"\\|\"below\",show?:int}[],times?:{from:int,to:int,label?,show?:int}[]}` — rows [{label, segs: [{v, label, unknown: \"?\" \\| \"□\"}]}]; brace [{row, from, to, label, side: above\\|below}] (from/to are segment numbers from 0); times [{from, to, label}] (row numbers) |",
935
- "entry": "### `<m-tape>`\n\nData example (child `<script type=\"application/json\">`): `{\"rows\":[{\"label\":\"みかん\",\"segs\":[{\"v\":8,\"label\":\"食べた 8 こ\"},{\"v\":15,\"label\":\"のこり 15 こ\"}]}],\"brace\":[{\"row\":0,\"from\":0,\"to\":1,\"label\":\"はじめ □ こ\",\"side\":\"above\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `kind` | string | `\"tape\"` | tape(テープ図)か line(線分図) |\n| `build` | string | `\"steps\"` | steps(行・括弧・矢印を 1 つずつ)・rows(行を 1 つずつ。括弧と矢印はその行と)・whole(全部を 1 段階で) |\n\n- 長さはどの行も同じ尺度で `v` に比例。わからない区切りにも `v` を書く\n- `unknown`:`\"□\"` か `\"?\"`(`label` は後ろに続く)\n- brace:`{row, from, to, label, side: \"above\" | \"below\"}`。from・to は 0 から数えた区切りの番号\n- times:`{from, to, label: \"2 倍\"}`(行の番号)\n- `kind=\"line\"`:線分図\n- 項目の `show`:出す段階\n- 行の名前に色の名前(赤・白)を使わない。色はテーマで変わる"
920
+ "entry": "### `<m-tape>`\n\nData example (child `<script type=\"application/json\">`): `{\"rows\":[{\"label\":\"みかん\",\"segs\":[{\"v\":8,\"label\":\"食べた 8 こ\"},{\"v\":15,\"label\":\"のこり 15 こ\"}]}],\"brace\":[{\"row\":0,\"from\":0,\"to\":1,\"label\":\"はじめ □ こ\",\"side\":\"above\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `kind` | string | `\"tape\"` | tape(テープ図)か line(線分図) |\n| `build` | string | `\"steps\"` | steps(行・括弧・矢印を 1 つずつ)・rows(行を 1 つずつ。括弧と矢印はその行と)・whole(全部を 1 段階で) |\n\n- 長さはどの行も同じ尺度で `v` に比例。わからない区切りにも `v` を書く\n- `unknown`:`\"□\"` か `\"?\"`(`label` は後ろに続く)\n- brace:`{row, from, to, label, side: \"above\" | \"below\"}`。from・to は 0 から数えた区切りの番号\n- times:`{from, to, label: \"2 倍\"}`(行の番号)\n- `kind=\"line\"`:線分図\n- 項目の `show`:出す段階\n- 行の `tone`:行の色(`term`・`emph`・`muted`・`accent2`・`fg`・`series-1..4`。既定は `series-1` から順に)\n- 行の名前に色の名前(赤・白)を使わない。色はテーマで変わる"
936
921
  },
937
922
  "m-timeline": {
938
923
  "set": "standard",
939
924
  "row": "| `<m-timeline>` | 年表。出来事を時間の軸の上に 1 つずつ出す。期間は帯にして、重なる期間は段を分けて積む。end は含まない(\"1912\" は 1912 年の初め) | 出来事の数(既定は時刻の順に 1 つ = 1 段階。per-step で n 個ずつ、node の step が優先) | `{nodes:{id?:str\\|int,label?,tex?,note?,tone?,when:num\\|str,whenLabel?:str,end?:num\\|str,lane?:str,step?,at?,after?:(str\\|int)[],progress?:num}[],edges?:{from:str\\|int,to:str\\|int,label?,tone?,dash?:bool,step?,at?}[]}` — when / end: a number or \"YYYY\", \"YYYY-MM\", \"YYYY-MM-DD\"; end is exclusive (\"1912\" is the start of 1912). whenLabel: the date text shown instead of the computed one (when still sets the position). A node with end is a period (a band); lane groups bands into named lanes |",
940
- "entry": "### `<m-timeline>`\n\nData example (child `<script type=\"application/json\">`): `{\"nodes\":[{\"id\":\"a\",\"label\":\"明治維新\",\"when\":\"1868\",\"whenLabel\":\"明治元年\"},{\"id\":\"b\",\"label\":\"憲法の発布\",\"when\":\"1889\",\"note\":\"2 月 11 日\"},{\"id\":\"c\",\"label\":\"日清戦争\",\"when\":\"1894\",\"end\":\"1895\",\"tone\":\"emph\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `orient` | string | `\"h\"` | h(左から右へ)か v(上から下へ) |\n| `scale` | string | `\"time\"` | time(時間に比例した間隔)か even(等間隔。間がとても不ぞろいなとき) |\n| `per-step` | number | `1` | 1 段階に出す出来事の数(0 = 全部を段階 1 で) |\n| `size` | number | `26` | 名前の字の大きさ(px。入らなければ 24 まで縮める) |\n| `unit` | string | `\"\"` | 目盛り:day・week・month |\n| `today` | string | `\"\"` | 今日の線(YYYY-MM-DD) |\n\n歴史の年表、人物の生涯の重なり、計画の日程など、出来事を時間の順に見せるときに使う。\n座標は書かない。中身と時刻だけを書けば、部品が並べる(共通の決まり §2)。\n\n子の JSON の並び:`edges` は省ける。\n\n- `when`:時刻。数(`1868`、`-500`、`0.5` など)か、文字列 `\"YYYY\"` `\"YYYY-MM\"` `\"YYYY-MM-DD\"`。箱の上の行に日付として出る(日本語の資料なら「1868年」「2026年10月」)\n- `whenLabel`:日付の行に、計算した日付の代わりに書く字(「明治元年」「平成の終わり」など)。位置は `when` で決まる\n- `label`:名前(`\\n` で改行、`*斜体*` `_下付き` `^上付き`)。または `tex`(KaTeX)\n- `note`:箱の**中**の最後の行に小さく(`--muted`)。期間と節目では名前の後ろに続けて。例:「2 月 11 日」「新橋〜横浜」\n- `tone`:`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`。`emph` の箱は地が `--emph-tint`、枠と字が `--emph`\n- `end`:あれば期間。軸の下の段に帯で描き、名前は帯の中(入らなければ帯の右か左)に書く。名前を `\\n` で何行かにすると、帯がその分太くなる\n- `end` は含まない(終わりの時点)。`\"1912\"` は 1912 年の初め。明治 1868–1912 と大正 1912–1926 は同じ段に並ぶ。12 月まで含めるなら次の月(`\"2027-01\"`)を書く。\n- `lane`:期間を名前の付いた段のまとまりに分ける(「時代」「作家」「設計」など)。まとまりの名前を左に書き、まとまりの間に薄い線を引く。重なる期間は、まとまりの中で自動で別の段に積む。`end` のない node に `lane` を書くと、その段の中の節目(◆)になる\n- `step`・`at`:出る段階と、段階の中の開始秒\n- `edges`:ほかのつながり(`from` `to` `label` `tone` `dash` `step`)。箱の縁から縁への破線の矢印(`dash: false` で実線)\n- 工程表:`after: [\"id\", …]`(前の作業の終わりから始まりへ矢印)、`progress`(0–100 %。濃く塗る)。今日の線は `today`、目盛りの単位は `unit`\n\n並べ方:\n\n- `orient`:`h`(既定、左から右へ)か `v`(上から下へ)\n- `scale`:`time`(既定、時間に比例した間隔)か `even`(使った時刻を等間隔に。間がとても不ぞろいなとき)\n- 出来事(`end` も `lane` もない node)は軸の上の点と、日付と名前の箱。箱は軸の上と下に交互に置く(`v` なら左と右)。混んでいて箱が点から離れすぎるときは 2 段にする\n- 期間があるときは、軸に切りのよい目盛り(年・月・数)を付け、出来事の箱はすべて軸の上に置く(下は期間の段)\n- 段階:既定は時刻の順に 1 つずつ(期間も出来事も同じ列で数える)。軸は最初の出来事と一緒に引かれる\n- 線:軸は `--muted` の 5 px(図の中心の線として 1 本だけ太い)。軸の目盛りと目盛りの字(図の字の大きさ)も `--muted`。段のまとまりの間の区切りの線だけ `--line`。箱から軸への線と `edges` は `--muted` の 3 px\n- 見せ方(`variant`):`fade`・`draw`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 動きの上限:どの見せ方でも箱が動くのは 12 px まで(箱の中心で測る)、時間も `fade` の長さの中(共通の決まり §1.2)\n- 授業の表示(`ctx.preview`):後の段階の出来事・期間をテーマの薄さで見せる\n- `cues(k)`:同じ段階に 2 つ以上あれば、2 つ目からの開始時刻を返す(口述原稿の `{cue}` に合わせられる)"
925
+ "entry": "### `<m-timeline>`\n\nData example (child `<script type=\"application/json\">`): `{\"nodes\":[{\"id\":\"a\",\"label\":\"明治維新\",\"when\":\"1868\",\"whenLabel\":\"明治元年\"},{\"id\":\"b\",\"label\":\"憲法の発布\",\"when\":\"1889\",\"note\":\"2 月 11 日\"},{\"id\":\"c\",\"label\":\"日清戦争\",\"when\":\"1894\",\"end\":\"1895\",\"tone\":\"emph\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `orient` | string | `\"h\"` | h(左から右へ)か v(上から下へ) |\n| `scale` | string | `\"time\"` | time(時間に比例した間隔)か even(等間隔。間がとても不ぞろいなとき) |\n| `per-step` | number | `1` | 1 段階に出す出来事の数(0 = 全部を段階 1 で) |\n| `size` | number | `26` | 名前の字の大きさ(px。入らなければ 24 まで縮める) |\n| `unit` | string | `\"\"` | 目盛り:day・week・month |\n| `today` | string | `\"\"` | 今日の線(YYYY-MM-DD) |\n\n歴史の年表、人物の生涯の重なり、計画の日程など、出来事を時間の順に見せるときに使う。\n座標は書かない。中身と時刻だけを書けば、部品が並べる(共通の決まり §2)。\n\n子の JSON の並び:`edges` は省ける。\n\n- `when`:時刻。数(`1868`、`-500`、`0.5` など)か、文字列 `\"YYYY\"` `\"YYYY-MM\"` `\"YYYY-MM-DD\"`。箱の上の行に日付として出る(日本語の資料なら「1868年」「2026年10月」)\n- `whenLabel`:日付の行に、計算した日付の代わりに書く字(「明治元年」「平成の終わり」など)。位置は `when` で決まる\n- `label`:名前(`\\n` で改行)。または `tex`(KaTeX)\n- `note`:箱の**中**の最後の行に小さく(`--muted`)。期間と節目では名前の後ろに続けて。例:「2 月 11 日」「新橋〜横浜」\n- `tone`:`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`。`emph` の箱は地が `--emph-tint`、枠と字が `--emph`\n- `end`:あれば期間。軸の下の段に帯で描き、名前は帯の中(入らなければ帯の右か左)に書く。名前を `\\n` で何行かにすると、帯がその分太くなる\n- `end` は含まない(終わりの時点)。`\"1912\"` は 1912 年の初め。明治 1868–1912 と大正 1912–1926 は同じ段に並ぶ。12 月まで含めるなら次の月(`\"2027-01\"`)を書く。\n- `lane`:期間を名前の付いた段のまとまりに分ける(「時代」「作家」「設計」など)。まとまりの名前を左に書き、まとまりの間に薄い線を引く。重なる期間は、まとまりの中で自動で別の段に積む。`end` のない node に `lane` を書くと、その段の中の節目(◆)になる\n- `step`・`at`:出る段階と、段階の中の開始秒\n- `edges`:ほかのつながり(`from` `to` `label` `tone` `dash` `step`)。箱の縁から縁への破線の矢印(`dash: false` で実線)\n- 工程表:`after: [\"id\", …]`(前の作業の終わりから始まりへ矢印)、`progress`(0–100 %。濃く塗る)。今日の線は `today`、目盛りの単位は `unit`\n - `after` の矢印は期間(`end` のある node)か節目(`lane` のある node)のあいだだけ。`lane` のない出来事を指すと引かない。`today` の線は期間が 1 つ以上あるときだけ出る\n\n並べ方:\n\n- `orient`:`h`(既定、左から右へ)か `v`(上から下へ)\n- `scale`:`time`(既定、時間に比例した間隔)か `even`(使った時刻を等間隔に。間がとても不ぞろいなとき)\n- 出来事(`end` も `lane` もない node)は軸の上の点と、日付と名前の箱。箱は軸の上と下に交互に置く(`v` なら左と右)。混んでいて箱が点から離れすぎるときは 2 段にする\n- 期間があるときは、軸に切りのよい目盛り(年・月・数)を付け、出来事の箱はすべて軸の上に置く(下は期間の段)\n- 段階:既定は時刻の順に 1 つずつ(期間も出来事も同じ列で数える)。軸は最初の出来事と一緒に引かれる\n- 線:軸は `--muted` の 5 px(図の中心の線として 1 本だけ太い)。軸の目盛りと目盛りの字(図の字の大きさ)も `--muted`。段のまとまりの間の区切りの線だけ `--line`。箱から軸への線と `edges` は `--muted` の 3 px\n- 見せ方(`variant`):`fade`・`draw`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 動きの上限:どの見せ方でも箱が動くのは 12 px まで(箱の中心で測る)、時間も `fade` の長さの中(共通の決まり §1.2)\n- 授業の表示(`ctx.preview`):後の段階の出来事・期間をテーマの薄さで見せる\n- `cues(k)`:同じ段階に 2 つ以上あれば、2 つ目からの開始時刻を返す(口述原稿の `{cue}` に合わせられる)"
941
926
  },
942
927
  "m-timer": {
943
928
  "set": "tools",
944
929
  "row": "| `<m-timer>` | グループワークの進行タイマー。区切りごとに残り時間を大きく数え、区切りの一覧で今の区切りを示す | 0 準備の画面、区切り 1 つが 1 段階(その長さ = sec 秒) | `{ready?:{title?:str,text?:str},phases:{title:str,short?:str,text?:str,sec:int,bells?:{left:int,count?:int}[]}[],bells?:{left:int,count?:int}[],done?:str,labels?:{ready?:str,total?:str,remaining?:str,done?:str,start?:str,next?:str,end?:str,min?:str,sec?:str,plus?:str,minus?:str}}` — phases is a list of {\"title\", \"sec\"} (sec: whole seconds, not \"3分\"); one phase per step |",
945
- "entry": "### `<m-timer>`\n\nData example (child `<script type=\"application/json\">`): `{\"ready\":{\"title\":\"準備の確認\",\"text\":\"用紙とペンがそろっているか\"},\"phases\":[{\"title\":\"① 付箋に書く\",\"short\":\"付箋に書く\",\"sec\":180},{\"title\":\"② 島で選ぶ\",\"short\":\"島で選ぶ\",\"sec\":300}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `(なし)` | | | |\n\n依頼にグループワーク・作業時間・制限時間があるときだけ使う。→ キーで段階を進めると数え始める。\n\n- `sec` は秒の整数(3 分なら 180)。`short` は右の一覧に出す短い名前、`text` は 2 行まで\n- 最後の 1 分は赤、最後の 10 秒は時計が点滅\n- 字は `<html lang>` で日本語か英語。`labels` で変えられる:`total` `remaining` `done` `start` `next` `end` `min` `sec` `plus` `minus`\n- 実行系が対応していれば +1 分・−1 分のボタンが出る(同じスライドにいるあいだは延ばした時間が残る)\n- ベル(学会タイマーのように):`\"bells\": [{\"left\": 300, \"count\": 1}, {\"left\": 120, \"count\": 2}, {\"left\": 0, \"count\": 3}]`(残り秒と回数)。全体か区切りごとに書く。書かなければ鳴らない"
930
+ "entry": "### `<m-timer>`\n\nData example (child `<script type=\"application/json\">`): `{\"ready\":{\"title\":\"準備の確認\",\"text\":\"用紙とペンがそろっているか\"},\"phases\":[{\"title\":\"① 付箋に書く\",\"short\":\"付箋に書く\",\"sec\":180},{\"title\":\"② 島で選ぶ\",\"short\":\"島で選ぶ\",\"sec\":300}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `(なし)` | | | |\n\n依頼にグループワーク・作業時間・制限時間があるときだけ使う。→ キーで段階を進めると数え始める。\n\n- 区切り(`phases`)は 8 つまで。`sec` は秒の整数(3 分なら 180)。`short` は右の一覧に出す短い名前、`text` は 2 行まで\n- 最後の 1 分は時計と棒が強調の色(テーマの `--emph`)、最後の 10 秒は時計が点滅\n- 字は `<html lang>` で日本語か英語。`labels` で変えられる:`ready` `total` `remaining` `done` `start` `next` `end` `min` `sec` `plus` `minus`\n- 実行系が対応していれば +1 分・−1 分のボタンが出る(同じスライドにいるあいだは延ばした時間が残る)\n- ベル(学会タイマーのように):`\"bells\": [{\"left\": 300, \"count\": 1}, {\"left\": 120, \"count\": 2}, {\"left\": 0, \"count\": 3}]`(残り秒と回数)。全体か区切りごとに書く。書かなければ鳴らない"
946
931
  },
947
932
  "m-tree": {
948
933
  "set": "standard",
949
934
  "row": "| `<m-tree>` | 階層・分類の木(組織図、生物の分類など)を、根から 1 段ずつ組み立てる。座標は書かず、配置は部品が決める | 節の深さの数(by=\"level\"、既定)か節の数(by=\"node\")。節と edges の step があればその最大 | `{nodes:{id:str\\|int,label?,tex?,note?,tone?,parent?:str\\|int,branch?:str,step?,at?}[],edges?:{from:str\\|int,to:str\\|int,label?,tone?,dash?:bool,step?,at?}[],path?:(str\\|int)[],pathStep?:int,pathNote?:str}` — parent のない節(根)はちょうど 1 つ |",
950
- "entry": "### `<m-tree>`\n\nData example (child `<script type=\"application/json\">`): `{\"nodes\":[{\"id\":\"r\",\"label\":\"動物\"},{\"id\":\"a\",\"label\":\"脊椎動物\",\"parent\":\"r\"},{\"id\":\"b\",\"label\":\"無脊椎動物\",\"parent\":\"r\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `orient` | string | `\"down\"` | down(上から下、既定)か right(左から右) |\n| `by` | string | `\"level\"` | 段階の分け方:level(深さごと、既定)か node(1 つずつ、深さ優先の順) |\n| `link` | string | `\"elbow\"` | 親子の線:elbow(かぎ形、既定)か straight(まっすぐ) |\n| `size` | number | `0` | 箱の字の大きさ(px。0 = 27 から入るまで 24 まで縮める) |\n\n組織図、生物や物質の分類、概念の上位と下位、章と節の構成など、親子の関係で並ぶものを上から順に見せるときに使う。\n座標は書かない(共通の決まり §2)。中身とつながりだけを書けば、部品が重ならないように並べる。\n\n子の JSON の並び:`edges` は省いてよい。\n\n- node:`id`、`label`(`\\n` で改行、`*斜体*` `_下付き` `^上付き`)か `tex`(KaTeX)、`parent`(親の `id`。`parent` のない節(根)はちょうど 1 つ)、`note`(箱の**下**に小さな一言、`--muted`)、`tone`(`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`)、`step`、`at`(段階の中の開始秒)\n- 子は配列の順に並ぶ。親は子の並びの中央に置く\n- edge:親子のほかのつながり(`from` `to` `label` `tone` `dash` `step`)。破線で矢印つき、木の外側(`down` は下、`right` は右)へふくらむ。同じ深さの節どうしに向く。段階は既定で両端の遅いほう\n- 子の `branch`:線の字(確率など)。`path`:根からの `id` の道を順に強調(`pathStep` で一度に。`pathNote`:末尾の一言)\n- `orient`:`down`(既定、上から下)か `right`(左から右。分類を横に広げるとき)\n- `by`:`level`(既定。根、それから深さごとに 1 段)か `node`(深さ優先の順に 1 つずつ。1 つの枝をたどって話すとき)。節の `step` が勝つ\n- `link`:親子の線。`elbow`(既定、かぎ形)か `straight`(まっすぐ)。線の色は `--muted`、3 px\n- `tone: emph` の箱は、地が `--emph-tint`、枠と字が `--emph`\n- 入る大きさの目安(1280×720 の本文、高さ 440 px ほど):`down` は 1 段に 4 字ほどの箱が 8 個、`right` は 7 個ほど。深さは 5 段ほど。\n それより多い葉(子のない節)が 1 つの親に並ぶと、子を 2 段に互い違いに並べる(`down` で 16 個ほど、`right` で 11 個ほどまで)。\n さらに入らなければ名前を 2 行に折る。字は 24 px より小さくならず、入らない分は要素の箱からはみ出す(`console.warn` が足りない px を言う)。多いときは木を分ける\n- 見せ方(`variant`):`fade`・`draw`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 動きの上限:どの見せ方でも箱が動くのは 12 px まで(箱の中心で測る)、時間も `fade` の長さの中(共通の決まり §1.2)\n- 授業の表示(`ctx.preview`)では、後の段階の箱と線をテーマの薄さで出しておく"
935
+ "entry": "### `<m-tree>`\n\nData example (child `<script type=\"application/json\">`): `{\"nodes\":[{\"id\":\"r\",\"label\":\"動物\"},{\"id\":\"a\",\"label\":\"脊椎動物\",\"parent\":\"r\"},{\"id\":\"b\",\"label\":\"無脊椎動物\",\"parent\":\"r\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `orient` | string | `\"down\"` | down(上から下、既定)か right(左から右) |\n| `by` | string | `\"level\"` | 段階の分け方:level(深さごと、既定)か node(1 つずつ、深さ優先の順) |\n| `link` | string | `\"elbow\"` | 親子の線:elbow(かぎ形、既定)か straight(まっすぐ) |\n| `size` | number | `0` | 箱の字の大きさ(px。0 = 27 から入るまで 24 まで縮める) |\n\n組織図、生物や物質の分類、概念の上位と下位、章と節の構成など、親子の関係で並ぶものを上から順に見せるときに使う。\n座標は書かない(共通の決まり §2)。中身とつながりだけを書けば、部品が重ならないように並べる。\n\n子の JSON の並び:`edges` は省いてよい。\n\n- node:`id`、`label`(`\\n` で改行)か `tex`(KaTeX)、`parent`(親の `id`。`parent` のない節(根)はちょうど 1 つ)、`note`(箱の**下**に小さな一言、`--muted`)、`tone`(`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`)、`step`、`at`(段階の中の開始秒)\n- 子は配列の順に並ぶ。親は子の並びの中央に置く\n- edge:親子のほかのつながり(`from` `to` `label` `tone` `dash` `step`)。破線で矢印つき、木の外側(`down` は下、`right` は右)へふくらむ。同じ深さの節どうしに向く。段階は既定で両端の遅いほう\n- 子の `branch`:線の字(確率など)。`path`:根からの `id` の道を順に強調(`pathStep` で一度に。`pathNote`:末尾の一言)\n- `orient`:`down`(既定、上から下)か `right`(左から右。分類を横に広げるとき)\n- `by`:`level`(既定。根、それから深さごとに 1 段)か `node`(深さ優先の順に 1 つずつ。1 つの枝をたどって話すとき)。節の `step` が勝つ\n- `link`:親子の線。`elbow`(既定、かぎ形)か `straight`(まっすぐ)。線の色は `--muted`、3 px\n- `tone: emph` の箱は、地が `--emph-tint`、枠と字が `--emph`\n- 入る大きさの目安(1280×720 の本文、高さ 440 px ほど):`down` は 1 段に 4 字ほどの箱が 8 個、`right` は 7 個ほど。深さは 5 段ほど。\n それより多い葉(子のない節)が 1 つの親に並ぶと、子を 2 段に互い違いに並べる(`down` で 16 個ほど、`right` で 11 個ほどまで)。\n さらに入らなければ名前を 2 行に折る。字は 24 px より小さくならず、入らない分は要素の箱からはみ出す(足りない px を `ctx.report` で知らせ、Studio の検査に出る)。多いときは木を分ける\n- 見せ方(`variant`):`fade`・`draw`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 動きの上限:どの見せ方でも箱が動くのは 12 px まで(箱の中心で測る)、時間も `fade` の長さの中(共通の決まり §1.2)\n- 授業の表示(`ctx.preview`)では、後の段階の箱と線をテーマの薄さで出しておく"
951
936
  },
952
937
  "m-venn": {
953
938
  "set": "standard",
954
- "row": "| `<m-venn>` | 2 つか 3 つの集合の円(ベン図)。集合を 1 つずつ出し、最後に重なりを強めてその中の項目を出す | 集合の数 + 1(overlaps=\"each\" なら 集合の数 + 項目のある重なりの数) | `{sets:{label,tone?}[],regions?:{A?:str[]\\|str,B?:str[]\\|str,C?:str[]\\|str,AB?:str[]\\|str,AC?:str[]\\|str,BC?:str[]\\|str,ABC?:str[]\\|str}}` |",
939
+ "row": "| `<m-venn>` | 2 つか 3 つの集合の円(ベン図)。集合を 1 つずつ出し、最後に重なりを強めてその中の項目を出す | 集合の数 + 1(overlaps=\"each\" なら 集合の数 + 項目のある重なりの数。項目のある重なりがなければ重なりすべての数:2 集合で 1、3 集合で 4) | `{sets:{label,tone?}[],regions?:{A?:str[]\\|str,B?:str[]\\|str,C?:str[]\\|str,AB?:str[]\\|str,AC?:str[]\\|str,BC?:str[]\\|str,ABC?:str[]\\|str}}` |",
955
940
  "entry": "### `<m-venn>`\n\nData example (child `<script type=\"application/json\">`): `{\"sets\":[{\"label\":\"哺乳類\"},{\"label\":\"海の生き物\"}],\"regions\":{\"A\":[\"ライオン\"],\"B\":[\"マグロ\"],\"AB\":[\"クジラ\",\"イルカ\"]}}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `26` | 項目の字の大きさ(px)。収まらなければ 24 まで縮める |\n| `spread` | number | `1` | 円の中心の間の距離 ÷ 半径(小さいほど重なりが広い。0.7〜1.3) |\n| `overlaps` | string | `\"together\"` | together(重なりを 1 段階でまとめて)か each(1 つずつ) |\n\n2 つか 3 つのものの共通点と違い(哺乳類と海の生き物、3 つのスキルの重なり など)を、重なりで見せるときに使う。\n<!--part:m-compare-->観点ごとに値を並べて比べるなら `m-compare`。<!--/part-->\n\n- `sets`:集合(2 つか 3 つ)。`label` は円の外に書く名前、`tone` は円の色(`term`・`emph`・`muted`・`accent2`・`series-1..4`。既定は `term`・`accent2`・`series-4` の順)。`--emph` は重なりを強めるのに使うので、集合には使わないほうがよい\n- `regions`:領域ごとの項目(1 つ 1 行の配列か、`\\n` で改行した字)。鍵は集合の文字の組で、アルファベット順に書く。文字は `sets` の順(`sets` の 1 つ目が A・2 つ目 B・3 つ目 C):\n - `A`:A だけ(ほかの集合には入らない)、`AB`:A と B の両方(3 つのときは、A と B に入り C には入らないところ)、`ABC`:3 つとも\n - 2 つなら `A` `B` `AB`、3 つなら `A` `B` `C` `AB` `AC` `BC` `ABC`。どれも省いてよい。集合が 2 つのときに C を含む鍵(`C` `AC` `BC` `ABC`)を書くと、図の代わりに誤りの札が出る\n- 円は左右対称の決まった配置で、面積は値に比例しない(2 つは左右、3 つは左上・右上・下)。`spread`(既定 1)は円の中心の間の距離 ÷ 半径で、小さいほど重なりが広い\n- 項目は、その領域の中で円の線から最も離れる位置に置く。字は `size`(既定 26 px)から 24 px まで縮める。重なりの項目は太字\n- 段階:既定は 集合を 1 つずつ(その集合だけの項目と一緒に)→ 重なり(項目のある重なりを `--emph` で薄く塗って縁を囲み、項目を出す。項目のある重なりがなければ重なりすべて)。`overlaps=\"each\"` なら重なりを 1 つずつ(`AB`・`AC`・`BC`・`ABC` の順)\n- 見せ方(`variant`):`fade`・`draw`。書かなければ資料のシード値で選ばれる(書かなくてよい)"
956
941
  }
957
942
  },
@@ -961,7 +946,7 @@ export const PACK = {
961
946
  "extHead": "### `<{name}>`: extension for this part set (the component is described in §3)"
962
947
  },
963
948
  "ja": {
964
- "common": "# AI への指示\n\n指示の版:`b47ccdba`\n\n短い **Egatari の教材**を 1 つ書いてください。段階ごとに出る HTML のスライド(`deck.html`)と口述原稿(`narration.md`)で、どちらも自動で組まれ、品質チェックを受けます。ここにないものは使えません。教材は頼まれた言語で書きます(スライドと口述原稿は同じ言語)。規格には **R-fit** のような名前があり、修正依頼は破った規格を名前で示します。依頼は最後の **頼みたいこと**(かその前の会話)にあります。空の項目やない項目はほどよく決め、A と B が両方残っていれば書き込みのある方に従います。\n\n**よくある失敗:**\n\n- **2 つの囲みはどちらも最後まで書いて閉じる。**囲みの途中で終わらない(R-output)。構成案がなければ、教材は短くする(5〜8 枚)。頼む文に構成案とその範囲があれば、その範囲のスライドをちょうどその枚数だけ書く(エディタは 1 回に 6 枚までしか頼まないので、収まる)\n- **1280×720 のスライドの大きさ**(品質チェックが測る。R-fit):本文の場所は 1184 × 443 px(565 px まで。`noconcl` なら 1184 × 558)。字は 32 px・1 行 46 px で、入るのは**およそ 8 行**。はみ出す 46 px ごとに 1 行を削る。**図や部品の中も含め、字はすべて 24 px 以上**\n- **グラフと図:**部品は大きさによらず字を 24〜28 px で描くので、決めるのは部品の大きさ(R-fit)\n- **その場で書く `<svg>`:**字は「表示の幅 ÷ viewBox の幅」で縮むので、viewBox を表示の画素で書く(`<svg viewBox=\"0 0 560 320\" width=\"560\" height=\"320\">`)。`font-size` は 24 以上。`width:100%` と別の幅の viewBox を組み合わせない。合う部品があれば部品を使う\n\n## 1. 出力の形\n\n- **R-output** 返事は**ちょうど 2 つのコードの囲み**にし、この順で、名前を `deck.html` と `narration.md` にする(始まりの行は ```` ```deck.html ```` と ```` ```narration.md ````)。間には何も書かない(前後に 1 行の添え書きはよい)。1 つのファイルを囲みに分けない。ファイル・キャンバス・添付にせず、返事の本文に書く。ほかのファイルを参照しない(画像・`{{FIG:…}}`・`{{JSON:…}}`・外の URL・`<link>` は使わない)。囲みの途中で終わらない(長すぎるなら枚数を減らす。ただし構成案の範囲を頼まれたら、ちょうどその枚数)\n- **R-outline** **構成案だけ**を頼まれたら(長い教材を 2 回に分けて作るとき)、`outline` という名前の囲み 1 つ(始まりの行は ```` ```outline ````)だけで返し、`deck.html` と `narration.md` は書かない:列が「番号」「見出し」「要点(1 行)」の Markdown の表で、スライドごとに 1 行、全スライドを順に。その後の頼む文は範囲を示す(「構成案の 7〜12 枚目」)ので、その見出しと要点のとおりに、ちょうどそのスライドを書く\n- **R-noids** スライドの id を**書かない**。`<section class=\"slide\">` に `id` を付けず、口述原稿の見出しにも `{#…}` を付けない。id は取り込みでエディタが付ける。id のあるデッキを渡されたとき(修正依頼)は、今ある `id=\"…\"` と `{#…}` をそのまま残す\n\n## 2. deck.html\n\n### 2.1 骨組み\n\n```html\n<!DOCTYPE html>\n<html lang=\"ja\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>教材の題名</title>\n</head>\n<body>\n<div id=\"stage\">\n <section class=\"slide cover noconcl static\"> … </section>\n <section class=\"slide\"> … </section>\n</div>\n</body>\n</html>\n```\n\n- `lang`:`ja`・`en` など(教材の言語)。`data-theme`:ビジネス・ピッチは `sumi`、国語は `kokugo`、ほかは `default`\n- `<script>` は部品のデータ(§2.6)だけ。`<style>` は配置(大きさ・間隔)だけに使い、色は書かない\n\n### 2.2 スライド\n\n- 普通のスライド:`<h2>` の見出し、`<div class=\"body\">…</div>`、`<div class=\"concl\"><span>…</span></div>`(結論の行。短い 1 文)\n- 表紙:`<section class=\"slide cover noconcl static\">` に、あれば `<div class=\"venue\">…</div>`、`<h1>題名</h1>`、あれば `<div class=\"au\">…</div>`\n- 章の扉:`<section class=\"slide sec noconcl static\"><h1>章の題</h1></section>`\n- `<section>` の class:`noconcl`(結論の行なし)、`static`(段階なし)、`nostep`(箇条書きも初めから全部)、`layout-tate`(縦書き。kokugo の束があるときだけ)、属性 `data-morph`(§2.5)\n- `.body` の中:`<p class=\"sub\">` 小見出し、`<div class=\"big\">` 主要な式、`<p class=\"note\">` 補足、`<div class=\"thm\">` 定理の枠、`<div class=\"cols\">` 横並び、普通の `<p>` `<ul>` `<ol>` `<table>`\n- 字の強調(色を付ける唯一の方法):`term`(用語・問い)、`emph`(結論・問題・目標)、`muted`(既知の結果・控えめ)、`b`(太字)\n- **R-headings** スライドの見出し(表紙と扉は `h1`、ほかは `h2`)は**すべて違う**ものにする(同じなら語を足す)。そのスライドの口述原稿の節は `## ` に続けて**見出しとまったく同じ文字列**で始める(`<br>` などのタグは除く)\n- **R-colors** 色はテーマだけで:上の class と式のマクロ `\\hlE` `\\hlT` `\\hlM`。16 進・`rgb()`・色の名前・`\\color`・`\\textcolor` は使わない。部品や SVG の中では:**色はテーマの CSS 変数だけ**を使う:`var(--fg)` `var(--term)` `var(--emph)` `var(--muted)` `var(--accent2)` `var(--line)`。SVG では属性ではなく `style=\"stroke:var(--emph)\"` で書く(`DECK.el` は `fill` `stroke` に `var(` があれば自動で style に回す)\n\n### 2.3 段階(出す順 = 話す順)\n\n- **R-steps** 段階 0 は現れたときの姿で、文脈だけ(見出し・小見出し・導入の 1 文)。`data-step=\"k\"`(k = 1, 2, …)の要素は段階 k で現れる。材料(箇条書きの項目・式・表の行・図の部分)は話す順に出す。式とそれを導く 1 文は同じ段階(`<div data-step=\"k\">` で一緒に囲む)。1 枚の段階は 5 前後まで\n- 結論の行は自動で**最後の段階** `concl` になる(`data-step` を付けない)\n- `data-step` が 1 つもないスライドでは、上の階層の箇条書きの項目(`.body > ul > li`・`.body > ol > li`)に 1, 2, … が自動で付く。1 つでもあれば自動にならないので、出すものすべてに付ける\n- 部品は自分の段階を足す(§3)。`data-from`(既定 1)から始まる\n- つまり段階は `0 … max` と、結論の行があれば `concl`。`static` のスライドは段階 0 だけ\n\n### 2.4 数式(KaTeX)\n\n- **R-math** 行内は `\\( … \\)`、別行は `\\[ … \\]`。式の中の `<` は `\\lt`、`>` は `\\gt`。標準のほかに使えるマクロ:`\\hlE{…}`(emph)`\\hlT{…}`(term)`\\hlM{…}`(muted)、`\\htmlId{ID}{…}`、`\\htmlData{mark=ID}{…}`、`\\htmlClass{…}{…}`、`\\morph{ID}{…}`。`\\newcommand` と `\\color` は使わない。記号は最初に使う所で定義する(`\\(\\mu\\)`:母平均)\n\n### 2.5 注目の演出とモーフ\n\n- **R-marks** 口述原稿の `{mark:ID}`(§4)は、**同じスライド**の目印に印を付ける。目印:スライドの中の `id=\"ID\"` か `data-mark=\"ID\"` の要素。式の一部は KaTeX の `\\htmlId{ID}{…}` / `\\htmlData{mark=ID}{…}`(build はこの 2 つと `\\htmlClass` だけを許す)。同じ ID を何枚かで使うなら `data-mark` にする(id は文書の中で一意に)\n- モーフ(なくてよい):`<section class=\"slide\" data-morph>` は前のスライドの要素を今の位置へ滑らせる。両方のスライドの要素に同じ `data-id=\"…\"`、式の一部は両方に `\\morph{ID}{…}`。段階 0 で見えている要素だけが動く\n\n### 2.6 部品\n\n- **R-components** 動く図は一覧(§3)の Web Components `<m-…>` で、`.body` の中に置く。どれにも高さ(`style=\"height:380px\"`)と `aria-label` を付ける。データは子の `<script type=\"application/json\">…</script>` **1 つ**にその場で書く。**図の数字は正しく**(計算する。見た目のために値を作らない。架空の数字は架空と書く)。関数の式は算術の式だけで、コードとしては実行されない(`Math.exp(x)`・`x**2`)。動きが説明になる所だけに使う(たいていのスライドには要らない)\n\n### 2.7 表し方を選ぶ\n\n- **R-purpose** 表し方は習慣でなく、そのスライドで言いたいことから選ぶ。作者がグラフの種類を言っていればそれに従う。表は全パーツの一覧を兼ねる。使うのは渡された文章にあるパーツだけ(§3 と、入っている束)。入っていないパーツの方が合うときは、1 行のメモでそう伝える\n\n{{PURPOSES}}\n\n- **R-whole** 箇条書き・数字の札・円グラフは全体を一度に見せる。台本が 1 つずつ取り上げるときだけ 1 行ずつ出す(箇条書きなら全体に 1 つの `data-step` を付けるか、スライドに `nostep`)\n\n### 2.8 スライドに収める(品質チェックのエラー)\n\n- **R-title** 見出し:日本語は 26 字まで(全角 1・半角 0.5)、英語は 60 文字まで。コロンで終えない\n- **R-concl** 結論の行:日本語は 35 字まで、英語は 70 文字まで。1 行\n- **R-fit** 本文は 565 px(`noconcl` なら 680 px)より上で終える:1 枚におよそ 8 行・100 字・英語 60 語、または `big` の式 1 つと短い箇条書き 3 つ、または高さ 380 px までの部品と短い 1 行(2 行なら 330 px まで)。入らなければスライドを分ける。字を縮めず、字の大きさを書かない。図の中の字は 24 px 以上\n- **R-style** 日本語のスライドは常体(だ・である、体言止め)で、です・ます を使わない。句読点はデッキ全体で 1 つの組(`、。` か `,.`)。英語のスライドは短い句で\n\n## 3. 部品の一覧\n\nどの教材でも使える標準の部品。§6 の後に束の指示があれば、その種類の材料の部品が加わる。「steps」は部品が使うスライドの段階の数(`data-from` から。既定 1)。秒で測る属性(動きの長さ・ずれ)は載せない(既定で口述原稿に合う)。型が json の属性は、値に JSON を書く(`values=\"[0.1,0.5]\"`)。「データの形」の `?` は省略できる欄。型を書いていない label・tex・note・tone は str、step は int、at は num。\n\n{{CATALOG}}\n\n## 4. narration.md\n\n```markdown\n# 口述原稿:<教材の題名>\n\n## 減衰の式\n[0] 減衰の式です。時刻ごとに残っている原子の数を考えます。\n[1] 残る数は、はじめの数に、時間とともに小さくなる指数関数を掛けたものです。\n[2] {mark:n0|circle}{N₀|エヌゼロ} は、時刻ゼロのときの、はじめの数です。\n[concl] 半分になるまでの時間は、崩壊定数だけで決まります。\n```\n\n- スライドごとに 1 つの節を、**スライドの順に、すべてのスライド(表紙も)について**:`## <スライドの見出し>`(R-headings)。`{#id}` は付けない(R-noids)\n- **R-narr-steps** 段階の印は `[0]` `[1]` … と `[concl]`。**どのスライドのどの段階にも口述原稿を書き**(段階 0 から max まで、結論の行があれば `[concl]`)、**ない段階の印は書かない**(`static` の表紙は `[0]` だけ。結論の行がなければ `[concl]` もない。`[01]` とは書かない)。段階の中では、その段階で現れるものだけを話す\n- **R-dialogue** **既定は話者 1 人**で、話者名を書かない。掛け合いは頼まれたときだけ(3 人以上を頼まれても 2 役にし、最初にそう書く):行を `Expert:` か `Novice:` で始め(続きの行は字下げ。話者なしは Expert)、認知的徒弟制の形にする:\n - Novice は相づち役にせず、学ぶ人の疑問を代弁するか、「つまり〜ということですか」と言い換える\n - Expert は答えて具体例か比喩を 1 つ足すか、言い換えを確かめて(違えば直して)1 歩進める\n - 理解の分かれ目(誤解しやすい所、「なぜ」が残る所)にだけ、1 枚に 1 回・2〜3 発言まで。ほかは Expert 1 人\n - 「なるほど」だけの発言、前の発言のくり返しは書かない。例:`Novice: つまり、大きいほど早く着くのですか。` `Expert: いつもではありません。大きすぎると谷を飛び越えます。大股で坂を下りすぎて、向こうの斜面に足が着くように。`\n- `{note:…}` 発表者用\n- `{cue}`:段階の中の同期点。部品の `cues(k)` の 1 つに 1 つ(部品の説明が求めるときだけ)\n- `{mark:ID}`・`{mark:ID|効果}`・`{mark:ID|効果|hold=秒}`・`{mark:clear}`:目印のことを言う言葉の**すぐ前**に置く。1 段階に 1〜2 個まで。言葉でも言う。効果:`underline`(既定。手描きの下線を左から右へ)、`circle`(手描きの囲み)、`box`(角丸の枠)、`spot`(対象のまわり以外を背景色で薄くする)、`laser`(光の点が対象の下へ滑ってきて少し留まる)\n- **R-reading** `{表示|読み}` は **1 つの記号か 1 つの用語**の読み:`{θ|シータ}`、`{N₀|エヌゼロ}`、`{論語|ろんご}`。1 つの記号に星・プライム・添え字・ハットやバーが付いていてもよい(`{Q*|キュースター}`、`{θ̂|シータハット}`)。表示は普通の文字で書き、LaTeX にせず、式やいくつもの記号にしない(`{1-η|…}`・`{θとη|…}` は誤り:記号ごとに読みを付け、関係は言葉で言う)\n- **R-formula** **式を読み上げない**:口述原稿に LaTeX・`\\`・`^`・`_`・`a + b = c` のような文字列を書かない。式の意味を言葉で言う(§4 の見本の [1])\n- 日本語の口述原稿は話し言葉の です・ます。英語は話し言葉の英語。目安は 1 秒に日本語 5 字・英語 2.5 語。1 回の発言は 1〜3 文\n\n## 5. 修正依頼\n\n利用者が**修正依頼**(規格の名前の付いた指摘の一覧と、今のファイル)を貼り付けたら、その指摘だけを直し、ほかは変えず、`id=\"…\"` と `{#…}` をすべてそのまま残し(R-noids)、また 2 つの囲みで返す(R-output)。依頼に一部のスライドしかなければ、そのスライドの `<section>` だけ(`<html>` なし)とその節だけを 2 つの囲みで返す(エディタが id で元の場所に戻す)。\n\n## 6. 見本\n\n小さな教材の見本(架空。形を見るためで、中身は写さない)。段階の数え方:2 項目の箇条書きは段階 1〜2 と `[concl]`<!--part:m-flow-->、箱が 4 つの `m-flow` は段階 1〜4<!--/part-->。いくつかの束の指示の最後にも見本がある。\n\n### 共通(英語・default テーマ・注目の演出<!--part:m-flow-->・m-flow<!--/part-->)\n\n```deck.html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>How a web page arrives</title>\n</head>\n<body>\n<div id=\"stage\">\n\n<section class=\"slide cover noconcl static\">\n <div class=\"venue\">Computing basics, lesson 1 (a fictional course)</div>\n <h1>How a web page arrives</h1>\n</section>\n\n<section class=\"slide\">\n <h2>Two programs take part</h2>\n <div class=\"body\">\n <p>Opening a page is a conversation between two programs.</p>\n <ul>\n <li id=\"browser\">The <span class=\"term\">browser</span> asks for the page and draws it</li>\n <li id=\"server\">The <span class=\"term\">server</span> keeps the page and sends it back</li>\n </ul>\n </div>\n <div class=\"concl\"><span>Every page load is a request and a reply</span></div>\n</section><!--part:m-flow-->\n\n<section class=\"slide\">\n <h2>From the address to the screen</h2>\n <div class=\"body\">\n <m-flow style=\"height:300px\" aria-label=\"Four stages: type the address, send a request, send the page back, draw the page\">\n <script type=\"application/json\">{\"nodes\": [\n {\"id\": \"a\", \"label\": \"Type the\\naddress\", \"x\": 10, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 1},\n {\"id\": \"b\", \"label\": \"Send a\\nrequest\", \"x\": 315, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 2},\n {\"id\": \"c\", \"label\": \"Send the\\npage back\", \"x\": 620, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 3, \"tone\": \"term\"},\n {\"id\": \"d\", \"label\": \"Draw the\\npage\", \"x\": 925, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 4, \"tone\": \"emph\"}\n ], \"edges\": [\n {\"from\": \"a\", \"to\": \"b\"}, {\"from\": \"b\", \"to\": \"c\"}, {\"from\": \"c\", \"to\": \"d\"}\n ]}</script>\n </m-flow>\n </div>\n <div class=\"concl\"><span>A slow page is slow in one of these four stages</span></div>\n</section><!--/part-->\n\n</div>\n</body>\n</html>\n```\n\n```narration.md\n# Narration: How a web page arrives\n\n## How a web page arrives\n[0] Today we follow a web page on its way from a server to your screen.\n\n## Two programs take part\n[0] Opening a page is a conversation between two programs.\n[1] {mark:browser}The browser is the program you look at. It asks for the page and then draws it.\n[2] {mark:server}The server is a program on another computer. It keeps the page and sends it back when asked.\n[concl] Every page load is a request and a reply.<!--part:m-flow-->\n\n## From the address to the screen\n[0] Let us put the steps in order.\n[1] First you type the address of the page.\n[2] The browser turns it into a request and sends it to the server.\n[3] The server finds the page and sends it back.\n[4] The browser draws the page on the screen.\n[concl] When a page is slow, one of these four stages is taking the time.<!--/part-->\n```",
949
+ "common": "# AI への指示\n\n指示の版:`68eeb33a`\n\n短い **Egatari の教材**を 1 つ書いてください。段階ごとに出る HTML のスライド(`deck.html`)と口述原稿(`narration.md`)で、どちらも自動で組まれ、品質チェックを受けます。ここにないものは使えません。教材は頼まれた言語で書きます(スライドと口述原稿は同じ言語)。規格には **R-fit** のような名前があり、修正依頼は破った規格を名前で示します。依頼は最後の **頼みたいこと**(かその前の会話)にあります。空の項目やない項目はほどよく決め、A と B が両方残っていれば書き込みのある方に従います。\n\n**よくある失敗:**\n\n- **2 つの囲みはどちらも最後まで書いて閉じる。**囲みの途中で終わらない(R-output)。構成案がなければ、教材は短くする(5〜8 枚)。頼む文に構成案とその範囲があれば、その範囲のスライドをちょうどその枚数だけ書く(エディタは 1 回に 6 枚までしか頼まないので、収まる)\n- **1280×720 のスライドの大きさ**(品質チェックが測る。R-fit):本文の場所は 1184 × 443 px(565 px まで。`noconcl` なら 1184 × 558)。字は 32 px・1 行 46 px で、入るのは**およそ 8 行**。はみ出す 46 px ごとに 1 行を削る。**図や部品の中も含め、字はすべて 24 px 以上**\n- **グラフと図:**部品は大きさによらず字を 24〜28 px で描くので、決めるのは部品の大きさ(R-fit)\n- **その場で書く `<svg>`:**字は「表示の幅 ÷ viewBox の幅」で縮むので、viewBox を表示の画素で書く(`<svg viewBox=\"0 0 560 320\" width=\"560\" height=\"320\">`)。`font-size` は 24 以上。`width:100%` と別の幅の viewBox を組み合わせない。合う部品があれば部品を使う\n\n## 1. 出力の形\n\n- **R-output** 返事は**ちょうど 2 つのコードの囲み**にし、この順で、名前を `deck.html` と `narration.md` にする(始まりの行は ```` ```deck.html ```` と ```` ```narration.md ````)。間には何も書かない(前後に 1 行の添え書きはよい)。1 つのファイルを囲みに分けない。ファイル・キャンバス・添付にせず、返事の本文に書く。ほかのファイルを参照しない(画像・`{{FIG:…}}`・`{{JSON:…}}`・外の URL・`<link>` は使わない)。囲みの途中で終わらない(長すぎるなら枚数を減らす。ただし構成案の範囲を頼まれたら、ちょうどその枚数)\n- **R-outline** **構成案だけ**を頼まれたら(長い教材を 2 回に分けて作るとき)、`outline` という名前の囲み 1 つ(始まりの行は ```` ```outline ````)だけで返し、`deck.html` と `narration.md` は書かない:列が「番号」「見出し」「要点(1 行)」の Markdown の表で、スライドごとに 1 行、全スライドを順に。その後の頼む文は範囲を示す(「構成案の 7〜12 枚目」)ので、その見出しと要点のとおりに、ちょうどそのスライドを書く\n- **R-noids** スライドの id を**書かない**。`<section class=\"slide\">` に `id` を付けず、口述原稿の見出しにも `{#…}` を付けない。id は取り込みでエディタが付ける。id のあるデッキを渡されたとき(修正依頼)は、今ある `id=\"…\"` と `{#…}` をそのまま残す\n\n## 2. deck.html\n\n### 2.1 骨組み\n\n```html\n<!DOCTYPE html>\n<html lang=\"ja\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>教材の題名</title>\n</head>\n<body>\n<div id=\"stage\">\n <section class=\"slide cover noconcl static\"> … </section>\n <section class=\"slide\"> … </section>\n</div>\n</body>\n</html>\n```\n\n- `lang`:`ja`・`en` など(教材の言語)。`data-theme`:ビジネス・ピッチは `sumi`、国語は `kokugo`、ほかは `default`\n- `<script>` は部品のデータ(§2.6)だけ。`<style>` は配置(大きさ・間隔)だけに使い、色は書かない\n\n### 2.2 スライド\n\n- 普通のスライド:`<h2>` の見出し、`<div class=\"body\">…</div>`、`<div class=\"concl\"><span>…</span></div>`(結論の行。短い 1 文)\n- 表紙:`<section class=\"slide cover noconcl static\">` に、あれば `<div class=\"venue\">…</div>`、`<h1>題名</h1>`、あれば `<div class=\"au\">…</div>`\n- 章の扉:`<section class=\"slide sec noconcl static\"><h1>章の題</h1></section>`\n- `<section>` の class:`noconcl`(結論の行なし)、`static`(段階なし)、`nostep`(箇条書きも初めから全部)、`layout-tate`(縦書き。kokugo の束があるときだけ)、属性 `data-morph`(§2.5)\n- `.body` の中:`<p class=\"sub\">` 小見出し、`<div class=\"big\">` 主要な式、`<p class=\"note\">` 補足、`<div class=\"thm\">` 定理の枠、`<div class=\"cols\">` 横並び、普通の `<p>` `<ul>` `<ol>` `<table>`\n- 字の強調(色を付ける唯一の方法):`term`(用語・問い)、`emph`(結論・問題・目標)、`muted`(既知の結果・控えめ)、`b`(太字)\n- **R-headings** スライドの見出し(表紙と扉は `h1`、ほかは `h2`)は**すべて違う**ものにする(同じなら語を足す)。そのスライドの口述原稿の節は `## ` に続けて**見出しとまったく同じ文字列**で始める(`<br>` などのタグは除く)\n- **R-colors** 色はテーマだけで:上の class と式のマクロ `\\hlE` `\\hlT` `\\hlM`。16 進・`rgb()`・色の名前・`\\color`・`\\textcolor` は使わない。部品や SVG の中では:**色はテーマの CSS 変数だけ**を使う:`var(--fg)` `var(--term)` `var(--emph)` `var(--muted)` `var(--accent2)` `var(--line)`。SVG では属性ではなく `style=\"stroke:var(--emph)\"` で書く(`DECK.el` は `fill` `stroke` に `var(` があれば自動で style に回す)\n\n### 2.3 段階(出す順 = 話す順)\n\n- **R-steps** 段階 0 は現れたときの姿で、文脈だけ(見出し・小見出し・導入の 1 文)。`data-step=\"k\"`(k = 1, 2, …)の要素は段階 k で現れる。材料(箇条書きの項目・式・表の行・図の部分)は話す順に出す。式とそれを導く 1 文は同じ段階(`<div data-step=\"k\">` で一緒に囲む)。1 枚の段階は 5 前後まで\n- 結論の行は自動で**最後の段階** `concl` になる(`data-step` を付けない)\n- `data-step` が 1 つもないスライドでは、上の階層の箇条書きの項目(`.body > ul > li`・`.body > ol > li`)に 1, 2, … が自動で付く。1 つでもあれば自動にならないので、出すものすべてに付ける\n- 部品は自分の段階を足す(§3)。`data-from`(既定 1)から始まる\n- つまり段階は `0 … max` と、結論の行があれば `concl`。`static` のスライドは段階 0 だけ\n\n### 2.4 数式(KaTeX)\n\n- **R-math** 行内は `\\( … \\)`、別行は `\\[ … \\]`。式の中の `<` は `\\lt`、`>` は `\\gt`。標準のほかに使えるマクロ:`\\hlE{…}`(emph)`\\hlT{…}`(term)`\\hlM{…}`(muted)、`\\htmlId{ID}{…}`、`\\htmlData{mark=ID}{…}`、`\\htmlClass{…}{…}`、`\\morph{ID}{…}`。`\\newcommand` と `\\color` は使わない。記号は最初に使う所で定義する(`\\(\\mu\\)`:母平均)\n\n### 2.5 注目の演出とモーフ\n\n- **R-marks** 口述原稿の `{mark:ID}`(§4)は、**同じスライド**の目印に印を付ける。目印:スライドの中の `id=\"ID\"` か `data-mark=\"ID\"` の要素。式の一部は KaTeX の `\\htmlId{ID}{…}` / `\\htmlData{mark=ID}{…}`(build はこの 2 つと `\\htmlClass` だけを許す)。同じ ID を何枚かで使うなら `data-mark` にする(id は文書の中で一意に)\n- モーフ(なくてよい):`<section class=\"slide\" data-morph>` は前のスライドの要素を今の位置へ滑らせる。両方のスライドの要素に同じ `data-id=\"…\"`、式の一部は両方に `\\morph{ID}{…}`。段階 0 で見えている要素だけが動く\n\n### 2.6 部品\n\n- **R-components** 動く図は一覧(§3)の Web Components `<m-…>` で、`.body` の中に置く。どれにも高さ(`style=\"height:380px\"`)と `aria-label` を付ける。データは子の `<script type=\"application/json\">…</script>` **1 つ**にその場で書く。**図の数字は正しく**(計算する。見た目のために値を作らない。架空の数字は架空と書く)。関数の式は算術の式だけで、コードとしては実行されない(`Math.exp(x)`・`x**2`)。動きが説明になる所だけに使う(たいていのスライドには要らない)\n\n### 2.7 表し方を選ぶ\n\n- **R-purpose** 表し方は習慣でなく、そのスライドで言いたいことから選ぶ。作者がグラフの種類を言っていればそれに従う。表は全パーツの一覧を兼ねる。使うのは渡された文章にあるパーツだけ(§3 と、入っている束)。入っていないパーツの方が合うときは、1 行のメモでそう伝える\n\n{{PURPOSES}}\n\n- **R-whole** 箇条書き・数字の札・円グラフは全体を一度に見せる。台本が 1 つずつ取り上げるときだけ 1 行ずつ出す(箇条書きなら全体に 1 つの `data-step` を付けるか、スライドに `nostep`)\n\n### 2.8 スライドに収める(品質チェックのエラー)\n\n- **R-title** 見出し:日本語は 26 字まで(全角 1・半角 0.5)、英語は 60 文字まで。コロンで終えない\n- **R-concl** 結論の行:日本語は 35 字まで、英語は 70 文字まで。1 行\n- **R-fit** 本文は 565 px(`noconcl` なら 680 px)より上で終える:1 枚におよそ 8 行・100 字・英語 60 語、または `big` の式 1 つと短い箇条書き 3 つ、または高さ 380 px までの部品と短い 1 行(2 行なら 330 px まで)。入らなければスライドを分ける。字を縮めず、字の大きさを書かない。図の中の字は 24 px 以上\n- **R-style** 日本語のスライドは常体(だ・である、体言止め)で、です・ます を使わない。句読点はデッキ全体で 1 つの組(`、。` か `,.`)。英語のスライドは短い句で\n\n## 3. 部品の一覧\n\nどの教材でも使える標準の部品。§6 の後に束の指示があれば、その種類の材料の部品が加わる。「steps」は部品が使うスライドの段階の数(`data-from` から。既定 1)。秒で測る属性(動きの長さ・ずれ)は載せない(既定で口述原稿に合う)。型が json の属性は、値に JSON を書く(`values=\"[0.1,0.5]\"`)。「データの形」の `?` は省略できる欄。型を書いていない label・tex・note・tone は str、step は int、at は num。名前やラベルの `*…*` は斜体、`_` `^` は次の 1 字だけ下付き・上付き。記号のまま出すなら全角の _ ^ *。\n\n{{CATALOG}}\n\n## 4. narration.md\n\n```markdown\n# 口述原稿:<教材の題名>\n\n## 減衰の式\n[0] 減衰の式です。時刻ごとに残っている原子の数を考えます。\n[1] 残る数は、はじめの数に、時間とともに小さくなる指数関数を掛けたものです。\n[2] {mark:n0|circle}{N₀|エヌゼロ} は、時刻ゼロのときの、はじめの数です。\n[concl] 半分になるまでの時間は、崩壊定数だけで決まります。\n```\n\n- スライドごとに 1 つの節を、**スライドの順に、すべてのスライド(表紙も)について**:`## <スライドの見出し>`(R-headings)。`{#id}` は付けない(R-noids)\n- **R-narr-steps** 段階の印は `[0]` `[1]` … と `[concl]`。**どのスライドのどの段階にも口述原稿を書き**(段階 0 から max まで、結論の行があれば `[concl]`)、**ない段階の印は書かない**(`static` の表紙は `[0]` だけ。結論の行がなければ `[concl]` もない。`[01]` とは書かない)。段階の中では、その段階で現れるものだけを話す\n- **R-dialogue** **既定は話者 1 人**で、話者名を書かない。掛け合いは頼まれたときだけ(3 人以上を頼まれても 2 役にし、最初にそう書く):行を `Expert:` か `Novice:` で始め(続きの行は字下げ。話者なしは Expert)、認知的徒弟制の形にする:\n - Novice は相づち役にせず、学習者の疑問を代弁するか、「つまり〜ということですか」と言い換える\n - Expert は答えて具体例か比喩を 1 つ足すか、言い換えを確かめて(違えば直して)1 歩進める\n - 理解の分かれ目(誤解しやすい所、「なぜ」が残る所)にだけ、1 枚に 1 回・2〜3 発言まで。ほかは Expert 1 人\n - 「なるほど」だけの発言、前の発言のくり返しは書かない。例:`Novice: つまり、大きいほど早く着くのですか。` `Expert: いつもではありません。大きすぎると谷を飛び越えます。大股で坂を下りすぎて、向こうの斜面に足が着くように。`\n- `{note:…}` 発表者用\n- `{cue}`:段階の中の同期点。部品の `cues(k)` の 1 つに 1 つ(部品の説明が求めるときだけ)\n- `{mark:ID}`・`{mark:ID|効果}`・`{mark:ID|効果|hold=秒}`・`{mark:clear}`:目印のことを言う言葉の**すぐ前**に置く。1 段階に 1〜2 個まで。言葉でも言う。効果:`underline`(既定。手描きの下線を左から右へ)、`circle`(手描きの囲み)、`box`(角丸の枠)、`spot`(対象のまわり以外を背景色で薄くする)、`laser`(光の点が対象の下へ滑ってきて少し留まる)\n- **R-reading** `{表示|読み}` は **1 つの記号か 1 つの用語**の読み:`{θ|シータ}`、`{N₀|エヌゼロ}`、`{論語|ろんご}`。1 つの記号に星・プライム・添え字・ハットやバーが付いていてもよい(`{Q*|キュースター}`、`{θ̂|シータハット}`)。表示は普通の文字で書き、LaTeX にせず、式やいくつもの記号にしない(`{1-η|…}`・`{θとη|…}` は誤り:記号ごとに読みを付け、関係は言葉で言う)\n- **R-formula** **式を読み上げない**:口述原稿に LaTeX・`\\`・`^`・`_`・`a + b = c` のような文字列を書かない。式の意味を言葉で言う(§4 の見本の [1])\n- 日本語の口述原稿は話し言葉の です・ます。英語は話し言葉の英語。目安は 1 秒に日本語 5 字・英語 2.5 語。1 回の発言は 1〜3 文\n\n## 5. 修正依頼\n\n利用者が**修正依頼**(規格の名前の付いた指摘の一覧と、今のファイル)を貼り付けたら、その指摘だけを直し、ほかは変えず、`id=\"…\"` と `{#…}` をすべてそのまま残し(R-noids)、また 2 つの囲みで返す(R-output)。依頼に一部のスライドしかなければ、そのスライドの `<section>` だけ(`<html>` なし)とその節だけを 2 つの囲みで返す(エディタが id で元の場所に戻す)。\n\n## 6. 見本\n\n小さな教材の見本(架空。形を見るためで、中身は写さない)。段階の数え方:2 項目の箇条書きは段階 1〜2 と `[concl]`<!--part:m-flow-->、箱が 4 つの `m-flow` は段階 1〜4<!--/part-->。いくつかの束の指示の最後にも見本がある。\n\n### 共通(英語・default テーマ・注目の演出<!--part:m-flow-->・m-flow<!--/part-->)\n\n```deck.html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>How a web page arrives</title>\n</head>\n<body>\n<div id=\"stage\">\n\n<section class=\"slide cover noconcl static\">\n <div class=\"venue\">Computing basics, lesson 1 (a fictional course)</div>\n <h1>How a web page arrives</h1>\n</section>\n\n<section class=\"slide\">\n <h2>Two programs take part</h2>\n <div class=\"body\">\n <p>Opening a page is a conversation between two programs.</p>\n <ul>\n <li id=\"browser\">The <span class=\"term\">browser</span> asks for the page and draws it</li>\n <li id=\"server\">The <span class=\"term\">server</span> keeps the page and sends it back</li>\n </ul>\n </div>\n <div class=\"concl\"><span>Every page load is a request and a reply</span></div>\n</section><!--part:m-flow-->\n\n<section class=\"slide\">\n <h2>From the address to the screen</h2>\n <div class=\"body\">\n <m-flow style=\"height:300px\" aria-label=\"Four stages: type the address, send a request, send the page back, draw the page\">\n <script type=\"application/json\">{\"nodes\": [\n {\"id\": \"a\", \"label\": \"Type the\\naddress\", \"x\": 10, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 1},\n {\"id\": \"b\", \"label\": \"Send a\\nrequest\", \"x\": 315, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 2},\n {\"id\": \"c\", \"label\": \"Send the\\npage back\", \"x\": 620, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 3, \"tone\": \"term\"},\n {\"id\": \"d\", \"label\": \"Draw the\\npage\", \"x\": 925, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 4, \"tone\": \"emph\"}\n ], \"edges\": [\n {\"from\": \"a\", \"to\": \"b\"}, {\"from\": \"b\", \"to\": \"c\"}, {\"from\": \"c\", \"to\": \"d\"}\n ]}</script>\n </m-flow>\n </div>\n <div class=\"concl\"><span>A slow page is slow in one of these four stages</span></div>\n</section><!--/part-->\n\n</div>\n</body>\n</html>\n```\n\n```narration.md\n# Narration: How a web page arrives\n\n## How a web page arrives\n[0] Today we follow a web page on its way from a server to your screen.\n\n## Two programs take part\n[0] Opening a page is a conversation between two programs.\n[1] {mark:browser}The browser is the program you look at. It asks for the page and then draws it.\n[2] {mark:server}The server is a program on another computer. It keeps the page and sends it back when asked.\n[concl] Every page load is a request and a reply.<!--part:m-flow-->\n\n## From the address to the screen\n[0] Let us put the steps in order.\n[1] First you type the address of the page.\n[2] The browser turns it into a request and sends it to the server.\n[3] The server finds the page and sends it back.\n[4] The browser draws the page on the screen.\n[concl] When a page is slow, one of these four stages is taking the time.<!--/part-->\n```",
965
950
  "request": "# 頼みたいこと\n\n*(A か B を埋め、もう一方は消します。書かない項目は消してかまいません)*\n\n**A. 新しく作る**\n\n- タイトル(表紙にそのまま使う):\n- 対象(だれ向け):\n- 長さ(枚数か分):\n- 言語:\n- 話者:1 人\n- そのほかの希望:\n\n**B. 渡した資料と話し合いの内容で作る**\n\nこのチャットで渡した資料と、ここまでの話し合いの内容で、教材を作ってください。\n\n- タイトル(表紙にそのまま使う):\n- 対象(だれ向け):\n- 長さ(枚数か分):\n- 言語:\n- 話者:1 人\n- そのほかの希望:",
966
951
  "sets": {
967
952
  "stats": "## 部品の束:stats(統計の図)\n\nデータを見せる教材・発表向け。分布、箱ひげ図、ヒートマップ、観測が 1 つずつ加わって変わる分布を見せる。テーマは `default`。データの出どころと数(何人・何件)をスライドか口述原稿に書き、本物らしく見えるデータを作らない(R-components)。\n\n- **軸のある図**(<!--part:m-hist-->`m-hist`・<!--/part--><!--part:m-boxplot-->`m-boxplot`・<!--/part--><!--part:m-seq-->`m-seq`・<!--/part-->など)は目盛りと軸の名前に左 86 px、上下合わせて 80 px を使うので、高さ **300〜380 px**、幅 **560 px 以上**にする(`<div class=\"cols\">` なら図の列を 55% 以上に)\n- 軸の範囲には、図の値(R-components のとおり計算したもの)がすべて入るようにする\n\nこの束の部品(§3 の部品に加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
@@ -978,7 +963,7 @@ export const PACK = {
978
963
  "m-bars": {
979
964
  "set": "standard",
980
965
  "row": "| `<m-bars>` | 棒を段階ごとに 0 から伸ばす(縦棒・横棒・組の棒・積み上げ棒)。値の軸の上限を段階で広げて「軸を突き抜ける伸び」も見せられる | 組の step と scale の step の最大(既定は組 1 つ = 1 段階。per-step で n 組ずつ) | `{groups:[{label?,value?:num,values?:num[],step?,at?,tone?} (value or values),…],series?:{label?,tone?}[],scale?:{step,max?:num,at?}[],max?:num}` |",
981
- "entry": "### `<m-bars>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"series\":[{\"label\":\"売上\"}],\"groups\":[{\"label\":\"1 年目\",\"value\":1.2},{\"label\":\"2 年目\",\"value\":3.4}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `orient` | string | `\"v\"` | v(縦棒)か h(横棒。順位や比較に) |\n| `max` | number | `0` | 値の軸の上限(0 = 自動。scale があれば最初の上限) |\n| `unit` | string | `\"\"` | 値の単位(数字の後ろに付ける。億円、%、社 など) |\n| `digits` | number | `0` | 値の小数桁 |\n| `per-step` | number | `1` | 1 段階に出す組の数(0 = 全部を段階 1 で) |\n| `count` | bool | `false` | 値の数字を伸びに合わせて数え上げる |\n| `ticks` | bool | `true` | 値の軸の目盛りと格子 |\n| `al` | string | `\"\"` | 値の軸の名前 |\n| `stack` | bool | `false` | 組の値を 1 本に積み上げる(積み上げ棒) |\n\n年ごとの売上・費用、聞き取りの結果の順位、導入の前と後の比較など、量を 1 つずつ見せて比べるときに使う。\n\n- group:`label`(`\\n` で 2 行)、`value`(系列が 1 つ)か `values`(系列の数だけ)、`step`(既定は per-step から)、`at`(段階の中の開始秒。既定は同じ段階の中で stagger ずつずらす)、`tone`(`emph` などテーマの変数の名前。その組の棒をすべてその色にし、値の数字も同じ色にする)\n- series:`label`(最初の組の棒の上に直接書く。凡例は作らない)、`tone`(既定は `--series-1..4` の順。系列が 1 つなら `--term`)\n- scale:`[{\"step\": 3, \"max\": 27, \"at\": 0.4}]`。その段階の at 秒から zoom 秒かけて、値の軸の上限を max へ動かす(対数で補間)。動く間は前の上限までの範囲を薄い帯で残し、目盛りは前の組と次の組を入れ替える。上限を超える棒は軸の上端で止まり、上限が広がるにつれて伸びる\n- 横棒(`orient=\"h\"`)は組の名前を左に、値を棒の右に書く。順位を見せるなら `ticks=\"false\"` で目盛りを消してよい\n- 積み上げ棒(`stack=\"true\"`、`\"percent\"` なら各組 100 %):組の `values` を横に並べず 1 本に積み上げる(全体と内訳を組ごとに見せるとき)。合計を棒の端に、それぞれの値を区切りの中に書く。軸の上限は合計から決まる。組の `tone` は合計の数字の色。値は 0 以上にする(負の値は 0 として描く)\n\n注意\n\n- 系列の名前は最初の組の棒の上に書くので、組の棒が細いと隣の系列の名前と重なる。系列は 2〜3 つまでにする"
966
+ "entry": "### `<m-bars>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"series\":[{\"label\":\"売上\"}],\"groups\":[{\"label\":\"1 年目\",\"value\":1.2},{\"label\":\"2 年目\",\"value\":3.4}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `orient` | string | `\"v\"` | v(縦棒)か h(横棒。順位や比較に) |\n| `max` | number | `0` | 値の軸の上限(0 = 自動。scale があれば最初の上限) |\n| `unit` | string | `\"\"` | 値の単位(数字の後ろに付ける。億円、%、社 など) |\n| `digits` | number | `0` | 値の小数桁 |\n| `per-step` | number | `1` | 1 段階に出す組の数(0 = 全部を段階 1 で) |\n| `count` | bool | `false` | 値の数字を伸びに合わせて数え上げる |\n| `ticks` | bool | `true` | 値の軸の目盛りと格子 |\n| `al` | string | `\"\"` | 値の軸の名前 |\n| `stack` | bool | `false` | 組の値を 1 本に積み上げる(積み上げ棒)。\\ |\n\n年ごとの売上・費用、聞き取りの結果の順位、導入の前と後の比較など、量を 1 つずつ見せて比べるときに使う。\n\n- group:`label`(`\\n` で 2 行)、`value`(系列が 1 つ)か `values`(系列の数だけ)、`step`(既定は per-step から)、`at`(段階の中の開始秒。既定は同じ段階の中で stagger ずつずらす)、`tone`(`emph` などテーマの変数の名前。その組の棒をすべてその色にし、値の数字も同じ色にする)\n- series:`label`(系列が 2 つ以上のとき、最初の組の棒に直接書く。縦棒は棒の上、横棒は値の数字の右(負の棒は下・左)。凡例は作らない)、`tone`(既定は `--series-1..4` の順。系列が 1 つなら `--term`)\n- scale:`[{\"step\": 3, \"max\": 27, \"at\": 0.4}]`。その段階の at 秒から zoom 秒かけて、値の軸の上限を max へ動かす(対数で補間)。動く間は前の上限までの範囲を薄い帯で残し、目盛りは前の組と次の組を入れ替える。上限を超える棒は軸の上端で止まり、上限が広がるにつれて伸びる\n- 横棒(`orient=\"h\"`)は組の名前を左に、値を棒の右に書く。順位を見せるなら `ticks=\"false\"` で目盛りを消してよい\n- 積み上げ棒(`stack=\"true\"`、`\"percent\"` なら各組 100 %):組の `values` を横に並べず 1 本に積み上げる(全体と内訳を組ごとに見せるとき)。合計を棒の端に、それぞれの値を区切りの中に書く。軸の上限は合計から決まる。組の `tone` は合計の数字の色。値は 0 以上にする(負の値は 0 として描く)\n\n注意\n\n- 値の数字は既定で棒が伸びきってから出す。伸びる途中の値は読めてしまうと「データ」に見えるため。数え上げたいときだけ `count=\"true\"`。積み上げ棒で `count=\"true\"` にすると数え上げるのは端の合計だけで、区切りの値と系列の名前は伸びきってから出る(段階の長さはその分 0.35 秒長い)\n- 系列の名前は最初の組の棒に書くので、組の棒が細いと隣の系列の名前と重なる。系列は 2〜3 つまでにする"
982
967
  },
983
968
  "m-boxplot": {
984
969
  "set": "stats",
@@ -999,23 +984,23 @@ export const PACK = {
999
984
  "m-curves": {
1000
985
  "set": "standard",
1001
986
  "row": "| `<m-curves>` | 同じ座標軸に線を 1 本ずつ引く(線の名前は凡例でなく線の端に直接書く) | step の最大(既定は系列の数) | `[{label?,f?:str,pts?:[num,num][],tone?,step?,labelAt?:num,color?:str,dash?:bool,xr?:[num,num],at?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\"\\|\"start\"\\|\"middle\"\\|\"end\",dx?:num,dy?:num,ly?:num} (f or pts),…]` — データは配列そのもの({\"series\": […]} ではない)。軸は属性に書く(xr=\"[0,10]\" xl=\"…\")。式の欄は f で、変数は x(fn・u ではない) |",
1002
- "entry": "### `<m-curves>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `[{\"label\":\"需要 D\",\"f\":\"10 - x\"},{\"label\":\"供給 S\",\"f\":\"2 + x\"},{\"label\":\"均衡\",\"pts\":[[4,0],[4,6]],\"dash\":true}]`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `xr` | json | `[0, 1]` | 横軸の範囲 |\n| `yr` | json | `[0, 1]` | 縦軸の範囲 |\n| `xt` | json | `[]` | 横軸の目盛りの値 * |\n| `yt` | json | `[]` | 縦軸の目盛りの値 * |\n| `xf` | number | | 横軸の目盛りの小数桁 |\n| `yf` | number | | 縦軸の目盛りの小数桁 |\n| `xl` | string | `\"\"` | 横軸の名前(`*斜体*` `_下付き` `^上付き`) * |\n| `yl` | string | `\"\"` | 縦軸の名前 * |\n| `n` | number | `300` | f を描く分割数 |\n| `lw` | number | `3.5` | 線の太さ |\n\n同じ予測分布に平均・中央値・分位点を順に引く、損失関数を 1 つずつ重ねる、など\n「一つの図で比較の軸を一つずつ見せる」ときに使う。\n\n系列は子の `<script type=\"application/json\">` に配列で書く。\n1 系列 = 1 段階(書いた順)。`step` で変えられ、同じ `step` の系列は一緒に引く。口述原稿の [n] はこの段階に合わせる。\n\n| 欄 | 意味 |\n|---|---|\n| `label` | 線の名前(`*斜体*` `_下付き` `^上付き`) |\n| `f` | x の算術の式(`exp(…)` `sqrt(…)` `PI` などの `Math` の関数と定数、`N(x, 平均, 標準偏差)`、`+ - * / % **`、比較と `? :`。下を見よ)。`xr` で描く範囲を狭められる |\n| `pts` | 点列 `[[x, y], …]`(縦線や実測の折れ線) |\n| `tone` | `term` `emph` `accent2` `muted` `fg` `series-1..4`(既定は `series-1..4` の順) |\n| `dash` | 破線 |\n| `labelAt` / `anchor` / `dx` / `dy` / `ly` | 名前の位置:横軸の値 `labelAt` の点に置く(既定は線の端)。`anchor` は向き(`right` `left` `above` `below`)。`ly` は縦軸の値で高さを決める |\n\n`f` は算術の式で、コードとしては実行しない:数、`x`、`Math` の関数と定数(`sin(x)` とも `Math.sin(x)` とも書ける。`Math.random` は使えない)、`N(x, 平均, 標準偏差)`、`+ - * / % **`、比較(`< <= > >= == !=`)、`&& || !`、`? :`、括弧。べき乗は `**`(`^` は書けない)。書けない式は図の代わりに札が出る。",
987
+ "entry": "### `<m-curves>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `[{\"label\":\"需要 D\",\"f\":\"10 - x\"},{\"label\":\"供給 S\",\"f\":\"2 + x\"},{\"label\":\"均衡\",\"pts\":[[4,0],[4,6]],\"dash\":true}]`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `xr` | json | `[0, 1]` | 横軸の範囲 |\n| `yr` | json | `[0, 1]` | 縦軸の範囲 |\n| `xt` | json | `[]` | 横軸の目盛りの値 * |\n| `yt` | json | `[]` | 縦軸の目盛りの値 * |\n| `xf` | number | | 横軸の目盛りの小数桁 |\n| `yf` | number | | 縦軸の目盛りの小数桁 |\n| `xl` | string | `\"\"` | 横軸の名前(`*斜体*` `_下付き` `^上付き`) * |\n| `yl` | string | `\"\"` | 縦軸の名前 * |\n| `n` | number | `300` | f を描く分割数 |\n| `lw` | number | `3.5` | 線の太さ |\n\n同じ予測分布に平均・中央値・分位点を順に引く、損失関数を 1 つずつ重ねる、など\n「一つの図で比較の軸を一つずつ見せる」ときに使う。\n\n系列は子の `<script type=\"application/json\">` に配列で書く。\n1 系列 = 1 段階(書いた順)。`step` で変えられ、同じ `step` の系列は一緒に引く。口述原稿の [n] はこの段階に合わせる。\n\n| 欄 | 意味 |\n|---|---|\n| `label` | 線の名前 |\n| `f` | x の算術の式(`exp(…)` `sqrt(…)` `PI` などの `Math` の関数と定数、`N(x, 平均, 標準偏差)`、`+ - * / % **`、比較と `? :`。下を見よ)。`xr` で描く範囲を狭められる |\n| `pts` | 点列 `[[x, y], …]`(縦線や実測の折れ線) |\n| `tone` | `term` `emph` `accent2` `muted` `fg` `series-1..4`(既定は `series-1..4` の順) |\n| `dash` | 破線 |\n| `labelAt` / `anchor` / `dx` / `dy` / `ly` | 名前の位置:横軸の値 `labelAt` の点に置く(既定は線の端)。`anchor` は向き(`right` `left` `above` `below`)。`ly` は縦軸の値で高さを決める |\n\n`f` は算術の式で、コードとしては実行しない:数、`x`、`Math` の関数と定数(`sin(x)` とも `Math.sin(x)` とも書ける。`Math.random` は使えない)、`N(x, 平均, 標準偏差)`、`+ - * / % **`、比較(`< <= > >= == !=`)、`&& || !`、`? :`、括弧。べき乗は `**`(`^` は書けない)。書けない式は図の代わりに札が出る。",
1003
988
  "sup": true
1004
989
  },
1005
990
  "m-cycle": {
1006
991
  "set": "standard",
1007
992
  "row": "| `<m-cycle>` | 循環の図。段階の箱を円の上に 12 時から時計回りに並べ、円に沿った矢印でつなぐ(最後から最初へ戻る矢印も) | 段階の数(既定は 1 つ = 1 段階。per-step で n 個ずつ、node の step が優先) | `{nodes:{id?:str\\|int,label?,tex?,note?,tone?,step?,at?}[],center?:{label?,tex?,note?,tone?,step?,at?},edges?:{from:str\\|int,to:str\\|int,label?,tone?,dash?:bool,step?,at?}[]}` |",
1008
- "entry": "### `<m-cycle>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"center\":{\"label\":\"PDCA\"},\"nodes\":[{\"label\":\"計画\"},{\"label\":\"実行\"},{\"label\":\"評価\"},{\"label\":\"改善\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `per-step` | number | `1` | 1 段階に出す段階(箱)の数(0 = 全部を段階 1 で) |\n| `size` | number | `26` | 箱の字の大きさ(px。入らなければ 24 まで縮める) |\n\nPDCA、水の循環、細胞周期、学習のサイクルなど、同じ順で回り続ける段階を見せるときに使う。\n座標は書かない。段階の中身を配列の順に書けば、部品が並べる(共通の決まり §2)。\n\n子の JSON の並び:`center` と `edges` は省ける。\n\n- `nodes`:段階(3〜8 個を想定)。配列の順に回る。12 時の位置から時計回りに置き、となりの段階へ円に沿った矢印を引く。最後から最初へ戻る矢印は自動で引く\n - `label`(`\\n` で改行)か `tex`(KaTeX)、`note`(箱の中の 2 行目に小さく、`--muted`)、`tone`(`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`)、`step`、`at`、`id`\n- `center`:真ん中の名前(`{\"label\": \"PDCA\", \"note\": \"…\"}`)。最初の段階と一緒に出る(`center.step` で変えられる)。`center` はオブジェクト。<!--part:m-pie-->`m-pie` の `center` は字(文字列)なので取り違えない<!--/part-->\n - `label`(`\\n` で改行)か `tex`(KaTeX)、`note`(箱の**中**の最後の行に小さく、`--muted`)、`tone`(`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`)、`step`、`at`、`id`\n - `tone: emph` の箱は、地が `--emph-tint`、枠と字が `--emph`\n- `edges`:ほかのつながり(`from` `to` は段階の `id`、`label` `tone` `dash` `step`)。箱の縁から縁への破線の矢印\n- 矢印の色は `--muted`、3 px(`edges` も `tone` がなければ `--muted`)\n\n並べ方:\n\n- 横に長い場所では円を横に伸ばした楕円にする(縦の 1.9 倍まで。縦に長くはしない)。箱と矢印が要素の箱に入る大きさにする\n- 段階:既定は 1 段階に 1 つ。入ってくる矢印はその段階の箱と一緒に出る。最後から最初へ戻る矢印は、最後の段階の箱が出たあとに引く\n- 見せ方(`variant`):`fade`・`draw`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 動きの上限:どの見せ方でも箱が動くのは 12 px まで(箱の中心で測る。大きさは 0.92 倍から、`fade` と同じ)、時間も `fade` の長さの中(共通の決まり §1.2)\n- 授業の表示(`ctx.preview`):後の段階の箱と矢印をテーマの薄さで見せる\n- `cues(k)`:同じ段階に 2 つ以上の箱があれば、2 つ目からの開始時刻を返す"
993
+ "entry": "### `<m-cycle>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"center\":{\"label\":\"PDCA\"},\"nodes\":[{\"label\":\"計画\"},{\"label\":\"実行\"},{\"label\":\"評価\"},{\"label\":\"改善\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `per-step` | number | `1` | 1 段階に出す段階(箱)の数(0 = 全部を段階 1 で) |\n| `size` | number | `26` | 箱の字の大きさ(px。入らなければ 24 まで縮める) |\n\nPDCA、水の循環、細胞周期、学習のサイクルなど、同じ順で回り続ける段階を見せるときに使う。\n座標は書かない。段階の中身を配列の順に書けば、部品が並べる(共通の決まり §2)。\n\n子の JSON の並び:`center` と `edges` は省ける。\n\n- `nodes`:段階(3〜8 個を想定)。配列の順に回る。12 時の位置から時計回りに置き、となりの段階へ円に沿った矢印を引く。最後から最初へ戻る矢印は自動で引く\n - `label`(`\\n` で改行)か `tex`(KaTeX)、`note`(箱の中の 2 行目に小さく、`--muted`)、`tone`(`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`)、`step`、`at`、`id`\n- `center`:真ん中の名前(`{\"label\": \"PDCA\", \"note\": \"…\"}`)。最初の段階と一緒に出る(`center.step` で変えられる)。`center` はオブジェクト。<!--part:m-pie-->`m-pie` の `center` は字(文字列)なので取り違えない<!--/part-->\n - `label`(`\\n` で改行)か `tex`(KaTeX)、`note`(箱の**中**の最後の行に小さく、`--muted`)、`tone`(`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`)、`step`、`at`\n - `tone: emph` の箱は、地が `--emph-tint`、枠と字が `--emph`\n- `edges`:ほかのつながり(`from` `to` は段階の `id`、`label` `tone` `dash` `step`)。箱の縁から縁への破線の矢印\n- 矢印の色は `--muted`、3 px(`edges` も `tone` がなければ `--muted`)\n\n並べ方:\n\n- 横に長い場所では円を横に伸ばした楕円にする(縦の 1.9 倍まで。縦に長くはしない)。箱と矢印が要素の箱に入る大きさにする\n- 段階:既定は 1 段階に 1 つ。入ってくる矢印はその段階の箱と一緒に出る。最後から最初へ戻る矢印は、最後の段階の箱が出たあとに引く\n- 見せ方(`variant`):`fade`・`draw`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 動きの上限:どの見せ方でも箱が動くのは 12 px まで(箱の中心で測る。大きさは 0.92 倍から、`fade` と同じ)、時間も `fade` の長さの中(共通の決まり §1.2)\n- 授業の表示(`ctx.preview`):後の段階の箱と矢印をテーマの薄さで見せる\n- `cues(k)`:同じ段階に 2 つ以上の箱があれば、2 つ目からの開始時刻を返す"
1009
994
  },
1010
995
  "m-fishbone": {
1011
996
  "set": "standard",
1012
997
  "row": "| `<m-fishbone>` | 原因と結果の図(特性要因図・フィッシュボーン図)を、大骨 1 本ずつ組み立て、最後に結果(頭)を出す。座標は書かず、配置は部品が決める | 大骨の数 + 1(頭)。節と edges の step があればその最大 | `{effect:{label?,tex?,note?,tone?,step?,at?},nodes:{id:str\\|int,label?,tex?,note?,tone?,parent?:str\\|int,step?,at?}[],edges?:{from:str\\|int,to:str\\|int,label?,tone?,dash?:bool,step?,at?}[]}` — parent のない節が大骨(分類)、その子が原因、孫が細かい原因(3 段まで) |",
1013
- "entry": "### `<m-fishbone>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"effect\":{\"label\":\"配送の遅れ\"},\"nodes\":[{\"id\":\"p\",\"label\":\"人\"},{\"id\":\"p1\",\"label\":\"人手が足りない\",\"parent\":\"p\"},{\"id\":\"m\",\"label\":\"機械\"},{\"id\":\"m1\",\"label\":\"車の故障\",\"parent\":\"m\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `order` | string | `\"causes-first\"` | 段階の順:causes-first(大骨 1 本ずつ、最後に頭、既定)か effect-first(頭と背骨が先) |\n| `size` | number | `0` | 箱の字の大きさ(px。0 = 27 から入るまで 24 まで縮める) |\n\n品質管理の 4M(人・機械・方法・材料)で不良や遅れの原因を洗い出すとき、理科で「なぜうまくいかないのか」を分けて考えるときなど、\n1 つの結果に効く原因を分類して見せるときに使う。座標は書かない(共通の決まり §2)。\n\n子の JSON の並び:`edges` は省いてよい。\n\n- effect:結果(頭)。`label`(`\\n` で改行)か `tex`、`note`(箱の下の一言)、`tone`(既定 `emph`)、`step`、`at`\n- node:`id`、`label`(または `tex`)、`note`、`parent`、`tone`、`step`、`at`。`parent` のない節が大骨(分類)、その子が原因、孫が細かい原因(3 段まで)\n - 大骨は配列の順に、左から、上・下・上・下と交互に付く。分類の名前は大骨の外の端の箱に書く(`note` は箱の**外側**に小さく)\n - 原因と細かい原因の `tex` は式(KaTeX)として線の上に、`note` は名前の後ろに続けて小さく(`--muted`)書く\n - 原因は大骨に付く横の線の上に、細かい原因は原因の線から大骨と平行に下ろした線に付く横の線の上に書く\n - `tone`:大骨なら箱と骨の色、原因なら字と線の色(`emph` は太字)。`emph` の箱は地が `--emph-tint`、枠と字が `--emph`\n - 線の色は `--muted`。背骨は 5 px(図の中心の線)、大骨は 3.5 px、原因の線は 2.5 px\n- edge:原因どうしのほかのつながり(`from` `to` `label` `tone` `dash` `step`)。破線で矢印つき、字の左へふくらむ。同じ大骨の原因どうしに向く\n- `order`:`causes-first`(既定。大骨 1 本ずつ(その原因と一緒に)、最後に頭)か `effect-first`(頭と背骨を先に出し、それから大骨 1 本ずつ)。節の `step` が勝つ(原因だけ後の段階にもできる)\n- 見せ方(`variant`):`fade`・`draw`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 動きの上限:どの見せ方でも箱と字が動くのは 12 px まで(箱の中心で測る)、時間も `fade` の長さの中(共通の決まり §1.2)\n- 入る大きさの目安(1280×720 の本文、高さ 440 px ほど):大骨 1 本あたりの行(原因と細かい原因の数)は 3 つまで(短ければ 4 つ)、大骨は 4〜6 本、原因は 10 字ほどまで。字は 24 px より小さくならず、入らない分は要素の箱から上下・左右にはみ出す(`console.warn` が足りない px を言う)。多いときは図を分けるか、原因を短く言い換える\n- 授業の表示(`ctx.preview`)では、後の段階の骨と字をテーマの薄さで出しておく"
998
+ "entry": "### `<m-fishbone>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"effect\":{\"label\":\"配送の遅れ\"},\"nodes\":[{\"id\":\"p\",\"label\":\"人\"},{\"id\":\"p1\",\"label\":\"人手が足りない\",\"parent\":\"p\"},{\"id\":\"m\",\"label\":\"機械\"},{\"id\":\"m1\",\"label\":\"車の故障\",\"parent\":\"m\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `order` | string | `\"causes-first\"` | 段階の順:causes-first(大骨 1 本ずつ、最後に頭、既定)か effect-first(頭と背骨が先) |\n| `size` | number | `0` | 箱の字の大きさ(px。0 = 27 から入るまで 24 まで縮める) |\n\n品質管理の 4M(人・機械・方法・材料)で不良や遅れの原因を洗い出すとき、理科で「なぜうまくいかないのか」を分けて考えるときなど、\n1 つの結果に効く原因を分類して見せるときに使う。座標は書かない(共通の決まり §2)。\n\n子の JSON の並び:`edges` は省いてよい。\n\n- effect:結果(頭)。`label`(`\\n` で改行)か `tex`、`note`(箱の下の一言)、`tone`(既定 `emph`)、`step`、`at`\n- node:`id`、`label`(または `tex`)、`note`、`parent`、`tone`、`step`、`at`。`parent` のない節が大骨(分類)、その子が原因、孫が細かい原因(3 段まで)\n - 大骨は配列の順に、左から、上・下・上・下と交互に付く。分類の名前は大骨の外の端の箱に書く(`note` は箱の**外側**に小さく)\n - 原因と細かい原因の `tex` は式(KaTeX)として線の上に、`note` は名前の後ろに続けて小さく(`--muted`)書く\n - 原因は大骨に付く横の線の上に、細かい原因は原因の線から大骨と平行に下ろした線に付く横の線の上に書く\n - `tone`:大骨なら箱と骨の色、原因なら字と線の色(`emph` は太字)。`emph` の箱は地が `--emph-tint`、枠と字が `--emph`\n - 線の色は `--muted`。背骨は 5 px(図の中心の線)、大骨は 3.5 px、原因の線は 2.5 px\n- edge:原因どうしのほかのつながり(`from` `to` `label` `tone` `dash` `step`)。破線で矢印つき、字の左へふくらむ。同じ大骨の原因どうしに向く\n- `order`:`causes-first`(既定。大骨 1 本ずつ(その原因と一緒に)、最後に頭)か `effect-first`(頭と背骨を先に出し、それから大骨 1 本ずつ)。節の `step` が勝つ(原因だけ後の段階にもできる)\n- 見せ方(`variant`):`fade`・`draw`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 動きの上限:どの見せ方でも箱と字が動くのは 12 px まで(箱の中心で測る)、時間も `fade` の長さの中(共通の決まり §1.2)\n- 入る大きさの目安(1280×720 の本文、高さ 440 px ほど):大骨 1 本あたりの行(原因と細かい原因の数)は 3 つまで(短ければ 4 つ)、大骨は 4〜6 本、原因は 10 字ほどまで。字は 24 px より小さくならず、入らない分は要素の箱から上下・左右にはみ出す(足りない px を `ctx.report` で知らせ、Studio の検査に出る)。多いときは図を分けるか、原因を短く言い換える\n- 授業の表示(`ctx.preview`)では、後の段階の骨と字をテーマの薄さで出しておく"
1014
999
  },
1015
1000
  "m-flow": {
1016
1001
  "set": "standard",
1017
- "row": "| `<m-flow>` | 流れ図の箱と矢印を段階ごとに出して、図を組み立てる | nodes と edges の step の最大 | `{nodes:{id:str\\|int,label?,tex?,x:num,y:num,w:num,h:num,step?,tone?,at?}[],edges?:{from:str\\|int,to:str\\|int,step?,label?,tone?,dash?:bool,kind?:\"money\"\\|\"service\"\\|\"data\",amount?:str\\|num,shift?:num,pulse?:bool\\|any[],offset?:num,at?}[]}` |",
1018
- "entry": "### `<m-flow>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"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}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `26` | 箱の字の大きさ(px) |\n| `pulse-n` | number | `3` | pulse で流れる点の数 |\n| `label-gap` | number | `12` | 辺の名前・金額と箱との最小の間(px)。近ければ線から離す |\n\n証明や手法の各ステップに合わせて箱と矢印を出し、文と図の対応を見せるときに使う。\n\n座標は要素の箱の px(`x`, `y` は箱の左上、`w`, `h` は大きさ)。\n\n- node:`id` `label`(`*斜体*` `_下付き` `^上付き`、`\\n` で改行)または `tex`(KaTeX)、`step`、`tone`(`term` / `emph` / `muted`)、`at`(段階の中の開始秒)、`shape:\"diamond\"`(判断)\n- edge:`from` `to` `step`(既定は両端の箱の遅いほう)、`label`、`tone`、`dash`、`offset`(名前と線の距離)、`at`、`loop:true`(戻る辺)\n- 色:線と線の名前は `--fg`(`tone` があればその色)。`muted` の箱は枠が `--muted`、地が `--bg`、字は `--fg`\n- 箱は薄く拡大しながら現れ、矢印は同じ段階の箱が出てから引く",
1002
+ "row": "| `<m-flow>` | 流れ図の箱と矢印を段階ごとに出して、図を組み立てる | nodes と edges の step の最大 | `{nodes:{id:str\\|int,label?,tex?,x:num,y:num,w:num,h:num,step?,tone?,at?,shape?:str}[],edges?:{from:str\\|int,to:str\\|int,step?,label?,tone?,dash?:bool,kind?:\"money\"\\|\"service\"\\|\"data\",amount?:str\\|num,shift?:num,pulse?:bool\\|any[],pulseAt?:num,offset?:num,at?,loop?:bool\\|str}[]}` |",
1003
+ "entry": "### `<m-flow>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"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}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `26` | 箱の字の大きさ(px) |\n| `pulse-n` | number | `3` | pulse で流れる点の数 |\n| `label-gap` | number | `12` | 辺の名前・金額と箱との最小の間(px)。近ければ線から離す |\n\n証明や手法の各ステップに合わせて箱と矢印を出し、文と図の対応を見せるときに使う。\n\n座標は要素の箱の px(`x`, `y` は箱の左上、`w`, `h` は大きさ)。\n\n- node:`id` `label`(`\\n` で改行)または `tex`(KaTeX)、`step`、`tone`(`term` / `emph` / `muted`)、`at`(段階の中の開始秒)、`shape:\"diamond\"`(判断)\n- edge:`from` `to` `step`(既定は両端の箱の遅いほう)、`label`、`tone`、`dash`、`offset`(名前と線の距離)、`at`、`loop`(前の箱へ外側を回って戻る辺。回る側は `\"left\"` `\"right\"` `\"top\"` `\"bottom\"`、`true` なら両端が縦に並ぶとき右・横に並ぶとき下)\n- 色:線と線の名前は `--fg`(`tone` があればその色)。`muted` の箱は枠が `--muted`、地が `--bg`、字は `--fg`\n- 箱は薄く拡大しながら現れ、矢印は同じ段階の箱が出てから引く",
1019
1004
  "ext": {
1020
1005
  "business": "お金・モノの流れ(ビジネスモデルの図)のための edge の欄(書かなければこれまでと同じ):\n\n- `kind`:`money`(`--emph` の太線)・`service`(`--term`)・`data`(`--muted` の破線)。`tone` と `dash` を書けばそちらが勝つ\n- `amount`:金額などを太字で添える。`label` もあれば線の反対の側に書く\n- `shift`:線に垂直に(進む向きの右へ)ずらす px。同じ 2 つの箱の行きと帰りを `shift` を同じ値にして 2 本並べる。字はずらした側に書く\n- `pulse`:点の列(`pulse-n` 個、0.22 秒おき)が始点から終点へ `pulse-dur` 秒で流れる。`true` なら辺の段階に(引き終わってから)1 回、`[段階, …]` ならその段階ごとに 1 回(辺の段階でなければ `pulseAt` 秒、既定 0.2 秒から)。位置は (k, t) だけで決まり、流れ終わると消える(最終状態には出ない)。`pulse` の段階は図の段階の数にも数える\n- `cues(k)`:pulse の開始時刻を返す(pulse のない図はこれまでどおり null)。口述原稿の `{cue}` の数と合えば、「お金は〜から〜へ{cue}」に合わせて流れる"
1021
1006
  }
@@ -1023,12 +1008,12 @@ export const PACK = {
1023
1008
  "m-gendai": {
1024
1009
  "set": "kokugo",
1025
1010
  "row": "| `<m-gendai>` | 現代文の読解の図:傍線・二重傍線を引き、指示語から指す内容へ矢印、段落を役割(主張・具体例・対比)の枠で囲んで線でつなぐ | 中身のある phases の数(既定 marks refs roles) | 要素の中の字(JSON ではない) |",
1026
- "entry": "### `<m-gendai>`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `28` | 本文の字の大きさ(px) |\n| `tate` | bool | `false` | 縦書きにする(段落は右から左へ、枠をつなぐ線は上を通す) |\n| `phases` | string | `\"marks refs roles\"` | 段階の並び(marks 傍線・refs 指示語・roles 段落の枠から選ぶ。中身のないものは飛ばす) |\n\n現代文の文章の構造(筆者の主張と、それを支える具体例・対比)と、指示語の指す内容を見せるときに使う。段階 0 は本文だけ。\n\n#### 書き方\n\n段落は空行で区切る。段落の頭の行で役割と名前、つながりを書く(なくてもよい)。\n\n```\n@具体例#p1>p3\n駅までの道を、私は{地図アプリ|#app}に頼って歩く。…{それ|>app}を閉じると、…\n\n@対比#p2~p1\n…\n\n@主張#p3\n便利な道具は、私たちから==迷う機会を奪う==。だが、{迷うことこそが…|_A}。\n```\n\n- `@役割#名前>名前`:役割(自由な言葉。主張・結論は `--emph`、対比・反論は `--accent2`、具体例は `--term`、ほかは `--muted`)、この段落の名前、矢印でつなぐ段落。`~名前` は対比(両向きの線)\n- `__語句__` 傍線、`==語句==` 二重傍線\n- `{語句|しるし,…}`:`_A` 傍線と記号 A、`=B` 二重傍線と記号 B(記号なしは `_` `=`)、`#名前` 指示語が指す先、`>名前` 指示語。しるしは入れ子にできない(`{語句|=,#q}` のように 1 つにまとめる)\n\n#### 段階\n\n`phases`(既定 `marks refs roles`)の順に。中身のないものは段階にしない。\n\n- `marks`:傍線・二重傍線を順に引く(縦書きは字の右、横書きは字の下。行をまたぐときは行ごとに続けて)。記号(A など)は線の始まりのすぐ外に付く。縦書きは傍線と記号が入るように行の送りを広く取る(2.4)\n- `refs`:指示語を囲み、指す先に淡い色を敷いて、指示語から矢印(指す先の行のうち近いほうへ)\n- `roles`:段落を役割の色の枠で囲み、札を付け、最後につなぐ線。線は札から札へ、札と枠の外の通り道(縦書きは札の上、横書きは札の左)を通り、矢じりは相手の札の辺に当たる。間の段落を越える線ほど外の段を通し、段の数だけ場所を空ける(線は札にも枠にも重ならない)"
1011
+ "entry": "### `<m-gendai>`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `28` | 本文の字の大きさ(px) |\n| `tate` | bool | `false` | 縦書きにする(段落は右から左へ、枠をつなぐ線は上を通す) |\n| `phases` | string | `\"marks refs roles\"` | 段階の並び(marks 傍線・refs 指示語・roles 段落の枠から選ぶ。中身のないものは飛ばす) |\n\n現代文の文章の構造(筆者の主張と、それを支える具体例・対比)と、指示語の指す内容を見せるときに使う。段階 0 は本文だけ。\n\n#### 書き方\n\n段落は空行で区切る。段落の頭の行で役割と名前、つながりを書く(なくてもよい)。\n\n```\n@具体例#p1>p3\n駅までの道を、私は{地図アプリ|#app}に頼って歩く。…{それ|>app}を閉じると、…\n\n@対比#p2~p1\n…\n\n@主張#p3\n便利な道具は、私たちから==迷う機会を奪う==。だが、{迷うことこそが…|_A}。\n```\n\n- `@役割#名前>名前`:役割(自由な言葉)、この段落の名前、矢印でつなぐ段落。`~名前` は対比(両向きの線)\n- `__語句__` 傍線、`==語句==` 二重傍線\n- `{語句|しるし,…}`:`_A` 傍線と記号 A、`=B` 二重傍線と記号 B(記号なしは `_` `=`)、`#名前` 指示語が指す先、`>名前` 指示語。しるしは入れ子にしない(`,` で 1 つにまとめる)\n\n#### 段階\n\n`phases`(既定 `marks refs roles`)の順に。中身のないものは段階にしない。\n\n- `marks`:傍線・二重傍線を順に引く。記号(A など)は線の始まりに付く\n- `refs`:指示語を囲み、指す先に色を敷いて矢印\n- `roles`:段落を役割の色の枠で囲み、札を付け、最後につなぐ線"
1027
1012
  },
1028
1013
  "m-heatmap": {
1029
1014
  "set": "stats",
1030
1015
  "row": "| `<m-heatmap>` | ヒートマップ。値で塗ったセルの格子(混同行列・相関行列・注意の重み) | rows:行を 1 つずつ(normalize=\"row\" の既定)。whole:全体を 1 段階。cells:全体、それから強調を 1 つずつ(highlight があるときの既定) | `{rows:str[],cols:str[],values:num[][],unit?:str,digits?:num,highlight?:num[][]}` — values[行][列]。rows の名前ごとに 1 行、cols の名前ごとに 1 つの数。highlight は [[行, 列] か [行, 列, 段階]](0 から数える) |",
1031
- "entry": "### `<m-heatmap>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"rows\":[\"ねこ\",\"いぬ\"],\"cols\":[\"ねこ\",\"いぬ\"],\"values\":[[45,5],[6,44]]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `scale` | string | `\"sequential\"` | sequential か diverging(center を地の色に 2 色) |\n| `center` | number | `0` | diverging の真ん中の値 |\n| `range` | json | `null` | 色の範囲 [最小, 最大] |\n| `tone` | string | `\"term\"` | 濃い側の色:term・emph・accent2 |\n| `lowtone` | string | `\"emph\"` | diverging の center より下の色 |\n| `normalize` | string | `\"none\"` | row:行ごとの割合(混同行列) |\n| `show` | string | `\"percent\"` | normalize=row の数字:percent・count・both |\n| `numbers` | string | `\"auto\"` | セルの数字:auto・on・off |\n| `diag` | string | `\"off\"` | on:対角を枠で強調 |\n| `build` | string | `\"\"` | rows・whole・cells |\n| `rotate` | string | `\"auto\"` | 列の名前:auto・0・90 |\n| `xl` | string | `\"\"` | 列の見出し |\n| `yl` | string | `\"\"` | 行の見出し |\n| `unit` | string | | |\n| `digits` | number | | |\n\n`highlight: [[行, 列], …]`(0 から。3 つ目に段階)で --emph の枠。\n\n- 混同行列:`normalize=\"row\" diag=\"on\"`(数字は `show` で割合・数・両方)\n- 相関行列:`scale=\"diverging\" range=\"[-1,1]\"`(center の上下で 2 色)\n- 書かなければ最初の見せ方(fade)"
1016
+ "entry": "### `<m-heatmap>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"rows\":[\"ねこ\",\"いぬ\"],\"cols\":[\"ねこ\",\"いぬ\"],\"values\":[[45,5],[6,44]]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `scale` | string | `\"sequential\"` | sequential か diverging(center を地の色に 2 色) |\n| `center` | number | `0` | diverging の真ん中の値 |\n| `range` | json | `null` | 色の範囲 [最小, 最大] |\n| `tone` | string | `\"term\"` | 濃い側の色:term・emph・accent2 |\n| `lowtone` | string | `\"emph\"` | diverging の center より下の色 |\n| `normalize` | string | `\"none\"` | row:行ごとの割合(混同行列) |\n| `show` | string | `\"percent\"` | normalize=row の数字:percent・count・both |\n| `numbers` | string | `\"auto\"` | セルの数字:auto・on・off |\n| `diag` | string | `\"off\"` | on:対角を枠で強調 |\n| `build` | string | `\"\"` | rows・whole・cells |\n| `rotate` | string | `\"auto\"` | 列の名前:auto・0・90 |\n| `xl` | string | `\"\"` | 列の見出し |\n| `yl` | string | `\"\"` | 行の見出し |\n| `unit` | string | | セルの数字の後ろに付ける単位(JSON の unit より先) |\n| `digits` | number | | セルの数字の小数桁(既定は値の桁、2 桁まで。割合は 0) |\n\n`highlight: [[行, 列], …]`(0 から。3 つ目に段階)で --emph の枠。\n\n- 混同行列:`normalize=\"row\" diag=\"on\"`(数字は `show` で割合・数・両方)\n- 相関行列:`scale=\"diverging\" range=\"[-1,1]\"`(center の上下で 2 色)\n- 書かなければ最初の見せ方(fade)"
1032
1017
  },
1033
1018
  "m-hissan": {
1034
1019
  "set": "math",
@@ -1041,15 +1026,10 @@ export const PACK = {
1041
1026
  "entry": "### `<m-hist>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"values\":[23,31,27,18,25,29,33,22,26,28],\"bins\":{\"start\":15,\"width\":5}}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `xr` | json | `null` | 横軸の範囲(書かなければ階級から) |\n| `yr` | json | `null` | 縦軸の範囲(書かなければ度数から) |\n| `xt` | json | `null` | 横軸の目盛り(書かなければ階級の境) |\n| `yt` | json | `null` | 縦軸の目盛り(書かなければ自動) |\n| `xf` | number | | 横軸の目盛りの小数桁 |\n| `yf` | number | | 縦軸の目盛りの小数桁 |\n| `xl` | string | `\"\"` | 横軸の名前(`*斜体*` `_下付き` `^上付き`) * |\n| `yl` | string | `\"\"` | 縦軸の名前 * |\n| `unit` | string | `\"\"` | 代表値の数の後ろに付ける単位 |\n| `digits` | number | | 代表値の小数桁(書かなければ値の桁+1 まで) |\n| `polygon` | string | `\"off\"` | on:度数折れ線 |\n| `relative` | string | `\"off\"` | on:相対度数 |\n| `cumulative` | string | `\"off\"` | on:累積度数 |\n| `kind` | string | `\"bars\"` | bars(柱状グラフ)か dots(ドットプロット) |\n| `marks` | string | `\"\"` | 代表値の印:mean,median,mode のどれか(書いた順に 1 つずつ) |\n| `build` | string | `\"whole\"` | whole・values(値を 1 つずつ数える)・bins(階級を 1 つずつ) |\n\n子の JSON の並び:部品が数える。か `{\"table\": [{\"from\", \"to\", \"count\"}]}`。2 組なら `\"series\": [{\"label\", \"values\" か \"table\"}]`(重ねる)。\n\n- 階級は start 以上 start+width 未満\n- `kind=\"dots\"`:ドットプロット(values が要る)\n- `polygon` `relative` `cumulative`:`\"on\"`\n- `marks=\"mean,median,mode\"`:代表値の線\n- `build=\"values\"`:値を 1 つずつ積む。`\"bins\"`:階級を 1 つずつ",
1042
1027
  "sup": true
1043
1028
  },
1044
- "m-kakijun": {
1045
- "set": "kokugo",
1046
- "row": "| `<m-kakijun>` | かな(ひらがな・カタカナ)の書き順。字を 1 画ずつ、書く順と向きのとおりに書いて見せる | 字 1 つ=1 段階(段階の中で 1 画ずつ)。per=\"stroke\" なら 1 画=1 段階 | 属性だけ(JSON の子なし): `size=\"240\"` |",
1047
- "entry": "### `<m-kakijun>`\n\n書き方の見本: `<m-kakijun text=\"あさ\" style=\"height:320px\"></m-kakijun>`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `text` | string | `\"\"` | 書く字(ひらがな・カタカナ、濁音・半濁音、小さい字、ー)。1 字以上 |\n| `per` | string | `\"char\"` | char(字 1 つ=1 段階)か stroke(1 画=1 段階) |\n| `writing` | string | `\"yoko\"` | yoko(横書き:左から右)か tate(縦書き:上から下、行は右から左)。小さい字の位置が変わる |\n| `grid` | string | `\"cross\"` | cross(四角い枠と十字の補助線)か none |\n| `ghost` | string | `\"on\"` | on:まだ書いていない画を薄く見せる。off:見せない |\n| `nums` | string | `\"on\"` | on:画の書き始めに丸い番号 |\n| `ends` | string | `\"off\"` | on:画の終わりに とめ・はね・はらい |\n| `size` | json | `null` | 字の枠の一辺(px)。書かなければ要素に合わせて 200〜300 |\n\n`<m-kakijun text=\"あさ\" style=\"height:320px\"></m-kakijun>`。ひらがな・カタカナ、濁音・半濁音、小さい字(ゃ・っ など)、ー を書ける。\n\n- 枠と十字の補助線の中に書く(`grid=\"none\"` で消す)。まだ書いていない画は薄く(`ghost=\"off\"` で見せない)\n- 書き始めに丸い番号(`nums=\"off\"` で消す)。`ends=\"on\"`:画の終わりに とめ・はね・はらい\n- `writing=\"tate\"`:縦書き(上から下)。小さい字はます目の右上、横書きでは左下\n- データにない字(漢字・記号)は書き順なしでそのまま出す"
1048
- },
1049
1029
  "m-kanbun": {
1050
1030
  "set": "kokugo",
1051
- "row": "| `<m-kanbun>` | 白文に返り点・送り仮名を付け、訓読の順に字をたどり(返り点で上へ戻るところに弧)、書き下し文にする(縦書き) | phases の数(order は句の数だけ。既定:訓点 1+句の数+書き下し文 1) | 要素の中の字(JSON ではない) |",
1052
- "entry": "### `<m-kanbun>`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `60` | 漢字の大きさ(px)。送り仮名・返り点はその 0.42 倍(24px より小さくしない) |\n| `phases` | string | `\"kunten order kaki\"` | 段階の並び(kunten 訓点・order 読む順・kaki 書き下し文から選ぶ) |\n| `kaki` | number | `36` | 書き下し文の字の大きさ(px) |\n| `nums` | bool | `true` | 読む順の番号を字の左上に出す |\n\n漢文の授業で、白文 → 訓点 → 読む順 → 書き下し文 を 1 枚で見せるときに使う。段階 0 は白文。\n\n#### 書き方\n\n要素の中に、1 行に 1 列(句)を書く。行の中の空白は読まない。字の後ろに付けるもの(順は問わない):\n\n| 書き方 | 意味 | 例 |\n|---|---|---|\n| `(…)` | 送り仮名(片仮名。右下に出す) | `覚(エ)` |\n| `[…]` | 返り点:`レ` `一` `二` `三` `四` `五` `上` `中` `下` `甲` `乙` `丙` `丁` `天` `地` `人`、`一レ` `上レ` `甲レ` `天レ` | `聞(ク)[二]啼鳥(ヲ)[一]` |\n| `レ` | レ点(`[レ]` と同じ) | `不{=ず}レ覚(エ)レ暁(ヲ)` |\n| `{…}` | 振り仮名(右に出す。書き下し文ではルビ) | `濺{そそ}(ギ)` |\n| `{=…}` | 書き下し文で平仮名にする字(助字)の読み | `不{=ず}`、`也{=なり}` |\n| `{-}` | 置き字(読まない。読む順の段階から薄くする) | `而{-}` |\n| `(右\\|二度目)` | 再読文字:右の送り仮名と二度目の読み。二度目の片仮名は左の送り仮名として出す | `未(ダ\\|ず)`、`将(ニ\\|ス)` |\n| `字-字` | 竪点(続けて読む熟語。返り点はまとまり全体に効く) | `読-書` |\n| `、` `。` | 句読点(白文では出さない。書き下し文では、そこまでの字を読み終えたところに置く) | `人(ヲ)、` |\n\n括弧は全角でもよい。\n\n#### 段階\n\n`phases`(既定 `kunten order kaki`)の順に 1 段階ずつ:\n\n- `kunten`:返り点・送り仮名・振り仮名・句読点が出る\n- `order`:句(列)ごとに 1 段階。目(朱の枠)が読む順に字をたどる。読んだ字には番号(左上。再読文字の二度目は右上)と淡い色。上へ戻るところに弧の矢印。`slot` 秒で 1 字。1 句 = 1 ステップ。台本の [n] は句ごとに書く\n- `kaki`:書き下し文が左に縦書きで出る(部品の高さで折り返す)\n\n`phases=\"kunten kaki\"` のように一部だけにもできる(`kunten` を外すと訓点は初めから出る)。\n\n#### 注意\n\n- 字は要素の高さと幅に自動で合わせる。収まらなければ、横は句を分け(1 枚に 2 句など)、縦は要素を高くする"
1031
+ "row": "| `<m-kanbun>` | 白文に返り点・送り仮名を付け、訓読の順に字をたどり(返り点で上へ戻るところに弧)、書き下し文にする(縦書き) | phases の数(order は句の数だけ、order-by=\"all\" なら 1。既定:訓点 1+句の数+書き下し文 1) | 要素の中の字(JSON ではない) |",
1032
+ "entry": "### `<m-kanbun>`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `60` | 漢字の大きさ(px)。送り仮名・返り点はその 0.42 倍(24px より小さくしない) |\n| `phases` | string | `\"kunten order kaki\"` | 段階の並び(kunten 訓点・order 読む順・kaki 書き下し文から選ぶ) |\n| `kaki` | number | `36` | 書き下し文の字の大きさ(px) |\n| `nums` | bool | `true` | 読む順の番号を字の左上に出す |\n| `order-by` | string | `\"col\"` | 読む順の段階の分け方:col は列(句)ごとに 1 段階、all は読む順の全体で 1 段階(まで) |\n\n漢文の授業で、白文 → 訓点 → 読む順 → 書き下し文 を 1 枚で見せるときに使う。段階 0 は白文。\n\n#### 書き方\n\n要素の中に、1 行に 1 列(句)を書く。行の中の空白は読まない。字の後ろに付けるもの(順は問わない):\n\n| 書き方 | 意味 | 例 |\n|---|---|---|\n| `(…)` | 送り仮名(片仮名。右下に出す) | `覚(エ)` |\n| `[…]` | 返り点:`レ` `一` `二` `三` `四` `五` `上` `中` `下` `甲` `乙` `丙` `丁` `天` `地` `人`、`一レ` `上レ` `甲レ` `天レ` | `聞(ク)[二]啼鳥(ヲ)[一]` |\n| `レ` | レ点(`[レ]` と同じ) | `不{=ず}レ覚(エ)レ暁(ヲ)` |\n| `{…}` | 振り仮名(右に出す。書き下し文ではルビ) | `濺{そそ}(ギ)` |\n| `{=…}` | 書き下し文で平仮名にする字(助字)の読み | `不{=ず}`、`也{=なり}` |\n| `{-}` | 置き字(読まない) | `而{-}` |\n| `(右\\|二度目)` | 再読文字:右の送り仮名と二度目の読み | `未(ダ\\|ず)`、`将(ニ\\|ス)` |\n| `字-字` | 竪点(続けて読む熟語。返り点はまとまり全体に効く) | `読-書` |\n| `、` `。` | 句読点(白文では出さない) | `人(ヲ)、` |\n\n括弧は全角でもよい。\n\n#### 段階\n\n`phases`(既定 `kunten order kaki`)の順に 1 段階ずつ:\n\n- `kunten`:返り点・送り仮名・振り仮名・句読点が出る\n- `order`:句(列)ごとに 1 段階。読む順に字をたどり、番号と、上へ戻るところに弧の矢印を付ける。`slot` 秒で 1 字。台本の [n] は句ごとに書く\n - `order-by=\"all\"`:読む順の全体を 1 段階でたどる(既定 `col` は句ごとに 1 段階)。口述原稿の `{cue}` を句ごとに置ける\n- `kaki`:書き下し文が左に縦書きで出る\n\n`phases=\"kunten kaki\"` のように一部だけにもできる(`kunten` を外すと訓点は初めから出る)。\n\n#### 注意\n\n- 字は要素の大きさに合わせる。収まらなければ句を分けるか、要素を高くする"
1053
1033
  },
1054
1034
  "m-keyboard": {
1055
1035
  "set": "music",
@@ -1059,27 +1039,27 @@ export const PACK = {
1059
1039
  "m-kobun": {
1060
1040
  "set": "kokugo",
1061
1041
  "row": "| `<m-kobun>` | 古文を語に切り(スラッシュ)、品詞で色を分けて 1 文ずつ見せ、最後に現代語訳と並べる。助動詞を押すと活用表と意味 | 文の数(現代語訳があれば +1) | 要素の中の字(JSON ではない) |",
1062
- "entry": "### `<m-kobun>`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `34` | 本文の字の大きさ(px) |\n| `tate` | bool | `false` | 縦書きにする(品詞は語の左、現代語訳は文の左に) |\n| `yaku` | bool | `true` | 現代語訳(= の行)があれば、最後の段階で並べる |\n| `detail` | bool | `false` | 品詞の下に [ ] の中をすべて(活用の種類・活用形など)出す |\n\n古文の品詞分解を、板書のように 1 文ずつ見せるときに使う。段階 0 は切っていない本文。\n\n#### 書き方\n\n1 行が 1 文(1 段階)。語は `/` で切り、語の後ろの `[ ]` に品詞(と、`・` で区切って詳しいこと)を書く。`[ ]` の後ろの字(`、` `。`)は語に付けて出す。\n\n```\n春[名]/は[係助]/あけぼの[名]。\n= 春は明け方(がよい)。\n紫だち[動・タ四・連用]/たる[助動・たり・存続・連体]/雲[名]/の[格助]/…\n```\n\n- 品詞:`名` `代` `動` `補動` `形` `形動` `副` `連体` `接` `感` `助動` `格助` `係助` `副助` `接助` `終助` `間助` `接頭` `接尾`(色:動詞 `--term`、形容詞・形容動詞 `--accent2`、助動詞 `--emph`、助詞 `--muted`、ほか `--fg`)\n- 助動詞:`[助動・基本形・この文での意味・活用形]`。基本形は部品の中の表(文語の助動詞 28 語。`なり`・`たり` は意味で断定と伝聞推定・完了を分ける)から引く。表にないものは知らせる\n- `= …` の行:直前の文の現代語訳(最後の段階で、本文の下、縦書きでは左に出す)\n- `{漢字|かな}`:振り仮名\n\n#### 属性\n\n- `tate`:縦書き(品詞は語の左)\n- `detail`:品詞の下に `[ ]` の中をすべて出す(活用の種類・活用形まで。語の間が広がる)\n- `yaku=\"false\"`:現代語訳の段階を作らない"
1042
+ "entry": "### `<m-kobun>`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `34` | 本文の字の大きさ(px) |\n| `tate` | bool | `false` | 縦書きにする(品詞は語の左、現代語訳は文の左に) |\n| `yaku` | bool | `true` | 現代語訳(= の行)があれば、最後の段階で並べる |\n| `detail` | bool | `false` | 品詞の下に [ ] の中をすべて(活用の種類・活用形など)出す |\n\n古文の品詞分解を、板書のように 1 文ずつ見せるときに使う。段階 0 は切っていない本文。\n\n#### 書き方\n\n1 行が 1 文(1 段階)。語は `/` で切り、語の後ろの `[ ]` に品詞(と、`・` で区切って詳しいこと)を書く。`[ ]` の後ろの字(`、` `。`)は語に付けて出す。\n\n```\n春[名]/は[係助]/あけぼの[名]。\n= 春は明け方(がよい)。\n紫だち[動・タ四・連用]/たる[助動・たり・存続・連体]/雲[名]/の[格助]/…\n```\n\n- 品詞:`名` `代` `動` `補動` `形` `形動` `副` `連体` `接` `感` `助動` `格助` `係助` `副助` `接助` `終助` `間助` `接頭` `接尾`\n- 助動詞:`[助動・基本形・この文での意味・活用形]`。基本形は文語の助動詞 28 語の表から引く(`なり`・`たり` は意味で分ける)。表にないものは知らせる\n- `= …` の行:直前の文の現代語訳(最後の段階で、本文の下、縦書きでは左に出す)\n- `{漢字|かな}`:振り仮名\n\n#### 属性\n\n- `tate`:縦書き(品詞は語の左)\n- `detail`:品詞の下に `[ ]` の中をすべて出す(活用の種類・活用形まで。語の間が広がる)\n - `detail` がなければ、助動詞の意味・活用形は押したときの札にだけ出る(印刷には出ない)。印刷や動画で見せるなら `detail` を付ける\n- `yaku=\"false\"`:現代語訳の段階を作らない"
1063
1043
  },
1064
1044
  "m-kpi": {
1065
1045
  "set": "standard",
1066
1046
  "row": "| `<m-kpi>` | 大きな数字の札(KPI)を段階ごとに出す。数字は数え上げ、下に増減の矢印と一言 | 札の step の最大(既定は札 1 枚 = 1 段階。per-step で n 枚ずつ) | `{cards:{label?,value:num,digits?:int,unit?:str,prefix?:str,from?:num,tone?,delta?:{dir?:\"up\"\\|\"down\",text?:str,good?:bool},note?,step?,at?}[]}` |",
1067
- "entry": "### `<m-kpi>`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `cols` | number | `0` | 1 行の札の数(0 = 札の数、4 まで) |\n| `digits` | number | `0` | 数字の小数桁(札の digits が優先) |\n| `per-step` | number | `1` | 1 段階に出す札の数(0 = 全部を段階 1 で) |\n| `count` | bool | `true` | 数字を数え上げる |\n| `size` | number | `0` | 数字の字の大きさ(px。0 = 札の高さから) |\n\n表紙の直後の「掴みの数字」、試験導入の結果、市場規模の要約など、少数の数字を大きく見せるときに使う。\n\n- `label`:札の上の名前。`value`:数字(`digits` 桁、3 桁ごとにカンマ)。`unit`:数字の後ろの単位(小さめの字)。`prefix`:数字の前の記号(`−` `+` `約` など)\n- `from`:数え上げを始める値(既定 0。「20 分 → 7.5 分」のように減らす数も見せられる)\n- `tone`:数字と札の上の帯の色(`term`(既定)・`emph`・`accent2`・`series-1..4`)\n- `delta`:`{\"dir\": \"up\" | \"down\", \"text\": \"前の期から 4 社\", \"good\": true}`。▲ / ▼ と一言を数字の下に出す。良い向き(`good`、既定は `up` なら良い)なら `--term`、悪い向きなら `--emph`\n- `note`:札の下端の一言(`--muted`)\n- 見せ方(`variant`):`count`・`rise`・`flip`・`underline`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 札の並び:`cols`(既定は札の数、4 まで)列で、行が足りなければ折り返す\n- `cues(k)`:同じ段階に 2 枚以上の札があれば、2 枚目からの開始時刻を返す(口述原稿の `{cue}` に合わせられる)"
1047
+ "entry": "### `<m-kpi>`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `cols` | number | `0` | 1 行の札の数(0 = 札の数、4 まで) |\n| `digits` | number | `0` | 数字の小数桁(札の digits が優先) |\n| `per-step` | number | `1` | 1 段階に出す札の数(0 = 全部を段階 1 で) |\n| `count` | bool | `true` | 数字を数え上げる |\n| `size` | number | `0` | 数字の字の大きさ(px。0 = 札の高さから) |\n\n表紙の直後の「掴みの数字」、試験導入の結果、市場規模の要約など、少数の数字を大きく見せるときに使う。\n\n- `label`:札の上の名前。`value`:数字(`digits` 桁、3 桁ごとにカンマ)。`unit`:数字の後ろの単位(小さめの字)。`prefix`:数字の前の記号(`+` `約` など)。負の `value` は自分で − が付くので、`prefix` に `−` を重ねない(`\"prefix\": \"−\"` と `-12` は「−−12」)。減った量を正の数で見せるときだけ `value` を正にして `prefix: \"−\"`\n- `from`:数え上げを始める値(既定 0。「20 分 → 7.5 分」のように減らす数も見せられる)\n- `tone`:数字と札の上の帯の色(`term`(既定)・`emph`・`accent2`・`series-1..4`)\n- `delta`:`{\"dir\": \"up\" | \"down\", \"text\": \"前の期から 4 社\", \"good\": true}`。▲ / ▼ と一言を数字の下に出す。良い向き(`good`、既定は `up` なら良い)なら `--term`、悪い向きなら `--emph`\n- `note`:札の下端の一言(`--muted`)\n- 見せ方(`variant`):`count`・`rise`・`flip`・`underline`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 札の並び:`cols`(既定は札の数、4 まで)列で、行が足りなければ折り返す\n- `cues(k)`:同じ段階に 2 枚以上の札があれば、2 枚目からの開始時刻を返す(口述原稿の `{cue}` に合わせられる)"
1068
1048
  },
1069
1049
  "m-map-japan": {
1070
1050
  "set": "maps",
1071
1051
  "row": "| `<m-map-japan>` | 日本の 47 都道府県の地図。地域の強調、統計の塗り分け、点、矢印、経度・緯度の重ね描きを段階ごとに出す | 項目の step の最大(既定 1)。地図そのものは段階 0 から出ている | `{regions?:[{id?:str\\|int,group?:str,label?,tone?,step?,at?} (id or group),…],values?:object,classes?:num[],valuesStep?:int,points?:[{lon?:num,lat?:num,code?:str\\|int,label?,tone?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\",step?,at?} (lon + lat or code),…],flows?:{from:str\\|int\\|any[],to:str\\|int\\|any[],label?,tone?,value?:num,bend?:num,via?:any[][],labelAt?:any[],step?,at?}[],shapes?:[{polygon?:any[][],line?:any[][],label?,labelAt?:any[],tone?,dash?:bool,step?,at?} (polygon or line),…]}` — 都道府県は regions[].id に JIS の番号 \"01\"〜\"47\"(\"JP-13\"・\"東京都\" も可)、八地方区分は regions[].group(hokkaido・tohoku・kanto・chubu・kinki・chugoku・shikoku・kyushu)。values は {番号: 数} のオブジェクト、classes は階級の下限(既定は 4 階級、5 つまで)。points・shapes・flows[].via は経度・緯度(度) |",
1072
- "entry": "### `<m-map-japan>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"regions\":[{\"id\":\"13\",\"tone\":\"emph\",\"step\":1},{\"group\":\"kinki\",\"tone\":\"series-2\",\"step\":2}],\"points\":[{\"lon\":135.5,\"lat\":34.69,\"label\":\"大阪\",\"step\":3}],\"flows\":[{\"from\":\"13\",\"to\":\"27\",\"step\":4}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `layout` | string | `\"inset\"` | inset(南西諸島を枠に入れて描く)か true(本当の位置。日本が小さくなる) |\n| `islands` | string | `\"main\"` | main か all(inset で小笠原諸島の枠も描く) |\n| `labels` | string | `\"focus\"` | 地域の名前:focus(regions に書いた地域だけ)・all(名前が中に入る都道府県すべて)・none |\n| `show` | string | `\"none\"` | 塗り分けた地域の上に値を書くか:none(書かない、既定)・value(中に入る地域だけ値を書く) |\n| `unit` | string | `\"\"` | 値の単位(凡例の見出しに書く) |\n| `digits` | number | `0` | 値の小数桁 |\n| `legend` | string | `\"\"` | 凡例の見出し(例:人口)。unit があれば後ろに(単位)を足す |\n\n地理・歴史の授業で場所を示すときに使う。子の JSON(どれも `step` `at` `tone` を持てる):\n\n- `regions`:`id`(`\"01\"`〜`\"47\"`)か `group`(`hokkaido` `tohoku` `kanto` `chubu` `kinki` `chugoku` `shikoku` `kyushu`)。`label`\n- `values`:`{\"13\": 1406, …}` と `classes`(階級の下限、既定は 4 階級、5 つまで)で塗り分け。凡例に階級を書く\n- `points`:`lon` `lat`(または `code` で県庁の位置)、`label`、`anchor`\n- `flows`:`from` `to`(番号か `[経度, 緯度]`)の矢印。`via`(通る点 `[[経度, 緯度], …]`。海の道は沖に)、`label` `labelAt` `value`\n- `shapes`:`polygon` か `line`(`[[経度, 緯度], …]`)。`label` `dash`\n\n`labels`:`focus`(既定)・`all`・`none`。`show=\"value\"` で入る地域に値を書く(既定は書かない)。\n\n日本の範囲・東西南北の端・排他的経済水域を見せるときは layout=\"true\"(小窓なし、本当の位置)\n\n地図データ:Natural Earth(パブリックドメイン)を加工。"
1052
+ "entry": "### `<m-map-japan>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"regions\":[{\"id\":\"13\",\"tone\":\"emph\",\"step\":1},{\"group\":\"kinki\",\"tone\":\"series-2\",\"step\":2}],\"points\":[{\"lon\":135.5,\"lat\":34.69,\"label\":\"大阪\",\"step\":3}],\"flows\":[{\"from\":\"13\",\"to\":\"27\",\"step\":4}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `layout` | string | `\"inset\"` | inset(南西諸島を枠に入れて描く)か true(本当の位置。日本が小さくなる) |\n| `islands` | string | `\"main\"` | main か all(inset で小笠原諸島の枠も描く) |\n| `labels` | string | `\"focus\"` | 地域の名前:focus(regions に書いた地域だけ)・all(名前が中に入る都道府県すべて)・none |\n| `show` | string | `\"none\"` | 塗り分けた地域の上に値を書くか:none(書かない、既定)・value(中に入る地域だけ値を書く) |\n| `unit` | string | `\"\"` | 値の単位(凡例の見出しに書く) |\n| `digits` | number | `0` | 値の小数桁 |\n| `legend` | string | `\"\"` | 凡例の見出し(例:人口)。unit があれば後ろに(単位)を足す |\n\n地理・歴史の授業で場所を示すときに使う。子の JSON(どれも `step` `at` `tone` を持てる):\n\n- `regions`:`id`(`\"01\"`〜`\"47\"`)か `group`(`hokkaido` `tohoku` `kanto` `chubu` `kinki` `chugoku` `shikoku` `kyushu`)。`label`\n- `values`:`{\"13\": 1406, …}` と `classes`(階級の下限、既定は 4 階級、5 つまで)で塗り分け。凡例に階級を書く。塗り分けの段階は `valuesStep`(既定 1。`values` は `step` を持てない)\n- `points`:`lon` `lat`(または `code` で県庁の位置)、`label`、`anchor`\n- `flows`:`from` `to`(番号か `[経度, 緯度]`)の矢印。`via`(通る点 `[[経度, 緯度], …]`。海の道は沖に)、`label` `labelAt` `value`(数。線の太さが値で変わる:いちばん大きい値で 10 px、0 で 3 px、ないと 4 px)\n- `shapes`:`polygon` か `line`(`[[経度, 緯度], …]`)。`label` `dash`\n\n`labels`:`focus`(既定)・`all`・`none`。`show=\"value\"` で入る地域に値を書く(既定は書かない)。\n\n日本の範囲・東西南北の端・排他的経済水域を見せるときは layout=\"true\"(小窓なし、本当の位置)\n\n地図データ:Natural Earth(パブリックドメイン)を加工。"
1073
1053
  },
1074
1054
  "m-map-world": {
1075
1055
  "set": "maps",
1076
1056
  "row": "| `<m-map-world>` | 世界の国・地域の地図(太平洋が中央)。国や州の強調、区分と値の塗り分け、点、矢印を段階ごとに出す | 項目の step の最大(既定 1)。地図そのものは段階 0 から出ている | `{regions?:[{id?:str,group?:str,label?,tone?,step?,at?} (id or group),…],categories?:{label,ids:str[],tone?,step?,at?}[],values?:object,classes?:num[],valuesStep?:int,points?:[{lon?:num,lat?:num,code?:str,label?,tone?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\",step?,at?} (lon + lat or code),…],flows?:{from:str\\|any[],to:str\\|any[],label?,tone?,value?:num,bend?:num,via?:any[][],labelAt?:any[],step?,at?}[],shapes?:[{polygon?:any[][],line?:any[][],label?,labelAt?:any[],tone?,dash?:bool,step?,at?} (polygon or line),…]}` — 国・地域は ISO の 3 文字か Natural Earth の符号(\"JPN\"・\"USA\")か日本語の名前。六州(asia・europe・africa・north-america・south-america・oceania)は regions[].group と categories[].ids に。values は {符号: 数}、classes は階級の下限(既定は 4 階級、5 つまで)。points・shapes・flows の [経度, 緯度] は度 |",
1077
- "entry": "### `<m-map-world>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"regions\":[{\"id\":\"JPN\",\"tone\":\"emph\",\"step\":1},{\"group\":\"africa\",\"tone\":\"series-2\",\"step\":2}],\"points\":[{\"lon\":139.69,\"lat\":35.69,\"label\":\"東京\",\"step\":3}],\"flows\":[{\"from\":[139.69,35.69],\"to\":\"AUS\",\"step\":4}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `labels` | string | `\"focus\"` | 名前:focus(regions に書いた地域だけ)・all(名前が中に入る国すべて)・none |\n| `grid` | string | `\"none\"` | none・equator(赤道)・graticule(30° ごとの経線・緯線と赤道) |\n| `show` | string | `\"none\"` | 塗り分けた国の上に値を書くか:none(既定)・value(中に入る国だけ) |\n| `unit` | string | `\"\"` | 値の単位(凡例の見出しに書く) |\n| `digits` | number | `0` | 値の小数桁 |\n| `legend` | string | `\"\"` | 凡例の見出し(例:人口)。unit があれば後ろに(単位)を足す |\n\n世界地理・歴史の授業で国や都市の場所を示すときに使う。子の JSON(どれも `step` `at` `tone` を持てる):\n\n- `regions`:`id`(`\"JPN\"` など ISO の 3 文字か国名)か `group`(六州)。`label`\n- `categories`:`label` と `ids`(国か州)。凡例に出す。4 区分まで\n- `values`:`{\"JPN\": 72, …}` と `classes`(階級の下限)\n- `points`:`lon` `lat`、`label`、`anchor`\n- `flows`:`from` `to`(`[経度, 緯度]` か国)、`via` `label` `value` `bend`\n\n継ぎ目は 30°W(大西洋を横切る矢印は描けない)。\n\n地図データ:Natural Earth(パブリックドメイン)を加工。"
1057
+ "entry": "### `<m-map-world>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"regions\":[{\"id\":\"JPN\",\"tone\":\"emph\",\"step\":1},{\"group\":\"africa\",\"tone\":\"series-2\",\"step\":2}],\"points\":[{\"lon\":139.69,\"lat\":35.69,\"label\":\"東京\",\"step\":3}],\"flows\":[{\"from\":[139.69,35.69],\"to\":\"AUS\",\"step\":4}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `labels` | string | `\"focus\"` | 名前:focus(regions に書いた地域だけ)・all(名前が中に入る国すべて)・none |\n| `grid` | string | `\"none\"` | none・equator(赤道)・graticule(30° ごとの経線・緯線と赤道) |\n| `show` | string | `\"none\"` | 塗り分けた国の上に値を書くか:none(既定)・value(中に入る国だけ) |\n| `unit` | string | `\"\"` | 値の単位(凡例の見出しに書く) |\n| `digits` | number | `0` | 値の小数桁 |\n| `legend` | string | `\"\"` | 凡例の見出し(例:人口)。unit があれば後ろに(単位)を足す |\n\n世界地理・歴史の授業で国や都市の場所を示すときに使う。子の JSON(どれも `step` `at` `tone` を持てる):\n\n- `regions`:`id`(`\"JPN\"` など ISO の 3 文字か国名)か `group`(六州)。`label`\n- `categories`:`label` と `ids`(国か州)。凡例に出す。4 区分まで\n- `values`:`{\"JPN\": 72, …}` と `classes`(階級の下限)。塗り分けの段階は `valuesStep`(既定 1)\n- `points`:`lon` `lat`、`label`、`anchor`\n- `flows`:`from` `to`(`[経度, 緯度]` か国)、`via` `label` `bend`、`value`(数。線の太さが値で変わる:いちばん大きい値で 10 px)、`labelAt`(名前を置く `[経度, 緯度]`)\n- `shapes`:重ね描き。`polygon`(3 点以上の `[[経度, 緯度], …]`、薄く塗る)か `line`(2 点以上)。`label` `labelAt` `dash`\n\n継ぎ目は 30°W(大西洋を横切る矢印は描けない)。\n\n地図データ:Natural Earth(パブリックドメイン)を加工。"
1078
1058
  },
1079
1059
  "m-market": {
1080
1060
  "set": "business",
1081
1061
  "row": "| `<m-market>` | 市場規模の入れ子の円(TAM / SAM / SOM)。外の円から 1 つずつ、前の円の大きさから縮んで現れる | rings の数 | `{rings:{key?:str,value:num,basis?:str,tone?}[]}` |",
1082
- "entry": "### `<m-market>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"rings\":[{\"key\":\"TAM\",\"value\":3000,\"basis\":\"国内の…\"},{\"key\":\"SAM\",\"value\":600,\"basis\":\"…\"},{\"key\":\"SOM\",\"value\":30,\"basis\":\"…\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `unit` | string | `\"\"` | 値の単位(数字の後ろに付ける) |\n| `digits` | number | `0` | 値の小数桁 |\n| `scale` | string | `\"fixed\"` | fixed(決まった比)か area(面積を値に比例) |\n| `layout` | string | `\"bottom\"` | bottom(下端をそろえる)か center(同心) |\n| `count` | bool | `false` | 値の数字を縮みに合わせて数え上げる |\n\n市場の大きさを、全体(TAM)から手の届く範囲(SAM)、最初に取る範囲(SOM)へ絞り込んで見せるときに使う。\n\n子の JSON の並び:外から順。\n\n- 段階 j で j 番目の円が、1 つ外の円の大きさと位置から縮んで現れる。前の円はそのまま残る\n- 名前(`key`)・値・根拠(`basis`、何を数えたか)は円の右に書き、円の中の点から引き出し線で結ぶ。値は `digits` 桁で 3 桁ごとにカンマを入れ、`unit` を後ろに付ける\n- `scale=\"fixed\"`(既定)は見やすい決まった比(1・0.64・0.34・0.16)。`scale=\"area\"` は面積を値に比例させる(小さすぎる円は最も大きい円の 0.14 倍の半径にする)。面積に比例させると SOM がほとんど見えないことが多いので、既定は fixed にして値を字で示す\n- `layout=\"bottom\"`(既定)は円の下端をそろえ、`layout=\"center\"` は同心にする\n- 色は外の 2 つが `--term`、内の円が `--emph`(`tone` で変えられる)\n- 値の数字は円が縮みきってから出す。`count=\"true\"` なら縮みに合わせて数え上げる"
1062
+ "entry": "### `<m-market>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"rings\":[{\"key\":\"TAM\",\"value\":3000,\"basis\":\"国内の…\"},{\"key\":\"SAM\",\"value\":600,\"basis\":\"…\"},{\"key\":\"SOM\",\"value\":30,\"basis\":\"…\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `unit` | string | `\"\"` | 値の単位(数字の後ろに付ける) |\n| `digits` | number | `0` | 値の小数桁 |\n| `scale` | string | `\"fixed\"` | fixed(決まった比)か area(面積を値に比例) |\n| `layout` | string | `\"bottom\"` | bottom(下端をそろえる)か center(同心) |\n| `count` | bool | `false` | 値の数字を縮みに合わせて数え上げる |\n\n市場の大きさを、全体(TAM)から手の届く範囲(SAM)、最初に取る範囲(SOM)へ絞り込んで見せるときに使う。\n\n子の JSON の並び:外から順。\n\n- 段階 j で j 番目の円が、1 つ外の円の大きさと位置から縮んで現れる。前の円はそのまま残る\n- 名前(`key`)・値・根拠(`basis`、何を数えたか)は円の右に書き、円の中の点から引き出し線で結ぶ。値は `digits` 桁で 3 桁ごとにカンマを入れ、`unit` を後ろに付ける\n- `scale=\"fixed\"`(既定)は見やすい決まった比(1・0.64・0.34・0.16)。`scale=\"area\"` は面積を値に比例させる(小さすぎる円は最も大きい円の 0.14 倍の半径にする)。面積に比例させると SOM がほとんど見えないことが多いので、既定は fixed にして値を字で示す\n- `layout=\"bottom\"`(既定)は円の下端をそろえ、`layout=\"center\"` は同心にする\n- 色は外の 2 つが `--term`、内の円が `--emph`(`tone` で変えられる:`term`・`emph`・`muted`・`accent2`・`series-1..4`。ほかの値は `term`)\n- `dur`:1 つの円が縮んで現れる秒数(既定 0.9)。数字はそのあと 0.35 秒で出る\n- 値の数字は円が縮みきってから出す。`count=\"true\"` なら縮みに合わせて数え上げる"
1083
1063
  },
1084
1064
  "m-menu": {
1085
1065
  "set": "standard",
@@ -1089,7 +1069,7 @@ export const PACK = {
1089
1069
  "m-numberline": {
1090
1070
  "set": "math",
1091
1071
  "row": "| `<m-numberline>` | 数直線。点・□・ジャンプ・不等式の範囲・0.1 の拡大。2 本で比例数直線 | build の順(既定 ticks,marks,links,jumps,ranges,magnify)に項目 1 つ = 1 段階。whole:全部で 1 段階 | `{lines:{from:num\\|str,to:num\\|str,step?:num\\|str,sub?:int,unit?:str,label?,labels?:str\\|any[]}[],marks?:{at:num\\|str,line?:int,label?,kind?:\"dot\"\\|\"open\"\\|\"box\",tone?,show?:int}[],jumps?:{from:num\\|str,to:num\\|str,line?:int,label?,tone?,show?:int}[],ranges?:[{from?:num\\|str,to?:num\\|str,incl?:[bool,bool],line?:int,label?,tone?,show?:int} (from or to),…],link?:(any[]\\|object)[],magnify?:{from:num\\|str,to:num\\|str,step?:num\\|str,labels?:str\\|any[],show?:int}[]}` — lines [{from, to, step, sub, unit, label, labels}](1 本か 2 本)、marks [{at, kind: dot\\|open\\|box, label}]、jumps [{from, to, label}]、ranges [{from, to, incl: [真偽, 真偽]}]、link [[上の値, 下の値]]、magnify [{from, to, step}]。値は数か \"1/3\" |",
1092
- "entry": "### `<m-numberline>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"lines\":[{\"from\":0,\"to\":10,\"step\":1}],\"marks\":[{\"at\":3}],\"jumps\":[{\"from\":3,\"to\":7,\"label\":\"+4\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `build` | string | `\"ticks,marks,links,jumps,ranges,magnify\"` | 出す順(種類をコンマで)か whole(全部を 1 段階で) |\n| `arrow` | string | `\"off\"` | on:線の右の端を矢印に |\n\n子の JSON の値は数か `\"1/3\"`(分数で書く)。\n\n- lines:1 本か 2 本(0 をそろえる)`{from, to, step, sub, label, unit, labels: \"ends\" | [値]}`\n- marks:`{at, kind: \"dot\" | \"open\" | \"box\", label}`。box は □\n- jumps:`{from, to, label}`(左向きも)\n- ranges:`{from, to, incl: [true, false]}`。端がなければ矢印。重なれば共通部分を塗る\n- link(2 本):`[[上の値, 下の値]]` か `{at, label: \"×3\"}`\n- magnify:`{from, to, step}`。区間を下の線に広げる(既定 10 等分)\n- 項目の `line`(0 か 1。拡大の線は 1, 2, …)、`show`(段階)\n- `arrow=\"on\"`:右端を矢印に"
1072
+ "entry": "### `<m-numberline>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"lines\":[{\"from\":0,\"to\":10,\"step\":1}],\"marks\":[{\"at\":3}],\"jumps\":[{\"from\":3,\"to\":7,\"label\":\"+4\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `build` | string | `\"ticks,marks,links,jumps,ranges,magnify\"` | 出す順(種類をコンマで)か whole(全部を 1 段階で) |\n| `arrow` | string | `\"off\"` | on:線の右の端を矢印に |\n\n子の JSON の値は数か `\"1/3\"`(分数で書く)。\n\n- lines:1 本か 2 本(0 をそろえる)`{from, to, step, sub, label, unit, labels: \"ends\" | [値]}`\n- marks:`{at, kind: \"dot\" | \"open\" | \"box\", label}`。box は □\n- jumps:`{from, to, label}`(左向きも)\n- ranges:`{from, to, incl: [true, false]}`。端がなければ矢印。重なれば共通部分を塗る\n- link(2 本):`[[上の値, 下の値]]`(破線)か `{at: [上の値, 下の値], label: \"×3\"}`(上の線から下の線への矢印。`dir: \"up\"` なら下から上へ)\n- magnify:`{from, to, step}`。区間を下の線に広げる(既定 10 等分)\n- 項目の `line`(0 か 1。拡大の線は 1, 2, …)、`show`(段階)\n- `tone`(marks・jumps・ranges・名前のある link):`term`・`emph`・`muted`・`accent2`・`fg`・`series-1..4`。既定は `term`、範囲は `series-1..4` の順\n- `arrow=\"on\"`:右端を矢印に"
1093
1073
  },
1094
1074
  "m-orbit": {
1095
1075
  "set": "science",
@@ -1109,18 +1089,18 @@ export const PACK = {
1109
1089
  "m-quad": {
1110
1090
  "set": "standard",
1111
1091
  "row": "| `<m-quad>` | 2 軸の位置づけ(ポジショニングマップ・SWOT 風の 4 象限)に、点を段階ごとに 1 つずつ置く | 点の step と to.step の最大(既定は点 1 つ = 1 段階) | `{x?:{lo?:str,hi?:str},y?:{lo?:str,hi?:str},quads?:{tr?:str,tl?:str,bl?:str,br?:str,fill?:str},items:{label?,x:num,y:num,step?,at?,tone?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\",r?:num,self?:bool,to?:{x:num,y:num,label?,step?,at?}}[]}` |",
1112
- "entry": "### `<m-quad>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"x\":{\"lo\":\"手作業\",\"hi\":\"自動\"},\"y\":{\"lo\":\"高い\",\"hi\":\"安い\"},\"items\":[{\"label\":\"A 社\",\"x\":0.25,\"y\":0.7},{\"label\":\"自社\",\"x\":0.8,\"y\":0.82,\"self\":true}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `26` | 点の名前の字の大きさ(px) |\n| `quads-step` | number | `0` | 象限の名前を出す段階(0 = 初めから) |\n\n競合と自社の位置づけ、施策の分類(効果×手間)、SWOT のように、2 つの軸の上に項目を 1 つずつ置いて\n「空いている場所」を見せるときに使う。\n\n- `x` `y`:軸の両端の言葉(横軸は軸の下の両端、縦軸は軸の上端と下端の外)。軸と言葉は段階 0 から見える\n- `quads`:象限の名前(tr = 右上、tl = 左上、bl = 左下、br = 右下)。`fill` に象限の名前(`\"tr\"` など)を書くとその象限を淡く塗り、名前を `--term` で書く。名前は `quads-step` の段階で現れる(既定 0 = 初めから)\n- item:`label`、`x` `y`(0〜1。0.5 が軸の交わるところ)、`step`(既定は前の点の次の段階)、`at`(段階の中の開始秒)、`tone`(`term` / `fg`、既定は `--muted`)、`anchor`(名前の位置:`right`(既定)・`left`・`above`・`below`)、`r`(丸の半径)\n- `self: true` の点は `--emph` で大きく描き、現れたときに輪が 1 回広がる(最終状態では輪は出ない)\n- `to: {\"x\", \"y\", \"label\", \"step\", \"at\"}`:移動先。`to.step`(既定は点の次の段階)に、点が破線の跡を引きながら滑り、着いたら移動先の上に `label` を出す\n- `cues(k)`:同じ段階に 2 つ以上の点があれば、2 つ目からの開始時刻(at)を返す。口述原稿の `{cue}` の数と合えば、点が言葉に合わせて現れる"
1092
+ "entry": "### `<m-quad>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"x\":{\"lo\":\"手作業\",\"hi\":\"自動\"},\"y\":{\"lo\":\"高い\",\"hi\":\"安い\"},\"items\":[{\"label\":\"A 社\",\"x\":0.25,\"y\":0.7},{\"label\":\"自社\",\"x\":0.8,\"y\":0.82,\"self\":true}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `26` | 点の名前の字の大きさ(px) |\n| `quads-step` | number | `0` | 象限の名前を出す段階(0 = 初めから) |\n\n競合と自社の位置づけ、施策の分類(効果×手間)、SWOT のように、2 つの軸の上に項目を 1 つずつ置いて\n「空いている場所」を見せるときに使う。\n\n- `x` `y`:軸の両端の言葉(横軸は軸の下の両端、縦軸は軸の上端と下端の外)。軸と言葉は段階 0 から見える\n- `quads`:象限の名前(tr = 右上、tl = 左上、bl = 左下、br = 右下)。`fill` に象限の名前(`\"tr\"` など)を書くとその象限を淡く塗り、名前を `--term` で書く。名前は `quads-step` の段階で現れる(既定 0 = 初めから)\n- item:`label`、`x` `y`(0〜1。0.5 が軸の交わるところ)、`step`(既定は前の点の次の段階)、`at`(段階の中の開始秒)、`tone`(`term` / `fg`、既定は `--muted`)、`anchor`(名前の位置:`right`(既定)・`left`・`above`・`below`)、`r`(丸の半径)\n- `self: true` の点は `--emph` で大きく描き、現れたときに輪が 1 回広がる(最終状態では輪は出ない)\n- `to: {\"x\", \"y\", \"label\", \"step\", \"at\"}`:移動先。`to.step`(既定は点の次の段階)に、点が破線の跡を引きながら滑り、着いたら移動先の上に `label` を出す\n- `cues(k)`:同じ段階に 2 つ以上の点があれば、2 つ目からの開始時刻(at)を返す。口述原稿の `{cue}` の数と合えば、点が言葉に合わせて現れる\n\n注意\n\n- 象限の名前は、点・点の名前・軸の言葉にかからない隅に置く。どの隅もかかるときは点の名前を置き直す(置き場がなければ `ctx.report` で知らせる)\n- 点の名前どうし・移動先の名前との重なりは置き直さない。近い点の名前は重なることがあるので、`anchor` を変えるか座標をずらす"
1113
1093
  },
1114
1094
  "m-scatter": {
1115
1095
  "set": "standard",
1116
1096
  "row": "| `<m-scatter>` | 散布図。点の組(系列)を段階ごとに出し、そのあと傾向の線(最小二乗の直線か、書いた 2 点)を引く | 系列の数 + 傾向の線(既定は系列 1 つ = 1 段階、そのあと線をまとめて 1 段階。系列・線の step で直接) | `{series:{label?,tone?,step?,at?,points:([num,num]\\|{x:num,y:num,label?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\",tone?})[]}[],trend?:str\\|{fit?:\"linear\",pts?:[[num,num],[num,num]],series?:int\\|any[],label?,tone?,dash?:bool,step?,at?,digits?:int}\\|[the same {…},…]}` — 点は [x, y] か {\"x\", \"y\", \"label\"}。軸は属性に書く(xr=\"[0,10]\" xl=\"…\")。trend は \"linear\" か {\"fit\": \"linear\", \"label\": \"…\"} か {\"pts\": [[x0, y0], [x1, y1]]} |",
1117
- "entry": "### `<m-scatter>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"series\":[{\"label\":\"晴れ\",\"points\":[[24,210],[28,380],[31,560],{\"x\":34,\"y\":690,\"label\":\"猛暑日\"}]}],\"trend\":\"linear\"}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `xr` | json | `null` | 横軸の範囲(書かなければデータから) |\n| `yr` | json | `null` | 縦軸の範囲(書かなければデータから) |\n| `xt` | json | `null` | 横軸の目盛り(書かなければ自動) |\n| `yt` | json | `null` | 縦軸の目盛り(書かなければ自動) |\n| `xf` | number | | 横軸の目盛りの小数桁 |\n| `yf` | number | | 縦軸の目盛りの小数桁 |\n| `xl` | string | `\"\"` | 横軸の名前(`*斜体*` `_下付き` `^上付き`) * |\n| `yl` | string | `\"\"` | 縦軸の名前 * |\n| `r` | number | `9` | 点の半径(px) |\n\n気温と売上、勉強時間と点数、価格と販売数など、2 つの量の関係を見せるときに使う。\n点を出してから傾向の線を引く(共通の決まり §3 の「点、それから傾向」)。\n\n- series:`points`(点の並び。`[x, y]` か `{\"x\", \"y\", \"label\", \"anchor\", \"tone\"}`)、`label`(系列の名前。図の上に印と一緒に書く)、`tone`(`term` `emph` `accent2` `muted` `fg` `series-1..4`。既定は `series-1..4` の順)、`step`(1 系列 = 1 段階(書いた順)。同じ `step` の系列は一緒に出す)、`at`(段階の中の開始秒)\n - 点の `label` は点の横に書く(右 → 左 → 上 → 下の順に、ほかの点・字・軸と重ならない所。`anchor`(`right` `left` `above` `below`)で最初に試す向きを決められる)。外れた点や目立つ点だけに付ける\n - 系列ごとに印の形が変わる(丸・四角・三角・ひし形)。色だけに頼らない\n- trend:`\"linear\"`(全部の点の最小二乗の直線)、または `{\"fit\": \"linear\", \"series\": 0, \"label\", \"tone\", \"dash\", \"step\", \"at\", \"digits\"}`、または `{\"pts\": [[x0, y0], [x1, y1]]}`(書いた 2 点を結ぶ線分。ちょうど 2 つの `[x, y]`。縦の線も書ける)。2 本以上は配列にする\n - `series`:当てはめに使う系列の番号(0 から数える。1 つ目の系列が 0。数か番号の配列。既定は全部)\n - `label`:線の名前(図の上に書く)。`{r}` は相関係数、`{a}` は傾き、`{b}` は切片に置き換わる(`digits` 桁、既定 2)。例:`\"傾向(r = {r})\"`\n - `step`:既定は最後の系列の次の段階(線が何本あっても同じ段階)\n - 当てはめた直線は当てはめた点の x の範囲に、`pts` の線は書いた 2 点の間に引き、軸の枠の中で切る。枠の外に出る線は描かず、`ctx.report` で知らせる\n - `pts` の縦の線では `{a}` `{b}`(傾き・切片)は空になる。`{r}` は当てはめた直線だけ\n- 軸の属性:`xr` `yr`(範囲)、`xt` `yt`(目盛り)、`xf` `yf`(目盛りの小数桁)、`xl` `yl`(軸の名前)。`xr` `yr` を書かなければデータから切りのよい範囲を、`xt` `yt` を書かなければ目盛りを決める\n- 見せ方(`variant`):`fade`・`sweep`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 授業の表示(`ctx.preview`)では、先の段階の点と線をテーマの薄さで見せる",
1097
+ "entry": "### `<m-scatter>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"series\":[{\"label\":\"晴れ\",\"points\":[[24,210],[28,380],[31,560],{\"x\":34,\"y\":690,\"label\":\"猛暑日\"}]}],\"trend\":\"linear\"}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `xr` | json | `null` | 横軸の範囲(書かなければデータから) |\n| `yr` | json | `null` | 縦軸の範囲(書かなければデータから) |\n| `xt` | json | `null` | 横軸の目盛り(書かなければ自動) |\n| `yt` | json | `null` | 縦軸の目盛り(書かなければ自動) |\n| `xf` | number | | 横軸の目盛りの小数桁 |\n| `yf` | number | | 縦軸の目盛りの小数桁 |\n| `xl` | string | `\"\"` | 横軸の名前(`*斜体*` `_下付き` `^上付き`) * |\n| `yl` | string | `\"\"` | 縦軸の名前 * |\n| `r` | number | `9` | 点の半径(px) |\n\n気温と売上、勉強時間と点数、価格と販売数など、2 つの量の関係を見せるときに使う。\n点を出してから傾向の線を引く(共通の決まり §3 の「点、それから傾向」)。\n\n- series:`points`(点の並び。`[x, y]` か `{\"x\", \"y\", \"label\", \"anchor\", \"tone\"}`)、`label`(系列の名前。図の上に印と一緒に書く)、`tone`(`term` `emph` `accent2` `muted` `fg` `series-1..4`。既定は `series-1..4` の順)、`step`(1 系列 = 1 段階(書いた順)。同じ `step` の系列は一緒に出す)、`at`(段階の中の開始秒)\n - 点の `label` は点の横に書く(右 → 左 → 上 → 下の順に、ほかの点・字・軸と重ならない所。`anchor`(`right` `left` `above` `below`)で最初に試す向きを決められる)。外れた点や目立つ点だけに付ける\n - 系列ごとに印の形が変わる(丸・四角・三角・ひし形)。色だけに頼らない。形と既定の色は 4 系列までで、5 つ目からは同じ組がくり返すので、系列は 4 つまでにする\n- trend:`\"linear\"`(全部の点の最小二乗の直線)、または `{\"fit\": \"linear\", \"series\": 0, \"label\", \"tone\", \"dash\", \"step\", \"at\", \"digits\"}`、または `{\"pts\": [[x0, y0], [x1, y1]]}`(書いた 2 点を結ぶ線分。ちょうど 2 つの `[x, y]`。縦の線も書ける)。2 本以上は配列にする\n - `series`:当てはめに使う系列の番号(0 から数える。1 つ目の系列が 0。数か番号の配列。既定は全部)\n - `label`:線の名前(図の上に書く)。`{r}` は相関係数、`{a}` は傾き、`{b}` は切片に置き換わる(`digits` 桁、既定 2)。例:`\"傾向(r = {r})\"`\n - `step`:既定は最後の系列の次の段階(線が何本あっても同じ段階)\n - 当てはめた直線は当てはめた点の x の範囲に、`pts` の線は書いた 2 点の間に引き、軸の枠の中で切る。枠の外に出る線は描かず、`ctx.report` で知らせる\n - `pts` の縦の線では `{a}` `{b}`(傾き・切片)は空になる。`{r}` は当てはめた直線だけ\n- 軸の属性:`xr` `yr`(範囲)、`xt` `yt`(目盛り)、`xf` `yf`(目盛りの小数桁)、`xl` `yl`(軸の名前)。`xr` `yr` を書かなければデータから切りのよい範囲を、`xt` `yt` を書かなければ目盛りを決める\n- 見せ方(`variant`):`fade`・`sweep`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 授業の表示(`ctx.preview`)では、先の段階の点と線をテーマの薄さで見せる",
1118
1098
  "sup": true
1119
1099
  },
1120
1100
  "m-score": {
1121
1101
  "set": "music",
1122
- "row": "| `<m-score>` | 楽譜(五線譜)を 1 音・和音ずつ、または 1 小節ずつ出して音も鳴らす。ABC 記譜法で書く | 音符・和音・休符 1 つ=1 段階。by=\"measure\" なら 1 小節=1 段階 | `{abc:str}` — abc だけを書く(abcSvg・abcMap・renderers は組み立てが足す) |",
1123
- "entry": "### `<m-score>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"abc\":\"X:1\\nM:4/4\\nL:1/4\\nQ:1/4=96\\nK:C\\nC D E F |]\"}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `by` | string | `\"note\"` | note(1 音・和音ずつ)\\| measure(1 小節ずつ) |\n| `names` | string | `\"none\"` | 符頭の下の名前:solfa(ドレミ)\\| abc \\| iroha(ハニホ)\\| none |\n\n- `abc`:ABC 記譜法。`M:` 拍子、`L:` 基本の長さ、`Q:1/4=96` 速さ、`K:` 調、`[CEG]` 和音、`z` 休符、`-` タイ\n- `names`:符頭の下に `solfa`(ドレミ)・`abc`・`iroha`(ハニホ)。既定は `none`\n- `by=\"measure\"`:1 小節ずつ(音は小節の中で順に鳴る)"
1102
+ "row": "| `<m-score>` | 楽譜(五線譜)を 1 音・和音ずつ、または 1 小節ずつ出して音も鳴らす。ABC 記譜法で書く | 音符・和音・休符 1 つ=1 段階。by=\"measure\" なら 1 小節=1 段階(per-step=\"N\" なら N 小節。弱起の小節は次の段階に入る) | `{abc:str}` — abc だけを書く(abcSvg・abcMap・renderers は組み立てが足す) |",
1103
+ "entry": "### `<m-score>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"abc\":\"X:1\\nM:4/4\\nL:1/4\\nQ:1/4=96\\nK:C\\nC D E F |]\"}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `by` | string | `\"note\"` | note(1 音・和音ずつ)\\| measure(1 小節ずつ) |\n| `names` | string | `\"none\"` | 符頭の下の名前:solfa(ドレミ)\\| abc \\| iroha(ハニホ)\\| none |\n| `per-step` | number | `1` | by=\\ |\n\n- `abc`:ABC 記譜法。`M:` 拍子、`L:` 基本の長さ、`Q:1/4=96` 速さ、`K:` 調、`[CEG]` 和音、`z` 休符、`-` タイ\n- `names`:符頭の下に `solfa`(ドレミ)・`abc`・`iroha`(ハニホ)。既定は `none`\n- `by=\"measure\"`:1 小節ずつ(音は小節の中で順に鳴る)\n- `per-step=\"N\"`:`by=\"measure\"` で N 小節を 1 段階にする(既定 1)。段階の長さは N 小節の長さそのまま\n- `by=\"note\"` は音の名前・高さを 1 つずつ見せるためのもので、各段階は 1.2 秒以上になりリズムは保たれない。リズムを聞かせるときは `by=\"measure\"`。速い曲は `per-step` で 1 段階が 1.2 秒以上になるように(弱起の小節は自動で次の小節とまとめる)"
1124
1104
  },
1125
1105
  "m-seq": {
1126
1106
  "set": "stats",
@@ -1142,26 +1122,26 @@ export const PACK = {
1142
1122
  "m-tape": {
1143
1123
  "set": "math",
1144
1124
  "row": "| `<m-tape>` | テープ図・線分図。全体や部分を括弧で括り、わからない量は □ か ?。行から行へ「2 倍」の矢印 | steps(既定):行 → 括弧 → 倍の矢印を 1 つずつ。rows:行 1 つ = 1 段階。whole:全部で 1 段階 | `{rows:{label?,tone?,show?:int,segs:{v:num,label?,unknown?:str}[]}[],brace?:{row:int,from:int,to:int,label?,side?:\"above\"\\|\"below\",show?:int}[],times?:{from:int,to:int,label?,show?:int}[]}` — rows [{label, segs: [{v, label, unknown: \"?\" か \"□\"}]}]、brace [{row, from, to, label, side: above\\|below}](from・to は 0 から数えた区切りの番号)、times [{from, to, label}](行の番号) |",
1145
- "entry": "### `<m-tape>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"rows\":[{\"label\":\"みかん\",\"segs\":[{\"v\":8,\"label\":\"食べた 8 こ\"},{\"v\":15,\"label\":\"のこり 15 こ\"}]}],\"brace\":[{\"row\":0,\"from\":0,\"to\":1,\"label\":\"はじめ □ こ\",\"side\":\"above\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `kind` | string | `\"tape\"` | tape(テープ図)か line(線分図) |\n| `build` | string | `\"steps\"` | steps(行・括弧・矢印を 1 つずつ)・rows(行を 1 つずつ。括弧と矢印はその行と)・whole(全部を 1 段階で) |\n\n- 長さはどの行も同じ尺度で `v` に比例。わからない区切りにも `v` を書く\n- `unknown`:`\"□\"` か `\"?\"`(`label` は後ろに続く)\n- brace:`{row, from, to, label, side: \"above\" | \"below\"}`。from・to は 0 から数えた区切りの番号\n- times:`{from, to, label: \"2 倍\"}`(行の番号)\n- `kind=\"line\"`:線分図\n- 項目の `show`:出す段階\n- 行の名前に色の名前(赤・白)を使わない。色はテーマで変わる"
1125
+ "entry": "### `<m-tape>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"rows\":[{\"label\":\"みかん\",\"segs\":[{\"v\":8,\"label\":\"食べた 8 こ\"},{\"v\":15,\"label\":\"のこり 15 こ\"}]}],\"brace\":[{\"row\":0,\"from\":0,\"to\":1,\"label\":\"はじめ □ こ\",\"side\":\"above\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `kind` | string | `\"tape\"` | tape(テープ図)か line(線分図) |\n| `build` | string | `\"steps\"` | steps(行・括弧・矢印を 1 つずつ)・rows(行を 1 つずつ。括弧と矢印はその行と)・whole(全部を 1 段階で) |\n\n- 長さはどの行も同じ尺度で `v` に比例。わからない区切りにも `v` を書く\n- `unknown`:`\"□\"` か `\"?\"`(`label` は後ろに続く)\n- brace:`{row, from, to, label, side: \"above\" | \"below\"}`。from・to は 0 から数えた区切りの番号\n- times:`{from, to, label: \"2 倍\"}`(行の番号)\n- `kind=\"line\"`:線分図\n- 項目の `show`:出す段階\n- 行の `tone`:行の色(`term`・`emph`・`muted`・`accent2`・`fg`・`series-1..4`。既定は `series-1` から順に)\n- 行の名前に色の名前(赤・白)を使わない。色はテーマで変わる"
1146
1126
  },
1147
1127
  "m-timeline": {
1148
1128
  "set": "standard",
1149
1129
  "row": "| `<m-timeline>` | 年表。出来事を時間の軸の上に 1 つずつ出す。期間は帯にして、重なる期間は段を分けて積む。end は含まない(\"1912\" は 1912 年の初め) | 出来事の数(既定は時刻の順に 1 つ = 1 段階。per-step で n 個ずつ、node の step が優先) | `{nodes:{id?:str\\|int,label?,tex?,note?,tone?,when:num\\|str,whenLabel?:str,end?:num\\|str,lane?:str,step?,at?,after?:(str\\|int)[],progress?:num}[],edges?:{from:str\\|int,to:str\\|int,label?,tone?,dash?:bool,step?,at?}[]}` — when / end: a number or \"YYYY\", \"YYYY-MM\", \"YYYY-MM-DD\"; end is exclusive (\"1912\" is the start of 1912). whenLabel: the date text shown instead of the computed one (when still sets the position). A node with end is a period (a band); lane groups bands into named lanes |",
1150
- "entry": "### `<m-timeline>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"nodes\":[{\"id\":\"a\",\"label\":\"明治維新\",\"when\":\"1868\",\"whenLabel\":\"明治元年\"},{\"id\":\"b\",\"label\":\"憲法の発布\",\"when\":\"1889\",\"note\":\"2 月 11 日\"},{\"id\":\"c\",\"label\":\"日清戦争\",\"when\":\"1894\",\"end\":\"1895\",\"tone\":\"emph\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `orient` | string | `\"h\"` | h(左から右へ)か v(上から下へ) |\n| `scale` | string | `\"time\"` | time(時間に比例した間隔)か even(等間隔。間がとても不ぞろいなとき) |\n| `per-step` | number | `1` | 1 段階に出す出来事の数(0 = 全部を段階 1 で) |\n| `size` | number | `26` | 名前の字の大きさ(px。入らなければ 24 まで縮める) |\n| `unit` | string | `\"\"` | 目盛り:day・week・month |\n| `today` | string | `\"\"` | 今日の線(YYYY-MM-DD) |\n\n歴史の年表、人物の生涯の重なり、計画の日程など、出来事を時間の順に見せるときに使う。\n座標は書かない。中身と時刻だけを書けば、部品が並べる(共通の決まり §2)。\n\n子の JSON の並び:`edges` は省ける。\n\n- `when`:時刻。数(`1868`、`-500`、`0.5` など)か、文字列 `\"YYYY\"` `\"YYYY-MM\"` `\"YYYY-MM-DD\"`。箱の上の行に日付として出る(日本語の資料なら「1868年」「2026年10月」)\n- `whenLabel`:日付の行に、計算した日付の代わりに書く字(「明治元年」「平成の終わり」など)。位置は `when` で決まる\n- `label`:名前(`\\n` で改行、`*斜体*` `_下付き` `^上付き`)。または `tex`(KaTeX)\n- `note`:箱の**中**の最後の行に小さく(`--muted`)。期間と節目では名前の後ろに続けて。例:「2 月 11 日」「新橋〜横浜」\n- `tone`:`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`。`emph` の箱は地が `--emph-tint`、枠と字が `--emph`\n- `end`:あれば期間。軸の下の段に帯で描き、名前は帯の中(入らなければ帯の右か左)に書く。名前を `\\n` で何行かにすると、帯がその分太くなる\n- `end` は含まない(終わりの時点)。`\"1912\"` は 1912 年の初め。明治 1868–1912 と大正 1912–1926 は同じ段に並ぶ。12 月まで含めるなら次の月(`\"2027-01\"`)を書く。\n- `lane`:期間を名前の付いた段のまとまりに分ける(「時代」「作家」「設計」など)。まとまりの名前を左に書き、まとまりの間に薄い線を引く。重なる期間は、まとまりの中で自動で別の段に積む。`end` のない node に `lane` を書くと、その段の中の節目(◆)になる\n- `step`・`at`:出る段階と、段階の中の開始秒\n- `edges`:ほかのつながり(`from` `to` `label` `tone` `dash` `step`)。箱の縁から縁への破線の矢印(`dash: false` で実線)\n- 工程表:`after: [\"id\", …]`(前の作業の終わりから始まりへ矢印)、`progress`(0–100 %。濃く塗る)。今日の線は `today`、目盛りの単位は `unit`\n\n並べ方:\n\n- `orient`:`h`(既定、左から右へ)か `v`(上から下へ)\n- `scale`:`time`(既定、時間に比例した間隔)か `even`(使った時刻を等間隔に。間がとても不ぞろいなとき)\n- 出来事(`end` も `lane` もない node)は軸の上の点と、日付と名前の箱。箱は軸の上と下に交互に置く(`v` なら左と右)。混んでいて箱が点から離れすぎるときは 2 段にする\n- 期間があるときは、軸に切りのよい目盛り(年・月・数)を付け、出来事の箱はすべて軸の上に置く(下は期間の段)\n- 段階:既定は時刻の順に 1 つずつ(期間も出来事も同じ列で数える)。軸は最初の出来事と一緒に引かれる\n- 線:軸は `--muted` の 5 px(図の中心の線として 1 本だけ太い)。軸の目盛りと目盛りの字(図の字の大きさ)も `--muted`。段のまとまりの間の区切りの線だけ `--line`。箱から軸への線と `edges` は `--muted` の 3 px\n- 見せ方(`variant`):`fade`・`draw`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 動きの上限:どの見せ方でも箱が動くのは 12 px まで(箱の中心で測る)、時間も `fade` の長さの中(共通の決まり §1.2)\n- 授業の表示(`ctx.preview`):後の段階の出来事・期間をテーマの薄さで見せる\n- `cues(k)`:同じ段階に 2 つ以上あれば、2 つ目からの開始時刻を返す(口述原稿の `{cue}` に合わせられる)"
1130
+ "entry": "### `<m-timeline>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"nodes\":[{\"id\":\"a\",\"label\":\"明治維新\",\"when\":\"1868\",\"whenLabel\":\"明治元年\"},{\"id\":\"b\",\"label\":\"憲法の発布\",\"when\":\"1889\",\"note\":\"2 月 11 日\"},{\"id\":\"c\",\"label\":\"日清戦争\",\"when\":\"1894\",\"end\":\"1895\",\"tone\":\"emph\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `orient` | string | `\"h\"` | h(左から右へ)か v(上から下へ) |\n| `scale` | string | `\"time\"` | time(時間に比例した間隔)か even(等間隔。間がとても不ぞろいなとき) |\n| `per-step` | number | `1` | 1 段階に出す出来事の数(0 = 全部を段階 1 で) |\n| `size` | number | `26` | 名前の字の大きさ(px。入らなければ 24 まで縮める) |\n| `unit` | string | `\"\"` | 目盛り:day・week・month |\n| `today` | string | `\"\"` | 今日の線(YYYY-MM-DD) |\n\n歴史の年表、人物の生涯の重なり、計画の日程など、出来事を時間の順に見せるときに使う。\n座標は書かない。中身と時刻だけを書けば、部品が並べる(共通の決まり §2)。\n\n子の JSON の並び:`edges` は省ける。\n\n- `when`:時刻。数(`1868`、`-500`、`0.5` など)か、文字列 `\"YYYY\"` `\"YYYY-MM\"` `\"YYYY-MM-DD\"`。箱の上の行に日付として出る(日本語の資料なら「1868年」「2026年10月」)\n- `whenLabel`:日付の行に、計算した日付の代わりに書く字(「明治元年」「平成の終わり」など)。位置は `when` で決まる\n- `label`:名前(`\\n` で改行)。または `tex`(KaTeX)\n- `note`:箱の**中**の最後の行に小さく(`--muted`)。期間と節目では名前の後ろに続けて。例:「2 月 11 日」「新橋〜横浜」\n- `tone`:`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`。`emph` の箱は地が `--emph-tint`、枠と字が `--emph`\n- `end`:あれば期間。軸の下の段に帯で描き、名前は帯の中(入らなければ帯の右か左)に書く。名前を `\\n` で何行かにすると、帯がその分太くなる\n- `end` は含まない(終わりの時点)。`\"1912\"` は 1912 年の初め。明治 1868–1912 と大正 1912–1926 は同じ段に並ぶ。12 月まで含めるなら次の月(`\"2027-01\"`)を書く。\n- `lane`:期間を名前の付いた段のまとまりに分ける(「時代」「作家」「設計」など)。まとまりの名前を左に書き、まとまりの間に薄い線を引く。重なる期間は、まとまりの中で自動で別の段に積む。`end` のない node に `lane` を書くと、その段の中の節目(◆)になる\n- `step`・`at`:出る段階と、段階の中の開始秒\n- `edges`:ほかのつながり(`from` `to` `label` `tone` `dash` `step`)。箱の縁から縁への破線の矢印(`dash: false` で実線)\n- 工程表:`after: [\"id\", …]`(前の作業の終わりから始まりへ矢印)、`progress`(0–100 %。濃く塗る)。今日の線は `today`、目盛りの単位は `unit`\n - `after` の矢印は期間(`end` のある node)か節目(`lane` のある node)のあいだだけ。`lane` のない出来事を指すと引かない。`today` の線は期間が 1 つ以上あるときだけ出る\n\n並べ方:\n\n- `orient`:`h`(既定、左から右へ)か `v`(上から下へ)\n- `scale`:`time`(既定、時間に比例した間隔)か `even`(使った時刻を等間隔に。間がとても不ぞろいなとき)\n- 出来事(`end` も `lane` もない node)は軸の上の点と、日付と名前の箱。箱は軸の上と下に交互に置く(`v` なら左と右)。混んでいて箱が点から離れすぎるときは 2 段にする\n- 期間があるときは、軸に切りのよい目盛り(年・月・数)を付け、出来事の箱はすべて軸の上に置く(下は期間の段)\n- 段階:既定は時刻の順に 1 つずつ(期間も出来事も同じ列で数える)。軸は最初の出来事と一緒に引かれる\n- 線:軸は `--muted` の 5 px(図の中心の線として 1 本だけ太い)。軸の目盛りと目盛りの字(図の字の大きさ)も `--muted`。段のまとまりの間の区切りの線だけ `--line`。箱から軸への線と `edges` は `--muted` の 3 px\n- 見せ方(`variant`):`fade`・`draw`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 動きの上限:どの見せ方でも箱が動くのは 12 px まで(箱の中心で測る)、時間も `fade` の長さの中(共通の決まり §1.2)\n- 授業の表示(`ctx.preview`):後の段階の出来事・期間をテーマの薄さで見せる\n- `cues(k)`:同じ段階に 2 つ以上あれば、2 つ目からの開始時刻を返す(口述原稿の `{cue}` に合わせられる)"
1151
1131
  },
1152
1132
  "m-timer": {
1153
1133
  "set": "tools",
1154
1134
  "row": "| `<m-timer>` | グループワークの進行タイマー。区切りごとに残り時間を大きく数え、区切りの一覧で今の区切りを示す | 0 準備の画面、区切り 1 つが 1 段階(その長さ = sec 秒) | `{ready?:{title?:str,text?:str},phases:{title:str,short?:str,text?:str,sec:int,bells?:{left:int,count?:int}[]}[],bells?:{left:int,count?:int}[],done?:str,labels?:{ready?:str,total?:str,remaining?:str,done?:str,start?:str,next?:str,end?:str,min?:str,sec?:str,plus?:str,minus?:str}}` — phases は {\"title\", \"sec\"} の並び(sec は秒の整数。\"3分\" のような字ではない)。区切り 1 つが 1 段階 |",
1155
- "entry": "### `<m-timer>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"ready\":{\"title\":\"準備の確認\",\"text\":\"用紙とペンがそろっているか\"},\"phases\":[{\"title\":\"① 付箋に書く\",\"short\":\"付箋に書く\",\"sec\":180},{\"title\":\"② 島で選ぶ\",\"short\":\"島で選ぶ\",\"sec\":300}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `(なし)` | | | |\n\n依頼にグループワーク・作業時間・制限時間があるときだけ使う。→ キーで段階を進めると数え始める。\n\n- `sec` は秒の整数(3 分なら 180)。`short` は右の一覧に出す短い名前、`text` は 2 行まで\n- 最後の 1 分は赤、最後の 10 秒は時計が点滅\n- 字は `<html lang>` で日本語か英語。`labels` で変えられる:`total` `remaining` `done` `start` `next` `end` `min` `sec` `plus` `minus`\n- 実行系が対応していれば +1 分・−1 分のボタンが出る(同じスライドにいるあいだは延ばした時間が残る)\n- ベル(学会タイマーのように):`\"bells\": [{\"left\": 300, \"count\": 1}, {\"left\": 120, \"count\": 2}, {\"left\": 0, \"count\": 3}]`(残り秒と回数)。全体か区切りごとに書く。書かなければ鳴らない"
1135
+ "entry": "### `<m-timer>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"ready\":{\"title\":\"準備の確認\",\"text\":\"用紙とペンがそろっているか\"},\"phases\":[{\"title\":\"① 付箋に書く\",\"short\":\"付箋に書く\",\"sec\":180},{\"title\":\"② 島で選ぶ\",\"short\":\"島で選ぶ\",\"sec\":300}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `(なし)` | | | |\n\n依頼にグループワーク・作業時間・制限時間があるときだけ使う。→ キーで段階を進めると数え始める。\n\n- 区切り(`phases`)は 8 つまで。`sec` は秒の整数(3 分なら 180)。`short` は右の一覧に出す短い名前、`text` は 2 行まで\n- 最後の 1 分は時計と棒が強調の色(テーマの `--emph`)、最後の 10 秒は時計が点滅\n- 字は `<html lang>` で日本語か英語。`labels` で変えられる:`ready` `total` `remaining` `done` `start` `next` `end` `min` `sec` `plus` `minus`\n- 実行系が対応していれば +1 分・−1 分のボタンが出る(同じスライドにいるあいだは延ばした時間が残る)\n- ベル(学会タイマーのように):`\"bells\": [{\"left\": 300, \"count\": 1}, {\"left\": 120, \"count\": 2}, {\"left\": 0, \"count\": 3}]`(残り秒と回数)。全体か区切りごとに書く。書かなければ鳴らない"
1156
1136
  },
1157
1137
  "m-tree": {
1158
1138
  "set": "standard",
1159
1139
  "row": "| `<m-tree>` | 階層・分類の木(組織図、生物の分類など)を、根から 1 段ずつ組み立てる。座標は書かず、配置は部品が決める | 節の深さの数(by=\"level\"、既定)か節の数(by=\"node\")。節と edges の step があればその最大 | `{nodes:{id:str\\|int,label?,tex?,note?,tone?,parent?:str\\|int,branch?:str,step?,at?}[],edges?:{from:str\\|int,to:str\\|int,label?,tone?,dash?:bool,step?,at?}[],path?:(str\\|int)[],pathStep?:int,pathNote?:str}` — parent のない節(根)はちょうど 1 つ |",
1160
- "entry": "### `<m-tree>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"nodes\":[{\"id\":\"r\",\"label\":\"動物\"},{\"id\":\"a\",\"label\":\"脊椎動物\",\"parent\":\"r\"},{\"id\":\"b\",\"label\":\"無脊椎動物\",\"parent\":\"r\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `orient` | string | `\"down\"` | down(上から下、既定)か right(左から右) |\n| `by` | string | `\"level\"` | 段階の分け方:level(深さごと、既定)か node(1 つずつ、深さ優先の順) |\n| `link` | string | `\"elbow\"` | 親子の線:elbow(かぎ形、既定)か straight(まっすぐ) |\n| `size` | number | `0` | 箱の字の大きさ(px。0 = 27 から入るまで 24 まで縮める) |\n\n組織図、生物や物質の分類、概念の上位と下位、章と節の構成など、親子の関係で並ぶものを上から順に見せるときに使う。\n座標は書かない(共通の決まり §2)。中身とつながりだけを書けば、部品が重ならないように並べる。\n\n子の JSON の並び:`edges` は省いてよい。\n\n- node:`id`、`label`(`\\n` で改行、`*斜体*` `_下付き` `^上付き`)か `tex`(KaTeX)、`parent`(親の `id`。`parent` のない節(根)はちょうど 1 つ)、`note`(箱の**下**に小さな一言、`--muted`)、`tone`(`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`)、`step`、`at`(段階の中の開始秒)\n- 子は配列の順に並ぶ。親は子の並びの中央に置く\n- edge:親子のほかのつながり(`from` `to` `label` `tone` `dash` `step`)。破線で矢印つき、木の外側(`down` は下、`right` は右)へふくらむ。同じ深さの節どうしに向く。段階は既定で両端の遅いほう\n- 子の `branch`:線の字(確率など)。`path`:根からの `id` の道を順に強調(`pathStep` で一度に。`pathNote`:末尾の一言)\n- `orient`:`down`(既定、上から下)か `right`(左から右。分類を横に広げるとき)\n- `by`:`level`(既定。根、それから深さごとに 1 段)か `node`(深さ優先の順に 1 つずつ。1 つの枝をたどって話すとき)。節の `step` が勝つ\n- `link`:親子の線。`elbow`(既定、かぎ形)か `straight`(まっすぐ)。線の色は `--muted`、3 px\n- `tone: emph` の箱は、地が `--emph-tint`、枠と字が `--emph`\n- 入る大きさの目安(1280×720 の本文、高さ 440 px ほど):`down` は 1 段に 4 字ほどの箱が 8 個、`right` は 7 個ほど。深さは 5 段ほど。\n それより多い葉(子のない節)が 1 つの親に並ぶと、子を 2 段に互い違いに並べる(`down` で 16 個ほど、`right` で 11 個ほどまで)。\n さらに入らなければ名前を 2 行に折る。字は 24 px より小さくならず、入らない分は要素の箱からはみ出す(`console.warn` が足りない px を言う)。多いときは木を分ける\n- 見せ方(`variant`):`fade`・`draw`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 動きの上限:どの見せ方でも箱が動くのは 12 px まで(箱の中心で測る)、時間も `fade` の長さの中(共通の決まり §1.2)\n- 授業の表示(`ctx.preview`)では、後の段階の箱と線をテーマの薄さで出しておく"
1140
+ "entry": "### `<m-tree>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"nodes\":[{\"id\":\"r\",\"label\":\"動物\"},{\"id\":\"a\",\"label\":\"脊椎動物\",\"parent\":\"r\"},{\"id\":\"b\",\"label\":\"無脊椎動物\",\"parent\":\"r\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `orient` | string | `\"down\"` | down(上から下、既定)か right(左から右) |\n| `by` | string | `\"level\"` | 段階の分け方:level(深さごと、既定)か node(1 つずつ、深さ優先の順) |\n| `link` | string | `\"elbow\"` | 親子の線:elbow(かぎ形、既定)か straight(まっすぐ) |\n| `size` | number | `0` | 箱の字の大きさ(px。0 = 27 から入るまで 24 まで縮める) |\n\n組織図、生物や物質の分類、概念の上位と下位、章と節の構成など、親子の関係で並ぶものを上から順に見せるときに使う。\n座標は書かない(共通の決まり §2)。中身とつながりだけを書けば、部品が重ならないように並べる。\n\n子の JSON の並び:`edges` は省いてよい。\n\n- node:`id`、`label`(`\\n` で改行)か `tex`(KaTeX)、`parent`(親の `id`。`parent` のない節(根)はちょうど 1 つ)、`note`(箱の**下**に小さな一言、`--muted`)、`tone`(`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`)、`step`、`at`(段階の中の開始秒)\n- 子は配列の順に並ぶ。親は子の並びの中央に置く\n- edge:親子のほかのつながり(`from` `to` `label` `tone` `dash` `step`)。破線で矢印つき、木の外側(`down` は下、`right` は右)へふくらむ。同じ深さの節どうしに向く。段階は既定で両端の遅いほう\n- 子の `branch`:線の字(確率など)。`path`:根からの `id` の道を順に強調(`pathStep` で一度に。`pathNote`:末尾の一言)\n- `orient`:`down`(既定、上から下)か `right`(左から右。分類を横に広げるとき)\n- `by`:`level`(既定。根、それから深さごとに 1 段)か `node`(深さ優先の順に 1 つずつ。1 つの枝をたどって話すとき)。節の `step` が勝つ\n- `link`:親子の線。`elbow`(既定、かぎ形)か `straight`(まっすぐ)。線の色は `--muted`、3 px\n- `tone: emph` の箱は、地が `--emph-tint`、枠と字が `--emph`\n- 入る大きさの目安(1280×720 の本文、高さ 440 px ほど):`down` は 1 段に 4 字ほどの箱が 8 個、`right` は 7 個ほど。深さは 5 段ほど。\n それより多い葉(子のない節)が 1 つの親に並ぶと、子を 2 段に互い違いに並べる(`down` で 16 個ほど、`right` で 11 個ほどまで)。\n さらに入らなければ名前を 2 行に折る。字は 24 px より小さくならず、入らない分は要素の箱からはみ出す(足りない px を `ctx.report` で知らせ、Studio の検査に出る)。多いときは木を分ける\n- 見せ方(`variant`):`fade`・`draw`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 動きの上限:どの見せ方でも箱が動くのは 12 px まで(箱の中心で測る)、時間も `fade` の長さの中(共通の決まり §1.2)\n- 授業の表示(`ctx.preview`)では、後の段階の箱と線をテーマの薄さで出しておく"
1161
1141
  },
1162
1142
  "m-venn": {
1163
1143
  "set": "standard",
1164
- "row": "| `<m-venn>` | 2 つか 3 つの集合の円(ベン図)。集合を 1 つずつ出し、最後に重なりを強めてその中の項目を出す | 集合の数 + 1(overlaps=\"each\" なら 集合の数 + 項目のある重なりの数) | `{sets:{label,tone?}[],regions?:{A?:str[]\\|str,B?:str[]\\|str,C?:str[]\\|str,AB?:str[]\\|str,AC?:str[]\\|str,BC?:str[]\\|str,ABC?:str[]\\|str}}` |",
1144
+ "row": "| `<m-venn>` | 2 つか 3 つの集合の円(ベン図)。集合を 1 つずつ出し、最後に重なりを強めてその中の項目を出す | 集合の数 + 1(overlaps=\"each\" なら 集合の数 + 項目のある重なりの数。項目のある重なりがなければ重なりすべての数:2 集合で 1、3 集合で 4) | `{sets:{label,tone?}[],regions?:{A?:str[]\\|str,B?:str[]\\|str,C?:str[]\\|str,AB?:str[]\\|str,AC?:str[]\\|str,BC?:str[]\\|str,ABC?:str[]\\|str}}` |",
1165
1145
  "entry": "### `<m-venn>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"sets\":[{\"label\":\"哺乳類\"},{\"label\":\"海の生き物\"}],\"regions\":{\"A\":[\"ライオン\"],\"B\":[\"マグロ\"],\"AB\":[\"クジラ\",\"イルカ\"]}}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `26` | 項目の字の大きさ(px)。収まらなければ 24 まで縮める |\n| `spread` | number | `1` | 円の中心の間の距離 ÷ 半径(小さいほど重なりが広い。0.7〜1.3) |\n| `overlaps` | string | `\"together\"` | together(重なりを 1 段階でまとめて)か each(1 つずつ) |\n\n2 つか 3 つのものの共通点と違い(哺乳類と海の生き物、3 つのスキルの重なり など)を、重なりで見せるときに使う。\n<!--part:m-compare-->観点ごとに値を並べて比べるなら `m-compare`。<!--/part-->\n\n- `sets`:集合(2 つか 3 つ)。`label` は円の外に書く名前、`tone` は円の色(`term`・`emph`・`muted`・`accent2`・`series-1..4`。既定は `term`・`accent2`・`series-4` の順)。`--emph` は重なりを強めるのに使うので、集合には使わないほうがよい\n- `regions`:領域ごとの項目(1 つ 1 行の配列か、`\\n` で改行した字)。鍵は集合の文字の組で、アルファベット順に書く。文字は `sets` の順(`sets` の 1 つ目が A・2 つ目 B・3 つ目 C):\n - `A`:A だけ(ほかの集合には入らない)、`AB`:A と B の両方(3 つのときは、A と B に入り C には入らないところ)、`ABC`:3 つとも\n - 2 つなら `A` `B` `AB`、3 つなら `A` `B` `C` `AB` `AC` `BC` `ABC`。どれも省いてよい。集合が 2 つのときに C を含む鍵(`C` `AC` `BC` `ABC`)を書くと、図の代わりに誤りの札が出る\n- 円は左右対称の決まった配置で、面積は値に比例しない(2 つは左右、3 つは左上・右上・下)。`spread`(既定 1)は円の中心の間の距離 ÷ 半径で、小さいほど重なりが広い\n- 項目は、その領域の中で円の線から最も離れる位置に置く。字は `size`(既定 26 px)から 24 px まで縮める。重なりの項目は太字\n- 段階:既定は 集合を 1 つずつ(その集合だけの項目と一緒に)→ 重なり(項目のある重なりを `--emph` で薄く塗って縁を囲み、項目を出す。項目のある重なりがなければ重なりすべて)。`overlaps=\"each\"` なら重なりを 1 つずつ(`AB`・`AC`・`BC`・`ABC` の順)\n- 見せ方(`variant`):`fade`・`draw`。書かなければ資料のシード値で選ばれる(書かなくてよい)"
1166
1146
  }
1167
1147
  },
@@ -1170,9 +1150,9 @@ export const PACK = {
1170
1150
  "briefNote": "下に説明の節がない部品は、表の「データの形」のとおりに子の JSON か属性を書き、ほかの属性は既定のままにする。",
1171
1151
  "extHead": "### `<{name}>`:この束の拡張(部品の説明は §3)"
1172
1152
  },
1173
- "version": "b47ccdba",
1153
+ "version": "68eeb33a",
1174
1154
  "tiers": {
1175
- "catalogue": "2.1.2",
1155
+ "catalogue": "2.2.0",
1176
1156
  "parts": {
1177
1157
  "m-bars": {
1178
1158
  "tier": "standard",
@@ -1203,7 +1183,11 @@ export const PACK = {
1203
1183
  "purposes": [
1204
1184
  "hierarchy",
1205
1185
  "process"
1206
- ]
1186
+ ],
1187
+ "display": {
1188
+ "ja": "ハフマン木",
1189
+ "en": "Huffman tree"
1190
+ }
1207
1191
  },
1208
1192
  "m-collect": {
1209
1193
  "tier": "extra",
@@ -1271,8 +1255,7 @@ export const PACK = {
1271
1255
  ]
1272
1256
  },
1273
1257
  "m-kakijun": {
1274
- "tier": "specialized",
1275
- "set": "kokugo",
1258
+ "tier": "extra",
1276
1259
  "purposes": [
1277
1260
  "process"
1278
1261
  ]