Update textElement.ts

tim spaces at the end of fragments to improve center and right alignment.
This commit is contained in:
zsviczian
2023-11-18 18:32:19 +01:00
committed by GitHub
parent 7c9cf30909
commit e9ab51c30e

View File

@@ -461,7 +461,7 @@ export const wrapText = (text: string, font: FontString, maxWidth: number) => {
const push = (str: string) => {
if (str.trim()) {
lines.push(str);
lines.push(str.trim());
}
};