When a TextNode contains empty characters field, getStyledTextSegments returns empty array. This causes a TypeError, when we try to access the properties of the first element of this array.
This change adds a check if the first element of the styledTextSegments exists before using its properties.
Signed-off-by: Roma <romachne@gmail.com>
Help users avoid a confusing import experience by warning of any fonts that will need to be
added to Penpot since they aren't in the default gfont set.
Signed-off-by: Ryan Breen <rbreen@zmags.com>
Co-authored-by: Ryan Breen <rbreen@zmags.com>
This supports invisible fills in Figma by setting their opacity to 0
when exporting to Penpot. Closes GH-17.
Signed-off-by: Ryan Breen <rbreen@zmags.com>
This fixes a bug where only top-level images in the node tree were
being added to the penpot export as images. They were instead
treated as empty shapes. Closes#10.
Signed-off-by: Ryan Breen <rbreen@zmags.com>