mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-23 06:04:01 -05:00
5d7263bdbf
* Allow rotation for Ellipses, Rectangles and Texts * undo rotations for texts * Translate rotations for ellipses and rectangles
10 lines
360 B
TypeScript
10 lines
360 B
TypeScript
import { translateBlurEffects, translateShadowEffects } from '@plugin/translators';
|
|
|
|
import { ShapeAttributes } from '@ui/lib/types/shapes/shape';
|
|
|
|
export const transformEffects = (node: BlendMixin): Pick<ShapeAttributes, 'shadow' | 'blur'> => {
|
|
return {
|
|
shadow: translateShadowEffects(node.effects),
|
|
blur: translateBlurEffects(node.effects)
|
|
};
|
|
};
|