mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2025-01-10 17:10:06 -05:00
13 lines
440 B
TypeScript
13 lines
440 B
TypeScript
|
import { translateBlendMode } from '@plugin/translators';
|
||
|
|
||
|
import { ShapeAttributes } from '@ui/lib/types/shape/shapeAttributes';
|
||
|
|
||
|
export const transformBlend = (
|
||
|
node: SceneNodeMixin & MinimalBlendMixin
|
||
|
): Partial<ShapeAttributes> => {
|
||
|
return {
|
||
|
blendMode: translateBlendMode(node.blendMode),
|
||
|
opacity: !node.visible ? 0 : node.opacity // @TODO: check this. If we use the property hidden and it's hidden, it won't export
|
||
|
};
|
||
|
};
|