[][src]Crate svg_fmt

Structs

BeginSvg

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 {w} {y}">

Circle

<circle cx="{x}" cy="{y}" r="{radius}" .../>

Color

rgb({r},{g},{b})

Comment
EndSvg

</svg>

Indentation

" "

LineSegment

<path d="M {x1} {y1} L {x2} {y2}" ... />

Path

<path d="..." />

Polygon

<path d="..." style="..."/>

Rectangle

<rect x="{x}" y="{y}" width="{w}" height="{h}" ... />,

Style

fill:{fill};stroke:{stroke};fill-opacity:{opacity};

Text

<text x="{x}" y="{y}" ... > {text} </text>

VerticalLayout

Enums

Align

text-align:{self}

Fill

fill:{self}

PathOp

M {} {} L {} {} ...

Stroke

stroke:{self}

Functions

black
blue
comment
green
indent
line_segment
path
polygon
rectangle
red
rgb
text
triangle
white