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

36 lines
921 B
TypeScript
Raw Permalink Normal View History

2024-04-15 16:30:51 +00:00
import {
transformBlend,
transformConstraints,
transformDimension,
2024-04-22 14:35:59 +02:00
transformEffects,
transformFigmaIds,
transformFills,
transformLayoutAttributes,
transformOverrides,
transformProportion,
transformRotationAndPosition,
transformSceneNode,
transformStrokes
2024-04-15 16:30:51 +00:00
} from '@plugin/transformers/partials';
2024-05-06 08:06:14 +02:00
import { CircleShape } from '@ui/lib/types/shapes/circleShape';
export const transformEllipseNode = (node: EllipseNode): CircleShape => {
return {
type: 'circle',
name: node.name,
...transformFigmaIds(node),
...transformFills(node),
2024-04-22 14:35:59 +02:00
...transformEffects(node),
...transformStrokes(node),
...transformDimension(node),
...transformRotationAndPosition(node),
2024-04-15 16:30:51 +00:00
...transformSceneNode(node),
...transformBlend(node),
...transformProportion(node),
...transformLayoutAttributes(node),
...transformConstraints(node),
...transformOverrides(node)
};
};