favoritos
Version:
Favoritos is a JavaScript plugin that adds some HTML5 canvas magic to your favicon. With just a wee bit of code, we can make some really cool effects.
28 lines (26 loc) • 621 B
text/typescript
import { IFavoritosPositions } from './positions';
import { IFavoritosShapes } from './shapes';
export interface IFavoritosOption {
icon?: {
iconSelector?: string;
backgroundColor?: string | string[];
shape?: IFavoritosShapes;
lineWidth?: number;
width?: number;
height?: number;
};
badge?: {
fontSize?: number;
fontFamily?: string;
backgroundColor?: string | string[];
color?: string;
position?: IFavoritosPositions;
shape?: IFavoritosShapes;
minWidth?: number;
minHeight?: number;
};
debug?: {
enabled?: boolean;
debugSelector?: string;
};
}