0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2024-12-22 13:43:03 -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 { return {
type: 'group', type: 'group',
name: node.name, 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))) 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 { Uuid } from '@ui/lib/types/utils/uuid';
import { Fill } from '../utils/fill';
export const FRAME_TYPE: unique symbol = Symbol.for('frame'); export const FRAME_TYPE: unique symbol = Symbol.for('frame');
export type FrameAttributes = { export type FrameAttributes = {
@ -9,4 +11,5 @@ export type FrameAttributes = {
hideFillOnExport?: boolean; hideFillOnExport?: boolean;
showContent?: boolean; showContent?: boolean;
hideInViewer?: boolean; hideInViewer?: boolean;
fills: Fill[]; // @TODO: Discover why is not defined on Penpot types
}; };