ArchitectureDiagram¶
-
class
Cocotec.CocoPlatform.Coco.ArchitectureDiagram
¶ Properties
-
bool
IsError
{ }¶ True if this holds an SVG, false if it contains an error.
-
string
Svg
{ }¶ The SVG diagram as a string if isError is false, empty otherwise.
-
string
Error
{ }¶ The error message if isError is true, empty otherwise.
-
List<List<Cocotec.CocoPlatform.Coco.Node>>
Elements
{ }¶ A mapping of SVG graph element IDs to lists of AST nodes they represent. The index, i, corresponds to the SVG ID “e{i}”. E.g. the zeroth array element corresponds to the SVG element with id=”e0”. Most IDs correspond to a single AST node. However, when generating a diagram in simplified mode, edges are consolidated and a single edge may correspond to multiple connect calls in the AST. Empty if isError is true.
-
List<List<int>>
HighlightGroups
{ }¶ Each subvector contains IDs of elements to highlight when element i is hovered, where i is the index of the subvector within the outer vector. i is typically one of the values in the subvector, because hovering element i should cause i to be highlighted (as well as nearby elements). Empty if isError is true.
-
bool