@mapbox/mapbox-gl-style-spec 14.0.0-beta.2 → 14.0.0-beta.3
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/diff.js +25 -2
- package/dist/index.cjs +157 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +157 -8
- package/dist/index.es.js.map +1 -1
- package/flow-typed/gl-matrix.js +2 -1
- package/flow-typed/gl.js +1 -1
- package/flow-typed/webgl2.js +20 -0
- package/package.json +1 -1
- package/reference/v8.json +124 -7
- package/types.js +7 -3
package/flow-typed/gl-matrix.js
CHANGED
|
@@ -53,7 +53,8 @@ declare module "gl-matrix" {
|
|
|
53
53
|
scale<T: Vec4>(T, Vec4, number): T,
|
|
54
54
|
mul<T: Vec4>(T, Vec4, Vec4): T,
|
|
55
55
|
transformMat4<T: Vec4>(T, Vec4, Mat4): T,
|
|
56
|
-
normalize<T: Vec4>(T, Vec4): T
|
|
56
|
+
normalize<T: Vec4>(T, Vec4): T,
|
|
57
|
+
dot(Vec4, Vec4): number,
|
|
57
58
|
};
|
|
58
59
|
|
|
59
60
|
declare var mat2: {
|
package/flow-typed/gl.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @flow strict
|
|
2
2
|
declare module "gl" {
|
|
3
|
-
declare function gl(width: number, height: number, attributes: WebGLContextAttributes):
|
|
3
|
+
declare function gl(width: number, height: number, attributes: WebGLContextAttributes): WebGL2RenderingContext;
|
|
4
4
|
declare module.exports: typeof gl;
|
|
5
5
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// @flow strict
|
|
2
|
+
|
|
3
|
+
type GLenum = number;
|
|
4
|
+
type GLintptr = number;
|
|
5
|
+
type GLsizei = number;
|
|
6
|
+
type GLuint = number;
|
|
7
|
+
|
|
8
|
+
declare interface WebGLVertexArrayObject {
|
|
9
|
+
prototype: WebGLVertexArrayObject;
|
|
10
|
+
new(): WebGLVertexArrayObject;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type WebGL2RenderingContext = WebGLRenderingContext & {
|
|
14
|
+
createVertexArray: () => WebGLVertexArrayObject | null;
|
|
15
|
+
deleteVertexArray: (vertexArray: WebGLVertexArrayObject | null) => void;
|
|
16
|
+
bindVertexArray: (array: WebGLVertexArrayObject | null) => void;
|
|
17
|
+
getBufferSubData: (target: GLenum, srcByteOffset: GLintptr, dstBuffer: $ArrayBufferView, dstOffset?: GLuint, length?: GLuint) => void;
|
|
18
|
+
drawElementsInstanced: (mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei) => void;
|
|
19
|
+
vertexAttribDivisor: (index: GLuint, divisor: GLuint) => void;
|
|
20
|
+
};
|
package/package.json
CHANGED
package/reference/v8.json
CHANGED
|
@@ -1833,6 +1833,37 @@
|
|
|
1833
1833
|
},
|
|
1834
1834
|
"property-type": "data-constant"
|
|
1835
1835
|
},
|
|
1836
|
+
"symbol-z-elevate": {
|
|
1837
|
+
"type": "boolean",
|
|
1838
|
+
"default": false,
|
|
1839
|
+
"doc": "Position symbol on buildings (both fill extrusions and models) roof tops. In order to have minimal impact on performance, this is supported only when `fill-extrusion-height` is not zoom-dependent and not edited after initial bucket creation. For fading in buildings when zooming in, fill-extrusion-vertical-scale should be used and symbols would raise with building roofs. Symbols are sorted by elevation, except in case when `viewport-y` sorting or `symbol-sort-key` are applied.",
|
|
1840
|
+
"sdk-support": {
|
|
1841
|
+
"basic functionality": {
|
|
1842
|
+
"js": "3.0.0",
|
|
1843
|
+
"android": "11.0.0",
|
|
1844
|
+
"ios": "11.0.0"
|
|
1845
|
+
}
|
|
1846
|
+
},
|
|
1847
|
+
"requires": [
|
|
1848
|
+
{
|
|
1849
|
+
"symbol-placement": [
|
|
1850
|
+
"point"
|
|
1851
|
+
]
|
|
1852
|
+
},
|
|
1853
|
+
{
|
|
1854
|
+
"symbol-z-order": [
|
|
1855
|
+
"auto"
|
|
1856
|
+
]
|
|
1857
|
+
}
|
|
1858
|
+
],
|
|
1859
|
+
"expression": {
|
|
1860
|
+
"interpolated": false,
|
|
1861
|
+
"parameters": [
|
|
1862
|
+
"zoom"
|
|
1863
|
+
]
|
|
1864
|
+
},
|
|
1865
|
+
"property-type": "data-constant"
|
|
1866
|
+
},
|
|
1836
1867
|
"icon-allow-overlap": {
|
|
1837
1868
|
"type": "boolean",
|
|
1838
1869
|
"default": false,
|
|
@@ -4734,6 +4765,31 @@
|
|
|
4734
4765
|
"ios": "10.6.0"
|
|
4735
4766
|
}
|
|
4736
4767
|
}
|
|
4768
|
+
},
|
|
4769
|
+
"vertical-range": {
|
|
4770
|
+
"type": "array",
|
|
4771
|
+
"default": [0,0],
|
|
4772
|
+
"minimum": 0,
|
|
4773
|
+
"length": 2,
|
|
4774
|
+
"value": "number",
|
|
4775
|
+
"property-type": "data-constant",
|
|
4776
|
+
"transition": true,
|
|
4777
|
+
"expression": {
|
|
4778
|
+
"interpolated": true,
|
|
4779
|
+
"parameters": [
|
|
4780
|
+
"zoom",
|
|
4781
|
+
"measure-light"
|
|
4782
|
+
],
|
|
4783
|
+
"relaxZoomRestriction": true
|
|
4784
|
+
},
|
|
4785
|
+
"doc": "Specify the vertical range, measured in meters, over which the fog should gradually fade out. When both parameters are set to zero, the fog will be rendered without any vertical constraints.",
|
|
4786
|
+
"sdk-support": {
|
|
4787
|
+
"basic functionality": {
|
|
4788
|
+
"js": "3.0.0",
|
|
4789
|
+
"android": "11.0.0",
|
|
4790
|
+
"ios": "11.0.0"
|
|
4791
|
+
}
|
|
4792
|
+
}
|
|
4737
4793
|
}
|
|
4738
4794
|
},
|
|
4739
4795
|
"camera": {
|
|
@@ -5237,7 +5293,7 @@
|
|
|
5237
5293
|
"minimum": 0,
|
|
5238
5294
|
"transition": true,
|
|
5239
5295
|
"units": "intensity",
|
|
5240
|
-
"doc": "
|
|
5296
|
+
"doc": "Controls the intensity of light emitted on the source features. This property works only with 3D light, i.e. when `lights` root property is defined.",
|
|
5241
5297
|
"sdk-support": {
|
|
5242
5298
|
"basic functionality": {
|
|
5243
5299
|
"js": "3.0.0",
|
|
@@ -5767,6 +5823,25 @@
|
|
|
5767
5823
|
"zoom"
|
|
5768
5824
|
]
|
|
5769
5825
|
}
|
|
5826
|
+
},
|
|
5827
|
+
"fill-extrusion-cutoff-fade-range": {
|
|
5828
|
+
"type": "number",
|
|
5829
|
+
"default": 0.0,
|
|
5830
|
+
"minimum": 0.0,
|
|
5831
|
+
"maximum": 1.0,
|
|
5832
|
+
"doc": "This parameter defines the range for the fade-out effect before an automatic content cutoff on pitched map views. The automatic cutoff range is calculated according to the minimum required zoom level of the source and layer. The fade range is expressed in relation to the height of the map view. A value of 1.0 indicates that the content is faded to the same extent as the map's height in pixels, while a value close to zero represents a sharp cutoff. When the value is set to 0.0, the cutoff is completely disabled. Note: The property has no effect on the map if terrain is enabled.",
|
|
5833
|
+
"transition": false,
|
|
5834
|
+
"expression": {
|
|
5835
|
+
"interpolated": false
|
|
5836
|
+
},
|
|
5837
|
+
"sdk-support": {
|
|
5838
|
+
"basic functionality": {
|
|
5839
|
+
"js": "3.0.0",
|
|
5840
|
+
"android": "11.0.0",
|
|
5841
|
+
"ios": "11.0.0"
|
|
5842
|
+
}
|
|
5843
|
+
},
|
|
5844
|
+
"property-type": "data-constant"
|
|
5770
5845
|
}
|
|
5771
5846
|
},
|
|
5772
5847
|
"paint_line": {
|
|
@@ -6083,7 +6158,24 @@
|
|
|
6083
6158
|
},
|
|
6084
6159
|
"line-gradient": {
|
|
6085
6160
|
"type": "color",
|
|
6086
|
-
"doc": "
|
|
6161
|
+
"doc": "A gradient used to color a line feature at various distances along its length. Defined using a `step` or `interpolate` expression which outputs a color for each corresponding `line-progress` input value. `line-progress` is a percentage of the line feature's total length as measured on the webmercator projected coordinate plane (a `number` between `0` and `1`). Can only be used with GeoJSON sources that specify `\"lineMetrics\": true`.",
|
|
6162
|
+
"example": [
|
|
6163
|
+
"interpolate",
|
|
6164
|
+
[ "linear" ],
|
|
6165
|
+
[ "line-progress" ],
|
|
6166
|
+
0,
|
|
6167
|
+
"blue",
|
|
6168
|
+
0.1,
|
|
6169
|
+
"royalblue",
|
|
6170
|
+
0.3,
|
|
6171
|
+
"cyan",
|
|
6172
|
+
0.5,
|
|
6173
|
+
"lime",
|
|
6174
|
+
0.7,
|
|
6175
|
+
"yellow",
|
|
6176
|
+
1,
|
|
6177
|
+
"red"
|
|
6178
|
+
],
|
|
6087
6179
|
"transition": false,
|
|
6088
6180
|
"requires": [
|
|
6089
6181
|
{
|
|
@@ -6146,7 +6238,7 @@
|
|
|
6146
6238
|
"minimum": 0,
|
|
6147
6239
|
"transition": true,
|
|
6148
6240
|
"units": "intensity",
|
|
6149
|
-
"doc": "
|
|
6241
|
+
"doc": "Controls the intensity of light emitted on the source features. This property works only with 3D light, i.e. when `lights` root property is defined.",
|
|
6150
6242
|
"sdk-support": {
|
|
6151
6243
|
"basic functionality": {
|
|
6152
6244
|
"js": "3.0.0",
|
|
@@ -6560,7 +6652,7 @@
|
|
|
6560
6652
|
"minimum": 0,
|
|
6561
6653
|
"transition": true,
|
|
6562
6654
|
"units": "intensity",
|
|
6563
|
-
"doc": "
|
|
6655
|
+
"doc": "Controls the intensity of light emitted on the source features. This property works only with 3D light, i.e. when `lights` root property is defined.",
|
|
6564
6656
|
"sdk-support": {
|
|
6565
6657
|
"basic functionality": {
|
|
6566
6658
|
"js": "3.0.0",
|
|
@@ -6772,7 +6864,7 @@
|
|
|
6772
6864
|
"minimum": 0,
|
|
6773
6865
|
"transition": true,
|
|
6774
6866
|
"units": "intensity",
|
|
6775
|
-
"doc": "
|
|
6867
|
+
"doc": "Controls the intensity of light emitted on the source features. This property works only with 3D light, i.e. when `lights` root property is defined.",
|
|
6776
6868
|
"sdk-support": {
|
|
6777
6869
|
"basic functionality": {
|
|
6778
6870
|
"js": "3.0.0",
|
|
@@ -6800,7 +6892,7 @@
|
|
|
6800
6892
|
"minimum": 0,
|
|
6801
6893
|
"transition": true,
|
|
6802
6894
|
"units": "intensity",
|
|
6803
|
-
"doc": "
|
|
6895
|
+
"doc": "Controls the intensity of light emitted on the source features. This property works only with 3D light, i.e. when `lights` root property is defined.",
|
|
6804
6896
|
"sdk-support": {
|
|
6805
6897
|
"basic functionality": {
|
|
6806
6898
|
"js": "3.0.0",
|
|
@@ -7341,6 +7433,9 @@
|
|
|
7341
7433
|
"value": "number",
|
|
7342
7434
|
"property-type": "data-constant",
|
|
7343
7435
|
"transition": true,
|
|
7436
|
+
"requires": [
|
|
7437
|
+
"raster-color"
|
|
7438
|
+
],
|
|
7344
7439
|
"expression": {
|
|
7345
7440
|
"interpolated": true,
|
|
7346
7441
|
"parameters": [
|
|
@@ -7372,6 +7467,9 @@
|
|
|
7372
7467
|
"value": "number",
|
|
7373
7468
|
"property-type": "data-constant",
|
|
7374
7469
|
"transition": true,
|
|
7470
|
+
"requires": [
|
|
7471
|
+
"raster-color"
|
|
7472
|
+
],
|
|
7375
7473
|
"expression": {
|
|
7376
7474
|
"interpolated": true,
|
|
7377
7475
|
"parameters": [
|
|
@@ -7773,7 +7871,7 @@
|
|
|
7773
7871
|
"minimum": 0,
|
|
7774
7872
|
"transition": true,
|
|
7775
7873
|
"units": "intensity",
|
|
7776
|
-
"doc": "
|
|
7874
|
+
"doc": "Controls the intensity of light emitted on the source features. This property works only with 3D light, i.e. when `lights` root property is defined.",
|
|
7777
7875
|
"sdk-support": {
|
|
7778
7876
|
"basic functionality": {
|
|
7779
7877
|
"js": "3.0.0",
|
|
@@ -8330,6 +8428,25 @@
|
|
|
8330
8428
|
}
|
|
8331
8429
|
},
|
|
8332
8430
|
"transition": true
|
|
8431
|
+
},
|
|
8432
|
+
"model-cutoff-fade-range": {
|
|
8433
|
+
"type": "number",
|
|
8434
|
+
"default": 0.0,
|
|
8435
|
+
"minimum": 0.0,
|
|
8436
|
+
"maximum": 1.0,
|
|
8437
|
+
"doc": "This parameter defines the range for the fade-out effect before an automatic content cutoff on pitched map views. The automatic cutoff range is calculated according to the minimum required zoom level of the source and layer. The fade range is expressed in relation to the height of the map view. A value of 1.0 indicates that the content is faded to the same extent as the map's height in pixels, while a value close to zero represents a sharp cutoff. When the value is set to 0.0, the cutoff is completely disabled. Note: The property has no effect on the map if terrain is enabled.",
|
|
8438
|
+
"transition": false,
|
|
8439
|
+
"expression": {
|
|
8440
|
+
"interpolated": false
|
|
8441
|
+
},
|
|
8442
|
+
"sdk-support": {
|
|
8443
|
+
"basic functionality": {
|
|
8444
|
+
"js": "3.0.0",
|
|
8445
|
+
"android": "11.0.0",
|
|
8446
|
+
"ios": "11.0.0"
|
|
8447
|
+
}
|
|
8448
|
+
},
|
|
8449
|
+
"property-type": "data-constant"
|
|
8333
8450
|
}
|
|
8334
8451
|
},
|
|
8335
8452
|
"transition": {
|
package/types.js
CHANGED
|
@@ -108,7 +108,8 @@ export type FogSpecification = {|
|
|
|
108
108
|
"high-color"?: PropertyValueSpecification<ColorSpecification>,
|
|
109
109
|
"space-color"?: PropertyValueSpecification<ColorSpecification>,
|
|
110
110
|
"horizon-blend"?: PropertyValueSpecification<number>,
|
|
111
|
-
"star-intensity"?: PropertyValueSpecification<number
|
|
111
|
+
"star-intensity"?: PropertyValueSpecification<number>,
|
|
112
|
+
"vertical-range"?: PropertyValueSpecification<[number, number]>
|
|
112
113
|
|}
|
|
113
114
|
|
|
114
115
|
export type CameraSpecification = {|
|
|
@@ -353,6 +354,7 @@ export type SymbolLayerSpecification = {|
|
|
|
353
354
|
"symbol-avoid-edges"?: PropertyValueSpecification<boolean>,
|
|
354
355
|
"symbol-sort-key"?: DataDrivenPropertyValueSpecification<number>,
|
|
355
356
|
"symbol-z-order"?: PropertyValueSpecification<"auto" | "viewport-y" | "source">,
|
|
357
|
+
"symbol-z-elevate"?: PropertyValueSpecification<boolean>,
|
|
356
358
|
"icon-allow-overlap"?: PropertyValueSpecification<boolean>,
|
|
357
359
|
"icon-ignore-placement"?: PropertyValueSpecification<boolean>,
|
|
358
360
|
"icon-optional"?: PropertyValueSpecification<boolean>,
|
|
@@ -498,7 +500,8 @@ export type FillExtrusionLayerSpecification = {|
|
|
|
498
500
|
"fill-extrusion-flood-light-ground-radius"?: DataDrivenPropertyValueSpecification<number>,
|
|
499
501
|
"fill-extrusion-flood-light-ground-attenuation"?: PropertyValueSpecification<number>,
|
|
500
502
|
"fill-extrusion-vertical-scale"?: PropertyValueSpecification<number>,
|
|
501
|
-
"fill-extrusion-rounded-roof"?: PropertyValueSpecification<boolean
|
|
503
|
+
"fill-extrusion-rounded-roof"?: PropertyValueSpecification<boolean>,
|
|
504
|
+
"fill-extrusion-cutoff-fade-range"?: ExpressionSpecification
|
|
502
505
|
|}
|
|
503
506
|
|}
|
|
504
507
|
|
|
@@ -580,7 +583,8 @@ export type ModelLayerSpecification = {|
|
|
|
580
583
|
"model-ambient-occlusion-intensity"?: PropertyValueSpecification<number>,
|
|
581
584
|
"model-emissive-strength"?: DataDrivenPropertyValueSpecification<number>,
|
|
582
585
|
"model-roughness"?: DataDrivenPropertyValueSpecification<number>,
|
|
583
|
-
"model-height-based-emissive-strength-multiplier"?: DataDrivenPropertyValueSpecification<[number, number, number, number, number]
|
|
586
|
+
"model-height-based-emissive-strength-multiplier"?: DataDrivenPropertyValueSpecification<[number, number, number, number, number]>,
|
|
587
|
+
"model-cutoff-fade-range"?: ExpressionSpecification
|
|
584
588
|
|}
|
|
585
589
|
|}
|
|
586
590
|
|