UNPKG

@nagwa-limited/kashida-engine

Version:

An engine to unify array of Arabic strings to the same width using Kashidas

10 lines (9 loc) 537 B
/** * Calculates and returns the number of Kashidas to be added per match. * @param { Number } index The index of the match. * @param { Number } matchesCount Total number of matches. * @param { Number } totalNumbersOfKashida Total number of Kashidas to be added for the full text. * @returns { Number } the number of Kashidas to be added for this match. */ export declare const getNumberOfKashidasForMatch: (index: number, matchesCount: number, totalNumbersOfKashida: number) => number; export default getNumberOfKashidasForMatch;