Documentation
¶
Overview ¶
Package core provides the SVG optimization pipeline.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Path is the file path of the SVG being optimized (for plugin context).
Path string
// Multipass enables running the plugin chain up to 10 times
// until the output size stops decreasing.
Multipass bool
// FloatPrecision sets the global float precision override.
// nil means use plugin defaults.
FloatPrecision *int
// Plugins is the list of plugin configurations.
// Default: ["preset-default"]
Plugins []plugin.PluginConfig
// Js2svg configures the stringifier output.
Js2svg *svgast.StringifyOptions
}
Config defines the optimization configuration.
type Output ¶
type Output struct {
Data string
}
Output is the result of an optimization run.
Click to show internal directories.
Click to hide internal directories.