@mapbox/mapbox-gl-style-spec 14.5.1 → 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.cjs +17 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +17 -23
- package/dist/index.es.js.map +1 -1
- package/expression/index.ts +1 -1
- package/package.json +3 -3
- package/reference/v8.json +6 -6
package/dist/index.d.ts
CHANGED
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.
|
|
1222
|
-
ios: "11.
|
|
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.
|
|
1435
|
-
ios: "11.
|
|
1434
|
+
android: "11.6.0",
|
|
1435
|
+
ios: "11.6.0"
|
|
1436
1436
|
}
|
|
1437
1437
|
},
|
|
1438
1438
|
expression: {
|
|
@@ -12976,7 +12976,7 @@ Point.convert = function (a) {
|
|
|
12976
12976
|
};
|
|
12977
12977
|
|
|
12978
12978
|
class TinyQueue {
|
|
12979
|
-
constructor(data = [], compare =
|
|
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
|
|
13027
|
-
|
|
13028
|
-
const right =
|
|
13029
|
-
if (right < this.length && compare(data[right],
|
|
13030
|
-
|
|
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(
|
|
13030
|
+
if (compare(data[bestChild], item) >= 0)
|
|
13034
13031
|
break;
|
|
13035
|
-
data[pos] =
|
|
13036
|
-
pos =
|
|
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
|
|