@mapbox/mapbox-gl-style-spec 14.31.0-rc.1 → 14.32.0-rc.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.d.ts CHANGED
@@ -2120,6 +2120,7 @@ declare const _exports: {
2120
2120
  minimum: number;
2121
2121
  maximum: number;
2122
2122
  doc: string;
2123
+ units: string;
2123
2124
  "sdk-support": {
2124
2125
  "basic functionality": {
2125
2126
  js: string;
@@ -2235,6 +2236,7 @@ declare const _exports: {
2235
2236
  maximum: number;
2236
2237
  default: number;
2237
2238
  doc: string;
2239
+ units: string;
2238
2240
  private: boolean;
2239
2241
  "property-type": string;
2240
2242
  "sdk-support": {
@@ -2437,7 +2439,6 @@ declare const _exports: {
2437
2439
  "property-type": string;
2438
2440
  type: string;
2439
2441
  private: boolean;
2440
- units: string;
2441
2442
  default: boolean;
2442
2443
  doc: string;
2443
2444
  transition: boolean;
@@ -2598,6 +2599,7 @@ declare const _exports: {
2598
2599
  type: string;
2599
2600
  doc: string;
2600
2601
  default: number;
2602
+ units: string;
2601
2603
  requires: string[];
2602
2604
  "sdk-support": {
2603
2605
  "basic functionality": {
@@ -5644,6 +5646,7 @@ declare const _exports: {
5644
5646
  relaxZoomRestriction: boolean;
5645
5647
  };
5646
5648
  doc: string;
5649
+ units: string;
5647
5650
  "sdk-support": {
5648
5651
  "basic functionality": {
5649
5652
  js: string;
@@ -6558,6 +6561,7 @@ declare const _exports: {
6558
6561
  "fill-z-offset": {
6559
6562
  type: string;
6560
6563
  doc: string;
6564
+ units: string;
6561
6565
  default: number;
6562
6566
  minimum: number;
6563
6567
  transition: boolean;
@@ -6954,6 +6958,7 @@ declare const _exports: {
6954
6958
  };
6955
6959
  transition: boolean;
6956
6960
  doc: string;
6961
+ units: string;
6957
6962
  requires: string[];
6958
6963
  "sdk-support": {
6959
6964
  "basic functionality": {
@@ -7329,6 +7334,7 @@ declare const _exports: {
7329
7334
  };
7330
7335
  transition: boolean;
7331
7336
  doc: string;
7337
+ units: string;
7332
7338
  "sdk-support": {
7333
7339
  "basic functionality": {
7334
7340
  js: string;
@@ -7983,6 +7989,7 @@ declare const _exports: {
7983
7989
  default: number;
7984
7990
  minimum: number;
7985
7991
  transition: boolean;
7992
+ units: string;
7986
7993
  "sdk-support": {
7987
7994
  "basic functionality": {
7988
7995
  js: string;
@@ -9119,6 +9126,7 @@ declare const _exports: {
9119
9126
  "symbol-z-offset": {
9120
9127
  type: string;
9121
9128
  doc: string;
9129
+ units: string;
9122
9130
  default: number;
9123
9131
  minimum: number;
9124
9132
  transition: boolean;
@@ -9484,6 +9492,7 @@ declare const _exports: {
9484
9492
  default: number;
9485
9493
  minimum: number;
9486
9494
  transition: boolean;
9495
+ units: string;
9487
9496
  experimental: boolean;
9488
9497
  "sdk-support": {
9489
9498
  "basic functionality": {
@@ -9652,6 +9661,7 @@ declare const _exports: {
9652
9661
  default: number;
9653
9662
  minimum: number;
9654
9663
  transition: boolean;
9664
+ units: string;
9655
9665
  "sdk-support": {
9656
9666
  "basic functionality": {
9657
9667
  js: string;
@@ -9673,6 +9683,7 @@ declare const _exports: {
9673
9683
  minimum: number;
9674
9684
  maximum: number;
9675
9685
  doc: string;
9686
+ units: string;
9676
9687
  transition: boolean;
9677
9688
  "sdk-support": {
9678
9689
  "basic functionality": {
@@ -10025,6 +10036,7 @@ declare const _exports: {
10025
10036
  maximum: number;
10026
10037
  transition: boolean;
10027
10038
  doc: string;
10039
+ units: string;
10028
10040
  "sdk-support": {
10029
10041
  "basic functionality": {
10030
10042
  js: string;
@@ -10219,6 +10231,7 @@ declare const _exports: {
10219
10231
  };
10220
10232
  };
10221
10233
  transition: boolean;
10234
+ units: string;
10222
10235
  doc: string;
10223
10236
  };
10224
10237
  "model-color": {
@@ -10599,7 +10612,7 @@ declare const _default: StyleReference;
10599
10612
  * fs.writeFileSync('./dest.json', format(style));
10600
10613
  * fs.writeFileSync('./dest.min.json', format(style, 0));
10601
10614
  */
10602
- declare function format(style: any, space?: number): string;
10615
+ declare function format(style: unknown, space?: number): string;
10603
10616
 
10604
10617
  type UnionToIntersection<U> = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? {
10605
10618
  [K in keyof I]: I[K];
@@ -12745,7 +12758,7 @@ interface CompositeExpression {
12745
12758
  interpolationType: InterpolationType | null | undefined;
12746
12759
  }
12747
12760
  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>>;
12761
+ declare function createPropertyExpression(expression: unknown, propertySpec: StylePropertySpecification, scope?: string | null, options?: ConfigOptions | null, iconImageUseTheme?: string | null): Result<StylePropertyExpression, Array<ParsingError>>;
12749
12762
  declare class StylePropertyFunction<T> {
12750
12763
  _parameters: PropertyValueSpecification<T>;
12751
12764
  _specification: StylePropertySpecification;
@@ -12772,31 +12785,37 @@ declare function normalizePropertyExpression<T>(value: PropertyValueSpecificatio
12772
12785
  */
12773
12786
  declare function convertFilter(filter: FilterSpecification): unknown;
12774
12787
 
12775
- declare function isFunction(value: any): boolean;
12776
- declare function createFunction(parameters: any, propertySpec: any): {
12788
+ type FeatureLike = {
12789
+ properties?: Record<string, unknown>;
12790
+ };
12791
+ declare function isFunction(value: unknown): boolean;
12792
+ declare function createFunction(input: unknown, propertySpec: StylePropertySpecification): {
12777
12793
  kind: string;
12778
12794
  interpolationType: {
12779
- name: string;
12795
+ name: "linear";
12780
12796
  };
12781
12797
  interpolationFactor: (input: number, lower: number, upper: number) => number;
12782
- zoomStops: any[];
12798
+ zoomStops: number[];
12783
12799
  evaluate({ zoom }: {
12784
- zoom: any;
12785
- }, properties: any): any;
12800
+ zoom: number;
12801
+ }, properties: FeatureLike | null | undefined): unknown;
12786
12802
  } | {
12787
12803
  kind: string;
12788
12804
  interpolationType: {
12789
- name: string;
12790
- base: any;
12805
+ name: "exponential";
12806
+ base: number;
12791
12807
  };
12792
12808
  interpolationFactor: (input: number, lower: number, upper: number) => number;
12793
- zoomStops: any;
12809
+ zoomStops: (string | number | boolean | {
12810
+ zoom: number;
12811
+ value: string | number | boolean;
12812
+ })[];
12794
12813
  evaluate: ({ zoom }: {
12795
- zoom: any;
12796
- }) => any;
12814
+ zoom: number;
12815
+ }) => unknown;
12797
12816
  } | {
12798
12817
  kind: string;
12799
- evaluate(_: any, feature: any): any;
12818
+ evaluate(_: unknown, feature: FeatureLike | null | undefined): unknown;
12800
12819
  interpolationType?: undefined;
12801
12820
  interpolationFactor?: undefined;
12802
12821
  zoomStops?: undefined;