@mapbox/mapbox-gl-style-spec 14.5.0 → 14.5.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/dist/index.d.ts CHANGED
@@ -1448,7 +1448,7 @@ interface Feature {
1448
1448
  readonly geometry?: Array<Array<Point>>;
1449
1449
  }
1450
1450
  type FeatureState = {
1451
- [_: string]: any;
1451
+ [_: string]: unknown;
1452
1452
  };
1453
1453
  interface GlobalProperties {
1454
1454
  zoom: number;
package/dist/index.es.js CHANGED
@@ -1215,13 +1215,13 @@ var layer = {
1215
1215
  },
1216
1216
  clip: {
1217
1217
  doc: "Layer that removes 3D content from map.",
1218
+ experimental: true,
1218
1219
  "sdk-support": {
1219
1220
  "basic functionality": {
1220
1221
  js: "3.5.0",
1221
- android: "11.5.0",
1222
- ios: "11.5.0"
1223
- },
1224
- experimental: true
1222
+ android: "11.6.0",
1223
+ ios: "11.6.0"
1224
+ }
1225
1225
  }
1226
1226
  }
1227
1227
  },
@@ -1431,8 +1431,8 @@ var layout_clip = {
1431
1431
  "sdk-support": {
1432
1432
  "basic functionality": {
1433
1433
  js: "3.5.0",
1434
- android: "11.5.0",
1435
- ios: "11.5.0"
1434
+ android: "11.6.0",
1435
+ ios: "11.6.0"
1436
1436
  }
1437
1437
  },
1438
1438
  expression: {
@@ -6305,11 +6305,11 @@ var paint_symbol = {
6305
6305
  "property-type": "data-driven"
6306
6306
  },
6307
6307
  "icon-occlusion-opacity": {
6308
- doc: "The opacity at which the icon will be drawn in case of being depth occluded. Not supported on globe zoom levels.",
6308
+ doc: "The opacity at which the icon will be drawn in case of being depth occluded. Not supported on globe zoom levels. Absent value means behavior prior to this property introduction.",
6309
6309
  type: "number",
6310
- "default": 1,
6311
6310
  minimum: 0,
6312
6311
  maximum: 1,
6312
+ "default": 1,
6313
6313
  transition: true,
6314
6314
  requires: [
6315
6315
  "icon-image"
@@ -6655,10 +6655,10 @@ var paint_symbol = {
6655
6655
  },
6656
6656
  "text-occlusion-opacity": {
6657
6657
  type: "number",
6658
- doc: "The opacity at which the text will be drawn in case of being depth occluded. Not supported on globe zoom levels.",
6659
- "default": 1,
6658
+ doc: "The opacity at which the text will be drawn in case of being depth occluded. Not supported on globe zoom levels. Absent value means behavior prior to this property introduction.",
6660
6659
  minimum: 0,
6661
6660
  maximum: 1,
6661
+ "default": 1,
6662
6662
  transition: true,
6663
6663
  requires: [
6664
6664
  "text-field"
@@ -12976,7 +12976,7 @@ Point.convert = function (a) {
12976
12976
  };
12977
12977
 
12978
12978
  class TinyQueue {
12979
- constructor(data = [], compare = defaultCompare) {
12979
+ constructor(data = [], compare = (a, b) => a < b ? -1 : a > b ? 1 : 0) {
12980
12980
  this.data = data;
12981
12981
  this.length = this.data.length;
12982
12982
  this.compare = compare;
@@ -12987,16 +12987,14 @@ class TinyQueue {
12987
12987
  }
12988
12988
  push(item) {
12989
12989
  this.data.push(item);
12990
- this.length++;
12991
- this._up(this.length - 1);
12990
+ this._up(this.length++);
12992
12991
  }
12993
12992
  pop() {
12994
12993
  if (this.length === 0)
12995
12994
  return undefined;
12996
12995
  const top = this.data[0];
12997
12996
  const bottom = this.data.pop();
12998
- this.length--;
12999
- if (this.length > 0) {
12997
+ if (--this.length > 0) {
13000
12998
  this.data[0] = bottom;
13001
12999
  this._down(0);
13002
13000
  }
@@ -13023,24 +13021,20 @@ class TinyQueue {
13023
13021
  const halfLength = this.length >> 1;
13024
13022
  const item = data[pos];
13025
13023
  while (pos < halfLength) {
13026
- let left = (pos << 1) + 1;
13027
- let best = data[left];
13028
- const right = left + 1;
13029
- if (right < this.length && compare(data[right], best) < 0) {
13030
- left = right;
13031
- best = data[right];
13024
+ let bestChild = (pos << 1) + 1;
13025
+ // initially it is the left child
13026
+ const right = bestChild + 1;
13027
+ if (right < this.length && compare(data[right], data[bestChild]) < 0) {
13028
+ bestChild = right;
13032
13029
  }
13033
- if (compare(best, item) >= 0)
13030
+ if (compare(data[bestChild], item) >= 0)
13034
13031
  break;
13035
- data[pos] = best;
13036
- pos = left;
13032
+ data[pos] = data[bestChild];
13033
+ pos = bestChild;
13037
13034
  }
13038
13035
  data[pos] = item;
13039
13036
  }
13040
13037
  }
13041
- function defaultCompare(a, b) {
13042
- return a < b ? -1 : a > b ? 1 : 0;
13043
- }
13044
13038
 
13045
13039
  var EXTENT = 8192;
13046
13040