@mapbox/mapbox-gl-style-spec 14.33.0 → 14.34.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
@@ -2354,7 +2354,6 @@ declare const _exports: {
2354
2354
  minimum: number;
2355
2355
  units: string;
2356
2356
  doc: string;
2357
- transition: boolean;
2358
2357
  private: boolean;
2359
2358
  "sdk-support": {
2360
2359
  "basic functionality": {
@@ -2379,7 +2378,6 @@ declare const _exports: {
2379
2378
  minimum: number;
2380
2379
  units: string;
2381
2380
  doc: string;
2382
- transition: boolean;
2383
2381
  requires: string[];
2384
2382
  private: boolean;
2385
2383
  "sdk-support": {
@@ -2408,7 +2406,6 @@ declare const _exports: {
2408
2406
  minimum: number;
2409
2407
  doc: string;
2410
2408
  requires: string[];
2411
- transition: boolean;
2412
2409
  expression: {
2413
2410
  interpolated: boolean;
2414
2411
  parameters: string[];
@@ -2434,7 +2431,6 @@ declare const _exports: {
2434
2431
  default: number;
2435
2432
  doc: string;
2436
2433
  requires: string[];
2437
- transition: boolean;
2438
2434
  expression: {
2439
2435
  interpolated: boolean;
2440
2436
  parameters: string[];
@@ -2458,7 +2454,6 @@ declare const _exports: {
2458
2454
  private: boolean;
2459
2455
  default: boolean;
2460
2456
  doc: string;
2461
- transition: boolean;
2462
2457
  requires: string[];
2463
2458
  expression: {
2464
2459
  interpolated: boolean;
@@ -2764,7 +2759,6 @@ declare const _exports: {
2764
2759
  parameters: string[];
2765
2760
  };
2766
2761
  requires: string[];
2767
- transition: boolean;
2768
2762
  "property-type": string;
2769
2763
  };
2770
2764
  };
@@ -11303,7 +11297,6 @@ type LineLayerSpecification = {
11303
11297
  */
11304
11298
  "line-width-unit"?: PropertyValueSpecification<"pixels" | "meters">;
11305
11299
  "line-elevation-ground-scale"?: DataDrivenPropertyValueSpecification<number>;
11306
- "line-elevation-ground-scale-transition"?: TransitionSpecification;
11307
11300
  };
11308
11301
  "paint"?: {
11309
11302
  "line-opacity"?: DataDrivenPropertyValueSpecification<number>;
@@ -11737,15 +11730,10 @@ type BuildingLayerSpecification = {
11737
11730
  "building-facade-window"?: DataDrivenPropertyValueSpecification<[number, number]>;
11738
11731
  "building-roof-shape"?: DataDrivenPropertyValueSpecification<"flat" | "hipped" | "gabled" | "parapet" | "mansard" | "skillion" | "pyramidal">;
11739
11732
  "building-height"?: DataDrivenPropertyValueSpecification<number>;
11740
- "building-height-transition"?: TransitionSpecification;
11741
11733
  "building-base"?: DataDrivenPropertyValueSpecification<number>;
11742
- "building-base-transition"?: TransitionSpecification;
11743
11734
  "building-flood-light-wall-radius"?: DataDrivenPropertyValueSpecification<number>;
11744
- "building-flood-light-wall-radius-transition"?: TransitionSpecification;
11745
11735
  "building-flood-light-ground-radius"?: DataDrivenPropertyValueSpecification<number>;
11746
- "building-flood-light-ground-radius-transition"?: TransitionSpecification;
11747
11736
  "building-flip-roof-orientation"?: DataDrivenPropertyValueSpecification<boolean>;
11748
- "building-flip-roof-orientation-transition"?: TransitionSpecification;
11749
11737
  };
11750
11738
  "paint"?: {
11751
11739
  "building-opacity"?: PropertyValueSpecification<number>;
@@ -12697,6 +12685,7 @@ declare class StyleExpression {
12697
12685
  } | null;
12698
12686
  configDependencies: Set<string>;
12699
12687
  isIndoorDependent: boolean;
12688
+ isImageDependent: boolean;
12700
12689
  constructor(expression: Expression, propertySpec?: StylePropertySpecification | null, scope?: string | null, options?: ConfigOptions | null, iconImageUseTheme?: string | null);
12701
12690
  evaluateWithoutErrorHandling(globals: GlobalProperties, feature?: Feature, featureState?: FeatureState, canonical?: CanonicalTileID, availableImages?: ImageId[], formattedSection?: FormattedSection, featureTileCoord?: Point, featureDistanceData?: FeatureDistanceData): any;
12702
12691
  evaluate(globals: GlobalProperties, feature?: Feature, featureState?: FeatureState, canonical?: CanonicalTileID, availableImages?: ImageId[], formattedSection?: FormattedSection, featureTileCoord?: Point, featureDistanceData?: FeatureDistanceData, iconImageUseTheme?: string): any;
package/dist/index.es.js CHANGED
@@ -198,7 +198,7 @@ var $root = {
198
198
  },
199
199
  projection: {
200
200
  type: "projection",
201
- doc: "The projection the map should be rendered in. Supported projections are Mercator, Globe, Albers, Equal Earth, Equirectangular (WGS84), Lambert conformal conic, Natural Earth, and Winkel Tripel. Terrain, sky and fog are supported by only Mercator and globe. CustomLayerInterface is not supported outside of Mercator.",
201
+ doc: "The projection the map should be rendered in. Supported projections are Mercator, Globe, Albers, Equal Earth, Equirectangular (WGS84), Lambert conformal conic, Natural Earth, and Winkel Tripel. Terrain, sky and fog are supported by only Mercator and globe. CustomLayerInterface is supported by only Mercator and globe.",
202
202
  example: {
203
203
  name: "albers",
204
204
  center: [
@@ -2394,7 +2394,6 @@ var layout_building = {
2394
2394
  minimum: 0,
2395
2395
  units: "meters",
2396
2396
  doc: "The height of the procedural buildings.",
2397
- transition: true,
2398
2397
  "private": true,
2399
2398
  "sdk-support": {
2400
2399
  "basic functionality": {
@@ -2419,7 +2418,6 @@ var layout_building = {
2419
2418
  minimum: 0,
2420
2419
  units: "meters",
2421
2420
  doc: "The height with which to extrude the base of this layer. Must be less than or equal to `building-height`.",
2422
- transition: true,
2423
2421
  requires: [
2424
2422
  "building-height"
2425
2423
  ],
@@ -2452,7 +2450,6 @@ var layout_building = {
2452
2450
  requires: [
2453
2451
  "lights"
2454
2452
  ],
2455
- transition: true,
2456
2453
  expression: {
2457
2454
  interpolated: true,
2458
2455
  parameters: [
@@ -2483,7 +2480,6 @@ var layout_building = {
2483
2480
  requires: [
2484
2481
  "lights"
2485
2482
  ],
2486
- transition: true,
2487
2483
  expression: {
2488
2484
  interpolated: true,
2489
2485
  parameters: [
@@ -2510,7 +2506,6 @@ var layout_building = {
2510
2506
  "private": true,
2511
2507
  "default": false,
2512
2508
  doc: "Flips the orientation of the roofs for the buildings. This only affects simple geometries. Namely buildings whose footprints form a quadrilateral. By default (false), the roof ridge takes the direction of the longer edge of the quadrilateral.",
2513
- transition: true,
2514
2509
  requires: [
2515
2510
  "building-roof-shape"
2516
2511
  ],
@@ -2854,7 +2849,6 @@ var layout_line = {
2854
2849
  requires: [
2855
2850
  "line-z-offset"
2856
2851
  ],
2857
- transition: true,
2858
2852
  "property-type": "data-driven"
2859
2853
  }
2860
2854
  };
@@ -15163,7 +15157,7 @@ class Config {
15163
15157
  serialize() {
15164
15158
  const res = ["config", this.key];
15165
15159
  if (this.scope) {
15166
- res.concat(this.scope);
15160
+ res.push(this.scope);
15167
15161
  }
15168
15162
  return res;
15169
15163
  }
@@ -17990,12 +17984,13 @@ function collect(e, deps) {
17990
17984
  return;
17991
17985
  }
17992
17986
  if (e instanceof CompoundExpression && e.name === "is-active-floor") deps.isIndoorDependent = true;
17987
+ if (e instanceof ImageExpression) deps.isImageDependent = true;
17993
17988
  e.eachChild((arg) => {
17994
17989
  collect(arg, deps);
17995
17990
  });
17996
17991
  }
17997
17992
  function getExpressionDependencies(e) {
17998
- const deps = { configDependencies: NO_CONFIG_DEPENDENCIES, isIndoorDependent: false };
17993
+ const deps = { configDependencies: NO_CONFIG_DEPENDENCIES, isIndoorDependent: false, isImageDependent: false };
17999
17994
  collect(e, deps);
18000
17995
  return deps;
18001
17996
  }
@@ -18220,6 +18215,7 @@ class StyleExpression {
18220
18215
  const dependencies = getExpressionDependencies(expression);
18221
18216
  this.configDependencies = dependencies.configDependencies;
18222
18217
  this.isIndoorDependent = dependencies.isIndoorDependent;
18218
+ this.isImageDependent = dependencies.isImageDependent;
18223
18219
  }
18224
18220
  evaluateWithoutErrorHandling(globals, feature, featureState, canonical, availableImages, formattedSection, featureTileCoord, featureDistanceData) {
18225
18221
  const evaluator = this._evaluator;