eyuelberga / canvas-artworks

Canvas artwork is a ASP.net MVC web app. you can paint pictures on the web, using Literally Canvas as a drawing widget and save them. you can also edit and delete your artworks.
3 stars 2 forks source link

Erased fields not shown in div #1

Open harunbicakli opened 3 years ago

harunbicakli commented 3 years ago

Hi, thank you very much above all for this solution.

My problem is, that if i paint and then erase something from the painting, in "Details" view erased fields allthough shown as not erased, but if i go to edit the painting, erased fields are not shown. It's just only in Details view if you show the image in a div.

I hope it was clear enough :)

Do you have a solution for this.

Thank you and best regards, Harun

eyuelberga commented 3 years ago

@harunbicakli thank you for pointing this out. I will definitely look into it. Also, if you have a solution for the issue, feel free to send a pull request.

harunbicakli commented 3 years ago

Hi, thank you for your reply - i needed a more detailed and also a small CRM based ERP. So i spent more than 10 hours to fix it but unfortunately without success.

So i handled it as follow: I rewrite the literallycanvas.js: 1 - Change the background color to White 2- Delete the eraser from toolbox 3- Create a new instance of Pencil with fix color White 4- Replace the icon of this new Pencil instance whit the icon of eraser

So if the user choose the eraser he choose in fact the new pencil with white drawing.

A little bit complicated, i hope you understand.

I would send you my .js-file if you wish. I can not attach a .js-file