d2svg

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2022 License: MPL-2.0 Imports: 25 Imported by: 29

Documentation

Overview

d2svg implements an SVG renderer for d2 diagrams. The input is d2exporter's output

Index

Constants

View Source
const (
	DEFAULT_PADDING            = 100
	MIN_ARROWHEAD_STROKE_WIDTH = 2
)

Variables

This section is empty.

Functions

func Render

func Render(diagram *d2target.Diagram, pad int) ([]byte, error)

TODO minify output at end

Types

type DiagramObject added in v0.1.0

type DiagramObject interface {
	GetID() string
	GetZIndex() int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL