mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-22 05:33:02 -05:00
Respect nodes visibility and opacity (#152)
* Respect nodes visibility and opacity * add changelog * fixes --------- Co-authored-by: Alex Sánchez <sion333@gmail.com>
This commit is contained in:
parent
14bcad1b4a
commit
559a758d21
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