mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2025-01-10 17:10:06 -05:00
dddc457281
* wip * wip * fix something? * wip * wip * wip * fixes * fixes * stroke image * wip * fixes * fixes * remove old code * fix translate fills * remove penpot public uri * remove old code * fix return undefineds * updated packages * finish refactor --------- Co-authored-by: Jordi Sala Morales <jordism91@gmail.com>
11 lines
340 B
TypeScript
11 lines
340 B
TypeScript
import { translateFills } from '@plugin/translators';
|
|
|
|
import { ShapeAttributes } from '@ui/lib/types/shapes/shape';
|
|
|
|
export const transformFills = async (
|
|
node: MinimalFillsMixin & DimensionAndPositionMixin
|
|
): Promise<Partial<ShapeAttributes>> => {
|
|
return {
|
|
fills: await translateFills(node.fills, node.width, node.height)
|
|
};
|
|
};
|