mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
refactor: reduce passing-around of canvas in export code (#3571)
This commit is contained in:
parent
3b9290831a
commit
f1cf28a84e
4 changed files with 17 additions and 28 deletions
|
@ -50,7 +50,6 @@ export const actionCopyAsSvg = register({
|
|||
? selectedElements
|
||||
: getNonDeletedElements(elements),
|
||||
appState,
|
||||
app.canvas,
|
||||
appState,
|
||||
);
|
||||
return {
|
||||
|
@ -89,7 +88,6 @@ export const actionCopyAsPng = register({
|
|||
? selectedElements
|
||||
: getNonDeletedElements(elements),
|
||||
appState,
|
||||
app.canvas,
|
||||
appState,
|
||||
);
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue