From 70e7942287d65aaec272ef0736d0e07bdb7dfdbb Mon Sep 17 00:00:00 2001 From: Jiayu Liu Date: Tue, 9 Jun 2015 15:06:04 -0700 Subject: [PATCH] L.LineUtil.closestPointOnSegment update [L.LineUtil.closestPointOnSegment](http://leafletjs.com/reference.html#lineutil-closestpointonsegment) should return L.Point rather than number --- leaflet/leaflet.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leaflet/leaflet.d.ts b/leaflet/leaflet.d.ts index 2bd6a51189..dd57395001 100755 --- a/leaflet/leaflet.d.ts +++ b/leaflet/leaflet.d.ts @@ -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