Documentation
¶
Overview ¶
Package render turns expanded D2 into SVG using D2's Go packages, so inkline needs no d2 executable.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// Path is the source file's path. D2 imports resolve against its
// directory within FS, or on disk when FS is nil.
Path string
FS fs.FS
// IconPath is the source file's path on disk. Icon files named by the
// diagram resolve against its directory.
IconPath string
// Font is the design system's font family, or nil for D2's default.
Font *d2fonts.FontFamily
// Router draws connections that cross between nested layouts (grid
// cells, for example). Nil keeps D2's default: straight lines.
Router d2graph.RouteEdges
}
Options configure one render.
Click to show internal directories.
Click to hide internal directories.