polotno-project / polotno-board

Roadmap and bug-tracker for the Polotno project.
https://polotno.dev/
9 stars 1 forks source link

Polotno Node error - svgElement.replaceColor(oldColor, newColor)# #12

Closed vasanth-confetto closed 3 years ago

vasanth-confetto commented 3 years ago

Hi Anton, Was trying this call serverside on NodeJS, and received an error that the method is not defined.

svgElement.replaceColor(oldColor, newColor)#

lavrton commented 3 years ago

How do you use polotno from NodeJS? Do you use https://github.com/polotno-project/polotno-node? Or something different?

vasanth-confetto commented 3 years ago

HI Anton, I am using polotno-node, but it turns out I wasn't actually not using replaceColor of polotno-node. But i'm still facing issues with SVG color replace on server side. Can you help me find out what's the issue below?

See attached zip file.

On Mon, May 3, 2021 at 9:53 PM Anton Lavrenov @.***> wrote:

How do you use polotno from NodeJS? Do you use https://github.com/polotno-project/polotno-node? Or something different?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/polotno-project/polotno-board/issues/12#issuecomment-831273926, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATF3N7JSWQB2XUW3K55JQL3TL2TELANCNFSM44AABXZQ .

SVG-Issue-Example.zip

lavrton commented 3 years ago

That is a bug in the polotno. I am going to work on it.

lavrton commented 3 years ago

Should be fixed with the last polotno-node release.