svg

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Renderer

type Renderer struct{}

Renderer renders a document to SVG.

For multi-page documents, pages are vertically stacked in one SVG canvas.

func New

func New() Renderer

New creates a renderer for the SVG backend.

Example:

renderer := svg.New()

func (Renderer) Backend

func (Renderer) Backend() layout.Backend

Backend returns the renderer backend type.

func (Renderer) Capabilities

func (Renderer) Capabilities() []layout.Feature

Capabilities reports features supported by this backend.

func (Renderer) Render

func (Renderer) Render(doc layout.Document) ([]byte, error)

Render renders the document into SVG bytes.

Jump to

Keyboard shortcuts

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