OverrideConvertShapeToPath

data class OverrideConvertShapeToPath(val convertArcs: Boolean, val floatPrecision: Int) : SvgoPlugin(source)

Overrides the built-in convertShapeToPath plugin to skip shapes with stroke-dasharray (which s2c doesn't support on paths).

In Node.js, this plugin dynamically loads SVGO's built-in implementation via createRequire and wraps it with the dasharray check. In browser environments this plugin is skipped since createRequire is unavailable.

Constructors

Link copied to clipboard
constructor(convertArcs: Boolean, floatPrecision: Int)

Properties

Link copied to clipboard

whether to convert arc commands.

Link copied to clipboard
Link copied to clipboard

decimal precision for coordinates.

Link copied to clipboard
open override val name: String