0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2024-12-22 05:33:02 -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'> => {
return {
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'> => {
return {
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