mirror of
https://github.com/iconify/iconify.git
synced 2024-12-12 21:57:50 +00:00
chore: undo handle scale
, should be done from outside
This commit is contained in:
parent
308c26c774
commit
bb285192a2
@ -41,7 +41,6 @@ export async function getCustomIcon(
|
||||
collection,
|
||||
icon,
|
||||
additionalProps,
|
||||
options?.scale ?? 1.2,
|
||||
undefined,
|
||||
iconCustomizer,
|
||||
);
|
||||
|
@ -37,7 +37,6 @@ export async function searchForIcon(
|
||||
collection,
|
||||
id,
|
||||
additionalProps,
|
||||
options?.scale ?? 1.2,
|
||||
() => attributes,
|
||||
iconCustomizer
|
||||
);
|
||||
|
@ -8,14 +8,10 @@ export async function mergeIconProps(
|
||||
collection: string,
|
||||
icon: string,
|
||||
additionalProps: Record<string, string | undefined>,
|
||||
scale: number,
|
||||
propsProvider?: () => Awaitable<Record<string, string>>,
|
||||
iconCustomizer?: IconCustomizer,
|
||||
): Promise<string> {
|
||||
const props: Record<string, string> = (await propsProvider?.()) ?? {
|
||||
height: `${scale ?? 1}em`,
|
||||
width: `${scale ?? 1}em`,
|
||||
};
|
||||
const props: Record<string, string> = (await propsProvider?.()) ?? {};
|
||||
await iconCustomizer?.(collection, icon, props);
|
||||
Object.keys(additionalProps).forEach((p) => {
|
||||
const v = additionalProps[p];
|
||||
|
Loading…
Reference in New Issue
Block a user