Documentation ¶
Index ¶
- Constants
- Variables
- func SetFileSystem(fs fs.FS)
- type ArrowType
- type Attribute
- type CallbackStack
- type ClientDiscipline
- type ClusterMode
- type Color
- type ColorType
- type CommonFields
- type Context
- type DataDict
- type DefaultRenderEngine
- type DeviceFeature
- type DevicePlugin
- type DevicePluginOption
- type Dict
- type DictData
- type DictDisc
- type DictHold
- type DictLink
- type DictMethod
- type DictStat
- type DirType
- type Edge
- type EdgeStyle
- type FillType
- type Format
- type Graph
- type GraphDescriptor
- type GraphOption
- type GraphStyle
- type Graphviz
- func (g *Graphviz) Close() error
- func (g *Graphviz) Graph(option ...GraphOption) (*Graph, error)
- func (g *Graphviz) Render(ctx context.Context, graph *Graph, format Format, w io.Writer) (e error)
- func (g *Graphviz) RenderFilename(ctx context.Context, graph *Graph, format Format, path string) (e error)
- func (g *Graphviz) RenderImage(ctx context.Context, graph *Graph) (img image.Image, e error)
- func (g *Graphviz) SetLayout(layout Layout) *Graphviz
- type ID
- type ImagePos
- type Job
- type JustType
- type LabelLocation
- type LabelType
- type Layout
- type ModeType
- type ModelType
- type Node
- type NodeStyle
- type Object
- type ObjectState
- type ObjectTag
- type OrderingType
- type OutputMode
- type PackMode
- type PageDir
- type PenType
- type Plugin
- type PointFloat
- type PostScriptAlias
- type QuadType
- type RankDir
- type RatioType
- type Record
- type RenderEngine
- type RenderFeature
- type RenderPlugin
- type RenderPluginOption
- type Scale
- type Shape
- type SmoothType
- type StartType
- type State
- type SubNode
- type Symbol
- type Tag
- type TextFont
- type TextSpan
- type Translation
Constants ¶
View Source
const ( NormalArrow = cgraph.NormalArrow InvArrow = cgraph.InvArrow DotArrow = cgraph.DotArrow InvDotArrow = cgraph.InvDotArrow ODotArrow = cgraph.ODotArrow InvODotArrow = cgraph.InvODotArrow NoneArrow = cgraph.NoneArrow TeeArrow = cgraph.TeeArrow EmptyArrow = cgraph.EmptyArrow InvEmptyArrow = cgraph.InvEmptyArrow DiamondArrow = cgraph.DiamondArrow ODiamondArrow = cgraph.ODiamondArrow EDiamondArrow = cgraph.EDiamondArrow CrowArrow = cgraph.CrowArrow BoxArrow = cgraph.BoxArrow OBoxArrow = cgraph.OBoxArrow OpenArrow = cgraph.OpenArrow HalfOpenArrow = cgraph.HalfOpenArrow VeeArrow = cgraph.VeeArrow )
const variables from cgraph package.
View Source
const ( LocalCluster = cgraph.LocalCluster GlobalCluster = cgraph.GlobalCluster NoneCluster = cgraph.NoneCluster )
View Source
const ( ForwardDir = cgraph.ForwardDir BackDir = cgraph.BackDir BothDir = cgraph.BothDir NoneDir = cgraph.NoneDir )
View Source
const ( TopLeftPos = cgraph.TopLeftPos TopCenteredPos = cgraph.TopCenteredPos TopRightPos = cgraph.TopRightPos MiddleLeftPos = cgraph.MiddleLeftPos MiddleCenteredPos = cgraph.MiddleCenteredPos BottomLeftPos = cgraph.BottomLeftPos BottomCenteredPos = cgraph.BottomCenteredPos BottomRightPos = cgraph.BottomRightPos )
View Source
const ( LeftJust = cgraph.LeftJust CenteredJust = cgraph.CenteredJust RightJust = cgraph.RightJust )
View Source
const ( TopLocation = cgraph.TopLocation CenteredLocation = cgraph.CenteredLocation BottomLocation = cgraph.BottomLocation )
View Source
const ( MajorMode = cgraph.MajorMode KKMode = cgraph.KKMode HierMode = cgraph.HierMode IpsepMode = cgraph.IpsepMode SpringMode = cgraph.SpringMode MaxentMode = cgraph.MaxentMode )
View Source
const ( ShortPathModel = cgraph.ShortPathModel CircuitModel = cgraph.CircuitModel SubsetModel = cgraph.SubsetModel MdsModel = cgraph.MdsModel )
View Source
const ( OutOrdering = cgraph.OutOrdering InOrdering = cgraph.InOrdering )
View Source
const ( BreadthFirst = cgraph.BreadthFirst NodesFirst = cgraph.NodesFirst EdgesFirst = cgraph.EdgesFirst )
View Source
const ( NodePack = cgraph.NodePack ClusterPack = cgraph.ClusterPack GraphPack = cgraph.GraphPack )
View Source
const ( BLDir = cgraph.BLDir BRDir = cgraph.BRDir TLDir = cgraph.TLDir TRDir = cgraph.TRDir RBDir = cgraph.RBDir RTDir = cgraph.RTDir LBDir = cgraph.LBDir LTDir = cgraph.LTDir )
View Source
const ( NormalQuad = cgraph.NormalQuad FastQuad = cgraph.FastQuad NoneQuad = cgraph.NoneQuad )
View Source
const ( TBRank = cgraph.TBRank LRRank = cgraph.LRRank BTRank = cgraph.BTRank RLRank = cgraph.RLRank )
View Source
const ( FillRatio = cgraph.FillRatio CompressRatio = cgraph.CompressRatio ExpandRatio = cgraph.ExpandRatio AutoRatio = cgraph.AutoRatio )
View Source
const ( BoxShape = cgraph.BoxShape PolygonShape = cgraph.PolygonShape EllipseShape = cgraph.EllipseShape OvalShape = cgraph.OvalShape CircleShape = cgraph.CircleShape PointShape = cgraph.PointShape EggShape = cgraph.EggShape TriangleShape = cgraph.TriangleShape PlainTextShape = cgraph.PlainTextShape PlainShape = cgraph.PlainShape DiamondShape = cgraph.DiamondShape TrapeziumShape = cgraph.TrapeziumShape ParallelogramShape = cgraph.ParallelogramShape HouseShape = cgraph.HouseShape PentagonShape = cgraph.PentagonShape HexagonShape = cgraph.HexagonShape SeptagonShape = cgraph.SeptagonShape OctagonShape = cgraph.OctagonShape DoubleCircleShape = cgraph.DoubleCircleShape DoubleOctagonShape = cgraph.DoubleOctagonShape TripleOctagonShape = cgraph.TripleOctagonShape InvTriangleShape = cgraph.InvTriangleShape InvTrapeziumShape = cgraph.InvTrapeziumShape InvHouseShape = cgraph.InvHouseShape MdiamondShape = cgraph.MdiamondShape MsquareShape = cgraph.MsquareShape McircleShape = cgraph.McircleShape RectShape = cgraph.RectShape RectangleShape = cgraph.RectangleShape SquareShape = cgraph.SquareShape StarShape = cgraph.StarShape NoneShape = cgraph.NoneShape UnderlineShape = cgraph.UnderlineShape CylinderShape = cgraph.CylinderShape NoteShape = cgraph.NoteShape TabShape = cgraph.TabShape FolderShape = cgraph.FolderShape Box3DShape = cgraph.Box3DShape ComponentShape = cgraph.ComponentShape PromoterShape = cgraph.PromoterShape CdsShape = cgraph.CdsShape TerminatorShape = cgraph.TerminatorShape UtrShape = cgraph.UtrShape PrimersiteShape = cgraph.PrimersiteShape RestrictionSiteShape = cgraph.RestrictionSiteShape FivePoverHangShape = cgraph.FivePoverHangShape ThreePoverHangShape = cgraph.ThreePoverHangShape NoverHangShape = cgraph.NoverHangShape AssemblyShape = cgraph.AssemblyShape SignatureShape = cgraph.SignatureShape InsulatorShape = cgraph.InsulatorShape RibositeShape = cgraph.RibositeShape RnastabShape = cgraph.RnastabShape ProteasesiteShape = cgraph.ProteasesiteShape ProteinstabShape = cgraph.ProteinstabShape RPromoterShape = cgraph.RPromoterShape RArrowShape = cgraph.RArrowShape LArrowShape = cgraph.LArrowShape LPromoterShape = cgraph.LPromoterShape )
View Source
const ( NoneSmooth = cgraph.NoneSmooth AvgDistSmooth = cgraph.AvgDistSmooth GraphDistSmooth = cgraph.GraphDistSmooth PowerDistSmooth = cgraph.PowerDistSmooth RngSmooth = cgraph.RngSmooth SprintSmooth = cgraph.SprintSmooth TriangleSmooth = cgraph.TriangleSmooth )
View Source
const ( RegularStart = cgraph.RegularStart SelfStart = cgraph.SelfStart RandomStart = cgraph.RandomStart )
View Source
const ( SolidGraphStyle = cgraph.SolidGraphStyle DashedGraphStyle = cgraph.DashedGraphStyle DottedGraphStyle = cgraph.DottedGraphStyle BoldGraphStyle = cgraph.BoldGraphStyle RoundedGraphStyle = cgraph.RoundedGraphStyle FilledGraphStyle = cgraph.FilledGraphStyle StripedGraphStyle = cgraph.StripedGraphStyle )
View Source
const ( SolidNodeStyle = cgraph.SolidNodeStyle DashedNodeStyle = cgraph.DashedNodeStyle DottedNodeStyle = cgraph.DottedNodeStyle BoldNodeStyle = cgraph.BoldNodeStyle RoundedNodeStyle = cgraph.RoundedNodeStyle DiagonalsNodeStyle = cgraph.DiagonalsNodeStyle FilledNodeStyle = cgraph.FilledNodeStyle StripedNodeStyle = cgraph.StripedNodeStyle WedgedNodeStyle = cgraph.WedgedNodeStyle )
View Source
const ( SolidEdgeStyle = cgraph.SolidEdgeStyle DashedEdgeStyle = cgraph.DashedEdgeStyle DottedEdgeStyle = cgraph.DottedEdgeStyle BoldEdgeStyle = cgraph.BoldEdgeStyle )
Variables ¶
View Source
var ( Directed = cgraph.Directed StrictDirected = cgraph.StrictDirected UnDirected = cgraph.UnDirected StrictUnDirected = cgraph.StrictUnDirected )
variables from cgraph package.
View Source
var ( ParseFile = cgraph.ParseFile ParseBytes = cgraph.ParseBytes )
functions from cgraph package.
View Source
var ( SetFontLoader = gvc.SetFontLoader DefaultPlugins = gvc.DefaultPlugins DeviceQuality = gvc.WithDeviceQuality DeviceFeatures = gvc.WithDeviceFeatures DeviceDPI = gvc.WithDeviceDPI NewDevicePlugin = gvc.NewDevicePlugin PNGDevicePlugin = gvc.PNGDevicePlugin JPGDevicePlugin = gvc.JPGDevicePlugin RenderQuality = gvc.WithRenderQuality RenderFeatures = gvc.WithRenderFeatures RenderColorType = gvc.WithRenderColorType RenderPAD = gvc.WithRenderPAD NewRenderPlugin = gvc.NewRenderPlugin PNGRenderPlugin = gvc.PNGRenderPlugin JPGRenderPlugin = gvc.JPGRenderPlugin )
functions from gvc package.
Functions ¶
func SetFileSystem ¶ added in v0.2.3
Types ¶
type CallbackStack ¶ added in v0.2.0
type CallbackStack = cgraph.CallbackStack
types from cgraph package.
type ClientDiscipline ¶ added in v0.2.0
types from cgraph package.
type CommonFields ¶ added in v0.2.0
type CommonFields = cgraph.CommonFields
types from cgraph package.
type DefaultRenderEngine ¶ added in v0.2.0
type DefaultRenderEngine = gvc.DefaultRenderEngine
types from gvc package.
type DevicePluginOption ¶ added in v0.2.0
type DevicePluginOption = gvc.DevicePluginOption
types from gvc package.
type GraphDescriptor ¶ added in v0.2.0
types from cgraph package.
type GraphOption ¶
type GraphOption func(g *Graphviz)
func WithDirectedType ¶ added in v0.2.0
func WithDirectedType(desc *GraphDescriptor) GraphOption
func WithName ¶ added in v0.2.0
func WithName(name string) GraphOption
type Graphviz ¶
type Graphviz struct {
// contains filtered or unexported fields
}
func NewWithPlugins ¶ added in v0.2.0
func (*Graphviz) RenderFilename ¶
func (*Graphviz) RenderImage ¶
type LabelLocation ¶ added in v0.2.0
type LabelLocation = cgraph.LabelLocation
types from cgraph package.
type OrderingType ¶ added in v0.2.0
type OrderingType = cgraph.OrderingType
types from cgraph package.
type PostScriptAlias ¶ added in v0.2.0
type PostScriptAlias = gvc.PostScriptAlias
types from gvc package.
type RenderPluginOption ¶ added in v0.2.0
type RenderPluginOption = gvc.RenderPluginOption
types from gvc package.
Click to show internal directories.
Click to hide internal directories.