Skip to content

Commit 6ccce57

Browse files
committed
Fix: type error
1 parent 26aaef0 commit 6ccce57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/transformer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const domTextToJSON = () => {
3838
fontWeight: +text.attr("font-weight"),
3939
letterSpacing: +text.attr("letter-spacing"),
4040
color: rgbToHex(text.style("stroke")) || text.attr("stroke"),
41-
embraceOffset: text.attr(dataAttributes.embraceOffset)
41+
embraceOffset: text.attr(dataAttributes.embraceOffset) === "true"
4242
};
4343
});
4444
};

0 commit comments

Comments
 (0)