0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2024-12-23 06:04:01 -05:00
penpot-exporter-figma-plugin/plugin-src/transformers/partials/transformFills.ts
Alex Sánchez e2b5b4a7ea
Solid Fills (#39)
* structure for fills

* structure for fills in text and improvements

* fixes

* improvements
2024-04-17 15:27:53 +02:00

11 lines
328 B
TypeScript

import { translateFills } from '@plugin/translators';
import { ShapeAttributes } from '@ui/lib/types/shape/shapeAttributes';
export const transformFills = (
node: MinimalFillsMixin & DimensionAndPositionMixin
): Partial<ShapeAttributes> => {
return {
fills: translateFills(node.fills, node.width, node.height)
};
};