ProjectTree

class photonforge.pda.ProjectTree(data)[source]

What a project holds, as a tree of nodes. A mapping over its plain data.

Methods

get(k[,d])

items()

keys()

mermaid()

The tree as a mermaid flowchart, to draw anywhere mermaid is drawn.

svg()

The tree as a standalone SVG, for front ends that do not draw mermaid.

values()

Attributes

root

nested {"kind", "title", "detail", "hint", "warning", "children"}.

Parameters:

data (dict)

mermaid()[source]

The tree as a mermaid flowchart, to draw anywhere mermaid is drawn.

Return type:

str

property root: dict

nested {"kind", "title", "detail", "hint", "warning", "children"}.

Type:

The tree

svg()[source]

The tree as a standalone SVG, for front ends that do not draw mermaid.

Return type:

str