@mapbox/mapbox-gl-style-spec 14.17.0-beta.1 → 14.17.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/dist/index.cjs +29 -65
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -16
- package/dist/index.es.js +29 -65
- package/dist/index.es.js.map +1 -1
- package/expression/types/image_variant.ts +17 -29
- package/package.json +1 -1
- package/reference/v8.json +11 -6
- package/types.ts +1 -13
package/dist/index.d.ts
CHANGED
|
@@ -524,9 +524,6 @@ type VectorSourceSpecification = {
|
|
|
524
524
|
number,
|
|
525
525
|
number
|
|
526
526
|
];
|
|
527
|
-
/**
|
|
528
|
-
* @experimental This property is experimental and subject to change in future versions.
|
|
529
|
-
*/
|
|
530
527
|
"extra_bounds"?: Array<[
|
|
531
528
|
number,
|
|
532
529
|
number,
|
|
@@ -551,9 +548,6 @@ type RasterSourceSpecification = {
|
|
|
551
548
|
number,
|
|
552
549
|
number
|
|
553
550
|
];
|
|
554
|
-
/**
|
|
555
|
-
* @experimental This property is experimental and subject to change in future versions.
|
|
556
|
-
*/
|
|
557
551
|
"extra_bounds"?: Array<[
|
|
558
552
|
number,
|
|
559
553
|
number,
|
|
@@ -578,9 +572,6 @@ type RasterDEMSourceSpecification = {
|
|
|
578
572
|
number,
|
|
579
573
|
number
|
|
580
574
|
];
|
|
581
|
-
/**
|
|
582
|
-
* @experimental This property is experimental and subject to change in future versions.
|
|
583
|
-
*/
|
|
584
575
|
"extra_bounds"?: Array<[
|
|
585
576
|
number,
|
|
586
577
|
number,
|
|
@@ -605,9 +596,6 @@ type RasterArraySourceSpecification = {
|
|
|
605
596
|
number,
|
|
606
597
|
number
|
|
607
598
|
];
|
|
608
|
-
/**
|
|
609
|
-
* @experimental This property is experimental and subject to change in future versions.
|
|
610
|
-
*/
|
|
611
599
|
"extra_bounds"?: Array<[
|
|
612
600
|
number,
|
|
613
601
|
number,
|
|
@@ -895,7 +883,7 @@ type LineLayerSpecification = {
|
|
|
895
883
|
"line-trim-color"?: PropertyValueSpecification<ColorSpecification>;
|
|
896
884
|
"line-trim-color-transition"?: TransitionSpecification;
|
|
897
885
|
"line-trim-color-use-theme"?: PropertyValueSpecification<string>;
|
|
898
|
-
"line-emissive-strength"?:
|
|
886
|
+
"line-emissive-strength"?: DataDrivenPropertyValueSpecification<number>;
|
|
899
887
|
"line-emissive-strength-transition"?: TransitionSpecification;
|
|
900
888
|
"line-border-width"?: DataDrivenPropertyValueSpecification<number>;
|
|
901
889
|
"line-border-width-transition"?: TransitionSpecification;
|
|
@@ -1895,11 +1883,14 @@ declare class ImageId {
|
|
|
1895
1883
|
type StringifiedImageVariant = Brand<string, "ImageVariant">;
|
|
1896
1884
|
type RasterizationOptions = {
|
|
1897
1885
|
params?: Record<string, Color>;
|
|
1898
|
-
|
|
1886
|
+
sx?: number;
|
|
1887
|
+
sy?: number;
|
|
1899
1888
|
};
|
|
1900
|
-
declare class ImageVariant {
|
|
1889
|
+
declare class ImageVariant implements RasterizationOptions {
|
|
1901
1890
|
id: ImageId;
|
|
1902
|
-
|
|
1891
|
+
params?: Record<string, Color>;
|
|
1892
|
+
sx: number;
|
|
1893
|
+
sy: number;
|
|
1903
1894
|
constructor(id: string | ImageIdSpec, options?: RasterizationOptions);
|
|
1904
1895
|
toString(): StringifiedImageVariant;
|
|
1905
1896
|
static parse(str: StringifiedImageVariant): ImageVariant | null;
|
package/dist/index.es.js
CHANGED
|
@@ -800,7 +800,6 @@ var source_vector = {
|
|
|
800
800
|
length: 4,
|
|
801
801
|
doc: "An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`."
|
|
802
802
|
},
|
|
803
|
-
experimental: true,
|
|
804
803
|
doc: "An array of additional discrete geographic regions where tiles are available. When used alongside the `bounds` property, these regions act as an additional filter - Mapbox GL will only request tiles that are both within the `bounds` and any of the regions defined in `extra_bounds`. When used independently (without `bounds`), Mapbox GL will request tiles that fall within any of the regions in `extra_bounds`. This allows for more fine-grained control over tile requests, particularly when dealing with sparse data coverage."
|
|
805
804
|
},
|
|
806
805
|
scheme: {
|
|
@@ -890,7 +889,6 @@ var source_raster = {
|
|
|
890
889
|
length: 4,
|
|
891
890
|
doc: "An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`."
|
|
892
891
|
},
|
|
893
|
-
experimental: true,
|
|
894
892
|
doc: "An array of additional discrete geographic regions where tiles are available. When used alongside the `bounds` property, these regions act as an additional filter - Mapbox GL will only request tiles that are both within the `bounds` and any of the regions defined in `extra_bounds`. When used independently (without `bounds`), Mapbox GL will request tiles that fall within any of the regions in `extra_bounds`. This allows for more fine-grained control over tile requests, particularly when dealing with sparse data coverage."
|
|
895
893
|
},
|
|
896
894
|
minzoom: {
|
|
@@ -982,7 +980,6 @@ var source_raster_dem = {
|
|
|
982
980
|
length: 4,
|
|
983
981
|
doc: "An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`."
|
|
984
982
|
},
|
|
985
|
-
experimental: true,
|
|
986
983
|
doc: "An array of additional discrete geographic regions where tiles are available. When used alongside the `bounds` property, these regions act as an additional filter - Mapbox GL will only request tiles that are both within the `bounds` and any of the regions defined in `extra_bounds`. When used independently (without `bounds`), Mapbox GL will request tiles that fall within any of the regions in `extra_bounds`. This allows for more fine-grained control over tile requests, particularly when dealing with sparse data coverage."
|
|
987
984
|
},
|
|
988
985
|
minzoom: {
|
|
@@ -1075,7 +1072,6 @@ var source_raster_array = {
|
|
|
1075
1072
|
length: 4,
|
|
1076
1073
|
doc: "An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`."
|
|
1077
1074
|
},
|
|
1078
|
-
experimental: true,
|
|
1079
1075
|
doc: "An array of additional discrete geographic regions where tiles are available. When used alongside the `bounds` property, these regions act as an additional filter - Mapbox GL will only request tiles that are both within the `bounds` and any of the regions defined in `extra_bounds`. When used independently (without `bounds`), Mapbox GL will request tiles that fall within any of the regions in `extra_bounds`. This allows for more fine-grained control over tile requests, particularly when dealing with sparse data coverage."
|
|
1080
1076
|
},
|
|
1081
1077
|
minzoom: {
|
|
@@ -3554,6 +3550,7 @@ var layout_symbol = {
|
|
|
3554
3550
|
requires: [
|
|
3555
3551
|
"text-field"
|
|
3556
3552
|
],
|
|
3553
|
+
appearance: true,
|
|
3557
3554
|
"sdk-support": {
|
|
3558
3555
|
"basic functionality": {
|
|
3559
3556
|
js: "0.10.0",
|
|
@@ -3957,6 +3954,7 @@ var layout_symbol = {
|
|
|
3957
3954
|
requires: [
|
|
3958
3955
|
"text-field"
|
|
3959
3956
|
],
|
|
3957
|
+
appearance: true,
|
|
3960
3958
|
"sdk-support": {
|
|
3961
3959
|
"basic functionality": {
|
|
3962
3960
|
js: "0.10.0",
|
|
@@ -4088,6 +4086,7 @@ var layout_symbol = {
|
|
|
4088
4086
|
"!": "text-radial-offset"
|
|
4089
4087
|
}
|
|
4090
4088
|
],
|
|
4089
|
+
appearance: true,
|
|
4091
4090
|
"sdk-support": {
|
|
4092
4091
|
"basic functionality": {
|
|
4093
4092
|
js: "0.10.0",
|
|
@@ -7944,6 +7943,11 @@ var paint_line = {
|
|
|
7944
7943
|
js: "3.0.0",
|
|
7945
7944
|
android: "11.0.0",
|
|
7946
7945
|
ios: "11.0.0"
|
|
7946
|
+
},
|
|
7947
|
+
"data-driven styling": {
|
|
7948
|
+
js: "3.17.0",
|
|
7949
|
+
android: "11.17.0",
|
|
7950
|
+
ios: "11.17.0"
|
|
7947
7951
|
}
|
|
7948
7952
|
},
|
|
7949
7953
|
expression: {
|
|
@@ -7953,7 +7957,7 @@ var paint_line = {
|
|
|
7953
7957
|
"measure-light"
|
|
7954
7958
|
]
|
|
7955
7959
|
},
|
|
7956
|
-
"property-type": "data-
|
|
7960
|
+
"property-type": "data-driven"
|
|
7957
7961
|
},
|
|
7958
7962
|
"line-border-width": {
|
|
7959
7963
|
type: "number",
|
|
@@ -9792,7 +9796,8 @@ var paint_background = {
|
|
|
9792
9796
|
expression: {
|
|
9793
9797
|
interpolated: true,
|
|
9794
9798
|
parameters: [
|
|
9795
|
-
"zoom"
|
|
9799
|
+
"zoom",
|
|
9800
|
+
"measure-light"
|
|
9796
9801
|
]
|
|
9797
9802
|
},
|
|
9798
9803
|
"property-type": "data-constant"
|
|
@@ -13665,72 +13670,31 @@ class ImageId {
|
|
|
13665
13670
|
class ImageVariant {
|
|
13666
13671
|
constructor(id, options = {}) {
|
|
13667
13672
|
this.id = ImageId.from(id);
|
|
13668
|
-
this.
|
|
13669
|
-
|
|
13670
|
-
|
|
13671
|
-
1,
|
|
13672
|
-
0,
|
|
13673
|
-
0,
|
|
13674
|
-
1,
|
|
13675
|
-
0,
|
|
13676
|
-
0
|
|
13677
|
-
]);
|
|
13678
|
-
} else {
|
|
13679
|
-
const {a, b, c, d, e, f} = options.transform;
|
|
13680
|
-
this.options.transform = new DOMMatrix([
|
|
13681
|
-
a,
|
|
13682
|
-
b,
|
|
13683
|
-
c,
|
|
13684
|
-
d,
|
|
13685
|
-
e,
|
|
13686
|
-
f
|
|
13687
|
-
]);
|
|
13688
|
-
}
|
|
13673
|
+
this.params = options.params;
|
|
13674
|
+
this.sx = options.sx || 1;
|
|
13675
|
+
this.sy = options.sy || 1;
|
|
13689
13676
|
}
|
|
13690
13677
|
toString() {
|
|
13691
|
-
|
|
13692
|
-
const serialized = {
|
|
13693
|
-
name: this.id.name,
|
|
13694
|
-
iconsetId: this.id.iconsetId,
|
|
13695
|
-
params: this.options.params,
|
|
13696
|
-
transform: {
|
|
13697
|
-
a,
|
|
13698
|
-
b,
|
|
13699
|
-
c,
|
|
13700
|
-
d,
|
|
13701
|
-
e,
|
|
13702
|
-
f
|
|
13703
|
-
}
|
|
13704
|
-
};
|
|
13705
|
-
return JSON.stringify(serialized);
|
|
13678
|
+
return JSON.stringify(this);
|
|
13706
13679
|
}
|
|
13707
13680
|
static parse(str) {
|
|
13708
|
-
let
|
|
13681
|
+
let id, params, sx, sy;
|
|
13709
13682
|
try {
|
|
13710
|
-
({
|
|
13711
|
-
} catch (
|
|
13683
|
+
({id, params, sx, sy} = JSON.parse(str) || {});
|
|
13684
|
+
} catch (e) {
|
|
13712
13685
|
return null;
|
|
13713
13686
|
}
|
|
13714
|
-
if (!
|
|
13687
|
+
if (!id)
|
|
13715
13688
|
return null;
|
|
13716
|
-
|
|
13717
|
-
return new ImageVariant({
|
|
13718
|
-
name,
|
|
13719
|
-
iconsetId
|
|
13720
|
-
}, {
|
|
13689
|
+
return new ImageVariant(id, {
|
|
13721
13690
|
params,
|
|
13722
|
-
|
|
13723
|
-
|
|
13724
|
-
b,
|
|
13725
|
-
c,
|
|
13726
|
-
d,
|
|
13727
|
-
e,
|
|
13728
|
-
f
|
|
13729
|
-
])
|
|
13691
|
+
sx,
|
|
13692
|
+
sy
|
|
13730
13693
|
});
|
|
13731
13694
|
}
|
|
13732
|
-
scaleSelf(factor, yFactor) {
|
|
13733
|
-
this.
|
|
13695
|
+
scaleSelf(factor, yFactor = factor) {
|
|
13696
|
+
this.sx *= factor;
|
|
13697
|
+
this.sy *= yFactor;
|
|
13734
13698
|
return this;
|
|
13735
13699
|
}
|
|
13736
13700
|
}
|
|
@@ -22730,7 +22694,7 @@ var hasRequiredJsonlint;
|
|
|
22730
22694
|
function requireJsonlint () {
|
|
22731
22695
|
if (hasRequiredJsonlint) return jsonlint$1;
|
|
22732
22696
|
hasRequiredJsonlint = 1;
|
|
22733
|
-
(function (exports) {
|
|
22697
|
+
(function (exports$1) {
|
|
22734
22698
|
/*
|
|
22735
22699
|
Returns a Parser object of the following structure:
|
|
22736
22700
|
|
|
@@ -23774,9 +23738,9 @@ function requireJsonlint () {
|
|
|
23774
23738
|
return new Parser();
|
|
23775
23739
|
}());
|
|
23776
23740
|
if (typeof commonjsRequire !== 'undefined' && 'object' !== 'undefined') {
|
|
23777
|
-
exports.parser = parser;
|
|
23778
|
-
exports.Parser = parser.Parser;
|
|
23779
|
-
exports.parse = function () {
|
|
23741
|
+
exports$1.parser = parser;
|
|
23742
|
+
exports$1.Parser = parser.Parser;
|
|
23743
|
+
exports$1.parse = function () {
|
|
23780
23744
|
return parser.parse.apply(parser, arguments);
|
|
23781
23745
|
};
|
|
23782
23746
|
}
|