Documentation
¶
Overview ¶
This package converts SST 2D geometry into a coressponding SVG file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertGraphToSVG ¶
func ConvertGraphToSVG(graph sst.NamedGraph, baseName, outputDir string)
Types ¶
type Circle ¶
type Circle struct {
XMLName xml.Name `xml:"circle"`
Cx string `xml:"cx,attr,omitempty"`
Cy string `xml:"cy,attr,omitempty"`
R string `xml:"r,attr"`
Fill string `xml:"fill,attr,omitempty"`
Stroke string `xml:"stroke,attr,omitempty"`
StrokeWidth string `xml:"stroke-width,attr,omitempty"`
Transform string `xml:"transform,attr,omitempty"`
}
type Ellipse ¶
type Ellipse struct {
XMLName xml.Name `xml:"ellipse"`
Cx string `xml:"cx,attr,omitempty"`
Cy string `xml:"cy,attr,omitempty"`
Rx string `xml:"rx,attr"`
Ry string `xml:"ry,attr"`
Fill string `xml:"fill,attr,omitempty"`
Stroke string `xml:"stroke,attr,omitempty"`
StrokeWidth string `xml:"stroke-width,attr,omitempty"`
Transform string `xml:"transform,attr,omitempty"`
}
type Rectangle ¶
type Rectangle struct {
XMLName xml.Name `xml:"rect"`
X string `xml:"x,attr,omitempty"`
Y string `xml:"y,attr,omitempty"`
Width string `xml:"width,attr"`
Height string `xml:"height,attr"`
Rx string `xml:"rx,attr,omitempty"`
Ry string `xml:"ry,attr,omitempty"`
Fill string `xml:"fill,attr,omitempty"`
Stroke string `xml:"stroke,attr,omitempty"`
StrokeWidth string `xml:"stroke-width,attr,omitempty"`
Transform string `xml:"transform,attr,omitempty"`
}
type Text ¶
type Text struct {
XMLName xml.Name `xml:"text"`
X string `xml:"x,attr,omitempty"`
Y string `xml:"y,attr,omitempty"`
Text string `xml:",chardata"`
FontFamily string `xml:"font-family,attr,omitempty"`
FontSize string `xml:"font-size,attr,omitempty"`
Fill string `xml:"fill,attr,omitempty"`
Stroke string `xml:"stroke,attr,omitempty"`
StrokeWidth string `xml:"stroke-width,attr,omitempty"`
Bold string `xml:"font-weight,attr,omitempty"`
Underline string `xml:"text-decoration,attr,omitempty"`
Transform string `xml:"transform,attr,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.