From b971737d326ff2e2558b899fd04ba55676388b5e Mon Sep 17 00:00:00 2001 From: fujimoto kyosuke <31386431+lusingander@users.noreply.github.com> Date: Sat, 11 Apr 2020 17:59:22 +0900 Subject: [PATCH] Restore textAlign property (#1374) --- src/data/restore.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/data/restore.ts b/src/data/restore.ts index f3978c5e..6c10be14 100644 --- a/src/data/restore.ts +++ b/src/data/restore.ts @@ -57,7 +57,9 @@ export function restore( element.points = points; } else { if (isTextElement(element)) { - element.textAlign = DEFAULT_TEXT_ALIGN; + if (!element.textAlign) { + element.textAlign = DEFAULT_TEXT_ALIGN; + } } normalizeDimensions(element);