mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: improved freedraw (#3512)
Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
198800136e
commit
49c6bdd520
66 changed files with 786 additions and 247 deletions
|
@ -201,11 +201,12 @@ export const renderScene = (
|
|||
renderGrid?: boolean;
|
||||
} = {},
|
||||
) => {
|
||||
if (!canvas) {
|
||||
if (canvas === null) {
|
||||
return { atLeastOneVisibleElement: false };
|
||||
}
|
||||
|
||||
const context = canvas.getContext("2d")!;
|
||||
|
||||
context.scale(scale, scale);
|
||||
|
||||
// When doing calculations based on canvas width we should used normalized one
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue