diff --git a/plugin-src/transformers/transformGroupNode.ts b/plugin-src/transformers/transformGroupNode.ts index 0925a7f..ea5540e 100644 --- a/plugin-src/transformers/transformGroupNode.ts +++ b/plugin-src/transformers/transformGroupNode.ts @@ -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))) }; }; diff --git a/ui-src/lib/types/frame/frameAttributes.ts b/ui-src/lib/types/frame/frameAttributes.ts index d828ff5..f9e7d14 100644 --- a/ui-src/lib/types/frame/frameAttributes.ts +++ b/ui-src/lib/types/frame/frameAttributes.ts @@ -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 };