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
Alex Sánchez c71eb8e736
Layer Blur (#103)
* layer blur

* changeset
2024-05-13 13:23:19 +02:00

10 lines
344 B
TypeScript

import { translateBlurEffects, translateShadowEffects } from '@plugin/translators';
import { ShapeAttributes } from '@ui/lib/types/shapes/shape';
export const transformEffects = (node: BlendMixin): Partial<ShapeAttributes> => {
return {
shadow: translateShadowEffects(node.effects),
blur: translateBlurEffects(node.effects)
};
};