mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-22 21:53:27 -05:00
c71eb8e736
* layer blur * changeset
10 lines
344 B
TypeScript
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)
|
|
};
|
|
};
|