mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-23 06:04:01 -05:00
12 lines
328 B
TypeScript
12 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)
|
||
|
};
|
||
|
};
|