From 6ccce57cae6c5682312c8465f383e306c0f7248d Mon Sep 17 00:00:00 2001 From: Akalanka Perera Date: Tue, 9 Apr 2024 11:02:31 +0530 Subject: [PATCH] Fix: type error --- src/utils/transformer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/transformer.ts b/src/utils/transformer.ts index 9c8800d..407f690 100644 --- a/src/utils/transformer.ts +++ b/src/utils/transformer.ts @@ -38,7 +38,7 @@ export const domTextToJSON = () => { fontWeight: +text.attr("font-weight"), letterSpacing: +text.attr("letter-spacing"), color: rgbToHex(text.style("stroke")) || text.attr("stroke"), - embraceOffset: text.attr(dataAttributes.embraceOffset) + embraceOffset: text.attr(dataAttributes.embraceOffset) === "true" }; }); };