svgan

package
v0.0.0-...-3605b41 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Namespaces

type Namespaces struct {
	Default    string
	Additional map[string]string
}

func GetNamespaces

func GetNamespaces(reader io.Reader) (Namespaces, error)

type SvgCheckResult

type SvgCheckResult struct {
	SvgHeight          string            `json:"svgheight"`
	SvgWidth           string            `json:"svgwidth"`
	ViewBox            string            `json:"viewbox"`
	Namespace          string            `json:"namespace"`
	Namespaces         map[string]string `json:"namespaces"`
	TextNodes          []string          `json:"text"`
	ForeignObjectCount int               `json:"foreignobject_count"`
	ImageCount         int               `json:"image_count"`
	TagCountMap        map[string]int    `json:"tag_counts"`
	Colors             []string          `json:"colors"`
	Errors             []string          `json:"errors"`
}

func SvgCheck

func SvgCheck(logger *slog.Logger, raw []byte) (*SvgCheckResult, error)

Jump to

Keyboard shortcuts

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