Skip to content

Commit

Permalink
Fix: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed Apr 9, 2024
1 parent 26aaef0 commit 6ccce57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
};
});
};
Expand Down

0 comments on commit 6ccce57

Please sign in to comment.