d2cli

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MPL-2.0 Imports: 57 Imported by: 1

Documentation

Index

Constants

View Source
const GIF exportExtension = ".gif"
View Source
const LAYERS = "layers"
View Source
const PDF exportExtension = ".pdf"
View Source
const PNG exportExtension = ".png"
View Source
const PPTX exportExtension = ".pptx"
View Source
const SCENARIOS = "scenarios"
View Source
const STEPS = "steps"
View Source
const SVG exportExtension = ".svg"

Variables

View Source
var SUPPORTED_EXTENSIONS = []exportExtension{SVG, PNG, PDF, PPTX, GIF}

Functions

func AnimatePNGs added in v0.6.2

func AnimatePNGs(ms *xmain.State, pngs [][]byte, animIntervalMs int) ([]byte, error)

func ConvertSVG added in v0.6.2

func ConvertSVG(ms *xmain.State, page playwright.Page, svg []byte) ([]byte, error)

func DiscardSlog

func DiscardSlog(ctx context.Context) context.Context

TODO: remove after removing slog

func LayoutResolver added in v0.6.0

func LayoutResolver(ctx context.Context, ms *xmain.State, plugins []d2plugin.Plugin) func(engine string) (d2graph.LayoutGraph, error)

func RouterResolver added in v0.6.2

func RouterResolver(ctx context.Context, ms *xmain.State, plugins []d2plugin.Plugin) func(engine string) (d2graph.RouteEdges, error)

func Run

func Run(ctx context.Context, ms *xmain.State) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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