mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: undo/redo
This commit is contained in:
parent
81e1d61d42
commit
c498247e0f
10 changed files with 73 additions and 29 deletions
|
@ -28,3 +28,6 @@ export const average = (a: number, b: number) => (a + b) / 2;
|
|||
export const isFiniteNumber = (value: any): value is number => {
|
||||
return typeof value === "number" && Number.isFinite(value);
|
||||
};
|
||||
|
||||
export const isCloseTo = (a: number, b: number, precision = PRECISION) =>
|
||||
Math.abs(a - b) < precision;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue