Module

Hylograph.Interpreter.Mermaid

Package
purescript-hylograph-selection
Repository
afcondon/purescript-hylograph-selection

#NodeID Source

type NodeID = Int

Node ID for tracking connections in Mermaid diagram

#MermaidTreeState Source

type MermaidTreeState = { mermaidCode :: String, nodeCounter :: Int }

State for generating Mermaid diagram from Tree API

#escapeLabel Source

escapeLabel :: String -> String

Escape quotes in labels for Mermaid

#addNode Source

addNode :: String -> String -> MermaidTreeM NodeID

Add a node to the Mermaid diagram with a style class

#addEdge Source

addEdge :: NodeID -> NodeID -> MermaidTreeM Unit

Add an edge between two nodes

#showElement Source

showElement :: ElementType -> String

Format element type for display

#formatAttr Source

formatAttr :: Attr -> String

Format a single attribute for display

#formatAttrList Source

formatAttrList :: Array Attr -> String

Format a list of attributes as a comma-separated string

#renderTree Source

renderTree :: Tree -> Maybe NodeID -> MermaidTreeM NodeID

Render a tree node to Mermaid

#generateStyleDefinitions Source

generateStyleDefinitions :: String

Generate style class definitions for Mermaid

#runMermaidTree Source

runMermaidTree :: Tree -> Effect String

Run the Mermaid tree interpreter and generate diagram code

Modules
Data.DependencyGraph
Hylograph.Brush
Hylograph.Brush.FFI
Hylograph.Brush.Types
Hylograph.Classify
Hylograph.Data.Graph
Hylograph.Data.Graph.Algorithms
Hylograph.Data.Node
Hylograph.Data.Tree
Hylograph.Expr.Animation
Hylograph.Expr.Attr
Hylograph.Expr.Datum
Hylograph.Expr.Expr
Hylograph.Expr.Friendly
Hylograph.Expr.Integration
Hylograph.Expr.Interpreter.CodeGen
Hylograph.Expr.Interpreter.Eval
Hylograph.Expr.Interpreter.Meta
Hylograph.Expr.Interpreter.PureSVG
Hylograph.Expr.Interpreter.SVG
Hylograph.Expr.Path
Hylograph.Expr.Path.Generators
Hylograph.Expr.Sugar
Hylograph.Expr.Units
Hylograph.HATS
Hylograph.HATS.Friendly
Hylograph.HATS.InterpreterTick
Hylograph.HATS.Transitions
Hylograph.Interaction.Brush
Hylograph.Interaction.Coordinated
Hylograph.Interaction.Pointer
Hylograph.Interaction.Zoom
Hylograph.Internal.Attribute
Hylograph.Internal.Behavior.FFI
Hylograph.Internal.Behavior.Types
Hylograph.Internal.Element.Operations
Hylograph.Internal.Element.Types
Hylograph.Internal.FFI
Hylograph.Internal.Transition.FFI
Hylograph.Internal.Transition.Manager
Hylograph.Internal.Transition.Scene
Hylograph.Internal.Transition.Types
Hylograph.Internal.Types
Hylograph.Interpreter.English
Hylograph.Interpreter.Mermaid
Hylograph.Interpreter.MetaHATS
Hylograph.Interpreter.SemiQuine
Hylograph.Interpreter.SemiQuine.TreeToCode
Hylograph.Interpreter.SemiQuine.Types
Hylograph.Scale
Hylograph.Scale.FP
Hylograph.Shape.Arc
Hylograph.Shape.Pie
Hylograph.Shape.Polygon
Hylograph.Tooltip
Hylograph.Transform
Hylograph.Unified
Hylograph.Unified.Attribute
Hylograph.Unified.DataDSL
Hylograph.Unified.Display
Hylograph.Unified.Sugar