mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fix many syncing issues (#952)
This commit is contained in:
parent
b20d4539c0
commit
3f8144ef85
15 changed files with 176 additions and 100 deletions
|
@ -24,7 +24,7 @@ function colorForClientId(clientId: string) {
|
|||
}
|
||||
|
||||
export function renderScene(
|
||||
elements: readonly ExcalidrawElement[],
|
||||
allElements: readonly ExcalidrawElement[],
|
||||
appState: AppState,
|
||||
selectionElement: ExcalidrawElement | null,
|
||||
scale: number,
|
||||
|
@ -49,6 +49,8 @@ export function renderScene(
|
|||
return { atLeastOneVisibleElement: false };
|
||||
}
|
||||
|
||||
const elements = allElements.filter(element => !element.isDeleted);
|
||||
|
||||
const context = canvas.getContext("2d")!;
|
||||
|
||||
// When doing calculations based on canvas width we should used normalized one
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue