svgan

package
v0.0.0-...-132434b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SvgCheckResult

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

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