sema-code-ui 0.0.0-stage → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -2
- package/bin/sema-code-ui.js +2 -0
- package/dist/cli.js +4461 -0
- package/dist/public/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/public/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/public/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/public/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/public/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/public/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/public/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/public/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/public/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/public/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/public/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/public/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/public/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/public/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/public/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/public/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/public/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/public/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/public/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/public/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/public/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/public/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/public/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/public/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/public/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/public/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/public/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/public/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/public/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/public/assets/_commonjs-dynamic-modules-TDtrdbi3.js +1 -0
- package/dist/public/assets/abnfDiagram-VCTEODGH-CGBiNVzS.js +1 -0
- package/dist/public/assets/arc-BglvR1Nw.js +1 -0
- package/dist/public/assets/architectureDiagram-5GKGNRK7-D-TtloeJ.js +36 -0
- package/dist/public/assets/blockDiagram-I7D4REHJ-Cq2S84M5.js +129 -0
- package/dist/public/assets/c4Diagram-7LVT6UL2-CGzXl2lP.js +38 -0
- package/dist/public/assets/channel-DBs40jui.js +1 -0
- package/dist/public/assets/chunk-2Q5K7J3B-9LvXpA47.js +1 -0
- package/dist/public/assets/chunk-5VM5RSS4-D1S0MGVF.js +15 -0
- package/dist/public/assets/chunk-F27PBJKO-C4LbCQlU.js +1 -0
- package/dist/public/assets/chunk-IMKFNOWR-4PnH64ro.js +231 -0
- package/dist/public/assets/chunk-JWPE2WC7-CGr4Qo3G.js +1 -0
- package/dist/public/assets/chunk-POPQ4Y6H-BsVaDbuk.js +1 -0
- package/dist/public/assets/chunk-SVP7TREG-DaoV4cvr.js +88 -0
- package/dist/public/assets/chunk-TICWLB2K-CUkTqbrd.js +206 -0
- package/dist/public/assets/chunk-XXDRQBXY-Dzvju4Ip.js +1 -0
- package/dist/public/assets/classDiagram-ZZMXUADV-DgdzCEek.js +1 -0
- package/dist/public/assets/classDiagram-v2-VYDZK3BY-DgdzCEek.js +1 -0
- package/dist/public/assets/cose-bilkent-JH36ORCC-G_6m6phT.js +1 -0
- package/dist/public/assets/cynefin-OW5HDTMX-DNlkzb75.js +178 -0
- package/dist/public/assets/cynefinDiagram-5FMLGOSQ-CUYIya-v.js +62 -0
- package/dist/public/assets/cytoscape.esm-Bch-eiPH.js +331 -0
- package/dist/public/assets/dagre-GXQ25YYZ-X-WMCXwm.js +4 -0
- package/dist/public/assets/defaultLocale-DX6XiGOO.js +1 -0
- package/dist/public/assets/diagram-S7CK7UJ4-D9qq-Nh-.js +30 -0
- package/dist/public/assets/diagram-UQ7AKVKN-BtyebA5k.js +41 -0
- package/dist/public/assets/diagram-VSXAHHWV-ByiRvMYj.js +3 -0
- package/dist/public/assets/diagram-VX7I27RA-B4Q87XmS.js +24 -0
- package/dist/public/assets/diagram-Z3DM3KII-C20xUinS.js +24 -0
- package/dist/public/assets/docx-preview-By0bChU4.js +27 -0
- package/dist/public/assets/ebnfDiagram-PWID7BFC-BSgKcdFO.js +1 -0
- package/dist/public/assets/erDiagram-RLTQ6QDP-CaHaWnsv.js +99 -0
- package/dist/public/assets/exceljs.min-gM4gH5Gq.js +57 -0
- package/dist/public/assets/flowDiagram-HODETNUW-CVcnJhfM.js +168 -0
- package/dist/public/assets/ganttDiagram-EL5Y4UJY-BcoeVppO.js +292 -0
- package/dist/public/assets/gitGraphDiagram-WWUBYQGX-CRa9nfQx.js +106 -0
- package/dist/public/assets/index-B_RX2-hb.js +1 -0
- package/dist/public/assets/index-C1rb1p6e.js +74 -0
- package/dist/public/assets/index-CAIdgE5N.js +1 -0
- package/dist/public/assets/index-CzzBflnb.js +926 -0
- package/dist/public/assets/index-Dp4rS1se.js +198 -0
- package/dist/public/assets/index-S9Q0LBW-.css +32 -0
- package/dist/public/assets/infoDiagram-27XIBGKW-jp91CW_t.js +2 -0
- package/dist/public/assets/init-Gi6I4Gst.js +1 -0
- package/dist/public/assets/ishikawaDiagram-5VMMS53U-BZ9oY1Uj.js +70 -0
- package/dist/public/assets/journeyDiagram-3NMN7TZE-B2WAQmmS.js +139 -0
- package/dist/public/assets/jstat-so0kbz-l.js +1 -0
- package/dist/public/assets/jszip.min-DWvxclux.js +12 -0
- package/dist/public/assets/kanban-definition-UXKFOSKX-D5-GIJO5.js +89 -0
- package/dist/public/assets/layout-DYtELJIl.js +1 -0
- package/dist/public/assets/linear-DbovTL4l.js +1 -0
- package/dist/public/assets/mermaid.core-Dxd70N1A.js +312 -0
- package/dist/public/assets/mindmap-definition-YA3MSWOX-Bn8mkGMq.js +96 -0
- package/dist/public/assets/ordinal-Cboi1Yqb.js +1 -0
- package/dist/public/assets/pdf-B5ZmZFk6.js +57 -0
- package/dist/public/assets/pdf.worker.min-BmVo14Nb.mjs +28 -0
- package/dist/public/assets/pdf.worker.min-LAOCk-LR.js +1 -0
- package/dist/public/assets/pegDiagram-XKGWAZYB-5tFkd0cP.js +1 -0
- package/dist/public/assets/pieDiagram-E7YTZNPT-DX66sAtC.js +39 -0
- package/dist/public/assets/pptx-preview.es-DincQuqW.js +28 -0
- package/dist/public/assets/quadrantDiagram-AXDQQJYC-CmXSUFtt.js +7 -0
- package/dist/public/assets/railroadDiagram-O6MQD6OU-gGq9JGa0.js +1 -0
- package/dist/public/assets/requirementDiagram-BXWQKSXE-BBZ6UKXG.js +84 -0
- package/dist/public/assets/sankeyDiagram-P5KCCOFB-D60eqaP-.js +40 -0
- package/dist/public/assets/sequenceDiagram-WJ2MYXX4-BNBpkdVG.js +162 -0
- package/dist/public/assets/sizeCapture-INFHLROL-C8Vx_po6.js +1 -0
- package/dist/public/assets/stateDiagram-D77RDMKH-CDVBatbI.js +1 -0
- package/dist/public/assets/stateDiagram-v2-MP3YSRHH-BfcNGrJG.js +1 -0
- package/dist/public/assets/swimlanes-42K2YHIH-BosFCGMd.js +1 -0
- package/dist/public/assets/swimlanesDiagram-VR7AAH4N-DIoVwcjU.js +8 -0
- package/dist/public/assets/timeline-definition-24CTP7MA-DKWiUBYP.js +120 -0
- package/dist/public/assets/vennDiagram-4TSXK5OY-B2coEXMy.js +34 -0
- package/dist/public/assets/wardleyDiagram-VM6X3IG4-BwqNy4EW.js +78 -0
- package/dist/public/assets/xychartDiagram-S5SC5T6Z-B2ouoySc.js +7 -0
- package/dist/public/icon.svg +8 -0
- package/dist/public/index.html +14 -0
- package/dist/public/pdfjs-6.3.289/cmaps/78-EUC-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/78-EUC-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/78-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/78-RKSJ-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/78-RKSJ-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/78-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/78ms-RKSJ-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/78ms-RKSJ-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/83pv-RKSJ-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/90ms-RKSJ-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/90ms-RKSJ-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/90msp-RKSJ-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/90msp-RKSJ-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/90pv-RKSJ-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/90pv-RKSJ-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Add-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Add-RKSJ-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Add-RKSJ-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Add-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-CNS1-0.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-CNS1-1.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-CNS1-2.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-CNS1-3.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-CNS1-4.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-CNS1-5.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-CNS1-6.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-GB1-0.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-GB1-1.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-GB1-2.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-GB1-3.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-GB1-4.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-GB1-5.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-Japan1-0.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-Japan1-1.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-Japan1-2.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-Japan1-3.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-Japan1-4.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-Japan1-5.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-Japan1-6.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-Korea1-0.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-Korea1-1.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-Korea1-2.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/B5-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/B5-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/B5pc-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/B5pc-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/CNS-EUC-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/CNS-EUC-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/CNS1-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/CNS1-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/CNS2-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/CNS2-V.bcmap +3 -0
- package/dist/public/pdfjs-6.3.289/cmaps/ETHK-B5-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/ETHK-B5-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/ETen-B5-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/ETen-B5-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/ETenms-B5-H.bcmap +3 -0
- package/dist/public/pdfjs-6.3.289/cmaps/ETenms-B5-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/EUC-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/EUC-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Ext-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Ext-RKSJ-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Ext-RKSJ-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Ext-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/GB-EUC-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/GB-EUC-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/GB-H.bcmap +4 -0
- package/dist/public/pdfjs-6.3.289/cmaps/GB-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/GBK-EUC-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/GBK-EUC-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/GBK2K-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/GBK2K-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/GBKp-EUC-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/GBKp-EUC-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/GBT-EUC-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/GBT-EUC-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/GBT-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/GBT-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/GBTpc-EUC-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/GBTpc-EUC-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/GBpc-EUC-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/GBpc-EUC-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/HKdla-B5-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/HKdla-B5-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/HKdlb-B5-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/HKdlb-B5-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/HKgccs-B5-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/HKgccs-B5-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/HKm314-B5-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/HKm314-B5-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/HKm471-B5-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/HKm471-B5-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/HKscs-B5-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/HKscs-B5-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Hankaku.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Hiragana.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/KSC-EUC-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/KSC-EUC-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/KSC-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/KSC-Johab-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/KSC-Johab-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/KSC-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/KSCms-UHC-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/KSCms-UHC-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/KSCpc-EUC-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/KSCpc-EUC-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Katakana.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/LICENSE +36 -0
- package/dist/public/pdfjs-6.3.289/cmaps/NWP-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/NWP-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/RKSJ-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/RKSJ-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/Roman.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniCNS-UCS2-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniCNS-UCS2-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniCNS-UTF16-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniCNS-UTF16-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniCNS-UTF32-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniCNS-UTF32-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniCNS-UTF8-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniCNS-UTF8-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniGB-UCS2-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniGB-UCS2-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniGB-UTF16-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniGB-UTF16-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniGB-UTF32-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniGB-UTF32-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniGB-UTF8-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniGB-UTF8-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniJIS-UCS2-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniJIS-UCS2-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniJIS-UTF16-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniJIS-UTF16-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniJIS-UTF32-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniJIS-UTF32-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniJIS-UTF8-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniJIS-UTF8-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniKS-UCS2-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniKS-UCS2-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniKS-UTF16-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniKS-UTF16-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniKS-UTF32-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniKS-UTF32-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniKS-UTF8-H.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/UniKS-UTF8-V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/V.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/cmaps/WP-Symbol.bcmap +0 -0
- package/dist/public/pdfjs-6.3.289/standard_fonts/FoxitDingbats.pfb +0 -0
- package/dist/public/pdfjs-6.3.289/standard_fonts/FoxitFixed.pfb +0 -0
- package/dist/public/pdfjs-6.3.289/standard_fonts/FoxitFixedBold.pfb +0 -0
- package/dist/public/pdfjs-6.3.289/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
- package/dist/public/pdfjs-6.3.289/standard_fonts/FoxitFixedItalic.pfb +0 -0
- package/dist/public/pdfjs-6.3.289/standard_fonts/FoxitSerif.pfb +0 -0
- package/dist/public/pdfjs-6.3.289/standard_fonts/FoxitSerifBold.pfb +0 -0
- package/dist/public/pdfjs-6.3.289/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
- package/dist/public/pdfjs-6.3.289/standard_fonts/FoxitSerifItalic.pfb +0 -0
- package/dist/public/pdfjs-6.3.289/standard_fonts/FoxitSymbol.pfb +0 -0
- package/dist/public/pdfjs-6.3.289/standard_fonts/LICENSE_FOXIT +27 -0
- package/dist/public/pdfjs-6.3.289/standard_fonts/LICENSE_LIBERATION +363 -0
- package/dist/public/pdfjs-6.3.289/standard_fonts/LiberationSans-Bold.ttf +0 -0
- package/dist/public/pdfjs-6.3.289/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
- package/dist/public/pdfjs-6.3.289/standard_fonts/LiberationSans-Italic.ttf +0 -0
- package/dist/public/pdfjs-6.3.289/standard_fonts/LiberationSans-Regular.ttf +0 -0
- package/dist/public/pdfjs-6.3.289/wasm/LICENSE_JBIG2 +196 -0
- package/dist/public/pdfjs-6.3.289/wasm/LICENSE_OPENJPEG +39 -0
- package/dist/public/pdfjs-6.3.289/wasm/LICENSE_PDFJS_JBIG2 +13 -0
- package/dist/public/pdfjs-6.3.289/wasm/LICENSE_PDFJS_OPENJPEG +22 -0
- package/dist/public/pdfjs-6.3.289/wasm/LICENSE_PDFJS_QCMS +19 -0
- package/dist/public/pdfjs-6.3.289/wasm/LICENSE_QCMS +21 -0
- package/dist/public/pdfjs-6.3.289/wasm/jbig2.wasm +0 -0
- package/dist/public/pdfjs-6.3.289/wasm/jbig2_nowasm_fallback.js +15 -0
- package/dist/public/pdfjs-6.3.289/wasm/openjpeg.wasm +0 -0
- package/dist/public/pdfjs-6.3.289/wasm/openjpeg_nowasm_fallback.js +17 -0
- package/dist/public/pdfjs-6.3.289/wasm/qcms_bg.wasm +0 -0
- package/dist/public/pdfjs-6.3.289/wasm/quickjs-eval.js +16 -0
- package/dist/public/pdfjs-6.3.289/wasm/quickjs-eval.wasm +0 -0
- package/dist/public/viz-runtime.js +2 -0
- package/dist/resources/README.md +89 -0
- package/dist/resources/chrome/.mcp.json +9 -0
- package/dist/resources/chrome/skills/chrome-use/SKILL.md +78 -0
- package/dist/resources/mcp/fetch.json +14 -0
- package/dist/resources/mcp/playwright.json +14 -0
- package/dist/resources/skills/android-native-dev.json +13 -0
- package/dist/resources/skills/archify.json +13 -0
- package/dist/resources/skills/avoid-ai-writing.json +13 -0
- package/dist/resources/skills/brainstorming.json +13 -0
- package/dist/resources/skills/budget-variance-analysis.json +13 -0
- package/dist/resources/skills/code-review.json +13 -0
- package/dist/resources/skills/contract-review.json +13 -0
- package/dist/resources/skills/decision-memo.json +13 -0
- package/dist/resources/skills/deck-from-doc.json +13 -0
- package/dist/resources/skills/documentation-and-adrs.json +13 -0
- package/dist/resources/skills/flutter-dev.json +13 -0
- package/dist/resources/skills/frontend-dev.json +13 -0
- package/dist/resources/skills/ios-application-dev.json +13 -0
- package/dist/resources/skills/landing-page-generator.json +13 -0
- package/dist/resources/skills/minimax-docx.json +14 -0
- package/dist/resources/skills/minimax-pdf.json +14 -0
- package/dist/resources/skills/minimax-xlsx.json +14 -0
- package/dist/resources/skills/pptx-generator.json +14 -0
- package/dist/resources/skills/react-native-dev.json +13 -0
- package/dist/resources/skills/remotion-best-practices.json +12 -0
- package/dist/resources/skills/shader-dev.json +13 -0
- package/dist/resources/skills/systematic-debugging.json +13 -0
- package/dist/resources/skills/visualize/SKILL.md +413 -0
- package/dist/resources/skills/visualize/card.json +7 -0
- package/dist/resources/skills/visualize/scripts/check.mjs +539 -0
- package/dist/resources/skills/visualize/scripts/path.mjs +24 -0
- package/dist/resources/skills/wiki-page-writer.json +13 -0
- package/dist/resources/skills/writing-plans.json +13 -0
- package/dist/worker-entry.js +308 -0
- package/package.json +48 -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.
|