mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
link
This commit is contained in:
parent
7d1efb7f8b
commit
3b9953f57f
1 changed files with 2 additions and 2 deletions
|
@ -423,7 +423,7 @@ const generateElementShape = (
|
||||||
// (= do not generate anything)
|
// (= do not generate anything)
|
||||||
if (shape === undefined) {
|
if (shape === undefined) {
|
||||||
const prevElementWithCanvas = elementWithCanvasCache.get(element);
|
const prevElementWithCanvas = elementWithCanvasCache.get(element);
|
||||||
if(prevElementWithCanvas?.canvas) {
|
if (prevElementWithCanvas?.canvas) {
|
||||||
prevElementWithCanvas.canvas.width = 0;
|
prevElementWithCanvas.canvas.width = 0;
|
||||||
prevElementWithCanvas.canvas.height = 0;
|
prevElementWithCanvas.canvas.height = 0;
|
||||||
}
|
}
|
||||||
|
@ -690,7 +690,7 @@ const generateElementWithCanvas = (
|
||||||
zoom,
|
zoom,
|
||||||
renderConfig,
|
renderConfig,
|
||||||
);
|
);
|
||||||
if(prevElementWithCanvas?.canvas) {
|
if (prevElementWithCanvas?.canvas) {
|
||||||
prevElementWithCanvas.canvas.width = 0;
|
prevElementWithCanvas.canvas.width = 0;
|
||||||
prevElementWithCanvas.canvas.height = 0;
|
prevElementWithCanvas.canvas.height = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue