mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-22 13:43:03 -05:00
blend modes fix
This commit is contained in:
parent
6f58a62dd5
commit
27b453b4d7
1 changed files with 5 additions and 5 deletions
|
@ -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':
|
||||||
|
|
Loading…
Reference in a new issue