From: Emden Gansner Date: Wed, 2 Jan 2013 17:41:15 +0000 (-0500) Subject: Add note as to how to reset style values to the normal default. X-Git-Tag: LAST_LIBGRAPH~32^2~263 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=962b032ad67281b4ba18aff866420ac54ff06dc3;p=graphviz Add note as to how to reset style values to the normal default. --- diff --git a/doc/info/attrs.html b/doc/info/attrs.html index 8b1b4ec37..bca3689c5 100644 --- a/doc/info/attrs.html +++ b/doc/info/attrs.html @@ -453,7 +453,7 @@ This field indicates which graph component uses the attribute. ""fdp, neato only style ENCGstyle - +"" stylesheet Gstring""svg only tailURL @@ -1809,8 +1809,19 @@ This field indicates which graph component uses the attribute. initial placement is repeatable.
style -
Set style information for components of the graph. For cluster subgraphs, if "filled", the +
Set style information for components of the graph. For cluster subgraphs, if style="filled", the cluster box's background is filled. +

+ If the default style attribute has been set for a component, an individual component can use + style="" to revert to the normal default. For example, if the graph has +

+ edge [style="invis"] +

+ making all edges invisible, a specific edge can overrride this via: +

+ a -> b [style=""] +

+ Of course, the component can also explicitly set its style attribute to the desired value.

stylesheet
A URL or pathname specifying an XML style sheet, used in SVG output. diff --git a/doc/infosrc/attrs b/doc/infosrc/attrs index 1ddea6ef0..2ddeef1db 100644 --- a/doc/infosrc/attrs +++ b/doc/infosrc/attrs @@ -1199,9 +1199,20 @@ Parameter used to determine the initial layout of nodes. If unset, the nodes are randomly placed in a unit square with the same seed is always used for the random number generator, so the initial placement is repeatable. -:style:ENCG:style:; -Set style information for components of the graph. For cluster subgraphs, if "filled", the +:style:ENCG:style:""; +Set style information for components of the graph. For cluster subgraphs, if style="filled", the cluster box's background is filled. +

+If the default style attribute has been set for a component, an individual component can use +style="" to revert to the normal default. For example, if the graph has +

+edge [style="invis"] +

+making all edges invisible, a specific edge can overrride this via: +

+a -> b [style=""] +

+Of course, the component can also explicitly set its style attribute to the desired value. :stylesheet:G:string:""; svg A URL or pathname specifying an XML style sheet, used in SVG output. :tailURL:E:escString:""; map,svg