zombie-mermaid 1.2.0 → 1.3.0

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 (47) hide show
  1. package/README.md +1 -0
  2. package/dist/cli.js +1267 -108
  3. package/dist/index.cjs +1267 -108
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.d.cts +53 -2
  6. package/dist/index.d.ts +53 -2
  7. package/dist/index.js +1267 -108
  8. package/dist/index.js.map +1 -1
  9. package/package.json +5 -3
  10. package/src/__tests__/ascii-cjk-width.test.ts +6 -41
  11. package/src/__tests__/ascii-multibox-cjk-width.test.ts +184 -0
  12. package/src/__tests__/ascii-shapes-special.test.ts +48 -0
  13. package/src/__tests__/edge-bundling-node-clearance.test.ts +179 -0
  14. package/src/__tests__/expanded-shapes.test.ts +229 -0
  15. package/src/__tests__/flowchart-syntax-gaps.test.ts +371 -0
  16. package/src/__tests__/guides-examples.test.ts +181 -0
  17. package/src/__tests__/helpers/terminal-display-width.ts +46 -0
  18. package/src/__tests__/interactivity-config.test.ts +559 -0
  19. package/src/__tests__/nested-subgraph-direction-crossing.test.ts +7 -7
  20. package/src/__tests__/statements.test.ts +247 -0
  21. package/src/ascii/class-diagram.ts +17 -20
  22. package/src/ascii/converter.ts +17 -1
  23. package/src/ascii/draw-arrows.ts +17 -4
  24. package/src/ascii/draw-boxes.ts +47 -20
  25. package/src/ascii/draw-lines.ts +9 -0
  26. package/src/ascii/draw.ts +1 -0
  27. package/src/ascii/er-diagram.ts +19 -21
  28. package/src/ascii/sequence.ts +2 -4
  29. package/src/ascii/shapes/corners.ts +143 -0
  30. package/src/ascii/shapes/index.ts +4 -0
  31. package/src/ascii/shapes/special.ts +42 -0
  32. package/src/ascii/types.ts +1 -1
  33. package/src/ascii/xychart.ts +2 -4
  34. package/src/browser.ts +11 -0
  35. package/src/diagram-type.ts +7 -4
  36. package/src/edge-curves.ts +205 -0
  37. package/src/expanded-shapes.ts +376 -0
  38. package/src/index.ts +17 -6
  39. package/src/init-directive.ts +248 -0
  40. package/src/layout-engine/edge-bundling.ts +96 -4
  41. package/src/layout-engine/from-elk.ts +21 -3
  42. package/src/layout-engine/to-elk.ts +8 -1
  43. package/src/multiline-utils.ts +13 -1
  44. package/src/parser.ts +347 -53
  45. package/src/renderer.ts +633 -17
  46. package/src/statements.ts +161 -0
  47. package/src/types.ts +80 -1
package/README.md CHANGED
@@ -117,6 +117,7 @@ zombie-mermaid --help # Show all options
117
117
 
118
118
  ## Docs
119
119
 
120
+ - [Guides](docs/guides/) — task-oriented walkthroughs: [browsing the samples](docs/guides/samples.md), [choosing a theme](docs/guides/theming.md)
120
121
  - [Theming](docs/theming.md) — the two-color foundation, enriched mode, built-in themes, custom themes, Shiki compatibility
121
122
  - [Supported Diagrams](docs/diagrams.md) — syntax for every diagram type, XY chart styling, and ASCII rendering options
122
123
  - [React Integration](docs/react-integration.md) — zero-flash rendering with `useMemo()`