mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
L.LineUtil.closestPointOnSegment update
[L.LineUtil.closestPointOnSegment](http://leafletjs.com/reference.html#lineutil-closestpointonsegment) should return L.Point rather than number
This commit is contained in:
parent
43861a1703
commit
70e7942287
2
leaflet/leaflet.d.ts
vendored
2
leaflet/leaflet.d.ts
vendored
@ -1980,7 +1980,7 @@ declare module L {
|
||||
/**
|
||||
* Returns the closest point from a point p on a segment p1 to p2.
|
||||
*/
|
||||
export function closestPointOnSegment(p: Point, p1: Point, p2: Point): number;
|
||||
export function closestPointOnSegment(p: Point, p1: Point, p2: Point): Point;
|
||||
|
||||
/**
|
||||
* Clips the segment a to b by rectangular bounds (modifying the segment points
|
||||
|
||||
Loading…
Reference in New Issue
Block a user