Re: [graphviz-interest] dynamic cluster label width

"Emden R. Gansner" <[email protected]> Tue, 03 Feb 2015 15:11:35 -0500
Newsgroups gmane.comp.video.graphviz
Message-ID <[email protected]>
On 2/2/15 12:59 PM, Ron Newman wrote:
> The lwidth cluster attribute limits the width of a cluster label.  It would be nice to know the 
> width of the cluster in order to know what to set lwidth to.  The bounding box of the cluster 
> isn't known until after layout is complete, too late to set lwidth without doing a second pass.
>
> Is there a way to tell the cluster label to limit itself to the natural width of the cluster?  
> That is, don't extend the width of the cluster to fit the label, but wrap the label and move the 
> nodes down (up) to accomodate the label.
>
Note that, at present, the lwidth attribute is not read by the layout algorithms; it's only emitted 
on output. So setting it on input won't have any effect.

There is also no built-in support for text wrapping. The text lines must be specified on input. 
There is a general need for some form of text wrapping.
For example, it would nice to be able to fix the width of a nodes, specify the text label, and have 
the line breaks added automatically. Unlike various
new features, line wrapping is supported in pango but not in svg (maybe). As we have not provided 
these new features in core PDF or PostScript, we could
could just use line wrapping in pango (which does produce svg). " Had we but world enough, and time..."

     Emden

_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest