You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
303 B
JavaScript
13 lines
303 B
JavaScript
'use strict';
|
|
|
|
module.exports = function adjustLineHeights(lines, lineHeight) {
|
|
return lines.map((line, i) => {
|
|
if (i !== lines.length - 1) {
|
|
return line.height * lineHeight * 1.13;
|
|
} else {
|
|
/* The last line doesn't get a lineHeight multiplier... */
|
|
return line.height * 1.13;
|
|
}
|
|
});
|
|
};
|