You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Old: func Compile(ctx context.Context, input string, compileOpts *CompileOptions) (*d2target.Diagram, *d2graph.Graph, error)
in addition the function: d2dagrelayout.DefaultLayout(ctx context.Context, g *d2graph.Graph) (err error)
does not match anymore the
The API for d2lib.Compile() changed and breaks the example - so it does not work anymore
Generate diagrams programmatically
New:
func Compile(ctx context.Context, input string, compileOpts *CompileOptions, renderOpts *d2svg.RenderOpts) (*d2target.Diagram, *d2graph.Graph, error)
Old:
func Compile(ctx context.Context, input string, compileOpts *CompileOptions) (*d2target.Diagram, *d2graph.Graph, error)
in addition the function:
d2dagrelayout.DefaultLayout(ctx context.Context, g *d2graph.Graph) (err error)
does not match anymore the
from sample code:
so there seems to be no chance getting the example to compile
The text was updated successfully, but these errors were encountered: