Skip to content

Upgrading from 0.1 ​

0.2 moves the code every language shares out of the Mermaid and Graphviz namespaces (all under Janalis\Viz\):

0.10.2
Diagram\Graph, Node, Edge, Cluster, Shape, ArrowHeadModel\Graph\Graph, Node, Edge, Cluster, Shape, ArrowHead
Diagram\Direction, Diagram\LineStyleModel\Direction, Model\LineStyle
Mermaid\MermaidMarkDraw\Mark, its kind a Draw\MarkKind
Mermaid\MermaidDrawingDraw\Drawing; its scene() and graph() are Mermaid\MermaidPainter
Mermaid\MermaidSvg, MermaidPng, MermaidPdf, MermaidRunsDraw\SvgBackend, PngBackend, PdfBackend, Runs
Mermaid\MermaidSketch, MermaidRough, MermaidRoughRandomDraw\Sketch\Sketch, Rough, RoughRandom
Mermaid\MermaidCurve, MermaidCurves, MermaidCurvePath, MermaidSplines, MermaidPolylineLayout\Curve\Curve, Curves, CurvePath, Splines, Polyline
Mermaid\MermaidRanks, RankedBoxes, CompoundGraphPlacementLayout\Ranked\Ranks, RankedBoxes, RankedEngine
Mermaid\MermaidFont, MermaidFontCoverage, MermaidFallbackFonts, MermaidWrap; Layout\GraphFontText\Font, FontCoverage, FallbackFonts, Wrap; Text\FontFace
Mermaid\CssColorNames, GraphViz\DotColorColor\CssColorNames, Color\ColorValue
Mermaid\MermaidRenderer, MermaidPipeline::export()Draw\NativeRenderer, NativeRenderer::image()
Mermaid\MmdcRenderer, PlantUML\PlantUmlRenderer, GraphViz\DotRenderer::render()Process\CommandRenderer with Mermaid\MermaidCommand, PlantUML\PlantUmlCommand, GraphViz\DotCommand
GraphViz\DotRendererGraphViz\DotTool (json(), layout())

Viz takes a fifth argument, engine: Engine::Auto|Native|Cli; Graphviz and PlantUML are drawn natively first, as Mermaid was. The converter reads and writes each family's shared model, so a diagram converts without being flattened to a graph where the target language has its family.

Released under the MIT License.