Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000142graphvizDotty/Lneato/Leftypublic2002-11-30 00:002011-04-28 04:02
ReporterSalvador Cavadini 
Assigned Togviz 
PrioritynormalSeverityminorReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOSWindows 9xOS Version
Summary0000142: dotty do not show changes in node attrs
Description
when some nodes' properties are changes using "set attr" popup
menu option, the changes are not visible until a "do layout" option
execution. For example, if we set "shape=circle" for a ellipse shaped node,
the node becomes a circle only after a "do layout".
Additional Information

[erg] To do a circle correctly, the graph needs to be laid out again,
to get the correct node size and allow for adjacent ranks to move.
Since dotty relies on the batch program dot for layout, it only does a
layout when the user asks for it. Presumably, the dotty scripts could
be changed to do a layout whenever an attribute change occurs.

Alternatively, the file dotty_draw.lefty in lib/lefty can be changed
as shown. This may produce, however, a circle too large (or if '>' is
changed to ',', a circle too small).
<CD>
***************
*** 295,300 ****
--- 295,304 ----
      pos = node.pos;
      size.x = node.size.x / 2;
      size.y = node.size.y / 2;
+ if ((node.attr.shape == 'circle') | (node.attr.shape == 'doublecircle')) {
+ if (size.x > size.y) size.y = size.x;
+ else size.x = size.y;
+ }
      if (~(label = node.attr.label) | label == '\N')
          label = node.name;
      if (node.attr.style == 'filled') {
</CD>
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID228
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT*
VERSION   1.8.10
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:02 user1 New Issue
2011-04-28 04:02 user1 Assigned To => user1


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker