Documentation / FAQ / Attributes
Is there a list of attributes with a predefined meaning for the graph viewer ?
Yes. A few:
xfor the abscissa of nodes (a float value).yfor the ordinate of nodes (a float value).zfor the depth of nodes (a float value).xyfor the 2D position of nodes (pass two float values).xyzfor the 3D position of nodes (pass three float values). It is a good idea to always use xyz.ui.labelfor node, sprite and edge labels. Setting this attribute will display the text on the node or edge according to the style sheet and text visibility modes.ui.colorfor node, sprite and edge color interpolation when the style defines at least two colors. The value must be a real number between 0 and 1. The style must define at least two fill colors and the fill mode must bedyn-plain, for example :node { fill-mode: dyn-plain; fill-color: red, blue; }. In this example, if theui.colorvalue is 0 the node will be red, if the value is 1 the node will be blue and if the value is 0.5 the node will be a mix of the two, some kind of purple.ui.stylefor node, edge and sprite styling. This merges the style to the actual style sheet.ui.stylesheetfor graph styling. Each new addition or change of this attribute will merge the style definitions to the actual style sheet. To completely clear the style, remove this attribute from the graph.ui.hideto hide a node, edge or sprite (only its presence is tested, not its value).ui.qualityto enable slower but better rendering.ui.antialiasto enable anti-aliasing of shapes drawn by the viewer.ui.screenshotfor graphs, to quickly take a screen shot of the viewer. The value must be the name of a the image file you want to save. Once the screen shot has been saved, the attribute is automatically removed. For examplegraph.setAttribute("ui.screenshot", "/some/place/image.png");.