graphviz-visual-editor icon indicating copy to clipboard operation
graphviz-visual-editor copied to clipboard

Center "c" compass point is missing from the grammar

Open nheir opened this issue 9 months ago • 1 comments

It's not possible to specify c as compass for portPos

Example from https://forum.graphviz.org/t/port-pos-center/1899/2

digraph top {
    node[shape=none]
    i [label=<<TABLE CELLSPACING="5" CELLPADDING="4" BORDER="0" CELLBORDER="1">
    <TR>
      <TD port="am">top of the morning</TD>
    </TR>  
    <TR>
      <TD port="cow">cattle crossing</TD>
    </TR>  
    <TR>
      <TD>d</TD>
    </TR>  
    </TABLE>> ]
    
  j [label=<<TABLE CELLSPACING="5" CELLPADDING="4" BORDER="0" CELLBORDER="1">
    <TR>
      <TD port="pm">afternoon</TD>
    </TR>  
    <TR>
      <TD>d</TD>
    </TR>  
    </TABLE>> ]

    p -> i:am:c [headclip=false]
    j:pm:c -> i:cow:c [headclip=false tailclip=false]
}

The grammar may be the only thing to fix

https://github.com/magjac/graphviz-visual-editor/blob/4823bcd2ee1e48b8b6aa051e5750acf3f50c9619/src/dotGrammar.pegjs#L154

nheir avatar Apr 14 '25 13:04 nheir

The grammar may be the only thing to fix

Indeed it was.

ferdnyc avatar Jun 23 '25 07:06 ferdnyc