codepair-old icon indicating copy to clipboard operation
codepair-old copied to clipboard

Improving repainting for the drawing board

Open hackerwins opened this issue 5 years ago • 2 comments

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 avatar Apr 06 '21 02:04 hackerwins

@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...?

ppeeou avatar Apr 10 '21 03:04 ppeeou

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.

ppeeou avatar May 17 '21 11:05 ppeeou

Close the issue because it supports tldraw.

easylogic avatar Apr 05 '23 12:04 easylogic