mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-22 21:53:27 -05:00
11 lines
281 B
TypeScript
11 lines
281 B
TypeScript
|
import { FillRules } from '@ui/lib/types/shapes/pathShape';
|
||
|
|
||
|
export const translateWindingRule = (windingRule: WindingRule | 'NONE'): FillRules | undefined => {
|
||
|
switch (windingRule) {
|
||
|
case 'EVENODD':
|
||
|
return 'evenodd';
|
||
|
case 'NONZERO':
|
||
|
return 'nonzero';
|
||
|
}
|
||
|
};
|