mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2025-01-09 08:30:08 -05:00
wip
This commit is contained in:
parent
6dfe4dd582
commit
29fd52717f
2 changed files with 6304 additions and 6304 deletions
|
@ -48,7 +48,7 @@ export const createPenpotText = (
|
||||||
type: Symbol.for('text'),
|
type: Symbol.for('text'),
|
||||||
content: {
|
content: {
|
||||||
type: 'root',
|
type: 'root',
|
||||||
verticalAlign: translateVerticalAlign(node.textAlignVertical),
|
// verticalAlign: translateVerticalAlign(node.textAlignVertical),
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
type: 'paragraph-set',
|
type: 'paragraph-set',
|
||||||
|
@ -58,13 +58,13 @@ export const createPenpotText = (
|
||||||
fontStyle: 'normal',
|
fontStyle: 'normal',
|
||||||
children: children,
|
children: children,
|
||||||
textTransform: translateTextTransform(node),
|
textTransform: translateTextTransform(node),
|
||||||
textAlign: translateHorizontalAlign(node.textAlignHorizontal),
|
// textAlign: translateHorizontalAlign(node.textAlignHorizontal),
|
||||||
fontId: 'gfont-' + slugify(node.fontName.family.toLowerCase()),
|
// fontId: 'gfont-' + slugify(node.fontName.family.toLowerCase()),
|
||||||
fontSize: node.fontSize.toString(),
|
fontSize: node.fontSize.toString(),
|
||||||
fontWeight: node.fontWeight.toString(),
|
fontWeight: node.fontWeight.toString(),
|
||||||
type: 'paragraph',
|
type: 'paragraph',
|
||||||
textDecoration: translateTextDecoration(node),
|
textDecoration: translateTextDecoration(node),
|
||||||
letterSpacing: node.letterSpacing,
|
// letterSpacing: node.letterSpacing,
|
||||||
fills: translateFills(node.fills /*, node.width, node.height*/),
|
fills: translateFills(node.fills /*, node.width, node.height*/),
|
||||||
fontFamily: node.fontName.family
|
fontFamily: node.fontName.family
|
||||||
}
|
}
|
||||||
|
|
12600
src/ui/lib/penpot.js
12600
src/ui/lib/penpot.js
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue