[🎨Component] Change this.strokedPixels and this.erasedPixels to PixelChangeRecord object
Previously there was an issue in undo & redo when the same region was stroked again. I fixed this by creating a custom PixelChangeRecord class to keep track of effective changes.
[🔗Other] Create PixelChangeRecord class for tracking changes
To Manage the effective changes, I have created some helper functions such as generatePixelId and parsePixelId to use for Map types.
🚀 [Related Issue: #]
Preview
Changes
Fix undo redo for duplicate pixels
[🎨Component] Change
this.strokedPixels
andthis.erasedPixels
toPixelChangeRecord
objectPixelChangeRecord
class to keep track of effective changes.[🔗Other] Create
PixelChangeRecord
class for tracking changesgeneratePixelId
andparsePixelId
to use for Map types.Configure project with
prettier
andeslint
prettier
andeslint
Notes
Next Up?