Module
Transit.Render.Graphviz
- Package
- purescript-transit
- Repository
- m-bock/purescript-transit
Generator for Graphviz DOT language graphs from transit specifications.
This module converts state machine specifications into Graphviz graphs for visualization, supporting various rendering options including decision nodes, undirected edges, and customizable themes.
#NodePositioning Source
type NodePositioning = { exact :: Boolean, node :: String, pos :: Vec }Specifies manual positioning for a node in the graph.
#Options Source
type Options = { decisionNodes :: Boolean, entryPoints :: Array StateName, extraEdgeAttrs :: Array Attr, extraGraphAttrs :: Array Attr, extraNodeAttrs :: Array Attr, fixedNodeSize :: Maybe Vec, fontSize :: Number, layout :: Layout, theme :: Theme, title :: Maybe String, undirectedEdges :: Boolean }Configuration options for graph generation.
#defaultOptions Source
defaultOptions :: OptionsDefault options for graph generation.
#generate Source
generate :: TransitCore -> (Options -> Options) -> GraphvizGraphGenerates a Graphviz graph with customizable options.
#generateEither Source
generateEither :: TransitCore -> (Options -> Options) -> Either String GraphvizGraphGenerates a Graphviz graph with customizable options. Fails if the options are invalid.
#mkGraphvizGraph Source
mkGraphvizGraph :: Options -> TransitCore -> GraphvizGraphGenerates a Graphviz graph from a transit specification.
- Modules
- Transit
- Transit.
Class. CheckReturn - Transit.
Class. CurryN - Transit.
Class. MkAutoHandlers - Transit.
Class. MkHandlerLookup - Transit.
Class. MkUpdate - Transit.
Core - Transit.
DSL - Transit.
Data. DotLang - Transit.
Data. Graph - Transit.
Data. Html - Transit.
Data. MaybeChurch - Transit.
Data. Table - Transit.
HandlerLookup - Transit.
Render. Graphviz - Transit.
Render. Theme - Transit.
Render. TransitionTable - Transit.
StateGraph - Transit.
VariantUtils