mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-23 14:14:05 -05:00
559a758d21
* Respect nodes visibility and opacity * add changelog * fixes --------- Co-authored-by: Alex Sánchez <sion333@gmail.com>
12 lines
348 B
TypeScript
12 lines
348 B
TypeScript
import { translateBlendMode } from '@plugin/translators';
|
|
|
|
import { ShapeAttributes } from '@ui/lib/types/shapes/shape';
|
|
|
|
export const transformBlend = (
|
|
node: SceneNodeMixin & MinimalBlendMixin
|
|
): Pick<ShapeAttributes, 'blendMode' | 'opacity'> => {
|
|
return {
|
|
blendMode: translateBlendMode(node.blendMode),
|
|
opacity: node.opacity
|
|
};
|
|
};
|