react-cursive-handwrite
Version:
React component to animate cursive handwriting text
13 lines (12 loc) • 443 B
TypeScript
export type LetterPath = {
path: string;
width: number;
height: number;
};
export type LetterPaths = Record<string, LetterPath>;
export declare const initializeFont: (fontPath: string) => Promise<LetterPaths>;
export declare const getLetterPath: (letter: string, fontPaths: LetterPaths) => LetterPath | null;
export declare const generateWordPath: (word: string, fontPaths: LetterPaths) => {
path: string;
fill: string;
};