AddDefaultFillToShapes

data class AddDefaultFillToShapes(val shapes: List<String>) : SvgoPlugin(source)

Custom plugin that adds fill="#000" to shapes missing an explicit fill.

SVG shapes default to black fill per spec, but some tools omit the attribute. This plugin makes the default explicit so downstream parsing doesn't lose it.

Constructors

Link copied to clipboard
constructor(shapes: List<String>)

Properties

Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard

element names to target (e.g. "rect", "circle").