package d2svg
Import Path
oss.terrastruct.com/d2/d2renderers/d2svg (on go.dev )
Dependency Relation
imports 33 packages , and imported by 2 packages
Package-Level Type Names (total 2)
/* sort by: alphabet | popularity */
type RenderOpts (struct)
Fields (total 12 )
Center *bool
DarkThemeID *int64
DarkThemeOverrides *d2target .ThemeOverrides
Font string
MasterID string
MasterID is passed when the diagram should use something other than its own hash for unique targeting
Currently, that's when multi-boards are collapsed
NoXMLTag *bool
Pad *int64
Salt *string
Scale *float64
the svg will be scaled by this factor, if unset the svg will fit to screen
Sketch *bool
ThemeID *int64
ThemeOverrides *d2target .ThemeOverrides
As Inputs Of (at least 3 )
func Render (diagram *d2target .Diagram , opts *RenderOpts ) ([]byte , error )
func RenderMultiboard (diagram *d2target .Diagram , opts *RenderOpts ) ([][]byte , error )
func oss.terrastruct.com/d2/d2lib.Compile (ctx context .Context , input string , compileOpts *d2lib .CompileOptions , renderOpts *RenderOpts ) (*d2target .Diagram , *d2graph .Graph , error )
Package-Level Functions (total 5)
Package-Level Variables (total 5)
Package-Level Constants (only one)
The pages are generated with Golds v0.8.2 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .