@mapbox/mapbox-gl-style-spec 14.18.0 → 14.19.0-beta.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/dist/index.cjs +88 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.es.js +88 -6
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/reference/v8.json +85 -3
- package/types.ts +10 -3
- package/util/color.ts +5 -3
package/dist/index.cjs
CHANGED
|
@@ -1886,6 +1886,30 @@
|
|
|
1886
1886
|
interpolated: false
|
|
1887
1887
|
},
|
|
1888
1888
|
"property-type": "data-constant"
|
|
1889
|
+
},
|
|
1890
|
+
visibility: {
|
|
1891
|
+
type: "enum",
|
|
1892
|
+
values: {
|
|
1893
|
+
visible: {
|
|
1894
|
+
doc: "The layer is shown."
|
|
1895
|
+
},
|
|
1896
|
+
none: {
|
|
1897
|
+
doc: "The layer is not shown."
|
|
1898
|
+
}
|
|
1899
|
+
},
|
|
1900
|
+
"default": "visible",
|
|
1901
|
+
doc: "Whether this layer is displayed.",
|
|
1902
|
+
"sdk-support": {
|
|
1903
|
+
"basic functionality": {
|
|
1904
|
+
js: "3.18.0",
|
|
1905
|
+
android: "11.18.0",
|
|
1906
|
+
ios: "11.18.0"
|
|
1907
|
+
}
|
|
1908
|
+
},
|
|
1909
|
+
expression: {
|
|
1910
|
+
interpolated: false
|
|
1911
|
+
},
|
|
1912
|
+
"property-type": "data-constant"
|
|
1889
1913
|
}
|
|
1890
1914
|
};
|
|
1891
1915
|
var layout_fill = {
|
|
@@ -2744,6 +2768,38 @@
|
|
|
2744
2768
|
]
|
|
2745
2769
|
},
|
|
2746
2770
|
"property-type": "data-constant"
|
|
2771
|
+
},
|
|
2772
|
+
"line-elevation-ground-scale": {
|
|
2773
|
+
type: "number",
|
|
2774
|
+
"default": 0,
|
|
2775
|
+
minimum: 0,
|
|
2776
|
+
maximum: 1,
|
|
2777
|
+
doc: "Controls how much the elevation of lines with `line-elevation-reference` set to `sea` scales with terrain exaggeration. A value of 0 keeps the line at a fixed altitude above sea level. A value of 1 scales the elevation proportionally with terrain exaggeration.",
|
|
2778
|
+
"sdk-support": {
|
|
2779
|
+
"basic functionality": {
|
|
2780
|
+
js: "3.19.0",
|
|
2781
|
+
android: "11.19.0",
|
|
2782
|
+
ios: "11.19.0"
|
|
2783
|
+
},
|
|
2784
|
+
"data-driven styling": {
|
|
2785
|
+
js: "3.19.0",
|
|
2786
|
+
android: "11.19.0",
|
|
2787
|
+
ios: "11.19.0"
|
|
2788
|
+
}
|
|
2789
|
+
},
|
|
2790
|
+
expression: {
|
|
2791
|
+
interpolated: true,
|
|
2792
|
+
parameters: [
|
|
2793
|
+
"zoom",
|
|
2794
|
+
"feature",
|
|
2795
|
+
"line-progress"
|
|
2796
|
+
]
|
|
2797
|
+
},
|
|
2798
|
+
requires: [
|
|
2799
|
+
"line-z-offset"
|
|
2800
|
+
],
|
|
2801
|
+
transition: true,
|
|
2802
|
+
"property-type": "data-driven"
|
|
2747
2803
|
}
|
|
2748
2804
|
};
|
|
2749
2805
|
var layout_symbol = {
|
|
@@ -9587,7 +9643,7 @@
|
|
|
9587
9643
|
},
|
|
9588
9644
|
"raster-elevation": {
|
|
9589
9645
|
type: "number",
|
|
9590
|
-
doc: "
|
|
9646
|
+
doc: "Defines an uniform elevation from the base specified in raster-elevation-reference, in meters.",
|
|
9591
9647
|
"default": 0,
|
|
9592
9648
|
minimum: 0,
|
|
9593
9649
|
transition: true,
|
|
@@ -9606,6 +9662,32 @@
|
|
|
9606
9662
|
]
|
|
9607
9663
|
},
|
|
9608
9664
|
"property-type": "data-constant"
|
|
9665
|
+
},
|
|
9666
|
+
"raster-elevation-reference": {
|
|
9667
|
+
type: "enum",
|
|
9668
|
+
doc: "Selects the base of raster-elevation.",
|
|
9669
|
+
values: {
|
|
9670
|
+
sea: {
|
|
9671
|
+
doc: "Use this mode to elevate raster layers relative to the sea level."
|
|
9672
|
+
},
|
|
9673
|
+
ground: {
|
|
9674
|
+
doc: "Use this mode to elevate raster layers relative to the ground's height below them."
|
|
9675
|
+
}
|
|
9676
|
+
},
|
|
9677
|
+
"default": "sea",
|
|
9678
|
+
transition: false,
|
|
9679
|
+
experimental: true,
|
|
9680
|
+
"sdk-support": {
|
|
9681
|
+
"basic functionality": {
|
|
9682
|
+
js: "3.19.0",
|
|
9683
|
+
android: "11.19.0",
|
|
9684
|
+
ios: "11.19.0"
|
|
9685
|
+
}
|
|
9686
|
+
},
|
|
9687
|
+
expression: {
|
|
9688
|
+
interpolated: false
|
|
9689
|
+
},
|
|
9690
|
+
"property-type": "data-constant"
|
|
9609
9691
|
}
|
|
9610
9692
|
};
|
|
9611
9693
|
var paint_hillshade = {
|
|
@@ -10558,7 +10640,7 @@
|
|
|
10558
10640
|
},
|
|
10559
10641
|
"model-elevation-reference": {
|
|
10560
10642
|
type: "enum",
|
|
10561
|
-
doc: "Selects the base of the model. Some modes might require precomputed elevation data in the tileset.",
|
|
10643
|
+
doc: "Selects the base of the model. Some modes might require precomputed elevation data in the tileset. When using vector tiled source as the model layer source and hd-road-markup elevation reference, this property acts as layout property and elevation is evaluated only in tile loading time.",
|
|
10562
10644
|
values: {
|
|
10563
10645
|
sea: {
|
|
10564
10646
|
doc: "Elevated rendering is enabled. Use this mode to elevate models relative to the sea level."
|
|
@@ -11791,7 +11873,7 @@
|
|
|
11791
11873
|
},
|
|
11792
11874
|
"raster-particle-elevation": {
|
|
11793
11875
|
type: "number",
|
|
11794
|
-
doc: "
|
|
11876
|
+
doc: "Defines an uniform elevation from sea level, in meters.",
|
|
11795
11877
|
"default": 0,
|
|
11796
11878
|
minimum: 0,
|
|
11797
11879
|
transition: true,
|
|
@@ -13413,6 +13495,9 @@
|
|
|
13413
13495
|
g = g * (N - 1);
|
|
13414
13496
|
b = b * (N - 1);
|
|
13415
13497
|
}
|
|
13498
|
+
r = Math.max(0, Math.min(N - 1, r));
|
|
13499
|
+
g = Math.max(0, Math.min(N - 1, g));
|
|
13500
|
+
b = Math.max(0, Math.min(N - 1, b));
|
|
13416
13501
|
const r0 = Math.floor(r);
|
|
13417
13502
|
const g0 = Math.floor(g);
|
|
13418
13503
|
const b0 = Math.floor(b);
|
|
@@ -13431,9 +13516,6 @@
|
|
|
13431
13516
|
const i5 = (r1 + g0 * N2 + b1 * N) * 4;
|
|
13432
13517
|
const i6 = (r1 + g1 * N2 + b0 * N) * 4;
|
|
13433
13518
|
const i7 = (r1 + g1 * N2 + b1 * N) * 4;
|
|
13434
|
-
if (i0 < 0 || i7 >= data.length) {
|
|
13435
|
-
throw new Error('out of range');
|
|
13436
|
-
}
|
|
13437
13519
|
this.r = number(number(number(data[i0], data[i1], bw), number(data[i2], data[i3], bw), gw), number(number(data[i4], data[i5], bw), number(data[i6], data[i7], bw), gw), rw) / 255 * (this.premultiplied ? a : 1);
|
|
13438
13520
|
this.g = number(number(number(data[i0 + 1], data[i1 + 1], bw), number(data[i2 + 1], data[i3 + 1], bw), gw), number(number(data[i4 + 1], data[i5 + 1], bw), number(data[i6 + 1], data[i7 + 1], bw), gw), rw) / 255 * (this.premultiplied ? a : 1);
|
|
13439
13521
|
this.b = number(number(number(data[i0 + 2], data[i1 + 2], bw), number(data[i2 + 2], data[i3 + 2], bw), gw), number(number(data[i4 + 2], data[i5 + 2], bw), number(data[i6 + 2], data[i7 + 2], bw), gw), rw) / 255 * (this.premultiplied ? a : 1);
|