0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2024-12-22 05:33:02 -05:00

blend modes fix

This commit is contained in:
Alex Sánchez 2024-04-15 17:35:26 +02:00
parent 6f58a62dd5
commit 27b453b4d7
No known key found for this signature in database
GPG key ID: 68A95170EEB87E16

View file

@ -2,24 +2,24 @@ import { BlendMode as PenpotBlendMode } from '@ui/lib/types/utils/blendModes';
export const translateBlendMode = (blendMode: BlendMode): PenpotBlendMode => {
switch (blendMode) {
//@TODO: is not translatable in penpot, this is the closest one
case 'PASS_THROUGH':
return 'normal'; //@TODO: is not translatable in penpot, this is the closest one
case 'NORMAL':
return 'normal';
//@TODO: is not translatable in penpot, this is the closest one
case 'LINEAR_BURN':
case 'DARKEN':
return 'darken';
case 'MULTIPLY':
return 'multiply';
case 'LINEAR_BURN':
return 'darken'; //@TODO: is not translatable in penpot, this is the closest one
case 'COLOR_BURN':
return 'color-burn';
case 'LIGHTEN':
return 'lighten';
case 'LINEAR_DODGE':
return 'color-dodge'; //@TODO: is not translatable in penpot, this is the closest one
case 'SCREEN':
return 'screen';
//@TODO: is not translatable in penpot, this is the closest one
case 'LINEAR_DODGE':
case 'COLOR_DODGE':
return 'color-dodge';
case 'OVERLAY':