Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderValue ¶
func RenderValue(v interface{}) string
RenderValue coerces to json.Number and tries to avoid adding decimal points to integers
Types ¶
type Edge ¶
type Edge struct {
Path [][2]int
}
Edge is polylines of straight lines going through all points.
type Node ¶
type Node struct {
ID string // used to make DOM IDs
XY [2]int // lowest X and Y coordinate of node box
Title string
NodeData map[string]interface{}
}
Node is rendered point. Can render contents as table.
type NodeDataTable ¶
NodeDataTable renders key-value data of node. It will render table.
func (NodeDataTable) Height ¶
func (n NodeDataTable) Height() int
func (NodeDataTable) Render ¶
func (n NodeDataTable) Render() string
func (NodeDataTable) Width ¶
func (n NodeDataTable) Width() int
type Renderable ¶
type Renderable interface {
Render() string
}
type SVG ¶
type SVG struct {
ID string
Definitions []Renderable
Body Renderable
}
Click to show internal directories.
Click to hide internal directories.