Versions in this module Expand all Collapse all v1 v1.5.3 Jun 30, 2020 Changes in this version type Settings + func (x *Settings) MeasureFont(s string, sz int) int v1.5.2 Feb 11, 2020 v1.5.1 Mar 19, 2019 v1.5.0 Mar 19, 2019 v1.4.0 Apr 13, 2018 v1.3.2 Aug 31, 2016 v1.3.1 Jul 13, 2016 v1.3.0 Jul 7, 2016 Changes in this version + var DefaultSettings = Settings + var FontName string + func BlendColorStrings(a, b string) string + func DrawPNG(w io.Writer, dpi float64, changelist []string, g *data.PfamGraphicResponse) + func DrawSVG(w io.Writer, changelist []string, g *data.PfamGraphicResponse) + func LoadDefaultFont() error + func LoadFont(name, path string) error + func MeasureFont(s string, sz int) int + type Settings struct + AxisHeight float64 + AxisPadding float64 + BackboneHeight float64 + DomainHeight float64 + DomainLabelStyle string + GraphicHeight float64 + GraphicWidth float64 + HideAxis bool + HideDisordered bool + HideMotifs bool + LollipopHeight float64 + LollipopRadius float64 + MotifHeight float64 + MutationColor string + Padding float64 + ShowLabels bool + ShowLegend bool + SolidFillOnly bool + SynonymousColor string + TextPadding float64 + func (s *Settings) AutoWidth(g *data.PfamGraphicResponse) float64 + func (s *Settings) DrawPNG(w io.Writer, dpi float64, changelist []string, g *data.PfamGraphicResponse) + func (s *Settings) DrawSVG(w io.Writer, changelist []string, g *data.PfamGraphicResponse) + type Tick struct + Cnt int + Col string + Pos int + Pri int + func (t *Tick) Radius(s *Settings) float64 + type TickSlice []Tick + func (t TickSlice) Len() int + func (t TickSlice) Less(i, j int) bool + func (t TickSlice) NextBetter(i, maxDist int) int + func (t TickSlice) Swap(i, j int)