sema-code-ui 0.0.0-stage → 2.1.4

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 (372) hide show
  1. package/README.md +28 -2
  2. package/bin/sema-ui.js +2 -0
  3. package/dist/cli.js +4639 -0
  4. package/dist/public/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  5. package/dist/public/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  6. package/dist/public/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  7. package/dist/public/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  8. package/dist/public/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  9. package/dist/public/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  10. package/dist/public/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  11. package/dist/public/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  12. package/dist/public/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  13. package/dist/public/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  14. package/dist/public/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  15. package/dist/public/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  16. package/dist/public/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  17. package/dist/public/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  18. package/dist/public/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  19. package/dist/public/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  20. package/dist/public/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  21. package/dist/public/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  22. package/dist/public/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  23. package/dist/public/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  24. package/dist/public/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  25. package/dist/public/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  26. package/dist/public/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  27. package/dist/public/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  28. package/dist/public/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  29. package/dist/public/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  30. package/dist/public/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  31. package/dist/public/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  32. package/dist/public/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  33. package/dist/public/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  34. package/dist/public/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  35. package/dist/public/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  36. package/dist/public/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  37. package/dist/public/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  38. package/dist/public/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  39. package/dist/public/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  40. package/dist/public/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  41. package/dist/public/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  42. package/dist/public/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  43. package/dist/public/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  44. package/dist/public/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  45. package/dist/public/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  46. package/dist/public/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  47. package/dist/public/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  48. package/dist/public/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  49. package/dist/public/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  50. package/dist/public/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  51. package/dist/public/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  52. package/dist/public/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  53. package/dist/public/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  54. package/dist/public/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  55. package/dist/public/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  56. package/dist/public/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  57. package/dist/public/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  58. package/dist/public/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  59. package/dist/public/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  60. package/dist/public/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  61. package/dist/public/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  62. package/dist/public/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  63. package/dist/public/assets/_commonjs-dynamic-modules-TDtrdbi3.js +1 -0
  64. package/dist/public/assets/abnfDiagram-VCTEODGH-jerp7nR7.js +1 -0
  65. package/dist/public/assets/arc-BKtVw-5X.js +1 -0
  66. package/dist/public/assets/architectureDiagram-5GKGNRK7-CAQBfzNp.js +36 -0
  67. package/dist/public/assets/blockDiagram-I7D4REHJ-eT3AUuZb.js +129 -0
  68. package/dist/public/assets/c4Diagram-7LVT6UL2-DAAd027j.js +38 -0
  69. package/dist/public/assets/channel-COTmjPbb.js +1 -0
  70. package/dist/public/assets/chunk-2Q5K7J3B-D-9Y1d0N.js +1 -0
  71. package/dist/public/assets/chunk-5VM5RSS4-DwGFL19Q.js +15 -0
  72. package/dist/public/assets/chunk-F27PBJKO-BQ3tTrPF.js +1 -0
  73. package/dist/public/assets/chunk-IMKFNOWR-C1YkYZnB.js +231 -0
  74. package/dist/public/assets/chunk-JWPE2WC7-ddWKnZRa.js +1 -0
  75. package/dist/public/assets/chunk-POPQ4Y6H-fBnUAxGB.js +1 -0
  76. package/dist/public/assets/chunk-SVP7TREG-CMXiwsDR.js +88 -0
  77. package/dist/public/assets/chunk-TICWLB2K-DST453KD.js +206 -0
  78. package/dist/public/assets/chunk-XXDRQBXY-D5kNIT5P.js +1 -0
  79. package/dist/public/assets/classDiagram-ZZMXUADV-Lr4CIilS.js +1 -0
  80. package/dist/public/assets/classDiagram-v2-VYDZK3BY-Lr4CIilS.js +1 -0
  81. package/dist/public/assets/cose-bilkent-JH36ORCC-sc1yF5Gf.js +1 -0
  82. package/dist/public/assets/cynefin-OW5HDTMX-Dwe5aQpb.js +178 -0
  83. package/dist/public/assets/cynefinDiagram-5FMLGOSQ-W_SW62Ko.js +62 -0
  84. package/dist/public/assets/cytoscape.esm-Bch-eiPH.js +331 -0
  85. package/dist/public/assets/dagre-GXQ25YYZ-D99NrftV.js +4 -0
  86. package/dist/public/assets/defaultLocale-DX6XiGOO.js +1 -0
  87. package/dist/public/assets/diagram-S7CK7UJ4-DL3IhTh8.js +30 -0
  88. package/dist/public/assets/diagram-UQ7AKVKN-DSL_Joxa.js +41 -0
  89. package/dist/public/assets/diagram-VSXAHHWV-ge66Mn5n.js +3 -0
  90. package/dist/public/assets/diagram-VX7I27RA-BGeISp3y.js +24 -0
  91. package/dist/public/assets/diagram-Z3DM3KII-ClJeMRbb.js +24 -0
  92. package/dist/public/assets/docx-preview-BcbGRtLc.js +27 -0
  93. package/dist/public/assets/ebnfDiagram-PWID7BFC-Cn4t65pg.js +1 -0
  94. package/dist/public/assets/erDiagram-RLTQ6QDP-B1CfcDsm.js +99 -0
  95. package/dist/public/assets/exceljs.min-GkdcPpXr.js +57 -0
  96. package/dist/public/assets/flowDiagram-HODETNUW-BKAsEEya.js +168 -0
  97. package/dist/public/assets/ganttDiagram-EL5Y4UJY-wj_xV86l.js +292 -0
  98. package/dist/public/assets/gitGraphDiagram-WWUBYQGX-DcWUGLDO.js +106 -0
  99. package/dist/public/assets/index-2mLslaAC.js +931 -0
  100. package/dist/public/assets/index-BANUd07X.css +32 -0
  101. package/dist/public/assets/index-BP9qYm1I.js +1 -0
  102. package/dist/public/assets/index-B_RX2-hb.js +1 -0
  103. package/dist/public/assets/index-BeSy_WW1.js +198 -0
  104. package/dist/public/assets/index-C1rb1p6e.js +74 -0
  105. package/dist/public/assets/infoDiagram-27XIBGKW-DIKucIos.js +2 -0
  106. package/dist/public/assets/init-Gi6I4Gst.js +1 -0
  107. package/dist/public/assets/ishikawaDiagram-5VMMS53U-Bz_J0vOe.js +70 -0
  108. package/dist/public/assets/journeyDiagram-3NMN7TZE-CLkeMlCH.js +139 -0
  109. package/dist/public/assets/jstat-so0kbz-l.js +1 -0
  110. package/dist/public/assets/jszip.min-Cbc05ZIR.js +12 -0
  111. package/dist/public/assets/kanban-definition-UXKFOSKX-CwzN7MzX.js +89 -0
  112. package/dist/public/assets/layout-BcaUROCV.js +1 -0
  113. package/dist/public/assets/linear-Gq1n-w3C.js +1 -0
  114. package/dist/public/assets/mermaid.core-COBFmWjx.js +312 -0
  115. package/dist/public/assets/mindmap-definition-YA3MSWOX-DqRme-JA.js +96 -0
  116. package/dist/public/assets/ordinal-Cboi1Yqb.js +1 -0
  117. package/dist/public/assets/pdf-B5ZmZFk6.js +57 -0
  118. package/dist/public/assets/pdf.worker.min-BmVo14Nb.mjs +28 -0
  119. package/dist/public/assets/pdf.worker.min-LAOCk-LR.js +1 -0
  120. package/dist/public/assets/pegDiagram-XKGWAZYB-DaxTeHLN.js +1 -0
  121. package/dist/public/assets/pieDiagram-E7YTZNPT-D11GqVqw.js +39 -0
  122. package/dist/public/assets/pptx-preview.es-CaqkDSuh.js +28 -0
  123. package/dist/public/assets/quadrantDiagram-AXDQQJYC-fFb8l4El.js +7 -0
  124. package/dist/public/assets/railroadDiagram-O6MQD6OU-CIa-0P69.js +1 -0
  125. package/dist/public/assets/requirementDiagram-BXWQKSXE-BKzH5D9W.js +84 -0
  126. package/dist/public/assets/sankeyDiagram-P5KCCOFB-CtqHjl2H.js +40 -0
  127. package/dist/public/assets/sequenceDiagram-WJ2MYXX4-BpX3U60k.js +162 -0
  128. package/dist/public/assets/sizeCapture-INFHLROL-DsR9QL71.js +1 -0
  129. package/dist/public/assets/stateDiagram-D77RDMKH-0454rKey.js +1 -0
  130. package/dist/public/assets/stateDiagram-v2-MP3YSRHH-CYc0JDHV.js +1 -0
  131. package/dist/public/assets/swimlanes-42K2YHIH-BNRZBx_P.js +1 -0
  132. package/dist/public/assets/swimlanesDiagram-VR7AAH4N-DMo6Bf1N.js +8 -0
  133. package/dist/public/assets/timeline-definition-24CTP7MA-BNDN48o2.js +120 -0
  134. package/dist/public/assets/vennDiagram-4TSXK5OY-C2f8zI0e.js +34 -0
  135. package/dist/public/assets/wardleyDiagram-VM6X3IG4-CmfNgA4_.js +78 -0
  136. package/dist/public/assets/xychartDiagram-S5SC5T6Z-B2xKzCa7.js +7 -0
  137. package/dist/public/icon.svg +8 -0
  138. package/dist/public/index.html +14 -0
  139. package/dist/public/pdfjs-6.3.289/cmaps/78-EUC-H.bcmap +0 -0
  140. package/dist/public/pdfjs-6.3.289/cmaps/78-EUC-V.bcmap +0 -0
  141. package/dist/public/pdfjs-6.3.289/cmaps/78-H.bcmap +0 -0
  142. package/dist/public/pdfjs-6.3.289/cmaps/78-RKSJ-H.bcmap +0 -0
  143. package/dist/public/pdfjs-6.3.289/cmaps/78-RKSJ-V.bcmap +0 -0
  144. package/dist/public/pdfjs-6.3.289/cmaps/78-V.bcmap +0 -0
  145. package/dist/public/pdfjs-6.3.289/cmaps/78ms-RKSJ-H.bcmap +0 -0
  146. package/dist/public/pdfjs-6.3.289/cmaps/78ms-RKSJ-V.bcmap +0 -0
  147. package/dist/public/pdfjs-6.3.289/cmaps/83pv-RKSJ-H.bcmap +0 -0
  148. package/dist/public/pdfjs-6.3.289/cmaps/90ms-RKSJ-H.bcmap +0 -0
  149. package/dist/public/pdfjs-6.3.289/cmaps/90ms-RKSJ-V.bcmap +0 -0
  150. package/dist/public/pdfjs-6.3.289/cmaps/90msp-RKSJ-H.bcmap +0 -0
  151. package/dist/public/pdfjs-6.3.289/cmaps/90msp-RKSJ-V.bcmap +0 -0
  152. package/dist/public/pdfjs-6.3.289/cmaps/90pv-RKSJ-H.bcmap +0 -0
  153. package/dist/public/pdfjs-6.3.289/cmaps/90pv-RKSJ-V.bcmap +0 -0
  154. package/dist/public/pdfjs-6.3.289/cmaps/Add-H.bcmap +0 -0
  155. package/dist/public/pdfjs-6.3.289/cmaps/Add-RKSJ-H.bcmap +0 -0
  156. package/dist/public/pdfjs-6.3.289/cmaps/Add-RKSJ-V.bcmap +0 -0
  157. package/dist/public/pdfjs-6.3.289/cmaps/Add-V.bcmap +0 -0
  158. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-CNS1-0.bcmap +0 -0
  159. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-CNS1-1.bcmap +0 -0
  160. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-CNS1-2.bcmap +0 -0
  161. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-CNS1-3.bcmap +0 -0
  162. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-CNS1-4.bcmap +0 -0
  163. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-CNS1-5.bcmap +0 -0
  164. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-CNS1-6.bcmap +0 -0
  165. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  166. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-GB1-0.bcmap +0 -0
  167. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-GB1-1.bcmap +0 -0
  168. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-GB1-2.bcmap +0 -0
  169. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-GB1-3.bcmap +0 -0
  170. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-GB1-4.bcmap +0 -0
  171. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-GB1-5.bcmap +0 -0
  172. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  173. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-Japan1-0.bcmap +0 -0
  174. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-Japan1-1.bcmap +0 -0
  175. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-Japan1-2.bcmap +0 -0
  176. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-Japan1-3.bcmap +0 -0
  177. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-Japan1-4.bcmap +0 -0
  178. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-Japan1-5.bcmap +0 -0
  179. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-Japan1-6.bcmap +0 -0
  180. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  181. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-Korea1-0.bcmap +0 -0
  182. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-Korea1-1.bcmap +0 -0
  183. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-Korea1-2.bcmap +0 -0
  184. package/dist/public/pdfjs-6.3.289/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  185. package/dist/public/pdfjs-6.3.289/cmaps/B5-H.bcmap +0 -0
  186. package/dist/public/pdfjs-6.3.289/cmaps/B5-V.bcmap +0 -0
  187. package/dist/public/pdfjs-6.3.289/cmaps/B5pc-H.bcmap +0 -0
  188. package/dist/public/pdfjs-6.3.289/cmaps/B5pc-V.bcmap +0 -0
  189. package/dist/public/pdfjs-6.3.289/cmaps/CNS-EUC-H.bcmap +0 -0
  190. package/dist/public/pdfjs-6.3.289/cmaps/CNS-EUC-V.bcmap +0 -0
  191. package/dist/public/pdfjs-6.3.289/cmaps/CNS1-H.bcmap +0 -0
  192. package/dist/public/pdfjs-6.3.289/cmaps/CNS1-V.bcmap +0 -0
  193. package/dist/public/pdfjs-6.3.289/cmaps/CNS2-H.bcmap +0 -0
  194. package/dist/public/pdfjs-6.3.289/cmaps/CNS2-V.bcmap +3 -0
  195. package/dist/public/pdfjs-6.3.289/cmaps/ETHK-B5-H.bcmap +0 -0
  196. package/dist/public/pdfjs-6.3.289/cmaps/ETHK-B5-V.bcmap +0 -0
  197. package/dist/public/pdfjs-6.3.289/cmaps/ETen-B5-H.bcmap +0 -0
  198. package/dist/public/pdfjs-6.3.289/cmaps/ETen-B5-V.bcmap +0 -0
  199. package/dist/public/pdfjs-6.3.289/cmaps/ETenms-B5-H.bcmap +3 -0
  200. package/dist/public/pdfjs-6.3.289/cmaps/ETenms-B5-V.bcmap +0 -0
  201. package/dist/public/pdfjs-6.3.289/cmaps/EUC-H.bcmap +0 -0
  202. package/dist/public/pdfjs-6.3.289/cmaps/EUC-V.bcmap +0 -0
  203. package/dist/public/pdfjs-6.3.289/cmaps/Ext-H.bcmap +0 -0
  204. package/dist/public/pdfjs-6.3.289/cmaps/Ext-RKSJ-H.bcmap +0 -0
  205. package/dist/public/pdfjs-6.3.289/cmaps/Ext-RKSJ-V.bcmap +0 -0
  206. package/dist/public/pdfjs-6.3.289/cmaps/Ext-V.bcmap +0 -0
  207. package/dist/public/pdfjs-6.3.289/cmaps/GB-EUC-H.bcmap +0 -0
  208. package/dist/public/pdfjs-6.3.289/cmaps/GB-EUC-V.bcmap +0 -0
  209. package/dist/public/pdfjs-6.3.289/cmaps/GB-H.bcmap +4 -0
  210. package/dist/public/pdfjs-6.3.289/cmaps/GB-V.bcmap +0 -0
  211. package/dist/public/pdfjs-6.3.289/cmaps/GBK-EUC-H.bcmap +0 -0
  212. package/dist/public/pdfjs-6.3.289/cmaps/GBK-EUC-V.bcmap +0 -0
  213. package/dist/public/pdfjs-6.3.289/cmaps/GBK2K-H.bcmap +0 -0
  214. package/dist/public/pdfjs-6.3.289/cmaps/GBK2K-V.bcmap +0 -0
  215. package/dist/public/pdfjs-6.3.289/cmaps/GBKp-EUC-H.bcmap +0 -0
  216. package/dist/public/pdfjs-6.3.289/cmaps/GBKp-EUC-V.bcmap +0 -0
  217. package/dist/public/pdfjs-6.3.289/cmaps/GBT-EUC-H.bcmap +0 -0
  218. package/dist/public/pdfjs-6.3.289/cmaps/GBT-EUC-V.bcmap +0 -0
  219. package/dist/public/pdfjs-6.3.289/cmaps/GBT-H.bcmap +0 -0
  220. package/dist/public/pdfjs-6.3.289/cmaps/GBT-V.bcmap +0 -0
  221. package/dist/public/pdfjs-6.3.289/cmaps/GBTpc-EUC-H.bcmap +0 -0
  222. package/dist/public/pdfjs-6.3.289/cmaps/GBTpc-EUC-V.bcmap +0 -0
  223. package/dist/public/pdfjs-6.3.289/cmaps/GBpc-EUC-H.bcmap +0 -0
  224. package/dist/public/pdfjs-6.3.289/cmaps/GBpc-EUC-V.bcmap +0 -0
  225. package/dist/public/pdfjs-6.3.289/cmaps/H.bcmap +0 -0
  226. package/dist/public/pdfjs-6.3.289/cmaps/HKdla-B5-H.bcmap +0 -0
  227. package/dist/public/pdfjs-6.3.289/cmaps/HKdla-B5-V.bcmap +0 -0
  228. package/dist/public/pdfjs-6.3.289/cmaps/HKdlb-B5-H.bcmap +0 -0
  229. package/dist/public/pdfjs-6.3.289/cmaps/HKdlb-B5-V.bcmap +0 -0
  230. package/dist/public/pdfjs-6.3.289/cmaps/HKgccs-B5-H.bcmap +0 -0
  231. package/dist/public/pdfjs-6.3.289/cmaps/HKgccs-B5-V.bcmap +0 -0
  232. package/dist/public/pdfjs-6.3.289/cmaps/HKm314-B5-H.bcmap +0 -0
  233. package/dist/public/pdfjs-6.3.289/cmaps/HKm314-B5-V.bcmap +0 -0
  234. package/dist/public/pdfjs-6.3.289/cmaps/HKm471-B5-H.bcmap +0 -0
  235. package/dist/public/pdfjs-6.3.289/cmaps/HKm471-B5-V.bcmap +0 -0
  236. package/dist/public/pdfjs-6.3.289/cmaps/HKscs-B5-H.bcmap +0 -0
  237. package/dist/public/pdfjs-6.3.289/cmaps/HKscs-B5-V.bcmap +0 -0
  238. package/dist/public/pdfjs-6.3.289/cmaps/Hankaku.bcmap +0 -0
  239. package/dist/public/pdfjs-6.3.289/cmaps/Hiragana.bcmap +0 -0
  240. package/dist/public/pdfjs-6.3.289/cmaps/KSC-EUC-H.bcmap +0 -0
  241. package/dist/public/pdfjs-6.3.289/cmaps/KSC-EUC-V.bcmap +0 -0
  242. package/dist/public/pdfjs-6.3.289/cmaps/KSC-H.bcmap +0 -0
  243. package/dist/public/pdfjs-6.3.289/cmaps/KSC-Johab-H.bcmap +0 -0
  244. package/dist/public/pdfjs-6.3.289/cmaps/KSC-Johab-V.bcmap +0 -0
  245. package/dist/public/pdfjs-6.3.289/cmaps/KSC-V.bcmap +0 -0
  246. package/dist/public/pdfjs-6.3.289/cmaps/KSCms-UHC-H.bcmap +0 -0
  247. package/dist/public/pdfjs-6.3.289/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  248. package/dist/public/pdfjs-6.3.289/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  249. package/dist/public/pdfjs-6.3.289/cmaps/KSCms-UHC-V.bcmap +0 -0
  250. package/dist/public/pdfjs-6.3.289/cmaps/KSCpc-EUC-H.bcmap +0 -0
  251. package/dist/public/pdfjs-6.3.289/cmaps/KSCpc-EUC-V.bcmap +0 -0
  252. package/dist/public/pdfjs-6.3.289/cmaps/Katakana.bcmap +0 -0
  253. package/dist/public/pdfjs-6.3.289/cmaps/LICENSE +36 -0
  254. package/dist/public/pdfjs-6.3.289/cmaps/NWP-H.bcmap +0 -0
  255. package/dist/public/pdfjs-6.3.289/cmaps/NWP-V.bcmap +0 -0
  256. package/dist/public/pdfjs-6.3.289/cmaps/RKSJ-H.bcmap +0 -0
  257. package/dist/public/pdfjs-6.3.289/cmaps/RKSJ-V.bcmap +0 -0
  258. package/dist/public/pdfjs-6.3.289/cmaps/Roman.bcmap +0 -0
  259. package/dist/public/pdfjs-6.3.289/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  260. package/dist/public/pdfjs-6.3.289/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  261. package/dist/public/pdfjs-6.3.289/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  262. package/dist/public/pdfjs-6.3.289/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  263. package/dist/public/pdfjs-6.3.289/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  264. package/dist/public/pdfjs-6.3.289/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  265. package/dist/public/pdfjs-6.3.289/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  266. package/dist/public/pdfjs-6.3.289/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  267. package/dist/public/pdfjs-6.3.289/cmaps/UniGB-UCS2-H.bcmap +0 -0
  268. package/dist/public/pdfjs-6.3.289/cmaps/UniGB-UCS2-V.bcmap +0 -0
  269. package/dist/public/pdfjs-6.3.289/cmaps/UniGB-UTF16-H.bcmap +0 -0
  270. package/dist/public/pdfjs-6.3.289/cmaps/UniGB-UTF16-V.bcmap +0 -0
  271. package/dist/public/pdfjs-6.3.289/cmaps/UniGB-UTF32-H.bcmap +0 -0
  272. package/dist/public/pdfjs-6.3.289/cmaps/UniGB-UTF32-V.bcmap +0 -0
  273. package/dist/public/pdfjs-6.3.289/cmaps/UniGB-UTF8-H.bcmap +0 -0
  274. package/dist/public/pdfjs-6.3.289/cmaps/UniGB-UTF8-V.bcmap +0 -0
  275. package/dist/public/pdfjs-6.3.289/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  276. package/dist/public/pdfjs-6.3.289/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  277. package/dist/public/pdfjs-6.3.289/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  278. package/dist/public/pdfjs-6.3.289/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  279. package/dist/public/pdfjs-6.3.289/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  280. package/dist/public/pdfjs-6.3.289/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  281. package/dist/public/pdfjs-6.3.289/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  282. package/dist/public/pdfjs-6.3.289/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  283. package/dist/public/pdfjs-6.3.289/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  284. package/dist/public/pdfjs-6.3.289/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  285. package/dist/public/pdfjs-6.3.289/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  286. package/dist/public/pdfjs-6.3.289/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  287. package/dist/public/pdfjs-6.3.289/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  288. package/dist/public/pdfjs-6.3.289/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  289. package/dist/public/pdfjs-6.3.289/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  290. package/dist/public/pdfjs-6.3.289/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  291. package/dist/public/pdfjs-6.3.289/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  292. package/dist/public/pdfjs-6.3.289/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  293. package/dist/public/pdfjs-6.3.289/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  294. package/dist/public/pdfjs-6.3.289/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  295. package/dist/public/pdfjs-6.3.289/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  296. package/dist/public/pdfjs-6.3.289/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  297. package/dist/public/pdfjs-6.3.289/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  298. package/dist/public/pdfjs-6.3.289/cmaps/UniKS-UCS2-H.bcmap +0 -0
  299. package/dist/public/pdfjs-6.3.289/cmaps/UniKS-UCS2-V.bcmap +0 -0
  300. package/dist/public/pdfjs-6.3.289/cmaps/UniKS-UTF16-H.bcmap +0 -0
  301. package/dist/public/pdfjs-6.3.289/cmaps/UniKS-UTF16-V.bcmap +0 -0
  302. package/dist/public/pdfjs-6.3.289/cmaps/UniKS-UTF32-H.bcmap +0 -0
  303. package/dist/public/pdfjs-6.3.289/cmaps/UniKS-UTF32-V.bcmap +0 -0
  304. package/dist/public/pdfjs-6.3.289/cmaps/UniKS-UTF8-H.bcmap +0 -0
  305. package/dist/public/pdfjs-6.3.289/cmaps/UniKS-UTF8-V.bcmap +0 -0
  306. package/dist/public/pdfjs-6.3.289/cmaps/V.bcmap +0 -0
  307. package/dist/public/pdfjs-6.3.289/cmaps/WP-Symbol.bcmap +0 -0
  308. package/dist/public/pdfjs-6.3.289/standard_fonts/FoxitDingbats.pfb +0 -0
  309. package/dist/public/pdfjs-6.3.289/standard_fonts/FoxitFixed.pfb +0 -0
  310. package/dist/public/pdfjs-6.3.289/standard_fonts/FoxitFixedBold.pfb +0 -0
  311. package/dist/public/pdfjs-6.3.289/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
  312. package/dist/public/pdfjs-6.3.289/standard_fonts/FoxitFixedItalic.pfb +0 -0
  313. package/dist/public/pdfjs-6.3.289/standard_fonts/FoxitSerif.pfb +0 -0
  314. package/dist/public/pdfjs-6.3.289/standard_fonts/FoxitSerifBold.pfb +0 -0
  315. package/dist/public/pdfjs-6.3.289/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
  316. package/dist/public/pdfjs-6.3.289/standard_fonts/FoxitSerifItalic.pfb +0 -0
  317. package/dist/public/pdfjs-6.3.289/standard_fonts/FoxitSymbol.pfb +0 -0
  318. package/dist/public/pdfjs-6.3.289/standard_fonts/LICENSE_FOXIT +27 -0
  319. package/dist/public/pdfjs-6.3.289/standard_fonts/LICENSE_LIBERATION +363 -0
  320. package/dist/public/pdfjs-6.3.289/standard_fonts/LiberationSans-Bold.ttf +0 -0
  321. package/dist/public/pdfjs-6.3.289/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
  322. package/dist/public/pdfjs-6.3.289/standard_fonts/LiberationSans-Italic.ttf +0 -0
  323. package/dist/public/pdfjs-6.3.289/standard_fonts/LiberationSans-Regular.ttf +0 -0
  324. package/dist/public/pdfjs-6.3.289/wasm/LICENSE_JBIG2 +196 -0
  325. package/dist/public/pdfjs-6.3.289/wasm/LICENSE_OPENJPEG +39 -0
  326. package/dist/public/pdfjs-6.3.289/wasm/LICENSE_PDFJS_JBIG2 +13 -0
  327. package/dist/public/pdfjs-6.3.289/wasm/LICENSE_PDFJS_OPENJPEG +22 -0
  328. package/dist/public/pdfjs-6.3.289/wasm/LICENSE_PDFJS_QCMS +19 -0
  329. package/dist/public/pdfjs-6.3.289/wasm/LICENSE_QCMS +21 -0
  330. package/dist/public/pdfjs-6.3.289/wasm/jbig2.wasm +0 -0
  331. package/dist/public/pdfjs-6.3.289/wasm/jbig2_nowasm_fallback.js +15 -0
  332. package/dist/public/pdfjs-6.3.289/wasm/openjpeg.wasm +0 -0
  333. package/dist/public/pdfjs-6.3.289/wasm/openjpeg_nowasm_fallback.js +17 -0
  334. package/dist/public/pdfjs-6.3.289/wasm/qcms_bg.wasm +0 -0
  335. package/dist/public/pdfjs-6.3.289/wasm/quickjs-eval.js +16 -0
  336. package/dist/public/pdfjs-6.3.289/wasm/quickjs-eval.wasm +0 -0
  337. package/dist/public/viz-runtime.js +2 -0
  338. package/dist/resources/README.md +89 -0
  339. package/dist/resources/chrome/.mcp.json +9 -0
  340. package/dist/resources/chrome/skills/chrome-use/SKILL.md +78 -0
  341. package/dist/resources/mcp/fetch.json +14 -0
  342. package/dist/resources/mcp/playwright.json +14 -0
  343. package/dist/resources/skills/android-native-dev.json +13 -0
  344. package/dist/resources/skills/archify.json +13 -0
  345. package/dist/resources/skills/avoid-ai-writing.json +13 -0
  346. package/dist/resources/skills/brainstorming.json +13 -0
  347. package/dist/resources/skills/budget-variance-analysis.json +13 -0
  348. package/dist/resources/skills/code-review.json +13 -0
  349. package/dist/resources/skills/contract-review.json +13 -0
  350. package/dist/resources/skills/decision-memo.json +13 -0
  351. package/dist/resources/skills/deck-from-doc.json +13 -0
  352. package/dist/resources/skills/documentation-and-adrs.json +13 -0
  353. package/dist/resources/skills/flutter-dev.json +13 -0
  354. package/dist/resources/skills/frontend-dev.json +13 -0
  355. package/dist/resources/skills/ios-application-dev.json +13 -0
  356. package/dist/resources/skills/landing-page-generator.json +13 -0
  357. package/dist/resources/skills/minimax-docx.json +14 -0
  358. package/dist/resources/skills/minimax-pdf.json +14 -0
  359. package/dist/resources/skills/minimax-xlsx.json +14 -0
  360. package/dist/resources/skills/pptx-generator.json +14 -0
  361. package/dist/resources/skills/react-native-dev.json +13 -0
  362. package/dist/resources/skills/remotion-best-practices.json +12 -0
  363. package/dist/resources/skills/shader-dev.json +13 -0
  364. package/dist/resources/skills/systematic-debugging.json +13 -0
  365. package/dist/resources/skills/visualize/SKILL.md +413 -0
  366. package/dist/resources/skills/visualize/card.json +7 -0
  367. package/dist/resources/skills/visualize/scripts/check.mjs +539 -0
  368. package/dist/resources/skills/visualize/scripts/path.mjs +24 -0
  369. package/dist/resources/skills/wiki-page-writer.json +13 -0
  370. package/dist/resources/skills/writing-plans.json +13 -0
  371. package/dist/worker-entry.js +326 -0
  372. package/package.json +49 -4
@@ -0,0 +1,413 @@
1
+ ---
2
+ name: visualize
3
+ description: "Create charts, plots, dashboards, maps, interactive explainers, simulators and UI mockups that render inline in the conversation. Use when the user asks to visualize, chart, plot or graph data, show how something works, compare options visually, explore adjustable inputs, or preview an interface. Not for building website pages or app components inside a project."
4
+ ---
5
+
6
+ # Visualize
7
+
8
+ Produce one self-contained HTML file. The host renders it inline below your reply and
9
+ lets the user open, copy or publish it. Follow the contract, the design rules and the
10
+ checklist below, then verify the file with the bundled checker before replying (see
11
+ Verify).
12
+
13
+ ## When to use it, and when not
14
+
15
+ - A request to add a page, component, site or file to the user's project is project
16
+ work, not an in-conversation visualization, even when it contains charts.
17
+ - Build a visual only when seeing or exploring it materially improves the answer.
18
+ Data or charts being mentioned is not by itself a reason.
19
+ - A table request gets a Markdown table in the reply, no file.
20
+ - A static structure fully explained by labeled nodes and edges gets a fenced Mermaid
21
+ block, no file. Use HTML for dynamics, spatial layouts, adjustable inputs, data plots,
22
+ maps and mockups.
23
+ - Work silently. Do not narrate reading this skill or writing the file. The final
24
+ reply is the first thing the user sees from you.
25
+
26
+ ## Output contract
27
+
28
+ ### File location
29
+
30
+ - For a new visualization, get the output path from the bundled script (the skill
31
+ base path is shown at the top of this prompt):
32
+
33
+ ```
34
+ node "<skill-base-path>/scripts/path.mjs" <title>
35
+ ```
36
+
37
+ `<title>` is a short ASCII lowercase-hyphenated name such as `revenue-by-region`.
38
+ The script creates the directory and prints one absolute path ending in
39
+ `<title>.html`. Write the file at exactly that path with the file writing tool.
40
+ - Updating an existing visualization edits the same file in place. Do not request a
41
+ new path for a revision.
42
+ - Never derive, guess or search for the location yourself: no listing directories,
43
+ no reading the skill folder, no checking whether the scripts exist. The only shell
44
+ commands this skill runs are `path.mjs` and `check.mjs`.
45
+ - One visualization per request unless the user explicitly asks for several.
46
+
47
+ ### Document
48
+
49
+ - A complete HTML5 document: `<!doctype html>`, `<html lang>` matching the user's
50
+ language, `<meta charset="utf-8">`, `<meta name="viewport" content="width=device-width, initial-scale=1">`,
51
+ and a concise `<title>` (it becomes the visible header in the conversation).
52
+ - Everything inline: data as a JavaScript constant, CSS in one `<style>`, logic in
53
+ one `<script>`. Never call `fetch`, XHR, WebSocket or any API. The single
54
+ exception is published GeoJSON/TopoJSON for maps (see Maps).
55
+ - Wrap the whole script body in an IIFE: `(() => { ... })();`. A top-level
56
+ `const`/`let` named `top`, `window`, `document` or `location` is a SyntaxError in
57
+ browsers and silently blanks the page; the IIFE prevents that class of bug.
58
+ - Two themes, light by default. The host switches with `<html data-theme="dark">`;
59
+ the attribute absent or `light` means light. It may be set before the page loads
60
+ or changed while the page is open, so the page re-renders on change (see the
61
+ script skeleton in Theme). Never use `prefers-color-scheme`.
62
+ - Keep the file under 1 MB. Aggregate, bin, downsample, round, or drop unused fields
63
+ before inlining large data.
64
+ - External scripts only from the pinned URLs below. No other CDN, no fonts, no icon
65
+ libraries. Icons are inline SVG or Unicode.
66
+ - Write literal markup. Never escape quotes or newlines as `\"` and `\n` inside the
67
+ file, and never build the file from a shell heredoc or a Python string.
68
+ - Text visible to the user (titles, labels, legends, tooltips) is in the user's
69
+ language. Code identifiers stay English.
70
+
71
+ ### Sizing
72
+
73
+ - The host sizes the frame to the document height and reports it live. Let the body
74
+ grow with content: no `height: 100vh`, no fixed outer height, no `position: fixed`,
75
+ no internal scroll containers, no horizontal overflow at any width.
76
+ - `body { margin: 0; padding: 12px 16px; }`. Design for a 720px wide column and keep
77
+ everything usable down to 320px by wrapping and stacking. Never widen a single
78
+ chart; stack panels vertically when they no longer fit side by side.
79
+ - Size every chart from its container (`ResizeObserver` or the library's resize
80
+ call). A chart container gets an explicit height that includes the axis band
81
+ (a typical Cartesian chart: 320px; small multiples: 220px each).
82
+
83
+ ### Libraries (pinned, load with a plain `<script src>` before your code)
84
+
85
+ | Need | Load |
86
+ |---|---|
87
+ | Line, bar, area, scatter, stacked, pie, heatmap, small multiples | `https://cdn.jsdelivr.net/npm/echarts@5.6.0/dist/echarts.min.js` |
88
+ | Simple directly-labeled values, sparklines, diagrams, custom geometry | hand-written inline SVG, no library |
89
+ | Maps, force layouts, unusual scales | `https://cdn.jsdelivr.net/npm/d3@7.9.0/dist/d3.min.js` |
90
+ | TopoJSON conversion for maps | `https://cdn.jsdelivr.net/npm/topojson-client@3.1.0/dist/topojson-client.min.js` |
91
+
92
+ Choose the smallest tool: SVG when a dozen values are labeled directly, ECharts for
93
+ anything with axes, tooltips or many points, D3 only where ECharts cannot do the job.
94
+
95
+ ## Theme (copy verbatim, do not invent colors)
96
+
97
+ Both token blocks go into the file as they are. The light block is the default; the
98
+ dark block applies when the host sets `data-theme="dark"` on `<html>`. Every color in
99
+ the file comes from these tokens: CSS through `var(--token)`, scripts through
100
+ `tokens()` at render time. A literal color keeps its light value when the host
101
+ switches to dark, which is the bug the checker looks for.
102
+
103
+ ```css
104
+ :root {
105
+ color-scheme: light;
106
+ --bg: #ffffff; --surface: #fcfcfb; --ink: #0b0b0b; --ink-2: #52514e; --muted: #898781;
107
+ --grid: #e1e0d9; --axis: #c3c2b7; --border: rgba(11,11,11,.10);
108
+ --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
109
+ --s5: #e87ba4; --s6: #008300; --s7: #4a3aa7; --s8: #e34948;
110
+ --seq-100: #cde2fb; --seq-250: #86b6ef; --seq-400: #3987e5; --seq-550: #1c5cab; --seq-700: #0d366b;
111
+ --div-neg: #e34948; --div-mid: #f0efec; --div-pos: #2a78d6;
112
+ --good: #0ca30c; --warn: #fab219; --serious: #ec835a; --critical: #d03b3b;
113
+ --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
114
+ }
115
+ :root[data-theme="dark"] {
116
+ color-scheme: dark;
117
+ --bg: #1a1a19; --surface: #232321; --ink: #ffffff; --ink-2: #c3c2b7; --muted: #898781;
118
+ --grid: #2c2c2a; --axis: #383835; --border: rgba(255,255,255,.10);
119
+ --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
120
+ --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
121
+ --seq-100: #184f95; --seq-250: #256abf; --seq-400: #3987e5; --seq-550: #6da7ec; --seq-700: #9ec5f4;
122
+ --div-neg: #e66767; --div-mid: #383835; --div-pos: #3987e5;
123
+ --good: #0ca30c; --warn: #fab219; --serious: #ec835a; --critical: #d03b3b;
124
+ }
125
+ body { background: var(--bg); color: var(--ink); font: 14px/1.45 var(--font); }
126
+ h1, h2 { font-weight: 500; margin: 0 0 8px; } h1 { font-size: 16px; } h2 { font-size: 14px; color: var(--ink-2); }
127
+ .muted { color: var(--muted); } .small { font-size: 12px; }
128
+ table.data { border-collapse: collapse; width: 100%; } .data th, .data td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--grid); }
129
+ .data td.num, .data th.num { text-align: right; font-variant-numeric: tabular-nums; }
130
+ button, select, input { font: inherit; color: inherit; }
131
+ button { border: 1px solid var(--border); background: var(--surface); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
132
+ button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
133
+ ```
134
+
135
+ Script skeleton (one IIFE; keep the structure and the base option values, fill in
136
+ data, series and controls):
137
+
138
+ ```js
139
+ (() => {
140
+ const DATA = [/* inline data */];
141
+ const state = { /* current control values */ };
142
+
143
+ // Read tokens at render time, never copy hex values into the script: the host may switch the theme at any moment.
144
+ const tokens = () => {
145
+ const cs = getComputedStyle(document.documentElement);
146
+ const v = k => cs.getPropertyValue(k).trim();
147
+ return { bg: v('--bg'), surface: v('--surface'), ink: v('--ink'), ink2: v('--ink-2'), muted: v('--muted'), grid: v('--grid'), axis: v('--axis'), font: v('--font'),
148
+ series: ['--s1', '--s2', '--s3', '--s4', '--s5', '--s6', '--s7', '--s8'].map(v),
149
+ seq: ['--seq-100', '--seq-250', '--seq-400', '--seq-550', '--seq-700'].map(v),
150
+ div: { neg: v('--div-neg'), mid: v('--div-mid'), pos: v('--div-pos') },
151
+ status: { good: v('--good'), warn: v('--warn'), serious: v('--serious'), critical: v('--critical') } };
152
+ };
153
+ // ECharts base option built from the tokens (merge your series into it; keep these values)
154
+ const themeOf = t => ({ color: t.series,
155
+ textStyle: { fontFamily: t.font, color: t.ink2 },
156
+ grid: { left: 8, right: 16, top: 32, bottom: 8, containLabel: true },
157
+ categoryAxis: { axisLine: { lineStyle: { color: t.axis } }, axisTick: { show: false }, axisLabel: { color: t.muted } },
158
+ valueAxis: { axisLine: { show: false }, axisTick: { show: false }, axisLabel: { color: t.muted },
159
+ splitLine: { lineStyle: { color: t.grid, type: 'solid', width: 1 } } },
160
+ line: { lineStyle: { width: 2 }, symbolSize: 8, showSymbol: false, smooth: false },
161
+ bar: { barMaxWidth: 24, itemStyle: { borderRadius: [4, 4, 0, 0] } },
162
+ tooltip: { backgroundColor: t.surface, borderColor: t.grid, textStyle: { color: t.ink } },
163
+ legend: { icon: 'roundRect', itemWidth: 12, itemHeight: 12, textStyle: { color: t.ink2 } },
164
+ });
165
+
166
+ const chartEl = document.getElementById('chart');
167
+ const charts = [];
168
+ // Everything that draws lives in render(): it runs once at load and again after every theme change.
169
+ function render() {
170
+ for (const c of charts) c.dispose();
171
+ charts.length = 0;
172
+ const t = tokens();
173
+ const chart = echarts.init(chartEl, themeOf(t), { renderer: 'canvas' });
174
+ chart.setOption({ animationDuration: 0, animationDurationUpdate: 300, tooltip: { trigger: 'axis' }, /* series from DATA and state; colors only from t */ });
175
+ charts.push(chart);
176
+ // Hand-written SVG or D3 that computes colors in JS is rebuilt here as well; static SVG can instead
177
+ // reference the tokens directly (style="fill: var(--s1)") and needs no rebuild.
178
+ }
179
+ render();
180
+ new MutationObserver(render).observe(document.documentElement, { attributes: true, attributeFilter: ['data-theme'] });
181
+ new ResizeObserver(() => charts.forEach(c => c.resize())).observe(chartEl);
182
+ // Control handlers update state, then call chart.setOption(partial) on the live instance for the animated
183
+ // transition (or render() when the form changes). render() must rebuild the same view from state alone.
184
+ })();
185
+ ```
186
+
187
+ Horizontal bars use `borderRadius: [0, 4, 4, 0]`. Stacked segments get
188
+ `itemStyle.borderColor: t.bg, borderWidth: 1` so a background-colored gap separates
189
+ them. Area fills use `areaStyle: { opacity: 0.1 }`. Values shown as text use the
190
+ ink colors, never the series color.
191
+
192
+ ECharts layout rules (each one prevents a collision the checker would report):
193
+
194
+ - Units go in the subtitle or `axisLabel.formatter`, never in `yAxis.name`: the axis
195
+ name is drawn at the top of the axis, where the legend sits.
196
+ - `endLabel` is drawn past the last point and gets cut by the container edge, not by
197
+ the plot area. Reserve `grid.right` for it: label width plus 8px (56 for a short
198
+ value, more for a series name). Do not rely on `series.clip`.
199
+ - With the legend on top, keep `grid.top` at 32 or more; a legend that wraps to a
200
+ second row needs 56. A bottom legend needs `grid.bottom: 32`.
201
+ - Category labels that would collide: fewer ticks (`axisLabel.interval`), a shorter
202
+ formatter, or horizontal bars. Never rotate labels past 45 degrees.
203
+ - Direct value labels on marks use `labelLayout: { hideOverlap: true }`.
204
+
205
+ ## Procedure
206
+
207
+ Color comes last. Most bad charts pick colors first.
208
+
209
+ 1. **Pick the form from the data's job.** See the table below. Sometimes the answer
210
+ is a number, not a chart.
211
+ 2. **Assign color by job.** Categorical (identity): `--s1..--s8` in fixed order, never
212
+ cycled, color follows the entity not its rank. Sequential (magnitude): one hue,
213
+ `--seq-100..--seq-700`, light to dark, never a rainbow. Diverging (polarity):
214
+ `--div-neg` / `--div-mid` / `--div-pos` with the neutral gray at the midpoint.
215
+ Status (state): `--good..--critical`, always paired with an icon or word, never
216
+ reused for a plain series.
217
+ 3. **Apply the mark specs.** Bars at most 24px thick with a 4px rounded data end and a
218
+ square baseline end; 2px lines; markers at least 8px; area fill at 10% opacity;
219
+ solid hairline grid in `--grid`, axis in `--axis`; a `--bg`-colored gap between
220
+ touching fills instead of a stroke.
221
+ 4. **Add the hover layer.** Every chart with axes ships a tooltip: axis-trigger
222
+ crosshair for line and bar, per-item for scatter, pie and cells. Hit targets are
223
+ larger than the mark. Tooltips enhance, never gate: each value is also readable
224
+ from a label, an axis or the table view.
225
+ 5. **Label selectively.** Never a number on every point. Label the endpoint, the
226
+ extreme, or the one series the story is about. Two or more series always get a
227
+ legend; a single series gets none, the title names it. Measure before placing a
228
+ label inside a bar; if it does not fit, move it outside or leave it to the tooltip.
229
+ 6. **Run the checklist** at the end of this file, then re-read the file once for
230
+ syntax: every queried element exists, no undefined identifiers, the primary
231
+ interaction updates the visual, and no HTML string is built from untrusted labels
232
+ with `innerHTML` (use `textContent`).
233
+ 7. **Verify** with the checker (next section). Fix every reported issue, re-run, and
234
+ look at the screenshot before replying.
235
+
236
+ ## Verify
237
+
238
+ After writing or updating the file, run the bundled checker from a shell (the script
239
+ lives under the skill base path):
240
+
241
+ ```
242
+ node "<skill-base-path>/scripts/check.mjs" "<path-to-the-html>"
243
+ ```
244
+
245
+ It runs the page's ECharts code in Node at 720px and 320px, once with no
246
+ `data-theme` (light) and once with `data-theme="dark"`, and measures every text
247
+ against the others, the plot area and the container. It reports script errors, text
248
+ overlaps, clipped or cut labels, fonts under 11px, text without enough contrast on
249
+ that theme's background, hard-coded colors and a missing dark token block, each with
250
+ a fix. Issues that only appear in dark are labeled `dark`. When the layout is clean
251
+ and a Chromium-based browser is installed, it also renders a 720px light-theme
252
+ screenshot and prints its path.
253
+
254
+ - The last line is `RESULT: OK` or `RESULT: <n> issue(s)`. On issues, apply the fixes
255
+ and run again. At most three runs; if something remains after that, choose a simpler
256
+ form (drop the label, move the legend, stack the panels) rather than tuning pixels.
257
+ - When a screenshot path is printed, open it with the file viewing tool and inspect it
258
+ once: legibility, collisions the estimator missed, wrong or missing marks, empty
259
+ space. Fix and re-run once if needed. `page may be shorter than the image` means the
260
+ white area below the content is expected.
261
+ - Script errors that only involve browser APIs the checker lacks (a real DOM, canvas
262
+ drawing, D3 or SVG measurement) can be ignored; every other error is a bug.
263
+ - D3 and hand-written SVG are not measured; for those rely on the screenshot and the
264
+ checklist. If the checker prints a note that it could not download ECharts or found
265
+ no browser, keep going with what it did check.
266
+ - Run the checker silently like any other step; never mention it, its output or the
267
+ screenshot in the reply.
268
+
269
+ ### The job picks the form
270
+
271
+ | The reader must | Form | Color job |
272
+ |---|---|---|
273
+ | Read one current value, maybe with a trend | Stat tile: label, value, optional delta, optional sparkline | none |
274
+ | Read a few headline numbers | Row of 2 to 4 stat tiles, nothing else | none |
275
+ | Compare magnitudes | Bar or column; heatmap for a grid | sequential or one hue |
276
+ | Follow change over time | Line; area only for a single series | one hue or categorical |
277
+ | Tell series apart | Multi-line, grouped or stacked bar | categorical |
278
+ | See one series against context | Emphasis: one hue, the rest in `--muted` | one hue plus gray |
279
+ | Judge above or below a baseline | Diverging bar, or line against a reference | diverging |
280
+ | See part-to-whole | Stacked bar, horizontal for long category names; pie only for at most 6 slices at a glance | categorical |
281
+ | Compare an ordered scale (Likert, sentiment) | Diverging stacked bar centered on neutral | diverging |
282
+ | Compare before and after per item | Dumbbell | one hue, two shades |
283
+ | Compare distributions or several metrics | Small multiples on a shared scale, every requested dimension visible at once | one hue |
284
+ | See many classes carrying meaning (more than about 7) | A table, or table plus chart | none |
285
+
286
+ Series ladder: 1 to 3 series, color alone reads well, label directly. 4 to 6,
287
+ legend plus direct labels, consider small multiples. Past 8, fold the tail into
288
+ "Other" or facet; never generate a 9th hue. Scatter, bubble and choropleth cap at
289
+ 3 categorical colors.
290
+
291
+ ## Composition
292
+
293
+ - Prefer the smallest composition that answers the question: one dominant visual,
294
+ compact controls only when requested, at most one line of selected-state detail.
295
+ - Never invent search, filter, reset, export or summary controls. Never add KPI
296
+ rows, status cards, qualitative scores or fact grids to fill space. Maxima are
297
+ ceilings, not targets.
298
+ - For named numeric data and one-off analyses, start with the plot and put the
299
+ values and takeaway on its marks, axes or annotations.
300
+ - Controls that change the same visual sit in one wrapping row above it. A control's
301
+ current value is shown in its label. Use native `button`, `input`, `select`; keep
302
+ the browser focus ring; never add `tabindex`.
303
+ - One mechanism per state. Do not offer both a toggle and a dropdown for the same
304
+ thing.
305
+ - Animate transitions between states (marks move to new values, 300ms). Do not
306
+ animate the initial appearance, never loop motion, and honor
307
+ `prefers-reduced-motion` by disabling transitions.
308
+
309
+ ### Scenario notes
310
+
311
+ **Interactive explainer or simulation.** Compact controls or status, one dominant
312
+ visual, at most one single-line detail for the selected state. No summary cards by
313
+ default; up to three only when changing metrics are the point. For step-throughs,
314
+ add only the requested step controls and update one current visual.
315
+
316
+ **Sequences or parallel work.** Aligned lanes on one time axis. Phase and resource
317
+ are encoded in the marks; totals, waits and bottlenecks are annotated on the axis
318
+ or lanes, not above the plot.
319
+
320
+ **Part-to-whole over time.** One stacked chart of category allocation per period,
321
+ plus compact totals if asked. Never replace it with totals-only bars or duplicate
322
+ it as a heatmap.
323
+
324
+ **Dense categorical grid.** One compact selected-item summary line, a grid with
325
+ exactly one readable identifier per cell, then one small legend. Other metadata
326
+ lives in the accessible label or the summary line, never in badges.
327
+
328
+ **Maps.** The map dominates. Always project real published geometry with d3-geo;
329
+ never hand-draw outlines. World countries:
330
+ `https://cdn.jsdelivr.net/npm/world-atlas@2/countries-110m.json` (TopoJSON, object
331
+ `countries`, `feature.id` is the numeric ISO 3166-1 code). US states and counties:
332
+ `https://cdn.jsdelivr.net/npm/us-atlas@3/counties-10m.json`. China provinces or
333
+ other regions: use GeoJSON the user provides or a published open-data source you
334
+ know; if none is available, say so in the reply and fall back to a bar chart by
335
+ region instead of guessing shapes. Show the whole region behind points or partial
336
+ choropleths and frame it with modest padding. Choropleth values use the sequential
337
+ ramp with a visible scale legend.
338
+
339
+ **UI mockups.** Match the depicted product's chrome, navigation, typography and
340
+ colors; if unknown, infer from the platform. Do not use this skill's theme tokens
341
+ inside the mockup; define product-specific colors as custom properties on a
342
+ `.mockup` root rule (the checker exempts selectors containing `mock`), with a
343
+ `:root[data-theme="dark"] .mockup` override when the product has a dark look. Give
344
+ windows, cards and popovers opaque backgrounds. A contained mockup frames a
345
+ component, dialog or mobile screen as a compact product surface; a full-page mockup
346
+ renders a window or page shell at full width. Show realistic states, not filler
347
+ dashboards or oversized icons.
348
+
349
+ ## Accessibility
350
+
351
+ - Semantic HTML: headings for titles, `<figure>` and `<figcaption>` for charts,
352
+ `<table class="data">` for a table view.
353
+ - Every chart, SVG or canvas has a short screen-reader summary via `aria-label`,
354
+ SVG `<title>`, or a visually hidden paragraph.
355
+ - Color never carries meaning alone: pair it with a label, a shape, a line style
356
+ or a word. Status colors always ship with an icon or word.
357
+ - Visible text is at least 11px; axis ticks and secondary annotations use the
358
+ `.small` class, never smaller. Contrast of text on its actual background stays
359
+ readable in both themes; muted text is never placed on a filled surface that
360
+ reduces it.
361
+ - Every chart with more than a handful of values has a table view twin reachable
362
+ without hovering: a `<details>` with a `<table class="data">` below the chart is
363
+ enough.
364
+
365
+ ## Reply
366
+
367
+ - The reply is prose about what the visual lets the user see or decide, in one or
368
+ two sentences, in the user's language. Add at most one short conclusion.
369
+ - Never mention the file, its path, HTML, scripts, the frame, this skill, or
370
+ implementation details. Never add a link to the file or say it was saved,
371
+ attached or published. The host shows it automatically.
372
+ - Do not repeat the data as a table or list, and do not describe what the chart
373
+ contains element by element.
374
+ - When you update an existing visualization, say what changed in one sentence.
375
+
376
+ If the conversation gets compacted, keep this line in the summary:
377
+ `Reload the visualize skill before creating or updating a visualization.`
378
+
379
+ ## Checklist (fix every hit before replying)
380
+
381
+ - Two y-axes on one plot. Use two charts, small multiples, or index both series to
382
+ 100.
383
+ - Colors picked by rank so that filtering repaints the survivors. Color follows the
384
+ entity.
385
+ - A value ramp on nominal categories (each bar darker where bigger). One series, one
386
+ color.
387
+ - A rainbow for magnitude, or a hue at the diverging midpoint.
388
+ - Status colors on an ordinary series, or a series color on a status.
389
+ - Eight hues when the story is one number. Use emphasis or a stat tile.
390
+ - A one-bar bar chart or a two-slice pie. Use a stat tile.
391
+ - A pie for comparing close values. Use bars.
392
+ - Thick saturated blocks, dashed gridlines, borders drawn around marks, a number on
393
+ every point.
394
+ - A label clipped by its own bar or segment.
395
+ - Text colliding with the legend, an axis name or another label.
396
+ - An end label or value label cut by the container edge or the plot area.
397
+ - A chart container whose fixed height cuts off the x-axis band.
398
+ - A tooltip as the only way to read a value.
399
+ - Any `fetch`, XHR, WebSocket or non-pinned external resource.
400
+ - Any fixed outer height, viewport-height layout, `position: fixed`, or horizontal
401
+ overflow at 320px.
402
+ - A hard-coded color anywhere outside the two token blocks (a hex or `rgb()` literal
403
+ in the script or a CSS rule), or a color that only reads on the light background.
404
+ Colors come from `var(--token)` and `tokens()`; the dark block is present verbatim.
405
+ - A `prefers-color-scheme` query. The theme is chosen by the host through
406
+ `data-theme`, not by the OS.
407
+ - Chart code outside `render()`, or a `render()` that cannot rebuild the current view
408
+ from `state` after a theme change.
409
+ - Explanatory paragraphs, formulas or instructions inside the file. Only labels,
410
+ legends, values and accessible text belong there.
411
+ - Invented controls, KPI rows, cards or panels the user did not ask for.
412
+ - `innerHTML` built from labels or data values.
413
+ - A reply that mentions the file, the path, HTML, or this skill.
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "可视化",
3
+ "description": "把数据和概念画成图表、地图、交互演示和界面原型,直接嵌在对话里查看。",
4
+ "category": "doc",
5
+ "order": 50,
6
+ "defaultInstall": true
7
+ }