UNPKG
@architwankhade/math
Version:
latest (1.0.3)
1.0.3
1.0.2
1.0.1
1.0.0
Excalidraw math functions
github.com/excalidraw/excalidraw
excalidraw/excalidraw
@architwankhade/math
/
dist
/
types
/
excalidraw
/
gesture.d.ts
7 lines
(6 loc)
•
235 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
type
{
PointerCoords
}
from
"./types"
;
export
declare
const
getCenter
:
(
pointers
:
Map
<
number
,
PointerCoords
>
) =>
{
x
:
number
;
y
:
number
; };
export
declare
const
getDistance
:
(
[a, b]:
readonly
PointerCoords
[]
) =>
number
;