Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( VerticalLabelPosition int = -10 VerticalStep int = 50 MaxVisibleHeight int = 94 )
View Source
var Colors = map[string]color.Color{}/* 144 elements not displayed */
View Source
var ErrEmptyMap = errors.New("no map")
Functions ¶
func SetCoords ¶ added in v0.8.0
func SetCoords(m wardleyToGo.Map, withEvolution bool)
SetCoords sets the y anx x axis of the components
func SetLabelAnchor ¶ added in v0.9.0
func SetLabelAnchor(m wardleyToGo.Map)
SetLabelCoords sets the label coordinate with simple rules: set anchor to left unless all the the From and To nodes are more advanced on evolution axis
Types ¶
type Inventory ¶ added in v0.9.0
type Inventory struct { NodeInventory map[string]*wardley.Component EdgeInventory []*wardley.Collaboration EvolutionStages []svgmap.Evolution Title string Documentation []string // contains filtered or unexported fields }
Inventory is the result of the parsing of the elements it does not create a consolidated map this can be used in an LSP
func NewInventory ¶ added in v0.9.0
func NewInventory() *Inventory
type Parser ¶
type Parser struct { WMap *wardleyToGo.Map EvolutionStages []svgmap.Evolution ImageSize image.Rectangle MapSize image.Rectangle // InvalidEntries reports any invalid of unkonwn token InvalidEntries []error Docs []string // contains filtered or unexported fields }
func (*Parser) DumpComponents ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.