Versions in this module Expand all Collapse all v0 v0.8.1 Aug 7, 2026 v0.8.0 Aug 7, 2026 Changes in this version + var DagrePlugin = dagrePlugin + var ELKPlugin = elkPlugin + func FeatureSupportCheck(info *PluginInfo, g *d2graph.Graph) error + func HydratePluginOpts(ctx context.Context, ms *xmain.State, plugin Plugin) error + func Serve(p Plugin) xmain.RunFunc + type Plugin interface + Flags func(context.Context) ([]PluginSpecificFlag, error) + HydrateOpts func([]byte) error + Info func(context.Context) (*PluginInfo, error) + Layout func(context.Context, *d2graph.Graph) error + PostProcess func(context.Context, []byte) ([]byte, error) + func FindPlugin(ctx context.Context, ps []Plugin, name string) (Plugin, error) + func ListPlugins(ctx context.Context) ([]Plugin, error) + type PluginFeature string + const CONTAINER_DIMENSIONS + const DESCENDANT_EDGES + const NEAR_OBJECT + const ROUTES_EDGES + const TOP_LEFT + type PluginInfo struct + Features []PluginFeature + LongHelp string + Name string + Path string + ShortHelp string + Type string + func ListPluginInfos(ctx context.Context, ps []Plugin) ([]*PluginInfo, error) + type PluginSpecificFlag struct + Default interface{} + Name string + Tag string + Type string + Usage string + func ListPluginFlags(ctx context.Context, ps []Plugin) ([]PluginSpecificFlag, error) + func (f *PluginSpecificFlag) AddToOpts(opts *xmain.Opts) + type RoutingPlugin interface + RouteEdges func(context.Context, *d2graph.Graph, []*d2graph.Edge) error