@mapbox/mapbox-gl-style-spec 13.23.0-beta.1 → 13.23.0-beta.2

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 CHANGED
@@ -1,4 +1,4 @@
1
- # 13.23.0-beta.1
1
+ # 13.23.0-beta.2
2
2
 
3
3
  ### ✨ Features and improvements
4
4
 
package/dist/index.cjs CHANGED
@@ -101,7 +101,7 @@
101
101
  },
102
102
  projection: {
103
103
  type: "projection",
104
- doc: "The projection the map should be rendered in. Suported projections are Albers, Equal Earth, Equirectangular (WGS84), Globe, Lambert conformal conic, Mercator, Natural Earth, and Winkel Tripel. Terrain and fog are not supported for projections other than mercator.",
104
+ doc: "The projection the map should be rendered in. Suported projections are Albers, Equal Earth, Equirectangular (WGS84), Lambert conformal conic, Mercator, Natural Earth, and Winkel Tripel. Terrain, fog, sky and CustomLayerInterface are not supported for projections other than mercator.",
105
105
  example: {
106
106
  name: "albers",
107
107
  center: [
@@ -12644,6 +12644,26 @@
12644
12644
  return result;
12645
12645
  }
12646
12646
 
12647
+ function unbundle(value) {
12648
+ if (value instanceof Number || value instanceof String || value instanceof Boolean) {
12649
+ return value.valueOf();
12650
+ } else {
12651
+ return value;
12652
+ }
12653
+ }
12654
+ function deepUnbundle(value) {
12655
+ if (Array.isArray(value)) {
12656
+ return value.map(deepUnbundle);
12657
+ } else if (value instanceof Object && !(value instanceof Number || value instanceof String || value instanceof Boolean)) {
12658
+ const unbundledValue = {};
12659
+ for (const key in value) {
12660
+ unbundledValue[key] = deepUnbundle(value[key]);
12661
+ }
12662
+ return unbundledValue;
12663
+ }
12664
+ return unbundle(value);
12665
+ }
12666
+
12647
12667
  function isExpressionFilter(filter) {
12648
12668
  if (filter === true || filter === false) {
12649
12669
  return true;
@@ -12735,7 +12755,7 @@ ${ JSON.stringify(filterExp, null, 2) }
12735
12755
  if (!isDynamicFilter(filter)) {
12736
12756
  return filter;
12737
12757
  }
12738
- let result = filter.slice();
12758
+ let result = deepUnbundle(filter);
12739
12759
  unionDynamicBranches(result);
12740
12760
  result = collapseDynamicBooleanExpressions(result);
12741
12761
  return result;
@@ -13664,26 +13684,6 @@ ${ JSON.stringify(filterExp, null, 2) }
13664
13684
  }
13665
13685
  }
13666
13686
 
13667
- function unbundle(value) {
13668
- if (value instanceof Number || value instanceof String || value instanceof Boolean) {
13669
- return value.valueOf();
13670
- } else {
13671
- return value;
13672
- }
13673
- }
13674
- function deepUnbundle(value) {
13675
- if (Array.isArray(value)) {
13676
- return value.map(deepUnbundle);
13677
- } else if (value instanceof Object && !(value instanceof Number || value instanceof String || value instanceof Boolean)) {
13678
- const unbundledValue = {};
13679
- for (const key in value) {
13680
- unbundledValue[key] = deepUnbundle(value[key]);
13681
- }
13682
- return unbundledValue;
13683
- }
13684
- return unbundle(value);
13685
- }
13686
-
13687
13687
  function validateObject(options) {
13688
13688
  const key = options.key;
13689
13689
  const object = options.value;