mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Further math refactor and simplifications
This commit is contained in:
parent
41885b4bb3
commit
0e2f8c958e
18 changed files with 262 additions and 175 deletions
|
@ -87,6 +87,6 @@ export const rangeIncludesValue = (
|
|||
* @param range The range of which to measure the extent of
|
||||
* @returns The scalar distance or extent of the start and end of the range
|
||||
*/
|
||||
export function rangeExtent([a, b]: InclusiveRange) {
|
||||
export function rangeExtent([a, b]: InclusiveRange): number {
|
||||
return Math.abs(a - b);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue