0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2024-12-22 21:53:27 -05:00
penpot-exporter-figma-plugin/plugin-src/transformers/partials/transformSceneNode.ts
Jordi Sala Morales 559a758d21
Respect nodes visibility and opacity (#152)
* Respect nodes visibility and opacity

* add changelog

* fixes

---------

Co-authored-by: Alex Sánchez <sion333@gmail.com>
2024-06-11 09:57:11 +02:00

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