Documentation
¶
Overview ¶
package xml provides functionality to parse resources from a draw.io XML file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diagram ¶
type Diagram struct {
XMLName xml.Name `xml:"diagram"`
MxGraphModel MxGraphModel `xml:"mxGraphModel"`
}
Diagram represents the diagram element within the draw.io XML file.
type Geometry ¶
type Geometry struct {
XMLName xml.Name `xml:"mxGeometry"`
X float64 `xml:"x,attr,omitempty"`
Y float64 `xml:"y,attr,omitempty"`
Width float64 `xml:"width,attr,omitempty"`
Height float64 `xml:"height,attr,omitempty"`
As string `xml:"as,attr,omitempty"`
}
Geometry represents the geometry element within a cell of the draw.io XML file.
type MxCell ¶
type MxCell struct {
XMLName xml.Name `xml:"mxCell"`
ID string `xml:"id,attr"`
Value string `xml:"value,attr,omitempty"`
Style string `xml:"style,attr,omitempty"`
Parent string `xml:"parent,attr,omitempty"`
Vertex bool `xml:"vertex,attr,omitempty"`
Source string `xml:"source,attr,omitempty"`
Target string `xml:"target,attr,omitempty"`
Geometry *Geometry `xml:"mxGeometry,omitempty"`
}
MxCell represents a cell element within the draw.io XML file.
type MxGraphModel ¶
MxGraphModel represents the graph model element within the draw.io XML file.
Click to show internal directories.
Click to hide internal directories.