@ramirezcgn/fantasticon
Version:
Fork of fantasticon that implements a forked version of svgicons2svgfont that support more options than the original.
34 lines (33 loc) • 1.02 kB
TypeScript
import { CodepointsMap } from '../utils/codepoints';
import { FontAssetType, OtherAssetType, AssetType, GetIconIdFn } from './misc';
import { FormatOptions } from './format';
export interface RunnerMandatoryOptions {
inputDir: string;
outputDir: string;
}
export type RunnerOptionalOptions = {
name: string;
fontTypes: FontAssetType[];
assetTypes: OtherAssetType[];
formatOptions: FormatOptions;
pathOptions: {
[key in AssetType]?: string;
};
startCodepoint: number;
codepoints: CodepointsMap;
fontHeight: number;
descent: number;
normalize: boolean;
preserveAspectRatio: boolean;
round: number;
selector: string;
tag: string;
templates: {
[key in OtherAssetType]?: string;
};
prefix: string;
fontsUrl: string;
getIconId: GetIconIdFn;
};
export type RunnerOptionsInput = RunnerMandatoryOptions & Partial<RunnerOptionalOptions>;
export type RunnerOptions = RunnerMandatoryOptions & Partial<RunnerOptionalOptions>;