mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-22 21:53:27 -05:00
13 lines
369 B
TypeScript
13 lines
369 B
TypeScript
import { transformSceneNode } from '@plugin/transformers';
|
|
|
|
import { Children } from '@ui/lib/types/utils/children';
|
|
|
|
export const transformChildren = async (
|
|
node: ChildrenMixin,
|
|
baseX: number = 0,
|
|
baseY: number = 0
|
|
): Promise<Children> => {
|
|
return {
|
|
children: await Promise.all(node.children.map(child => transformSceneNode(child, baseX, baseY)))
|
|
};
|
|
};
|