@mapbox/mapbox-gl-style-spec 14.28.0-alpha.fa7f708fbcc → 14.28.0
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 +0 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -19
- package/dist/index.es.js +0 -15
- package/dist/index.es.js.map +1 -1
- package/expression/index.ts +3 -3
- package/package.json +1 -1
- package/read_style.ts +2 -2
- package/reference/v8.json +0 -15
- package/types.ts +1 -5
- package/validate_mapbox_api_supported.ts +2 -1
package/expression/index.ts
CHANGED
|
@@ -446,9 +446,9 @@ export class StylePropertyFunction<T> {
|
|
|
446
446
|
_parameters: PropertyValueSpecification<T>;
|
|
447
447
|
_specification: StylePropertySpecification;
|
|
448
448
|
|
|
449
|
-
kind
|
|
450
|
-
evaluate
|
|
451
|
-
interpolationFactor
|
|
449
|
+
kind: EvaluationKind;
|
|
450
|
+
evaluate: <T = unknown>(globals: GlobalProperties, feature?: Feature) => T;
|
|
451
|
+
interpolationFactor: (input: number, lower: number, upper: number) => number | null | undefined;
|
|
452
452
|
zoomStops: Array<number> | null | undefined;
|
|
453
453
|
|
|
454
454
|
constructor(parameters: PropertyValueSpecification<T>, specification: StylePropertySpecification) {
|
package/package.json
CHANGED
package/read_style.ts
CHANGED
|
@@ -87,7 +87,7 @@ function parseTokens(s: string, tokens: number[]) {
|
|
|
87
87
|
let lo = 0, hi = lineOffsets.length - 1;
|
|
88
88
|
while (lo < hi) {
|
|
89
89
|
const mid = (lo + hi + 1) >> 1;
|
|
90
|
-
if (lineOffsets[mid]
|
|
90
|
+
if (lineOffsets[mid] <= pos) lo = mid;
|
|
91
91
|
else hi = mid - 1;
|
|
92
92
|
}
|
|
93
93
|
return lo + 1;
|
|
@@ -104,7 +104,7 @@ function parseTokens(s: string, tokens: number[]) {
|
|
|
104
104
|
const end = tokens[i + 2];
|
|
105
105
|
i += 3;
|
|
106
106
|
|
|
107
|
-
const line = lineNum(start
|
|
107
|
+
const line = lineNum(start);
|
|
108
108
|
|
|
109
109
|
if (type === LBRACE) {
|
|
110
110
|
const obj = setLine({}, line);
|
package/reference/v8.json
CHANGED
|
@@ -10641,21 +10641,6 @@
|
|
|
10641
10641
|
"interpolated": false
|
|
10642
10642
|
},
|
|
10643
10643
|
"property-type": "data-constant"
|
|
10644
|
-
},
|
|
10645
|
-
"raster-allow-draping": {
|
|
10646
|
-
"type": "boolean",
|
|
10647
|
-
"default": true,
|
|
10648
|
-
"experimental": true,
|
|
10649
|
-
"doc": "Whether the raster layer is allowed to drape over terrain and globe. When disabled, the layer is rendered after all draped layers, which can change its position in the layer order. Disabling draping has a performance cost, since the terrain/globe geometry must be rendered again for each such layer.",
|
|
10650
|
-
"transition": false,
|
|
10651
|
-
"property-type": "data-constant",
|
|
10652
|
-
"sdk-support": {
|
|
10653
|
-
"basic functionality": {
|
|
10654
|
-
"js": "3.28.0",
|
|
10655
|
-
"android": "11.28.0",
|
|
10656
|
-
"ios": "11.28.0"
|
|
10657
|
-
}
|
|
10658
|
-
}
|
|
10659
10644
|
}
|
|
10660
10645
|
},
|
|
10661
10646
|
"paint_raster-particle": {
|
package/types.ts
CHANGED
|
@@ -1256,11 +1256,7 @@ export type RasterLayerSpecification = {
|
|
|
1256
1256
|
/**
|
|
1257
1257
|
* @experimental This property is experimental and subject to change in future versions.
|
|
1258
1258
|
*/
|
|
1259
|
-
"raster-elevation-reference"?: "sea" | "ground" | ExpressionSpecification
|
|
1260
|
-
/**
|
|
1261
|
-
* @experimental This property is experimental and subject to change in future versions.
|
|
1262
|
-
*/
|
|
1263
|
-
"raster-allow-draping"?: boolean
|
|
1259
|
+
"raster-elevation-reference"?: "sea" | "ground" | ExpressionSpecification
|
|
1264
1260
|
},
|
|
1265
1261
|
"appearances"?: Array<AppearanceSpecification>
|
|
1266
1262
|
};
|
|
@@ -87,7 +87,7 @@ function getSourcesErrors(sources: SourcesSpecification): {
|
|
|
87
87
|
errors: Array<ValidationError>;
|
|
88
88
|
sourcesCount: number;
|
|
89
89
|
} {
|
|
90
|
-
const errors
|
|
90
|
+
const errors = [];
|
|
91
91
|
let sourcesCount = 0;
|
|
92
92
|
|
|
93
93
|
Object.keys(sources).forEach((s: string, i: number) => {
|
|
@@ -101,6 +101,7 @@ function getSourcesErrors(sources: SourcesSpecification): {
|
|
|
101
101
|
errors.push(...sourceErrors);
|
|
102
102
|
});
|
|
103
103
|
|
|
104
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
104
105
|
return {errors, sourcesCount};
|
|
105
106
|
}
|
|
106
107
|
|