mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Import and export library from/to a file (#1940)
Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
7eff6893c5
commit
ee8fa6aaad
11 changed files with 199 additions and 39 deletions
|
@ -246,3 +246,11 @@ export function tupleToCoors(
|
|||
const [x, y] = xyTuple;
|
||||
return { x, y };
|
||||
}
|
||||
|
||||
/** use as a rejectionHandler to mute filesystem Abort errors */
|
||||
export const muteFSAbortError = (error?: Error) => {
|
||||
if (error?.name === "AbortError") {
|
||||
return;
|
||||
}
|
||||
throw error;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue