0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2025-01-03 05:10:13 -05:00
penpot-exporter-figma-plugin/plugin-src/transformers/transformEllipseNode.ts

27 lines
633 B
TypeScript

import {
transformBlend,
transformDimensionAndPosition,
transformFills,
transformProportion,
transformSceneNode,
transformStrokes
} from '@plugin/transformers/partials';
import { CircleShape } from '@ui/lib/types/circle/circleShape';
export const transformEllipseNode = (
node: EllipseNode,
baseX: number,
baseY: number
): CircleShape => {
return {
type: 'circle',
name: node.name,
...transformFills(node),
...transformStrokes(node),
...transformDimensionAndPosition(node, baseX, baseY),
...transformSceneNode(node),
...transformBlend(node),
...transformProportion(node)
};
};