import { GroupShape } from '@ui/lib/types/group/groupShape'; import { transformSceneNode } from './transformSceneNode'; export const transformGroupNode = async ( node: GroupNode, baseX: number, baseY: number ): Promise => { 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))) }; };