2024-04-15 16:30:51 +00:00
|
|
|
import {
|
|
|
|
transformBlend,
|
2024-06-06 12:17:17 +02:00
|
|
|
transformConstraints,
|
2024-04-22 12:50:38 +02:00
|
|
|
transformCornerRadius,
|
2024-05-29 10:30:56 +02:00
|
|
|
transformDimension,
|
2024-04-22 14:35:59 +02:00
|
|
|
transformEffects,
|
2024-05-30 17:54:37 +02:00
|
|
|
transformFigmaIds,
|
2024-04-17 15:27:53 +02:00
|
|
|
transformFills,
|
2024-06-14 10:18:34 +02:00
|
|
|
transformLayoutAttributes,
|
2024-06-17 09:58:23 +02:00
|
|
|
transformOverrides,
|
2024-04-19 12:18:12 +02:00
|
|
|
transformProportion,
|
2024-05-29 10:30:56 +02:00
|
|
|
transformRotationAndPosition,
|
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
|
|
|
|
2024-05-06 08:06:14 +02:00
|
|
|
import { RectShape } from '@ui/lib/types/shapes/rectShape';
|
2024-04-12 13:55:42 +02:00
|
|
|
|
2024-06-19 08:10:20 +02:00
|
|
|
export const transformRectangleNode = (node: RectangleNode): RectShape => {
|
2024-04-12 13:55:42 +02:00
|
|
|
return {
|
|
|
|
type: 'rect',
|
|
|
|
name: node.name,
|
2024-05-30 17:54:37 +02:00
|
|
|
...transformFigmaIds(node),
|
2024-06-05 12:36:49 +02:00
|
|
|
...transformFills(node),
|
2024-04-22 14:35:59 +02:00
|
|
|
...transformEffects(node),
|
2024-06-05 12:36:49 +02:00
|
|
|
...transformStrokes(node),
|
2024-05-29 10:30:56 +02:00
|
|
|
...transformDimension(node),
|
2024-06-19 08:10:20 +02:00
|
|
|
...transformRotationAndPosition(node),
|
2024-04-15 16:30:51 +00:00
|
|
|
...transformSceneNode(node),
|
2024-04-19 12:18:12 +02:00
|
|
|
...transformBlend(node),
|
2024-04-22 12:50:38 +02:00
|
|
|
...transformProportion(node),
|
2024-06-14 10:18:34 +02:00
|
|
|
...transformLayoutAttributes(node),
|
2024-06-06 12:17:17 +02:00
|
|
|
...transformCornerRadius(node),
|
2024-06-17 09:58:23 +02:00
|
|
|
...transformConstraints(node),
|
|
|
|
...transformOverrides(node)
|
2024-04-12 13:55:42 +02:00
|
|
|
};
|
|
|
|
};
|