mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-22 05:33:02 -05:00
Merge branch 'main' into hotfix/detect-collision-on-vectors
This commit is contained in:
commit
41768fa129
4 changed files with 21 additions and 16 deletions
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
"penpot-exporter": patch
|
|
||||||
---
|
|
||||||
|
|
||||||
Fix frames fills and blendModes
|
|
|
@ -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
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
|
@ -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',
|
|
||||||
children: [
|
|
||||||
{
|
{
|
||||||
type: 'paragraph',
|
type: 'paragraph-set',
|
||||||
children: await translateStyleTextSegments(node, styledTextSegments),
|
children: [
|
||||||
...(styledTextSegments.length ? transformTextStyle(node, styledTextSegments[0]) : {}),
|
{
|
||||||
...(await transformFills(node))
|
type: 'paragraph',
|
||||||
|
children: await translateStyleTextSegments(node, styledTextSegments),
|
||||||
|
...transformTextStyle(node, styledTextSegments[0]),
|
||||||
|
...(await transformFills(node))
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
: undefined
|
||||||
]
|
|
||||||
},
|
},
|
||||||
growType: translateGrowType(node)
|
growType: translateGrowType(node)
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue