0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2024-12-22 05:33:02 -05:00

fix things related to types

This commit is contained in:
Jordi Sala Morales 2024-04-15 11:48:04 +00:00
parent 3738c3cc4f
commit e6a86795e6
No known key found for this signature in database
GPG key ID: C5127140107F55FD
2 changed files with 7 additions and 0 deletions

View file

@ -10,6 +10,10 @@ export const transformGroupNode = async (
return {
type: 'group',
name: node.name,
x: node.x + baseX,
y: node.y + baseY,
width: node.width,
height: node.height,
children: await Promise.all(node.children.map(child => transformSceneNode(child, baseX, baseY)))
};
};

View file

@ -1,5 +1,7 @@
import { Uuid } from '@ui/lib/types/utils/uuid';
import { Fill } from '../utils/fill';
export const FRAME_TYPE: unique symbol = Symbol.for('frame');
export type FrameAttributes = {
@ -9,4 +11,5 @@ export type FrameAttributes = {
hideFillOnExport?: boolean;
showContent?: boolean;
hideInViewer?: boolean;
fills: Fill[]; // @TODO: Discover why is not defined on Penpot types
};