2
0
mirror of https://github.com/iconify/iconify.git synced 2025-01-06 07:20:40 +00:00

svg framework: rename IconRenderMode type

This commit is contained in:
Vjacheslav Trushkin 2022-04-12 10:18:14 +03:00
parent 40dd0aba48
commit efa79b10ae
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ export const inlineClass = 'iconify-inline';
* 'mask' = inline style using `mask`
* 'inline' = inline SVG.
*/
export type IconRenderMode = 'style' | 'bg' | 'mask' | 'inline';
export type IconifyRenderMode = 'style' | 'bg' | 'mask' | 'inline';
/**
* Data used to verify if icon is the same
@ -31,7 +31,7 @@ export interface IconifyElementProps {
customisations: Required<IconifyIconCustomisations>;
// Render mode
mode?: IconRenderMode;
mode?: IconifyRenderMode;
}
/**

View File

@ -6,7 +6,7 @@ import {
alignmentFromString,
flipFromString,
} from '@iconify/utils/lib/customisations/shorthand';
import { IconRenderMode, inlineClass } from './config';
import { IconifyRenderMode, inlineClass } from './config';
import type { IconifyElementProps } from './config';
/**
@ -101,7 +101,7 @@ export function getElementProps(element: Element): IconifyElementProps | null {
// Get render mode. Not checking actual value because incorrect values are treated as inline
const mode = element.getAttribute('data-mode') as
| IconRenderMode
| IconifyRenderMode
| undefined;
return {