Improving repainting for the drawing board
Description:
Improving repainting for the drawing board.
Currently, we are repainting all objects when changes are made from the remotes to the drawing objects. We only have to draw the changed objects.
Why:
Users can edit the drawing board in a comfortable environment.
@hackerwins I have a question!
When dealing with SVG or dom objects, we can develop as you said, Currently, we are dealing with the canvas and within the way I know, when erasing a shape, we have to erase it all and draw it again. Is there a good way...?
We decided to divide the canvas into two parts.
lower canvas: lower canvas draws shapes that exist in the yorkie document.
upper canvas: upper canvas draws shapes that will be changed by user events.
Close the issue because it supports tldraw.