mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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:
commit
ebdeacea2d
9
types/mapbox-gl/index.d.ts
vendored
9
types/mapbox-gl/index.d.ts
vendored
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user