zombie-mermaid 1.2.0 → 1.4.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.
- package/README.md +2 -0
- package/dist/cli.js +1363 -127
- package/dist/index.cjs +1363 -127
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +60 -2
- package/dist/index.d.ts +60 -2
- package/dist/index.js +1363 -127
- package/dist/index.js.map +1 -1
- package/package.json +5 -3
- package/src/__tests__/ascii-cjk-width.test.ts +6 -41
- package/src/__tests__/ascii-multibox-cjk-width.test.ts +184 -0
- package/src/__tests__/ascii-shapes-special.test.ts +48 -0
- package/src/__tests__/edge-bundling-node-clearance.test.ts +179 -0
- package/src/__tests__/expanded-shapes.test.ts +229 -0
- package/src/__tests__/flowchart-syntax-gaps.test.ts +371 -0
- package/src/__tests__/guides-examples.test.ts +181 -0
- package/src/__tests__/helpers/terminal-display-width.ts +46 -0
- package/src/__tests__/integration.test.ts +107 -0
- package/src/__tests__/interactivity-config.test.ts +559 -0
- package/src/__tests__/nested-subgraph-direction-crossing.test.ts +7 -7
- package/src/__tests__/sequence-integration.test.ts +28 -0
- package/src/__tests__/statements.test.ts +247 -0
- package/src/__tests__/theme.test.ts +24 -0
- package/src/ascii/class-diagram.ts +17 -20
- package/src/ascii/converter.ts +17 -1
- package/src/ascii/draw-arrows.ts +17 -4
- package/src/ascii/draw-boxes.ts +47 -20
- package/src/ascii/draw-lines.ts +9 -0
- package/src/ascii/draw.ts +1 -0
- package/src/ascii/er-diagram.ts +19 -21
- package/src/ascii/sequence.ts +2 -4
- package/src/ascii/shapes/corners.ts +143 -0
- package/src/ascii/shapes/index.ts +4 -0
- package/src/ascii/shapes/special.ts +42 -0
- package/src/ascii/types.ts +1 -1
- package/src/ascii/xychart.ts +2 -4
- package/src/browser.ts +11 -0
- package/src/class/renderer.ts +11 -1
- package/src/diagram-type.ts +7 -4
- package/src/edge-curves.ts +205 -0
- package/src/er/renderer.ts +11 -1
- package/src/expanded-shapes.ts +376 -0
- package/src/index.ts +54 -9
- package/src/init-directive.ts +248 -0
- package/src/layout-engine/edge-bundling.ts +96 -4
- package/src/layout-engine/from-elk.ts +21 -3
- package/src/layout-engine/to-elk.ts +8 -1
- package/src/multiline-utils.ts +13 -1
- package/src/parser.ts +347 -53
- package/src/renderer.ts +682 -19
- package/src/sequence/renderer.ts +11 -1
- package/src/statements.ts +161 -0
- package/src/theme.ts +49 -1
- package/src/types.ts +82 -1
- package/src/xychart/renderer.ts +13 -6
package/README.md
CHANGED
|
@@ -117,10 +117,12 @@ 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()`
|
|
123
124
|
- [API Reference](docs/api-reference.md) — full function and options reference
|
|
125
|
+
- [Migrating from `beautiful-mermaid`](docs/migrating-from-beautiful-mermaid.md) — what's drop-in, which fixes change rendered output, and how to audit your own diagrams before upgrading
|
|
124
126
|
|
|
125
127
|
More design write-ups and reference material live in [docs/](docs/).
|
|
126
128
|
|