0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2024-12-22 21:53:27 -05:00
penpot-exporter-figma-plugin/plugin-src/transformers/partials/transformFills.ts
Jordi Sala Morales 5d7263bdbf
Allow rotation for Ellipses and Rectangles (#122)
* Allow rotation for Ellipses, Rectangles and Texts

* undo rotations for texts

* Translate rotations for ellipses and rectangles
2024-05-29 10:30:56 +02:00

11 lines
327 B
TypeScript

import { translateFills } from '@plugin/translators/fills';
import { ShapeAttributes } from '@ui/lib/types/shapes/shape';
export const transformFills = async (
node: MinimalFillsMixin & DimensionAndPositionMixin
): Promise<Pick<ShapeAttributes, 'fills'>> => {
return {
fills: await translateFills(node.fills)
};
};