Expand description
graphviz attributes
§Examples:
use dot_generator::*;
use dot_structures::*;
use graphviz_rust::attributes::{color, color_name, GraphAttributes, NodeAttributes};
use into_attr::IntoAttribute;
fn test() {
assert_eq!(GraphAttributes::center(true), attr!("center", true));
assert_eq!(
NodeAttributes::color(color_name::antiquewhite1),
attr!("color", "antiquewhite1")
);
assert_eq!(color::default().into_attr(), attr!("color", "black"));
}
Structs§
- Damping
- K
- URL
- _background
- area
- arrowsize
- bb
- bgcolor
- center
- charset
- class
- color
- colorscheme
- comment
- compound
- concentrate
- constraint
- decorate
- dedgehrefpi
- defaultdist
- dim
- dimen
- diredgeconstraints
- distortion
- dpi
- edgeURL
- edgetarget
- edgetooltip
- epsilon
- esep
- fillcolor
- fixedsize
- fontcolor
- fontname
- fontnames
- fontpath
- fontsize
- forcelabels
- gradientangle
- group
- headURL
- head_lp
- headclip
- headhref
- headlabel
- headtarget
- headtooltip
- height
- href
- id
- image
- imagepath
- imagepos
- imagescale
- inputscale
- label
- labelURL
- label_
scheme - labelangle
- labeldistance
- labelfloat
- labelfontcolor
- labelfontname
- labelfontsize
- labelhref
- labeljust
- labelloc
- labeltarget
- labeltooltip
- landscape
- layer
- layerlistsep
- layers
- layerselect
- layersep
- layout
- len
- levels
- levelsgap
- lhead
- lheight
- lp
- ltail
- lwidth
- margin
- maxiter
- mclimit
- mindist
- minlen
- mode
- model
- mosek
- newrank
- nodesep
- nojustify
- normalize
- notranslate
- nslimit
- nslimit1
- ordering
- orientation
- overlap
- overlap_
scaling - overlap_
shrink - pack
- pad
- page
- pencolor
- penwidth
- peripheries
- pin
- pos
- quantum
- ranksep
- ratio
- rects
- regular
- remincross
- repulsiveforce
- resolution
- root
- rotate
- rotation
- samehead
- sametail
- samplepoints
- scale
- searchsize
- sep
- shapefile
- showboxes
- sides
- size
- skew
- sortv
- splines
- start
- style
- stylesheet
- tailURL
- tail_lp
- tailclip
- tailhref
- taillabel
- tailtarget
- tailtooltip
- target
- tooltip
- truecolor
- vertices
- viewport
- voro_
margin - weight
- width
- xdotversion
- xlabel
- xlp
- z
Enums§
- Edge
Attributes - The attributes appearing on the edge
- Graph
Attributes - The attributes appearing on the root graph
- Node
Attributes - The attributes appearing on the node
- Subgraph
Attributes - The attributes appearing on the subgraph
- arrowhead
- arrowtail
- clusterrank
- color_
name - dir
- outputorder
- packmode
- pagedir
- quadtree
- rank
- rankdir
- shape
- smoothing