0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2024-12-22 13:43:03 -05:00
Commit graph

15 commits

Author SHA1 Message Date
Jordi Sala Morales
308fa93625
Update packages and add linters (#1)
* Configure linters

* Move to older eslint config, add stylelint, correct configuration for editorconfig

* simplify packages

* improve eslint config

* Fix typescript

* remove line

* github workflow

* package-lock.json

* lint fix

* make plugin compatible with Figma

* Add stylelint to ci

---------

Co-authored-by: Alex Sánchez <alejandro@runroom.com>
2024-04-08 11:43:30 +02:00
romachne
7dc730994f
🐛 Fix the use of empty styledTextSegments array (#31)
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>
2023-11-03 11:35:17 +01:00
Ryan Breen
70ffc7bb77
List out fonts not in Penpot's default list (#20)
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>
2023-01-30 09:11:55 +01:00
Pablo Alba
14036905af 🐛 Fix invalid variant on google font 2023-01-13 14:34:02 +01:00
Ryan Breen
c98236ef4e 🐛 Support invisible fills by setting opacity to 0
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>
2023-01-05 08:42:31 -05:00
Ryan Breen
567a6711ea 🐛 Fix text transform and decoration
This change implements support for text casing and transformation
(underline / strikethrough).

Signed-off-by: Ryan Breen <rbreen@zmags.com>
2023-01-04 12:49:55 -05:00
Ryan Breen
cac49c2e9e Convert Figma nodes with image fills into Penpot images by exporting the node to png
Signed-off-by: Ryan Breen <rbreen@zmags.com>
2022-12-29 14:05:42 -05:00
Ryan Breen
30b1f3d5b1 🐛 Fix images nested in the node tree
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>
2022-12-11 12:15:50 -05:00
Alejandro Alonso
42d63b5595 🎉 Add assets library support 2022-12-05 09:29:36 +01:00
Pablo Alba
b50a17f030 Cleanup 2022-10-26 13:11:19 +02:00
Pablo Alba
a78b98b5f5 Add check for figma.mixed in fills 2022-10-26 13:01:58 +02:00
Alejandro Alonso
14a2a4b6fe 🎉 Support for multi style texts 2022-10-14 10:09:36 +02:00
Pablo Alba
415c8084dd 🐛 Add default values for text with segments (pending support segments) 2022-10-13 22:00:39 +02:00
Pablo Alba
6bd99ff5df Change logo reference on README.md 2022-10-11 16:17:51 +02:00
Pablo Alba
cde0003c50 v0.0.1 2022-10-11 15:55:08 +02:00