Merge pull request #17788 from dylan-chong/fix_mapbox_point

Fix mapbox-gl.Point constructor and missing x/y fields
This commit is contained in:
Ron Buckton 2017-07-07 02:18:59 -07:00 committed by GitHub
commit ebdeacea2d

View File

@ -669,7 +669,10 @@ declare namespace mapboxgl {
*/
// Todo: Pull out class to seperate definition for Module "point-geometry"
export class Point {
constructor(options?: Object);
x: number;
y: number;
constructor(x: number, y: number);
clone(): Point;
@ -706,8 +709,8 @@ declare namespace mapboxgl {
angleWidth(p: Point): number;
angleWithSep(x: number, y: number): number;
convert(a: Array<number> | Point): Point;
static convert(a: Array<number> | Point): Point;
}
export class Marker {