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
/
element
/
src
/
distance.d.ts
4 lines
(3 loc)
•
242 B
TypeScript
View Raw
1
2
3
4
import
type
{
GlobalPoint
}
from
"@architwankhade/math"
;
import
type
{
ElementsMap
,
ExcalidrawElement
}
from
"./types"
;
export
declare
const
distanceToElement
:
(
element
:
ExcalidrawElement
,
elementsMap
:
ElementsMap
,
p
:
GlobalPoint
) =>
number
;