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/src/ui/converters/createPenpotCircle.ts

14 lines
500 B
TypeScript
Raw Normal View History

import { PenpotFile } from '../lib/penpot';
import { CIRCLE_TYPE } from '../lib/types/circle/circleAttributes';
import { CircleShape } from '../lib/types/circle/circleShape';
import { translateFillGradients } from '../translators';
2024-04-08 10:50:01 -05:00
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export const createPenpotCircle = (file: PenpotFile, { type, fills, ...rest }: CircleShape) => {
file.createCircle({
type: CIRCLE_TYPE,
fills: translateFillGradients(fills),
...rest
2024-04-08 10:50:01 -05:00
});
};