2024-04-15 11:30:51 -05:00
|
|
|
import {
|
|
|
|
transformBlend,
|
2024-05-29 03:30:56 -05:00
|
|
|
transformDimension,
|
2024-04-22 07:35:59 -05:00
|
|
|
transformEffects,
|
2024-05-30 10:54:37 -05:00
|
|
|
transformFigmaIds,
|
2024-04-17 08:27:53 -05:00
|
|
|
transformFills,
|
2024-04-19 05:18:12 -05:00
|
|
|
transformProportion,
|
2024-05-29 03:30:56 -05:00
|
|
|
transformRotationAndPosition,
|
2024-04-17 03:53:38 -05:00
|
|
|
transformSceneNode,
|
|
|
|
transformStrokes
|
2024-04-15 11:30:51 -05:00
|
|
|
} from '@plugin/transformers/partials';
|
2024-04-12 09:52:36 -05:00
|
|
|
|
2024-05-06 01:06:14 -05:00
|
|
|
import { CircleShape } from '@ui/lib/types/shapes/circleShape';
|
2024-04-12 06:55:42 -05:00
|
|
|
|
2024-06-05 05:36:49 -05:00
|
|
|
export const transformEllipseNode = (
|
2024-04-12 06:55:42 -05:00
|
|
|
node: EllipseNode,
|
|
|
|
baseX: number,
|
|
|
|
baseY: number
|
2024-06-05 05:36:49 -05:00
|
|
|
): CircleShape => {
|
2024-04-12 06:55:42 -05:00
|
|
|
return {
|
|
|
|
type: 'circle',
|
|
|
|
name: node.name,
|
2024-05-30 10:54:37 -05:00
|
|
|
...transformFigmaIds(node),
|
2024-06-05 05:36:49 -05:00
|
|
|
...transformFills(node),
|
2024-04-22 07:35:59 -05:00
|
|
|
...transformEffects(node),
|
2024-06-05 05:36:49 -05:00
|
|
|
...transformStrokes(node),
|
2024-05-29 03:30:56 -05:00
|
|
|
...transformDimension(node),
|
|
|
|
...transformRotationAndPosition(node, baseX, baseY),
|
2024-04-15 11:30:51 -05:00
|
|
|
...transformSceneNode(node),
|
2024-04-19 05:18:12 -05:00
|
|
|
...transformBlend(node),
|
|
|
|
...transformProportion(node)
|
2024-04-12 06:55:42 -05:00
|
|
|
};
|
|
|
|
};
|