mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: make canvas compos memoize appState on props they declare (#6897)
This commit is contained in:
parent
1bd416002c
commit
d140d1b8b3
12 changed files with 133 additions and 130 deletions
|
@ -6,8 +6,8 @@ import {
|
|||
StaticCanvasAppState,
|
||||
BinaryFiles,
|
||||
Point,
|
||||
CommonCanvasAppState,
|
||||
Zoom,
|
||||
AppState,
|
||||
} from "../types";
|
||||
import {
|
||||
ExcalidrawElement,
|
||||
|
@ -407,7 +407,7 @@ const bootstrapCanvas = ({
|
|||
scale: number;
|
||||
normalizedWidth: number;
|
||||
normalizedHeight: number;
|
||||
theme?: CommonCanvasAppState["theme"];
|
||||
theme?: AppState["theme"];
|
||||
isExporting?: StaticCanvasRenderConfig["isExporting"];
|
||||
viewBackgroundColor?: StaticCanvasAppState["viewBackgroundColor"];
|
||||
}): CanvasRenderingContext2D => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue