Urara-Blog/node_modules/.pnpm-store/v3/files/16/fd3348be9d22d93525a8ab938e68625023c37a3ce5e6935460a99f0911871cb45318de8643347ee07af4eedafba3524b786e5ba93cc92de946582d207b9454
2022-08-14 01:14:53 +08:00

30 lines
1 KiB
Text

import { FullIconifyIcon } from '../icon/index.js';
import { FullIconCustomisations } from '../customisations/index.js';
import '@iconify/types';
/**
* Interface for getSVGData() result
*/
interface IconifyIconBuildResult {
attributes: {
width: string;
height: string;
preserveAspectRatio: string;
viewBox: string;
};
body: string;
inline?: boolean;
}
/**
* Get SVG attributes and content from icon + customisations
*
* Does not generate style to make it compatible with frameworks that use objects for style, such as React.
* Instead, it generates 'inline' value. If true, rendering engine should add verticalAlign: -0.125em to icon.
*
* Customisations should be normalised by platform specific parser.
* Result should be converted to <svg> by platform specific parser.
* Use replaceIDs to generate unique IDs for body.
*/
declare function iconToSVG(icon: FullIconifyIcon, customisations: FullIconCustomisations): IconifyIconBuildResult;
export { IconifyIconBuildResult, iconToSVG };