convertSVGToMask

external fun convertSVGToMask(svg: SVG, options: dynamic = definedExternally): Boolean

Convert an SVG to a mask, fixing icons that use white where they should be transparent.

Solid colors become white, transparent colors become black, and the result is wrapped in a <mask> with a filled <rect>. Defaults: color is currentColor, solid is black/currentcolor, transparent is white, id is "mask" and force is false. A custom callback can map colors to other values or opacity levels.

Returns true when the SVG was converted; otherwise restores the original and returns false.