MermaidDiagramFigure

class MermaidDiagramFigure(child: MermaidDiagram, val caption: String? = null) : Figure<MermaidDiagram>

An optionally-numbered block which displays a single Mermaid diagram, with an optional caption.

Parameters

child

wrapped diagram

caption

optional caption of the diagram

See also

Constructors

Link copied to clipboard
constructor(child: MermaidDiagram, caption: String? = null)

Properties

Link copied to clipboard

Whether this node should be tracked in the document's hierarchy.

Link copied to clipboard
open override val caption: String? = null
Link copied to clipboard
open override val child: MermaidDiagram
Link copied to clipboard
open override val children: List<Node>

A singleton list containing child.

Functions

Link copied to clipboard
open override fun <T> accept(visitor: NodeVisitor<T>): T

Accepts a visitor.

Link copied to clipboard

Returns a sequence of all nodes in the tree, where this is the root node. The sequence is generated by traversing the tree in depth-first order. The root node is excluded from the sequence.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard