@mapbox/mapbox-gl-style-spec 13.10.1 → 13.13.0
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 +32 -4
- package/dist/index.es.js +2244 -2406
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2244 -2405
- package/dist/index.js.map +1 -1
- package/empty.js +29 -0
- package/error/parsing_error.js +5 -2
- package/error/validation_error.js +6 -3
- package/expression/compound_expression.js +5 -5
- package/expression/definitions/assertion.js +3 -4
- package/expression/definitions/at.js +3 -3
- package/expression/definitions/case.js +3 -6
- package/expression/definitions/coalesce.js +3 -4
- package/expression/definitions/coercion.js +3 -4
- package/expression/definitions/collator.js +5 -5
- package/expression/definitions/comparison.js +3 -3
- package/expression/definitions/format.js +3 -3
- package/expression/definitions/format_section_override.js +3 -4
- package/expression/definitions/image.js +6 -8
- package/expression/definitions/in.js +4 -4
- package/expression/definitions/index.js +4 -2
- package/expression/definitions/interpolate.js +3 -4
- package/expression/definitions/length.js +3 -3
- package/expression/definitions/let.js +3 -3
- package/expression/definitions/literal.js +2 -2
- package/expression/definitions/match.js +3 -6
- package/expression/definitions/number_format.js +3 -3
- package/expression/definitions/step.js +3 -4
- package/expression/definitions/var.js +2 -2
- package/expression/definitions/within.js +297 -0
- package/expression/evaluation_context.js +12 -1
- package/expression/expression.js +3 -5
- package/expression/index.js +24 -19
- package/expression/is_constant.js +5 -1
- package/expression/parsing_context.js +3 -0
- package/expression/scope.js +1 -1
- package/expression/types/resolved_image.js +2 -1
- package/feature_filter/convert.js +1 -1
- package/feature_filter/index.js +10 -5
- package/flow-typed/offscreen-canvas.js +9 -0
- package/flow-typed/vector-tile.js +2 -2
- package/function/convert.js +8 -2
- package/package.json +2 -1
- package/reference/v8.json +166 -168
- package/style-spec.js +3 -1
- package/types.js +7 -3
- package/validate/validate_expression.js +1 -1
- package/validate/validate_source.js +22 -2
- package/visit.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,41 @@
|
|
|
1
|
-
## 13.
|
|
1
|
+
## 13.13.0
|
|
2
|
+
|
|
3
|
+
### ✨ Features and improvements
|
|
4
|
+
* Add `within` expression for testing whether an evaluated feature lies within a given GeoJSON object ([#9352](https://github.com/mapbox/mapbox-gl-js/pull/9352)). For example:<br>
|
|
5
|
+
`"icon-opacity": ["case", ["==", ["within", "some-polygon"], true], 1,
|
|
6
|
+
["==", ["within", "some-polygon"], false], 0]`
|
|
7
|
+
* Improve scaling of patterns used in `line-pattern` on all device resolutions and pixel ratios ([#9266](https://github.com/mapbox/mapbox-gl-js/pull/9266))
|
|
8
|
+
|
|
9
|
+
### 🐛 Bug fixes
|
|
10
|
+
* Allow needle argument to `in` expression to be false ([#9295](https://github.com/mapbox/mapbox-gl-js/pull/9295))
|
|
11
|
+
* Fix a bug where `icon-image` expression that evaluates to an empty string (`''`) produced a warning ([#9380](https://github.com/mapbox/mapbox-gl-js/pull/9380))
|
|
12
|
+
* Prevent exception resulting from `line-dash-array` of empty length ([#9385](https://github.com/mapbox/mapbox-gl-js/pull/9385))
|
|
13
|
+
|
|
14
|
+
## 13.12.0
|
|
15
|
+
|
|
16
|
+
* Update `image` expression SDK support table ([#9228](https://github.com/mapbox/mapbox-gl-js/pull/9228))
|
|
17
|
+
* Fix `promoteId` for line layers ([#9210](https://github.com/mapbox/mapbox-gl-js/pull/9210), [#9212](https://github.com/mapbox/mapbox-gl-js/pull/9212))
|
|
18
|
+
|
|
19
|
+
## 13.11.0
|
|
20
|
+
|
|
21
|
+
### ✨ Features and improvements
|
|
22
|
+
* Add `promoteId` option to use a feature property as ID for feature state ([#8987](https://github.com/mapbox/mapbox-gl-js/pull/8987))
|
|
23
|
+
* Update `symbol-avoid-edges` documentation regarding global collision detection ([#9157](https://github.com/mapbox/mapbox-gl-js/pull/9157))
|
|
24
|
+
* Remove reference to `in` function which has been replaced by the `in` expression ([#9102](https://github.com/mapbox/mapbox-gl-js/pull/9102))
|
|
25
|
+
|
|
26
|
+
### 🐛 Bug fixes
|
|
27
|
+
* Fix bug where `symbol-sort-key` was not used for collisions that crossed tile boundaries ([#9054](https://github.com/mapbox/mapbox-gl-js/pull/9054))
|
|
28
|
+
|
|
29
|
+
## 13.10.2
|
|
2
30
|
|
|
3
31
|
### 🐛 Bug fixes
|
|
4
|
-
* Fix
|
|
32
|
+
* Fix style validation error messages not being displayed ([#9073](https://github.com/mapbox/mapbox-gl-js/pull/9073))
|
|
5
33
|
|
|
6
34
|
## 13.10.0
|
|
7
35
|
|
|
8
36
|
### ✨ Features and improvements
|
|
9
|
-
* Add ability to insert images into text labels using a format expression: `"text-field": ["format", "Some text", ["image", "my-image"], "some more text"]` ([#8904](https://github.com/mapbox/mapbox-gl-js/pull/8904))
|
|
10
|
-
* Add
|
|
37
|
+
* Add ability to insert images into text labels using an `image` expression within a `format` expression: `"text-field": ["format", "Some text", ["image", "my-image"], "some more text"]` ([#8904](https://github.com/mapbox/mapbox-gl-js/pull/8904))
|
|
38
|
+
* Add `in` expression. It can check if a value is in an array (`["in", value, array]`) or a substring is in a string (`["in", substring, string]`) ([#8876](https://github.com/mapbox/mapbox-gl-js/pull/8876))
|
|
11
39
|
* Add support for stretchable images (aka nine-part or nine-patch images). Stretchable images can be used with `icon-text-fit` to draw resized images with unstretched corners and borders. ([#8997](https://github.com/mapbox/mapbox-gl-js/pull/8997))
|
|
12
40
|
* Add an es modules build of for mapbox-gl-style-spec in dist/ ([#8247](https://github.com/mapbox/mapbox-gl-js/pull/8247)) (h/t [ahocevar](https://github.com/ahocevar))
|
|
13
41
|
|