Documentation

ProofWidgets.Component.PenroseDiagram

Equations

Displays the given diagram using Penrose. The website contains explanations of how to write domain (dsl), style (sty), and substance (sub) programs.

The diagram may also contain embedded HTML trees which are specified in embeds. Each embed is HTML together with the name of an object x in the substance program. The object x can be of any type but must be assigned an x.textBox : Rectangle field in the style program. This rectangle will be replaced with the HTML tree. Its dimensions will be overridden in the style program to match those of the HTML node.

The following additional constants are prepended to the style program:

theme {
  color foreground
  color tooltipBackground
  color tooltipForeground
  color tooltipBorder
}

and can be accessed as, for example, theme.foreground in the provided sty in order to match the editor theme.

Instances For