path

package
v0.0.0-...-cc7149c Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PathBounds

type PathBounds struct {
	MaxX float64
	MaxY float64
}

PathBounds represents the maximum X and Y coordinates of a path

func ProcessSVGPath

func ProcessSVGPath(pathData string) PathBounds

ProcessSVGPath computes approximate maximum X and Y coordinates from an SVG path definition (without transform)

func ProcessSVGPathWithTransform

func ProcessSVGPathWithTransform(pathData, transformAttr string) PathBounds

ProcessSVGPathWithTransform computes approximate maximum X and Y coordinates from an SVG path definition and transform

type Transform

type Transform struct {
	ScaleX     float64
	ScaleY     float64
	TranslateX float64
	TranslateY float64
}

Transform represents a 2D transformation matrix

Jump to

Keyboard shortcuts

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