From 7e79137a52637c15433ceb2f9b4939fd98519f26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20S=C3=A1nchez?= Date: Wed, 10 Apr 2024 12:39:23 +0200 Subject: [PATCH] shapes structure fix --- src/ui/converters/createPenpotText.ts | 2 +- src/ui/lib/types/text/textAttributes.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/converters/createPenpotText.ts b/src/ui/converters/createPenpotText.ts index f7baa97..32d97a4 100644 --- a/src/ui/converters/createPenpotText.ts +++ b/src/ui/converters/createPenpotText.ts @@ -43,7 +43,7 @@ export const createPenpotText = ( width: node.width, height: node.height, // rotation: 0, - type: 'text', + type: Symbol.for('text'), content: { type: 'root', // verticalAlign: translateVerticalAlign(node.textAlignVertical), diff --git a/src/ui/lib/types/text/textAttributes.d.ts b/src/ui/lib/types/text/textAttributes.d.ts index 8786fb6..4a94c40 100644 --- a/src/ui/lib/types/text/textAttributes.d.ts +++ b/src/ui/lib/types/text/textAttributes.d.ts @@ -2,6 +2,6 @@ import { TextContent } from './textContent'; export type TextAttributes = { id?: string; - type: 'text'; + type: symbol; content?: TextContent; };