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 => { export const translateBlendMode = (blendMode: BlendMode): PenpotBlendMode => {
switch (blendMode) { switch (blendMode) {
//@TODO: is not translatable in penpot, this is the closest one
case 'PASS_THROUGH': case 'PASS_THROUGH':
return 'normal'; //@TODO: is not translatable in penpot, this is the closest one
case 'NORMAL': case 'NORMAL':
return 'normal'; return 'normal';
//@TODO: is not translatable in penpot, this is the closest one
case 'LINEAR_BURN':
case 'DARKEN': case 'DARKEN':
return 'darken'; return 'darken';
case 'MULTIPLY': case 'MULTIPLY':
return 'multiply'; return 'multiply';
case 'LINEAR_BURN':
return 'darken'; //@TODO: is not translatable in penpot, this is the closest one
case 'COLOR_BURN': case 'COLOR_BURN':
return 'color-burn'; return 'color-burn';
case 'LIGHTEN': case 'LIGHTEN':
return 'lighten'; return 'lighten';
case 'LINEAR_DODGE':
return 'color-dodge'; //@TODO: is not translatable in penpot, this is the closest one
case 'SCREEN': case 'SCREEN':
return 'screen'; return 'screen';
//@TODO: is not translatable in penpot, this is the closest one
case 'LINEAR_DODGE':
case 'COLOR_DODGE': case 'COLOR_DODGE':
return 'color-dodge'; return 'color-dodge';
case 'OVERLAY': case 'OVERLAY':