2024-04-15 16:30:51 +00:00
|
|
|
import {
|
|
|
|
transformBlend,
|
|
|
|
transformDimensionAndPosition,
|
|
|
|
transformSceneNode
|
|
|
|
} from '@plugin/transformers/partials';
|
2024-04-15 16:18:58 +00:00
|
|
|
import { translateFills } from '@plugin/translators';
|
2024-04-12 16:52:36 +02:00
|
|
|
|
|
|
|
import { CircleShape } from '@ui/lib/types/circle/circleShape';
|
2024-04-12 13:55:42 +02:00
|
|
|
|
|
|
|
export const transformEllipseNode = (
|
|
|
|
node: EllipseNode,
|
|
|
|
baseX: number,
|
|
|
|
baseY: number
|
|
|
|
): CircleShape => {
|
|
|
|
return {
|
|
|
|
type: 'circle',
|
|
|
|
name: node.name,
|
2024-04-15 11:58:51 +00:00
|
|
|
fills: translateFills(node.fills, node.width, node.height),
|
2024-04-15 16:18:58 +00:00
|
|
|
...transformDimensionAndPosition(node, baseX, baseY),
|
2024-04-15 16:30:51 +00:00
|
|
|
...transformSceneNode(node),
|
2024-04-15 16:18:58 +00:00
|
|
|
...transformBlend(node)
|
2024-04-12 13:55:42 +02:00
|
|
|
};
|
|
|
|
};
|