From 92c9c65a50cfdedd38fef43d23e22fb8d4c290c3 Mon Sep 17 00:00:00 2001 From: Mark Hansen Date: Thu, 21 May 2020 17:44:17 +1000 Subject: [PATCH] Add documentation for SVG class attribute This was introduced in 2015 in be2d19fb48, but wasn't documented. --- doc/infosrc/attrs | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/doc/infosrc/attrs b/doc/infosrc/attrs index 091234aa1..13fd5d9cd 100644 --- a/doc/infosrc/attrs +++ b/doc/infosrc/attrs @@ -155,6 +155,25 @@ equivalently, "Latin1". The charset attribute is case-insensitive. Note that if the character encoding used in the input does not match the charset value, the resulting output may be very strange. +:class:ENCG:string:"":;svg +Classnames to attach to the node, edge, graph, or cluster's SVG element. +Combine with stylesheet for styling SVG output +using CSS classnames. +

+Multiple space-separated classes are supported. +

+

+digraph G {
+  graph [class="cats"];
+
+  subgraph cluster_big {
+    graph [class="big_cats"];
+
+    "Lion" [class="yellow social"];
+    "Snow Leopard" [class="white solitary"];
+  };
+}
+
:clusterrank:G:clusterMode:local; dot Mode used for handling clusters. If clusterrank is "local", a subgraph whose name begins with "cluster" is given special treatment. @@ -1337,7 +1356,8 @@ making all edges invisible, a specific edge can overrride this via:

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. +A URL or pathname specifying an XML style sheet, used in SVG output. Combine +with class to style elements using CSS selectors. :tailURL:E:escString:""; map,svg If tailURL is defined, it is output as part of the tail label of the edge. -- 2.50.1