@mapbox/mapbox-gl-style-spec 14.31.0 → 14.32.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.d.ts CHANGED
@@ -1420,6 +1420,23 @@ declare const _exports: {
1420
1420
  value: string;
1421
1421
  doc: string;
1422
1422
  };
1423
+ bounds: {
1424
+ type: string;
1425
+ value: string;
1426
+ length: number;
1427
+ default: number[];
1428
+ doc: string;
1429
+ };
1430
+ extra_bounds: {
1431
+ type: string;
1432
+ value: {
1433
+ type: string;
1434
+ value: string;
1435
+ length: number;
1436
+ doc: string;
1437
+ };
1438
+ doc: string;
1439
+ };
1423
1440
  models: {
1424
1441
  type: string;
1425
1442
  doc: string;
@@ -2120,6 +2137,7 @@ declare const _exports: {
2120
2137
  minimum: number;
2121
2138
  maximum: number;
2122
2139
  doc: string;
2140
+ units: string;
2123
2141
  "sdk-support": {
2124
2142
  "basic functionality": {
2125
2143
  js: string;
@@ -2235,6 +2253,7 @@ declare const _exports: {
2235
2253
  maximum: number;
2236
2254
  default: number;
2237
2255
  doc: string;
2256
+ units: string;
2238
2257
  private: boolean;
2239
2258
  "property-type": string;
2240
2259
  "sdk-support": {
@@ -2437,7 +2456,6 @@ declare const _exports: {
2437
2456
  "property-type": string;
2438
2457
  type: string;
2439
2458
  private: boolean;
2440
- units: string;
2441
2459
  default: boolean;
2442
2460
  doc: string;
2443
2461
  transition: boolean;
@@ -2598,6 +2616,7 @@ declare const _exports: {
2598
2616
  type: string;
2599
2617
  doc: string;
2600
2618
  default: number;
2619
+ units: string;
2601
2620
  requires: string[];
2602
2621
  "sdk-support": {
2603
2622
  "basic functionality": {
@@ -5644,6 +5663,7 @@ declare const _exports: {
5644
5663
  relaxZoomRestriction: boolean;
5645
5664
  };
5646
5665
  doc: string;
5666
+ units: string;
5647
5667
  "sdk-support": {
5648
5668
  "basic functionality": {
5649
5669
  js: string;
@@ -6558,6 +6578,7 @@ declare const _exports: {
6558
6578
  "fill-z-offset": {
6559
6579
  type: string;
6560
6580
  doc: string;
6581
+ units: string;
6561
6582
  default: number;
6562
6583
  minimum: number;
6563
6584
  transition: boolean;
@@ -6954,6 +6975,7 @@ declare const _exports: {
6954
6975
  };
6955
6976
  transition: boolean;
6956
6977
  doc: string;
6978
+ units: string;
6957
6979
  requires: string[];
6958
6980
  "sdk-support": {
6959
6981
  "basic functionality": {
@@ -7329,6 +7351,7 @@ declare const _exports: {
7329
7351
  };
7330
7352
  transition: boolean;
7331
7353
  doc: string;
7354
+ units: string;
7332
7355
  "sdk-support": {
7333
7356
  "basic functionality": {
7334
7357
  js: string;
@@ -7983,6 +8006,7 @@ declare const _exports: {
7983
8006
  default: number;
7984
8007
  minimum: number;
7985
8008
  transition: boolean;
8009
+ units: string;
7986
8010
  "sdk-support": {
7987
8011
  "basic functionality": {
7988
8012
  js: string;
@@ -9119,6 +9143,7 @@ declare const _exports: {
9119
9143
  "symbol-z-offset": {
9120
9144
  type: string;
9121
9145
  doc: string;
9146
+ units: string;
9122
9147
  default: number;
9123
9148
  minimum: number;
9124
9149
  transition: boolean;
@@ -9484,6 +9509,7 @@ declare const _exports: {
9484
9509
  default: number;
9485
9510
  minimum: number;
9486
9511
  transition: boolean;
9512
+ units: string;
9487
9513
  experimental: boolean;
9488
9514
  "sdk-support": {
9489
9515
  "basic functionality": {
@@ -9652,6 +9678,7 @@ declare const _exports: {
9652
9678
  default: number;
9653
9679
  minimum: number;
9654
9680
  transition: boolean;
9681
+ units: string;
9655
9682
  "sdk-support": {
9656
9683
  "basic functionality": {
9657
9684
  js: string;
@@ -9673,6 +9700,7 @@ declare const _exports: {
9673
9700
  minimum: number;
9674
9701
  maximum: number;
9675
9702
  doc: string;
9703
+ units: string;
9676
9704
  transition: boolean;
9677
9705
  "sdk-support": {
9678
9706
  "basic functionality": {
@@ -10025,6 +10053,7 @@ declare const _exports: {
10025
10053
  maximum: number;
10026
10054
  transition: boolean;
10027
10055
  doc: string;
10056
+ units: string;
10028
10057
  "sdk-support": {
10029
10058
  "basic functionality": {
10030
10059
  js: string;
@@ -10219,6 +10248,7 @@ declare const _exports: {
10219
10248
  };
10220
10249
  };
10221
10250
  transition: boolean;
10251
+ units: string;
10222
10252
  doc: string;
10223
10253
  };
10224
10254
  "model-color": {
@@ -10599,7 +10629,7 @@ declare const _default: StyleReference;
10599
10629
  * fs.writeFileSync('./dest.json', format(style));
10600
10630
  * fs.writeFileSync('./dest.min.json', format(style, 0));
10601
10631
  */
10602
- declare function format(style: any, space?: number): string;
10632
+ declare function format(style: unknown, space?: number): string;
10603
10633
 
10604
10634
  type UnionToIntersection<U> = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? {
10605
10635
  [K in keyof I]: I[K];
@@ -11115,6 +11145,8 @@ type ModelSourceSpecification = {
11115
11145
  "maxzoom"?: number;
11116
11146
  "minzoom"?: number;
11117
11147
  "tiles"?: Array<string>;
11148
+ "bounds"?: [number, number, number, number];
11149
+ "extra_bounds"?: Array<[number, number, number, number]>;
11118
11150
  "models"?: ModelSourceModelsSpecification;
11119
11151
  };
11120
11152
  type SourceSpecification = VectorSourceSpecification | RasterSourceSpecification | RasterDEMSourceSpecification | RasterArraySourceSpecification | GeoJSONSourceSpecification | VideoSourceSpecification | ImageSourceSpecification | ModelSourceSpecification;
@@ -12745,7 +12777,7 @@ interface CompositeExpression {
12745
12777
  interpolationType: InterpolationType | null | undefined;
12746
12778
  }
12747
12779
  type StylePropertyExpression = ConstantExpression | SourceExpression | CameraExpression | CompositeExpression;
12748
- declare function createPropertyExpression(expression: any, propertySpec: StylePropertySpecification, scope?: string | null, options?: ConfigOptions | null, iconImageUseTheme?: string | null): Result<StylePropertyExpression, Array<ParsingError>>;
12780
+ declare function createPropertyExpression(expression: unknown, propertySpec: StylePropertySpecification, scope?: string | null, options?: ConfigOptions | null, iconImageUseTheme?: string | null): Result<StylePropertyExpression, Array<ParsingError>>;
12749
12781
  declare class StylePropertyFunction<T> {
12750
12782
  _parameters: PropertyValueSpecification<T>;
12751
12783
  _specification: StylePropertySpecification;
@@ -12772,31 +12804,37 @@ declare function normalizePropertyExpression<T>(value: PropertyValueSpecificatio
12772
12804
  */
12773
12805
  declare function convertFilter(filter: FilterSpecification): unknown;
12774
12806
 
12775
- declare function isFunction(value: any): boolean;
12776
- declare function createFunction(parameters: any, propertySpec: any): {
12807
+ type FeatureLike = {
12808
+ properties?: Record<string, unknown>;
12809
+ };
12810
+ declare function isFunction(value: unknown): boolean;
12811
+ declare function createFunction(input: unknown, propertySpec: StylePropertySpecification): {
12777
12812
  kind: string;
12778
12813
  interpolationType: {
12779
- name: string;
12814
+ name: "linear";
12780
12815
  };
12781
12816
  interpolationFactor: (input: number, lower: number, upper: number) => number;
12782
- zoomStops: any[];
12817
+ zoomStops: number[];
12783
12818
  evaluate({ zoom }: {
12784
- zoom: any;
12785
- }, properties: any): any;
12819
+ zoom: number;
12820
+ }, properties: FeatureLike | null | undefined): unknown;
12786
12821
  } | {
12787
12822
  kind: string;
12788
12823
  interpolationType: {
12789
- name: string;
12790
- base: any;
12824
+ name: "exponential";
12825
+ base: number;
12791
12826
  };
12792
12827
  interpolationFactor: (input: number, lower: number, upper: number) => number;
12793
- zoomStops: any;
12828
+ zoomStops: (string | number | boolean | {
12829
+ zoom: number;
12830
+ value: string | number | boolean;
12831
+ })[];
12794
12832
  evaluate: ({ zoom }: {
12795
- zoom: any;
12796
- }) => any;
12833
+ zoom: number;
12834
+ }) => unknown;
12797
12835
  } | {
12798
12836
  kind: string;
12799
- evaluate(_: any, feature: any): any;
12837
+ evaluate(_: unknown, feature: FeatureLike | null | undefined): unknown;
12800
12838
  interpolationType?: undefined;
12801
12839
  interpolationFactor?: undefined;
12802
12840
  zoomStops?: undefined;