Changing the node style
The canonical member
Equivalence classes can have multiple statements as members. Arguments can have multiple descriptions as members. The Argdown parser has to pick one of these statements or descriptions to represent the equivalence class or the argument in the argument map. The member that is picked to officially represent an equivalence class or an argument is called the "canonical member".
By default the Argdown parser simply picks the statement or description from the last definition in the document. Let's take a look at how this works:
To manually change the canonical member of an argument or equivalence class, you can use the
isCanonical: true data flag:
Note that it makes only sense to use this flag once. If you use it a second time, the first occurrence will be ignored.
Changing the label mode
You can use the
statementLabelMode map settings to change the label type of argument and statement nodes:
title: Show only the title of the statement or argument.
text: Show only the text of the canonical statement or argument description.
hide-untitled(default): Show title and text, but hide titles if the argument or equivalence class is anonoymous (has no manually defined title).
In the following example we use
title for arguments and
text for statements:
Removing tags from text
You can remove any tags from statement or description text by using the
removeTagsFromText model setting:
Changing the font style of node labels
Font size, font and boldness of text in the Dot/GraphML exports and VizJs/Dagre maps can be customized for groups, arguments and statements. Here is how you do it for the dot export and the VizJs map:
Similar configuration options exist for
Please note that VizJs only supports a small number of fonts and the same is true for the library that is used by all map export plugins for text width measurement. Please consult these links for the fonts available.