0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2025-01-18 13:32:28 -05:00
penpot-exporter-figma-plugin/plugin-src/transformers/partials/transformSceneNode.ts

11 lines
289 B
TypeScript
Raw Normal View History

2024-05-06 08:06:14 +02:00
import { ShapeAttributes } from '@ui/lib/types/shapes/shape';
2024-04-15 16:30:51 +00:00
export const transformSceneNode = (
node: SceneNodeMixin
): Pick<ShapeAttributes, 'blocked' | 'hidden'> => {
2024-04-15 16:30:51 +00:00
return {
blocked: node.locked,
hidden: false // @TODO: check this. it won't export if we hide it
};
};