Module attributes

Source
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§

EdgeAttributes
The attributes appearing on the edge
GraphAttributes
The attributes appearing on the root graph
NodeAttributes
The attributes appearing on the node
SubgraphAttributes
The attributes appearing on the subgraph
arrowhead
arrowtail
clusterrank
color_name
dir
outputorder
packmode
pagedir
quadtree
rank
rankdir
shape
smoothing