@mapbox/mapbox-gl-style-spec 13.19.1 → 13.20.1
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/CHANGELOG.md +14 -3
- package/diff.js +9 -1
- package/dist/index.cjs +15123 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.es.js +149 -10
- package/dist/index.es.js.map +1 -1
- package/flow-typed/gl.js +5 -0
- package/flow-typed/jsdom.js +18 -0
- package/flow-typed/mapbox-gl-supported.js +16 -0
- package/flow-typed/mapbox-unitbezier.js +14 -0
- package/flow-typed/offscreen-canvas.js +9 -0
- package/flow-typed/pbf.js +25 -0
- package/flow-typed/point-geometry.js +44 -0
- package/flow-typed/potpack.js +12 -0
- package/flow-typed/sinon.js +28 -0
- package/flow-typed/vector-tile.js +41 -0
- package/package.json +13 -4
- package/reference/v8.json +92 -8
- package/rollup.config.js +1 -1
- package/types.js +10 -3
- package/validate/validate.js +2 -0
- package/validate/validate_fog.js +46 -0
- package/validate_mapbox_api_supported.js +10 -2
- package/validate_style.min.js +2 -0
- package/dist/index.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
## 13.
|
|
1
|
+
## 13.20.1
|
|
2
|
+
|
|
3
|
+
### 🐞 Bug fixes
|
|
4
|
+
|
|
5
|
+
* Increase strictness of the style API validation for source types ([#10779](https://github.com/mapbox/mapbox-gl-js/pull/10779))
|
|
6
|
+
* Remove strictly-increasing requirement for fog range validation ([#10772](https://github.com/mapbox/mapbox-gl-js/pull/10772))
|
|
7
|
+
|
|
8
|
+
## 13.20.0
|
|
9
|
+
|
|
10
|
+
### ✨ Features and improvements
|
|
2
11
|
|
|
3
|
-
*
|
|
12
|
+
* Add configurable fog as a root style specification ([#10564](https://github.com/mapbox/mapbox-gl-js/pull/10564))
|
|
13
|
+
* Add support for data-driven expressions in `line-dasharray` and `line-cap` properties. ([#10591](https://github.com/mapbox/mapbox-gl-js/pull/10591))
|
|
14
|
+
* Add support for data-driven `text-line-height` ([#10612](https://github.com/mapbox/mapbox-gl-js/pull/10612))
|
|
4
15
|
|
|
5
16
|
## 13.19.0
|
|
6
17
|
|
|
@@ -8,7 +19,7 @@
|
|
|
8
19
|
|
|
9
20
|
* Added array support to minimums and maximums, allowing for validation of multi-dimensional style-spec value constraints. ([#10272](https://github.com/mapbox/mapbox-gl-js/pull/10272))
|
|
10
21
|
|
|
11
|
-
|
|
22
|
+
## 13.18.1
|
|
12
23
|
|
|
13
24
|
### 🐞 Bug fixes
|
|
14
25
|
* Fixed a bug where `map.setStyle` couldn't be used to enable terrain. ([#10177](https://github.com/mapbox/mapbox-gl-js/pull/10177))
|
package/diff.js
CHANGED
|
@@ -101,7 +101,12 @@ const operations = {
|
|
|
101
101
|
/*
|
|
102
102
|
* { command: 'setTerrain', args: [terrainProperties] }
|
|
103
103
|
*/
|
|
104
|
-
setTerrain: 'setTerrain'
|
|
104
|
+
setTerrain: 'setTerrain',
|
|
105
|
+
|
|
106
|
+
/*
|
|
107
|
+
* { command: 'setFog', args: [fogProperties] }
|
|
108
|
+
*/
|
|
109
|
+
setFog: 'setFog'
|
|
105
110
|
|
|
106
111
|
};
|
|
107
112
|
|
|
@@ -355,6 +360,9 @@ function diffStyles(before, after) {
|
|
|
355
360
|
if (!isEqual(before.light, after.light)) {
|
|
356
361
|
commands.push({command: operations.setLight, args: [after.light]});
|
|
357
362
|
}
|
|
363
|
+
if (!isEqual(before.fog, after.fog)) {
|
|
364
|
+
commands.push({command: operations.setFog, args: [after.fog]});
|
|
365
|
+
}
|
|
358
366
|
|
|
359
367
|
// Handle changes to `sources`
|
|
360
368
|
// If a source is to be removed, we also--before the removeSource
|