mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2025-01-03 13:20:37 -05:00
Merge branch 'main' into feature/autolayout
This commit is contained in:
commit
62d7714c01
4 changed files with 4208 additions and 4264 deletions
5
.changeset/lovely-geese-whisper.md
Normal file
5
.changeset/lovely-geese-whisper.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"penpot-exporter": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix node visibility and opacity
|
|
@ -7,6 +7,6 @@ export const transformBlend = (
|
||||||
): Pick<ShapeAttributes, 'blendMode' | 'opacity'> => {
|
): Pick<ShapeAttributes, 'blendMode' | 'opacity'> => {
|
||||||
return {
|
return {
|
||||||
blendMode: translateBlendMode(node.blendMode),
|
blendMode: translateBlendMode(node.blendMode),
|
||||||
opacity: !node.visible ? 0 : node.opacity // @TODO: check this. If we use the property hidden and it's hidden, it won't export
|
opacity: node.opacity
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,6 +5,6 @@ export const transformSceneNode = (
|
||||||
): Pick<ShapeAttributes, 'blocked' | 'hidden'> => {
|
): Pick<ShapeAttributes, 'blocked' | 'hidden'> => {
|
||||||
return {
|
return {
|
||||||
blocked: node.locked,
|
blocked: node.locked,
|
||||||
hidden: false // @TODO: check this. it won't export if we hide it
|
hidden: !node.visible
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
8463
ui-src/lib/penpot.js
8463
ui-src/lib/penpot.js
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue