package diagrams

import "github.com/gohugoio/hugo/tpl/diagrams"

Index

Package Files

diagrams.go init.go

type Diagrams

type Diagrams struct {
    // contains filtered or unexported fields
}

func (*Diagrams) Goat

func (d *Diagrams) Goat(v any) SVGDiagram

type SVGDiagram

type SVGDiagram interface {
    // Wrapped returns the diagram as an SVG, including the <svg> container.
    Wrapped() template.HTML

    // Inner returns the inner markup of the SVG.
    // This allows for the <svg> container to be created manually.
    Inner() template.HTML

    // Width returns the width of the SVG.
    Width() int

    // Height returns the height of the SVG.
    Height() int
}
Version
v0.101.0 (latest)
Published
Jun 16, 2022
Platform
linux/amd64
Imports
8 packages (graph)
Last checked
3 hours ago

Tools for package owners.