dot

package
v1.0.0-beta6 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const HALIGN_CENTER = "CENTER"
View Source
const HALIGN_LEFT = "LEFT"
View Source
const HALIGN_RIGHT = "RIGHT"
View Source
const HALIGN_TEXT = "TEXT"
View Source
const VALIGN_BOTTOM = "BOTTOM"
View Source
const VALIGN_MIDDLE = "MIDDLE"
View Source
const VALIGN_TOP = "TOP"

Variables

This section is empty.

Functions

func DocNodeRenderer

func DocNodeRenderer(ID string, node ls.Node, options *Options) string

func SchemaNodeRenderer

func SchemaNodeRenderer(ID string, node ls.Node, options *Options) string

SchemaNodeRenderer renders the node as an HTML table

Types

type HorizontalAlignment

type HorizontalAlignment string

type Options

type Options struct {
	Table TableOptions
	TD    TableCellOptions
}

func DefaultOptions

func DefaultOptions() Options

type Renderer

type Renderer struct {
	Options          Options
	NodeSelectorFunc func(ls.Node) bool
	EdgeSelectorFunc func(ls.Edge) bool
}

func (Renderer) EdgeRenderer

func (r Renderer) EdgeRenderer(fromID, toID string, edge digraph.Edge, w io.Writer) (bool, error)

func (Renderer) NodeRenderer

func (r Renderer) NodeRenderer(ID string, n digraph.Node, wr io.Writer) (bool, error)

func (Renderer) Render

func (r Renderer) Render(g *digraph.Graph, graphName string, out io.Writer) error

type TableCellOptions

type TableCellOptions struct {
	Align       HorizontalAlignment `dot:"ALIGN"`
	Balign      HorizontalAlignment `dot:"BALIGN"`
	BGColor     string              `dot:"BGCOLOR"`
	Border      string              `dot:"BORDER"`
	CellPadding string              `dot:"CELLPADDING"`
	CellSpacing string              `dot:"CELLSPACING"`
	Color       string              `dot:"COLOR"`
	ColSpan     int                 `dot:"COLSPAN"`
	HRef        string              `dot:"HREF"`
	Port        string              `dot:"PORT"`
	RowSpan     int                 `dot:"ROWSPAN"`
	Style       string              `dot:"STYLE"`
	Target      string              `dot:"TARGET"`
	Valign      VerticalAlignment   `dot:"VALIGN"`
}

func (TableCellOptions) String

func (t TableCellOptions) String() string

type TableOptions

type TableOptions struct {
	Align       HorizontalAlignment `dot:"ALIGN"`
	BGColor     string              `dot:"BGCOLOR"`
	Border      string              `dot:"BORDER"`
	CellBorder  string              `dot:"CELLBORDER"`
	CellPadding string              `dot:"CELLPADDING"`
	CellSpacing string              `dot:"CELLSPACING"`
	Color       string              `dot:"COLOR"`
	Columns     int                 `dot:"COLUMNS"`
	HRef        string              `dot:"HREF"`
	ID          string              `dot:"ID"`
	Port        string              `dot:"PORT"`
	Rows        int                 `dot:"ROWS"`
	Sides       int                 `dot:"SIDES"`
	Style       string              `dot:"STYLE"`
	Target      string              `dot:"TARGET"`
	Title       string              `dot:"TITLE"`
	Valign      VerticalAlignment   `dot:"VALIGN"`
}

func (TableOptions) String

func (t TableOptions) String() string

type VerticalAlignment

type VerticalAlignment string

Jump to

Keyboard shortcuts

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