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

12 lines
321 B
TypeScript
Raw Normal View History

import { translateFills } from '@plugin/translators/fills';
2024-05-06 01:06:14 -05:00
import { ShapeAttributes } from '@ui/lib/types/shapes/shape';
export const transformFills = async (
node: MinimalFillsMixin & DimensionAndPositionMixin
): Promise<Partial<ShapeAttributes>> => {
return {
fills: await translateFills(node.fills)
};
};