Files
inventory-plus-plus/server/ui/svg/view_box.go
T
angel fb2f4255f4
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
Tests / Go tests (push) Failing after 15s
prototyped svg reports
2026-08-20 00:23:54 -06:00

21 lines
290 B
Go

package svg
import (
"fmt"
)
type (
ViewBox struct {
X, Y float64
Width, Height float64
}
)
func (b ViewBox) PrintKey() string {
return "viewBox"
}
func (b ViewBox) PrintValue() (string, bool) {
return fmt.Sprintf(`"%v %v %v %v"`, b.X, b.Y, b.Width, b.Height), true
}