UNPKG

@sumcode/svgify

Version:

A lightweight React component designed to dynamically render and style SVG icons.

17 lines (16 loc) 572 B
/** * Inlines CSS styles from <style> blocks into matching elements */ export declare const inlineStyleBlocks: (doc: Document) => void; /** * Processes colors on an element based on opacity and color values */ export declare const processElementColors: (el: Element, FontWeight: string) => void; /** * Cleans the root SVG element by removing fill/stroke attributes */ export declare const cleanRootSvg: (doc: Document) => void; /** * Adjusts SVG dimensions based on scale factor */ export declare const adjustSvgDimensions: (svg: string, Scale: number) => string;