I use store.selectedElements[0].replaceColor(oldColor, newColor) and works just for the first time.
For example: store.selectedElements[0].replaceColor('red', 'blue') -> the red is replaced with blue then if i make store.selectedElements[0].replaceColor('blue', 'black') the blue is not changing.
The second call should be store.selectedElements[0].replaceColor('red', 'black')
The first argument is a color from ORIGINAL svg image (defined via src attribute). So it shouldn't change.
Hello, i have a problem.
I use store.selectedElements[0].replaceColor(oldColor, newColor) and works just for the first time.
For example: store.selectedElements[0].replaceColor('red', 'blue') -> the red is replaced with blue then if i make store.selectedElements[0].replaceColor('blue', 'black') the blue is not changing.