0
Fork 0
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:
Alex Sánchez 2024-06-11 10:22:33 +02:00
commit 62d7714c01
No known key found for this signature in database
GPG key ID: 68A95170EEB87E16
4 changed files with 4208 additions and 4264 deletions

View file

@ -0,0 +1,5 @@
---
"penpot-exporter": patch
---
Fix node visibility and opacity

View file

@ -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
}; };
}; };

View file

@ -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
}; };
}; };

File diff suppressed because it is too large Load diff