drawioxml

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RandRead = rand.Read

Help with tests.

Functions

func Build

func Build(resCollection *resources.ResourceCollection, config *Config, g *graphviz.Graphviz) *pdrawioxml.MxFile

Types

type Config

type Config struct {
	NodeStyles map[string]string
}

type G

type G struct {
	ID    string `xml:"id,attr"`
	Class string `xml:"class,attr"`
	Nodes []Node `xml:"g"`
}

type Node

type Node struct {
	Title string `xml:"title"`
	Text  Text   `xml:"text"`
}

type SVG

type SVG struct {
	XMLName xml.Name `xml:"svg"`
	G       G        `xml:"g"`
}

type Text

type Text struct {
	Content string `xml:",chardata"`
	X       string `xml:"x,attr"`
	Y       string `xml:"y,attr"`
}

Jump to

Keyboard shortcuts

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