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:
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'> => {
|
||||
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
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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
|
||||
};
|
||||
};
|
||||
|
|
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