class documentation

class HTMLMermaidJSPrinter(MermaidJSPrinter): (source)

View In Hierarchy

Printer for MermaidJS diagrams wrapped in a html boilerplate.

Constant GRAPH_INDENT_LEVEL Undocumented
Constant HTML_CLOSE_BOILERPLATE Undocumented
Constant HTML_OPEN_BOILERPLATE Undocumented
Method _close_graph Emit the lines needed to properly close the graph.
Method _open_graph Emit the header lines.

Inherited from MermaidJSPrinter:

Method emit_edge Create an edge from one node to another to display relationships.
Method emit_node Create a new node.
Constant ARROWS Undocumented
Constant DEFAULT_COLOR Undocumented
Constant NODES Undocumented

Inherited from Printer (via MermaidJSPrinter):

Method __init__ Undocumented
Method emit Undocumented
Method generate Generate and save the final outputfile.
Instance Variable layout Undocumented
Instance Variable lines Undocumented
Instance Variable title Undocumented
Instance Variable use_automatic_namespace Undocumented
Static Method _get_method_arguments Undocumented
Method _dec_indent Decrement indentation.
Method _inc_indent Increment indentation.
Instance Variable _indent Undocumented
GRAPH_INDENT_LEVEL: int = (source)

Undocumented

Value
4
HTML_CLOSE_BOILERPLATE: str = (source)

Undocumented

Value
'''
       </div>
  </body>
</html>
'''
HTML_OPEN_BOILERPLATE: str = (source)

Undocumented

Value
'''<html>
  <body>
    <script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></scr
ipt>
      <div class="mermaid">
    '''
def _close_graph(self): (source)

Emit the lines needed to properly close the graph.

def _open_graph(self): (source)