2024-04-15 16:30:51 +00:00
|
|
|
import {
|
|
|
|
transformBlend,
|
|
|
|
transformDimensionAndPosition,
|
2024-04-17 15:27:53 +02:00
|
|
|
transformFills,
|
2024-04-17 10:53:38 +02:00
|
|
|
transformSceneNode,
|
|
|
|
transformStrokes
|
2024-04-15 16:30:51 +00:00
|
|
|
} from '@plugin/transformers/partials';
|
2024-04-12 16:52:36 +02:00
|
|
|
|
|
|
|
import { RectShape } from '@ui/lib/types/rect/rectShape';
|
2024-04-12 13:55:42 +02:00
|
|
|
|
|
|
|
export const transformRectangleNode = (
|
|
|
|
node: RectangleNode,
|
|
|
|
baseX: number,
|
|
|
|
baseY: number
|
|
|
|
): RectShape => {
|
|
|
|
return {
|
|
|
|
type: 'rect',
|
|
|
|
name: node.name,
|
2024-04-17 15:27:53 +02:00
|
|
|
...transformFills(node),
|
2024-04-17 10:53:38 +02:00
|
|
|
...transformStrokes(node),
|
2024-04-15 16:30:51 +00:00
|
|
|
...transformDimensionAndPosition(node, baseX, baseY),
|
|
|
|
...transformSceneNode(node),
|
|
|
|
...transformBlend(node)
|
2024-04-12 13:55:42 +02:00
|
|
|
};
|
|
|
|
};
|