import { transformDimensionAndPosition, transformSceneNode, transformStrokes } from '@plugin/transformers/partials'; import { transformChildren } from '@plugin/transformers/partials'; import { translateFills } from '@plugin/translators'; import { FrameShape } from '@ui/lib/types/frame/frameShape'; export const transformFrameNode = async ( node: FrameNode, baseX: number, baseY: number ): Promise => { return { type: 'frame', name: node.name, fills: translateFills(node.fills, node.width, node.height), ...transformStrokes(node), ...(await transformChildren(node, baseX, baseY)), ...transformDimensionAndPosition(node, baseX, baseY), ...transformSceneNode(node) }; };