kieler / klighd-vscode

Eclipse Public License 2.0
8 stars 6 forks source link

Handling of default values causes unexpected appearing / disappearing of texts (kgt) #51

Open soerendomroes opened 2 years ago

soerendomroes commented 2 years ago

Open a .kgt file such as this one when default values in the diagram options are turned on:


kgraph smallgraph
knode n1 {
    kedge ( -> n2)
}
knode n2

The first diagram will be drawn correctly, any update on the model lets the name of the graph (smallgraph in this case) appear in the top left corner of the graph, although it should not appear there. Additionally, turning default values off and on again lets the node labels disappear until the nodes in the model are renamed.