0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2025-01-21 15:02:27 -05:00
penpot-exporter-figma-plugin/plugin-src/transformers/partials/transformEffects.ts

11 lines
344 B
TypeScript
Raw Permalink Normal View History

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