mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-18 02:31:56 +10:00
[2.5.2] Fix fontSize not reflecting in exported PDF
This commit is contained in:
@ -18,6 +18,17 @@ export const isFileImage = (file) => {
|
||||
return file && acceptedImageTypes.includes(file.type);
|
||||
};
|
||||
|
||||
export const scaler = (value) => {
|
||||
const logMax = 2.5;
|
||||
const logMin = 0.6;
|
||||
const steps = 20;
|
||||
const logRange = logMax / logMin;
|
||||
const logStepSize = logRange ** (1 / steps);
|
||||
const min = 0;
|
||||
|
||||
return logStepSize ** (value - min) * logMin;
|
||||
};
|
||||
|
||||
export const formatDate = ({ date, language = 'en', includeDay = false }) => {
|
||||
const template = includeDay ? 'DD MMMM YYYY' : 'MMMM YYYY';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user