mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-22 21:53:27 -05:00
559a758d21
* Respect nodes visibility and opacity * add changelog * fixes --------- Co-authored-by: Alex Sánchez <sion333@gmail.com>
10 lines
245 B
TypeScript
10 lines
245 B
TypeScript
import { ShapeAttributes } from '@ui/lib/types/shapes/shape';
|
|
|
|
export const transformSceneNode = (
|
|
node: SceneNodeMixin
|
|
): Pick<ShapeAttributes, 'blocked' | 'hidden'> => {
|
|
return {
|
|
blocked: node.locked,
|
|
hidden: !node.visible
|
|
};
|
|
};
|