mapbox-gl 2.8.0-alpha.3 → 2.8.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mapbox-gl",
3
3
  "description": "A WebGL interactive maps library",
4
- "version": "2.8.0-alpha.3",
4
+ "version": "2.8.0-alpha.4",
5
5
  "main": "dist/mapbox-gl.js",
6
6
  "style": "dist/mapbox-gl.css",
7
7
  "license": "SEE LICENSE IN LICENSE.txt",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mapbox/mapbox-gl-style-spec",
3
3
  "description": "a specification for mapbox gl styles",
4
- "version": "13.24.0-alpha.5",
4
+ "version": "13.24.0-alpha.6",
5
5
  "author": "Mapbox",
6
6
  "keywords": [
7
7
  "mapbox",
@@ -1,103 +0,0 @@
1
- // @flow
2
- type VecType = Array<number> | Float32Array | Float64Array;
3
-
4
- declare module "gl-matrix" {
5
- declare type Vec2 = VecType;
6
- declare type Vec3 = VecType;
7
- declare type Vec4 = VecType;
8
- declare type Quat = VecType;
9
- declare type Mat2 = VecType;
10
- declare type Mat3 = VecType;
11
- declare type Mat4 = VecType;
12
-
13
- declare var vec2: {
14
- exactEquals(Vec2, Vec2): boolean
15
- };
16
-
17
- declare var vec3: {
18
- create(): Float32Array,
19
- fromValues(number, number, number): Float32Array,
20
- length(Vec3): number,
21
- len(Vec3): number,
22
- squaredLength(Vec3): number,
23
- dot(Vec3, Vec3): number,
24
- equals(Vec3, Vec3): boolean,
25
- exactEquals(Vec3, Vec3): boolean,
26
-
27
- clone<T: Vec3>(T): T,
28
- normalize<T: Vec3>(T, Vec3): T,
29
- add<T: Vec3>(T, Vec3, Vec3): T,
30
- sub<T: Vec3>(T, Vec3, Vec3): T,
31
- subtract<T: Vec3>(T, Vec3, Vec3): T,
32
- cross<T: Vec3>(T, Vec3, Vec3): T,
33
- negate<T: Vec3>(T, Vec3): T,
34
- scale<T: Vec3>(T, Vec3, number): T,
35
- scaleAndAdd<T: Vec3>(T, Vec3, Vec3, number): T,
36
- multiply<T: Vec3>(T, Vec3, Vec3): T,
37
- mul<T: Vec3>(T, Vec3, Vec3): T,
38
- div<T: Vec3>(T, Vec3, Vec3): T,
39
- min<T: Vec3>(T, Vec3, Vec3): T,
40
- max<T: Vec3>(T, Vec3, Vec3): T,
41
- lerp<T: Vec3>(T, Vec3, Vec3, number): T,
42
- transformQuat<T: Vec3>(T, Vec3, Quat): T,
43
- transformMat3<T: Vec3>(T, Vec3, Mat3): T,
44
- transformMat4<T: Vec3>(T, Vec3, Mat4): T
45
- };
46
-
47
- declare var vec4: {
48
- scale<T: Vec4>(T, Vec4, number): T,
49
- mul<T: Vec4>(T, Vec4, Vec4): T,
50
- transformMat4<T: Vec4>(T, Vec4, Mat4): T
51
- };
52
-
53
- declare var mat2: {
54
- create(): Float32Array,
55
- rotate<T: Mat2>(T, Mat2, number): T,
56
- invert<T: Mat2>(T, Mat2): T,
57
- scale<T: Mat2>(T, Mat2, Vec2): T
58
- };
59
-
60
- declare var mat3: {
61
- create(): Float32Array,
62
-
63
- fromMat4<T: Mat3>(T, Mat4): T,
64
- fromRotation<T: Mat3>(T, number): T,
65
- mul<T: Mat3>(T, Mat3, Mat3): T,
66
- multiply<T: Mat3>(T, Mat3, Mat3): T,
67
- adjoint<T: Mat3>(T, Mat3): T,
68
- transpose<T: Mat3>(T, Mat3): T
69
- };
70
-
71
- declare var mat4: {
72
- create(): Float32Array,
73
-
74
- fromScaling<T: Mat4>(T, Vec3): T,
75
- fromQuat<T: Mat4>(T, Quat): T,
76
- ortho<T: Mat4>(T, number, number, number, number, number, number): T,
77
- perspective<T: Mat4>(T, number, number, number, number): T,
78
- identity<T: Mat4>(T): T,
79
- scale<T: Mat4>(T, Mat4, Vec3): T,
80
- mul<T: Mat4>(T, Mat4, Mat4): T,
81
- multiply<T: Mat4>(T, Mat4, Mat4): T,
82
- rotateX<T: Mat4>(T, Mat4, number): T,
83
- rotateY<T: Mat4>(T, Mat4, number): T,
84
- rotateZ<T: Mat4>(T, Mat4, number): T,
85
- translate<T: Mat4>(T, Mat4, Vec3): T,
86
- invert<T: Mat4>(T, Mat4): T,
87
- copy<T: Mat4>(T, Mat4): T,
88
- clone<T: Mat4>(T): T
89
- };
90
-
91
- declare var quat: {
92
- create(): Float32Array,
93
- length(Quat): number,
94
- exactEquals(Quat, Quat): boolean,
95
-
96
- normalize<T: Quat>(T, Quat): T,
97
- conjugate<T: Quat>(T, Quat): T,
98
- identity<T: Quat>(T): T,
99
- rotateX<T: Quat>(T, Quat, number): T,
100
- rotateY<T: Quat>(T, Quat, number): T,
101
- rotateZ<T: Quat>(T, Quat, number): T
102
- }
103
- }
@@ -1,5 +0,0 @@
1
- // @flow strict
2
- declare module "gl" {
3
- declare function gl(width: number, height: number, attributes: WebGLContextAttributes): WebGLRenderingContext;
4
- declare module.exports: typeof gl;
5
- }
@@ -1,13 +0,0 @@
1
- // @flow strict
2
- declare module 'grid-index' {
3
- declare class GridIndex {
4
- constructor(extent: number, n: number, padding: number): GridIndex;
5
- constructor(data: ArrayBuffer): GridIndex;
6
-
7
- insert(key: number, x1: number, y1: number, x2: number, y2: number): void;
8
- query(x1: number, y1: number, x2: number, y2: number, intersectionText?: (number, number, number, number) => boolean): Array<number>;
9
- toArrayBuffer(): ArrayBuffer;
10
- }
11
-
12
- declare export default Class<GridIndex>;
13
- }
@@ -1,18 +0,0 @@
1
- // @flow strict
2
-
3
- import type Window from '../src/types/window';
4
-
5
- declare module "jsdom" {
6
- declare class JSDOM {
7
- constructor(content: string, options: Object): JSDOM;
8
- window: Window;
9
- }
10
- declare class VirtualConsole {
11
- constructor(): VirtualConsole;
12
- sendTo(console: typeof console): VirtualConsole;
13
- }
14
- declare module.exports: {
15
- JSDOM: typeof JSDOM,
16
- VirtualConsole: typeof VirtualConsole
17
- };
18
- }
@@ -1,16 +0,0 @@
1
- // @flow
2
- 'use strict';
3
- declare module "@mapbox/mapbox-gl-supported" {
4
- declare type SupportedOptions = {failIfMajorPerformanceCaveat: boolean};
5
-
6
- declare type SupportedFn = {
7
- (options?: SupportedOptions): boolean,
8
- webGLContextAttributes: WebGLContextAttributes
9
- };
10
- declare function notSupportedReason(options?: SupportedOptions): ?string;
11
-
12
- declare module.exports: {
13
- supported: SupportedFn;
14
- notSupportedReason: typeof notSupportedReason;
15
- }
16
- }
@@ -1,14 +0,0 @@
1
- 'use strict';
2
- // @flow
3
-
4
- declare module "@mapbox/unitbezier" {
5
- declare class UnitBezier {
6
- constructor(p1x: number, p1y: number, p2x: number, p2y: number): UnitBezier;
7
- sampleCurveX(t: number): number;
8
- sampleCurveY(t: number): number;
9
- sampleCurveDerivativeX(t: number): number;
10
- solveCurveX(x: number, epsilon: number | void): number;
11
- solve(x: number, epsilon: number | void): number;
12
- }
13
- declare module.exports: typeof UnitBezier;
14
- }
@@ -1,9 +0,0 @@
1
- // @flow strict
2
-
3
- declare class OffscreenCanvas {
4
- width: number;
5
- height: number;
6
-
7
- constructor(width: number, height: number): OffscreenCanvas;
8
- getContext(contextType: '2d'): CanvasRenderingContext2D;
9
- }
@@ -1,26 +0,0 @@
1
- // @flow
2
- declare module "pbf" {
3
- declare type ReadFunction<T> = (tag: number, result: T, pbf: Pbf) => void;
4
-
5
- declare class Pbf {
6
- constructor(buf?: ArrayBuffer | Uint8Array): Pbf;
7
-
8
- readFields<T>(readField: ReadFunction<T>, result: T, end?: number): T;
9
- readMessage<T>(readField: ReadFunction<T>, result: T): T;
10
-
11
- readFixed32(): number;
12
- readSFixed32(): number;
13
- readFixed64(): number;
14
- readSFixed64(): number;
15
- readFloat(): number;
16
- readDouble(): number;
17
- readVarint(): number;
18
- readVarint64(): number;
19
- readSVarint(): number;
20
- readBoolean(): boolean;
21
- readString(): string;
22
- readBytes(): Uint8Array;
23
- }
24
-
25
- declare export default Class<Pbf>;
26
- }
@@ -1,46 +0,0 @@
1
- // @flow strict
2
- declare module "@mapbox/point-geometry" {
3
- declare export type PointLike = Point | [number, number];
4
-
5
- declare class Point {
6
- x: number;
7
- y: number;
8
- constructor(x: number, y: number): Point;
9
- clone(): Point;
10
- add(point: Point): Point;
11
- sub(point: Point): Point;
12
- multByPoint(point: Point): Point;
13
- divByPoint(point: Point): Point;
14
- mult(k: number): Point;
15
- div(k: number): Point;
16
- rotate(angle: number): Point;
17
- rotateAround(angle: number, point: Point): Point;
18
- matMult(matrix: [number, number, number, number]): Point;
19
- unit(): Point;
20
- perp(): Point;
21
- round(): Point;
22
- mag(): number;
23
- equals(point: Point): boolean;
24
- dist(point: Point): number;
25
- distSqr(point: Point): number;
26
- angle(): number;
27
- angleTo(point: Point): number;
28
- angleWith(point: Point): number;
29
- angleWithSep(x: number, y: number): number;
30
- _matMult(matrix: [number, number, number, number]): Point;
31
- _add(point: Point): Point;
32
- _sub(point: Point): Point;
33
- _mult(k: number): Point;
34
- _div(k: number): Point;
35
- _multByPoint(point: Point): Point;
36
- _divByPoint(point: Point): Point;
37
- _unit(): Point;
38
- _perp(): Point;
39
- _rotate(angle: number): Point;
40
- _rotateAround(angle: number, point: Point): Point;
41
- _round(): Point;
42
- static convert(a: PointLike): Point;
43
- }
44
-
45
- declare export default Class<Point>;
46
- }
@@ -1,13 +0,0 @@
1
- // @flow
2
- declare module "potpack" {
3
- declare type Bin = {
4
- x: number,
5
- y: number,
6
- w: number,
7
- h: number
8
- };
9
-
10
- declare function potpack(bins: Array<Bin>): {w: number, h: number, fill: number};
11
-
12
- declare module.exports: typeof potpack;
13
- }
@@ -1,28 +0,0 @@
1
- // @flow strict
2
- declare module "sinon" {
3
- declare type SpyCall = {
4
- args: Array<mixed>
5
- };
6
- declare type Spy = {
7
- (): any,
8
- calledOnce: number,
9
- getCall(i: number): SpyCall
10
- };
11
- declare type Stub = {
12
- callsFake(fn: mixed): Spy
13
- };
14
- declare class FakeServer {
15
- xhr: XMLHttpRequest
16
- }
17
- declare type Sandbox = {
18
- xhr: {supportsCORS: boolean},
19
- fakeServer: {create: () => FakeServer},
20
-
21
- createSandbox(options: mixed): Sandbox,
22
- stub(obj?: mixed, prop?: string): Stub,
23
- spy(obj?: mixed, prop?: string): Spy,
24
- restore(): void;
25
- };
26
-
27
- declare module.exports: Sandbox;
28
- }
@@ -1,31 +0,0 @@
1
-
2
- declare module '@mapbox/tiny-sdf' {
3
- declare type TinySDFOptions = {
4
- fontSize?: number;
5
- buffer?: number;
6
- radius?: number;
7
- cutoff?: number;
8
- fontFamily?: string;
9
- fontWeight?: string;
10
- fontStyle?: string;
11
- };
12
-
13
- declare type TinySDFGlyph = {
14
- data: Uint8ClampedArray;
15
- width: number;
16
- height: number;
17
- glyphWidth: number;
18
- glyphHeight: number;
19
- glyphTop: number;
20
- glyphLeft: number;
21
- glyphAdvance: number;
22
- };
23
-
24
- declare class TinySDF {
25
- fontWeight: string;
26
- constructor(options: TinySDFOptions): TinySDF;
27
- draw(char: string): TinySDFGlyph;
28
- }
29
-
30
- declare export default Class<TinySDF>;
31
- }
@@ -1,42 +0,0 @@
1
- // @flow
2
- import type Pbf from 'pbf';
3
- import type Point from '@mapbox/point-geometry';
4
- import type { GeoJSONFeature } from '@mapbox/geojson-types';
5
-
6
- declare interface VectorTile {
7
- layers: {[_: string]: VectorTileLayer};
8
- }
9
-
10
- declare interface VectorTileLayer {
11
- version?: number;
12
- name: string;
13
- extent: number;
14
- length: number;
15
- feature(i: number): VectorTileFeature;
16
- }
17
-
18
- declare interface VectorTileFeature {
19
- extent: number;
20
- type: 1 | 2 | 3;
21
- id: number;
22
- properties: {[_: string]: string | number | boolean};
23
-
24
- loadGeometry(): Array<Array<Point>>;
25
- toGeoJSON(x: number, y: number, z: number): GeoJSONFeature;
26
- }
27
-
28
- declare module "@mapbox/vector-tile" {
29
- declare class VectorTileImpl {
30
- constructor(pbf: Pbf): VectorTile;
31
- }
32
-
33
- declare class VectorTileFeatureImpl {
34
- static types: ['Unknown', 'Point', 'LineString', 'Polygon'];
35
- toGeoJSON(x: number, y: number, z: number): GeoJSONFeature;
36
- }
37
-
38
- declare module.exports: {
39
- VectorTile: typeof VectorTileImpl;
40
- VectorTileFeature: typeof VectorTileFeatureImpl;
41
- }
42
- }