import { transformDimensionAndPosition } from '@plugin/transformers/partials'; import { GroupShape } from '@ui/lib/types/group/groupShape'; import { transformSceneNode } from '.'; export const transformGroupNode = async ( node: GroupNode, baseX: number, baseY: number ): Promise => { return { type: 'group', name: node.name, children: await Promise.all( node.children.map(child => transformSceneNode(child, baseX, baseY)) ), ...transformDimensionAndPosition(node, baseX, baseY) }; };