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

Merge branch 'main' into hotfix/detect-collision-on-vectors

This commit is contained in:
Jordi Sala Morales 2024-05-29 07:17:57 +00:00
commit 41768fa129
No known key found for this signature in database
GPG key ID: C5127140107F55FD
4 changed files with 21 additions and 16 deletions

View file

@ -1,5 +0,0 @@
---
"penpot-exporter": patch
---
Fix frames fills and blendModes

View file

@ -1,5 +1,13 @@
# penpot-exporter # penpot-exporter
## 0.4.1
### Patch Changes
- [#120](https://github.com/penpot/penpot-exporter-figma-plugin/pull/120) [`044b092`](https://github.com/penpot/penpot-exporter-figma-plugin/commit/044b09207b48aa3b2ac8dcb86f6c6d04db88b645) Thanks [@jordisala1991](https://github.com/jordisala1991)! - Fix text layers without text content
- [#118](https://github.com/penpot/penpot-exporter-figma-plugin/pull/118) [`35d9d47`](https://github.com/penpot/penpot-exporter-figma-plugin/commit/35d9d47e2afb0fa3db09a51803de5549230ba2c4) Thanks [@Cenadros](https://github.com/Cenadros)! - Fix frames fills and blendModes
## 0.4.0 ## 0.4.0
### Minor Changes ### Minor Changes

View file

@ -1,6 +1,6 @@
{ {
"name": "penpot-exporter", "name": "penpot-exporter",
"version": "0.4.0", "version": "0.4.1",
"description": "Penpot exporter", "description": "Penpot exporter",
"type": "module", "type": "module",
"scripts": { "scripts": {

View file

@ -22,19 +22,21 @@ export const transformText = async (node: TextNode): Promise<Partial<TextShape>>
content: { content: {
type: 'root', type: 'root',
verticalAlign: translateVerticalAlign(node.textAlignVertical), verticalAlign: translateVerticalAlign(node.textAlignVertical),
children: [ children: styledTextSegments.length
? [
{ {
type: 'paragraph-set', type: 'paragraph-set',
children: [ children: [
{ {
type: 'paragraph', type: 'paragraph',
children: await translateStyleTextSegments(node, styledTextSegments), children: await translateStyleTextSegments(node, styledTextSegments),
...(styledTextSegments.length ? transformTextStyle(node, styledTextSegments[0]) : {}), ...transformTextStyle(node, styledTextSegments[0]),
...(await transformFills(node)) ...(await transformFills(node))
} }
] ]
} }
] ]
: undefined
}, },
growType: translateGrowType(node) growType: translateGrowType(node)
}; };