ssttosvg

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2026 License: None detected not legal advice Imports: 0 Imported by: 0

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 Path

type Path struct {
	XMLName     xml.Name `xml:"path"`
	D           string   `xml:"d,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 Polygon

type Polygon struct {
	XMLName     xml.Name `xml:"polygon"`
	Points      string   `xml:"points,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 Polyline

type Polyline struct {
	XMLName     xml.Name `xml:"polyline"`
	Points      string   `xml:"points,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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL