0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2024-12-22 21:53:27 -05:00
penpot-exporter-figma-plugin/plugin-src/transformers/partials/transformEffects.ts

11 lines
360 B
TypeScript
Raw Normal View History

import { translateBlurEffects, translateShadowEffects } from '@plugin/translators';
2024-04-22 07:35:59 -05:00
2024-05-06 01:06:14 -05:00
import { ShapeAttributes } from '@ui/lib/types/shapes/shape';
2024-04-22 07:35:59 -05:00
export const transformEffects = (node: BlendMixin): Pick<ShapeAttributes, 'shadow' | 'blur'> => {
2024-04-22 07:35:59 -05:00
return {
shadow: translateShadowEffects(node.effects),
blur: translateBlurEffects(node.effects)
2024-04-22 07:35:59 -05:00
};
};