@mapbox/mapbox-gl-style-spec 14.9.0-beta.1 → 14.9.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
@@ -1255,13 +1255,7 @@ type ClipLayerSpecification = {
1255
1255
  "maxzoom"?: number;
1256
1256
  "filter"?: FilterSpecification;
1257
1257
  "layout"?: {
1258
- /**
1259
- * @experimental This property is experimental and subject to change in future versions.
1260
- */
1261
1258
  "clip-layer-types"?: ExpressionSpecification;
1262
- /**
1263
- * @experimental This property is experimental and subject to change in future versions.
1264
- */
1265
1259
  "clip-layer-scope"?: ExpressionSpecification;
1266
1260
  };
1267
1261
  "paint"?: never;
package/dist/index.es.js CHANGED
@@ -1540,8 +1540,7 @@ var layout_clip = {
1540
1540
  expression: {
1541
1541
  interpolated: false
1542
1542
  },
1543
- "property-type": "data-constant",
1544
- experimental: true
1543
+ "property-type": "data-constant"
1545
1544
  },
1546
1545
  "clip-layer-scope": {
1547
1546
  type: "array",
@@ -1559,8 +1558,7 @@ var layout_clip = {
1559
1558
  expression: {
1560
1559
  interpolated: false
1561
1560
  },
1562
- "property-type": "data-constant",
1563
- experimental: true
1561
+ "property-type": "data-constant"
1564
1562
  }
1565
1563
  };
1566
1564
  var layout_fill = {
@@ -4072,7 +4070,7 @@ var expression_name = {
4072
4070
  }
4073
4071
  },
4074
4072
  image: {
4075
- doc: "Returns a [`ResolvedImage`](/mapbox-gl-js/style-spec/types/#resolvedimage) for use in [`icon-image`](/mapbox-gl-js/style-spec/layers/#layout-symbol-icon-image), `*-pattern` entries, and as a section in the [`'format'`](#types-format) expression. A [`'coalesce'`](#coalesce) expression containing `image` expressions will evaluate to the first listed image that is currently in the style. This validation process is synchronous and requires the image to have been added to the style before requesting it in the `'image'` argument. To implement crossfading between two images within a symbol layer using the [`icon-image-cross-fade`](/mapbox-gl-js/style-spec/layers/#paint-symbol-icon-image-cross-fade) attribute, include a second image as the second argument in the `'image'` expression.",
4073
+ doc: "Returns a [`ResolvedImage`](/style-spec/reference/types/#resolvedimage) for use in [`icon-image`](/style-spec/reference/layers/#layout-symbol-icon-image), `*-pattern` entries, and as a section in the [`'format'`](#types-format) expression.\n\nA [`'coalesce'`](#coalesce) expression containing `image` expressions will evaluate to the first listed image that is currently in the style. This validation process is synchronous and requires the image to have been added to the style before requesting it in the `'image'` argument.\n\nEvery image name can be followed by an optional [`ImageOptions`](/style-spec/reference/types/#imageoptions) object, which will be used for vector images only.\n\nTo implement crossfading between two images within a symbol layer using the [`icon-image-cross-fade`](/style-spec/reference/layers/#paint-symbol-icon-image-cross-fade) attribute, include a second image as the second argument in the `'image'` expression.",
4076
4074
  group: "Types",
4077
4075
  "sdk-support": {
4078
4076
  "basic functionality": {
@@ -5068,7 +5066,19 @@ var snow = {
5068
5066
  density: {
5069
5067
  type: "number",
5070
5068
  "property-type": "data-constant",
5071
- "default": 1,
5069
+ "default": [
5070
+ "interpolate",
5071
+ [
5072
+ "linear"
5073
+ ],
5074
+ [
5075
+ "zoom"
5076
+ ],
5077
+ 11,
5078
+ 0,
5079
+ 13,
5080
+ 0.85
5081
+ ],
5072
5082
  minimum: 0,
5073
5083
  maximum: 1,
5074
5084
  experimental: true,
@@ -5138,7 +5148,7 @@ var snow = {
5138
5148
  opacity: {
5139
5149
  type: "number",
5140
5150
  "property-type": "data-constant",
5141
- "default": 0.9,
5151
+ "default": 1,
5142
5152
  minimum: 0,
5143
5153
  maximum: 1,
5144
5154
  experimental: true,
@@ -5162,7 +5172,19 @@ var snow = {
5162
5172
  vignette: {
5163
5173
  type: "number",
5164
5174
  "property-type": "data-constant",
5165
- "default": 0.3,
5175
+ "default": [
5176
+ "interpolate",
5177
+ [
5178
+ "linear"
5179
+ ],
5180
+ [
5181
+ "zoom"
5182
+ ],
5183
+ 11,
5184
+ 0,
5185
+ 13,
5186
+ 0.3
5187
+ ],
5166
5188
  minimum: 0,
5167
5189
  maximum: 1,
5168
5190
  experimental: true,
@@ -5208,7 +5230,7 @@ var snow = {
5208
5230
  "center-thinning": {
5209
5231
  type: "number",
5210
5232
  "property-type": "data-constant",
5211
- "default": 1,
5233
+ "default": 0.4,
5212
5234
  minimum: 0,
5213
5235
  maximum: 1,
5214
5236
  experimental: true,
@@ -5233,7 +5255,7 @@ var snow = {
5233
5255
  type: "array",
5234
5256
  "default": [
5235
5257
  0,
5236
- 90
5258
+ 50
5237
5259
  ],
5238
5260
  minimum: 0,
5239
5261
  maximum: 360,
@@ -5265,7 +5287,7 @@ var snow = {
5265
5287
  "flake-size": {
5266
5288
  type: "number",
5267
5289
  "property-type": "data-constant",
5268
- "default": 1,
5290
+ "default": 0.71,
5269
5291
  minimum: 0,
5270
5292
  maximum: 5,
5271
5293
  experimental: true,
@@ -5291,7 +5313,19 @@ var rain = {
5291
5313
  density: {
5292
5314
  type: "number",
5293
5315
  "property-type": "data-constant",
5294
- "default": 1,
5316
+ "default": [
5317
+ "interpolate",
5318
+ [
5319
+ "linear"
5320
+ ],
5321
+ [
5322
+ "zoom"
5323
+ ],
5324
+ 11,
5325
+ 0,
5326
+ 13,
5327
+ 0.5
5328
+ ],
5295
5329
  minimum: 0,
5296
5330
  maximum: 1,
5297
5331
  experimental: true,
@@ -5339,7 +5373,20 @@ var rain = {
5339
5373
  color: {
5340
5374
  type: "color",
5341
5375
  "property-type": "data-constant",
5342
- "default": "#919191",
5376
+ "default": [
5377
+ "interpolate",
5378
+ [
5379
+ "linear"
5380
+ ],
5381
+ [
5382
+ "measure-light",
5383
+ "brightness"
5384
+ ],
5385
+ 0,
5386
+ "#03113d",
5387
+ 0.3,
5388
+ "#a8adbc"
5389
+ ],
5343
5390
  experimental: true,
5344
5391
  expression: {
5345
5392
  interpolated: true,
@@ -5361,7 +5408,20 @@ var rain = {
5361
5408
  opacity: {
5362
5409
  type: "number",
5363
5410
  "property-type": "data-constant",
5364
- "default": 0.19,
5411
+ "default": [
5412
+ "interpolate",
5413
+ [
5414
+ "linear"
5415
+ ],
5416
+ [
5417
+ "measure-light",
5418
+ "brightness"
5419
+ ],
5420
+ 0,
5421
+ 0.88,
5422
+ 1,
5423
+ 0.7
5424
+ ],
5365
5425
  minimum: 0,
5366
5426
  maximum: 1,
5367
5427
  experimental: true,
@@ -5385,7 +5445,19 @@ var rain = {
5385
5445
  vignette: {
5386
5446
  type: "number",
5387
5447
  "property-type": "data-constant",
5388
- "default": 0.3,
5448
+ "default": [
5449
+ "interpolate",
5450
+ [
5451
+ "linear"
5452
+ ],
5453
+ [
5454
+ "zoom"
5455
+ ],
5456
+ 11,
5457
+ 0,
5458
+ 13,
5459
+ 1
5460
+ ],
5389
5461
  minimum: 0,
5390
5462
  maximum: 1,
5391
5463
  experimental: true,
@@ -5409,7 +5481,20 @@ var rain = {
5409
5481
  "vignette-color": {
5410
5482
  type: "color",
5411
5483
  "property-type": "data-constant",
5412
- "default": "#ffffff",
5484
+ "default": [
5485
+ "interpolate",
5486
+ [
5487
+ "linear"
5488
+ ],
5489
+ [
5490
+ "measure-light",
5491
+ "brightness"
5492
+ ],
5493
+ 0,
5494
+ "#001736",
5495
+ 0.3,
5496
+ "#464646"
5497
+ ],
5413
5498
  experimental: true,
5414
5499
  expression: {
5415
5500
  interpolated: true,
@@ -5431,7 +5516,7 @@ var rain = {
5431
5516
  "center-thinning": {
5432
5517
  type: "number",
5433
5518
  "property-type": "data-constant",
5434
- "default": 1,
5519
+ "default": 0.57,
5435
5520
  minimum: 0,
5436
5521
  maximum: 1,
5437
5522
  experimental: true,
@@ -5488,11 +5573,11 @@ var rain = {
5488
5573
  "droplet-size": {
5489
5574
  type: "array",
5490
5575
  "default": [
5491
- 1,
5492
- 10
5576
+ 2.6,
5577
+ 18.2
5493
5578
  ],
5494
5579
  minimum: 0,
5495
- maximum: 20,
5580
+ maximum: 50,
5496
5581
  length: 2,
5497
5582
  value: "number",
5498
5583
  "property-type": "data-constant",
@@ -5521,7 +5606,7 @@ var rain = {
5521
5606
  "distortion-strength": {
5522
5607
  type: "number",
5523
5608
  "property-type": "data-constant",
5524
- "default": 0.5,
5609
+ "default": 0.7,
5525
5610
  minimum: 0,
5526
5611
  maximum: 1,
5527
5612
  experimental: true,
@@ -8164,9 +8249,9 @@ var paint_raster = {
8164
8249
  ],
8165
8250
  "sdk-support": {
8166
8251
  "basic functionality": {
8167
- js: "3.0.0",
8168
- android: "11.0.0",
8169
- ios: "11.0.0"
8252
+ js: "3.1.0",
8253
+ android: "11.1.0",
8254
+ ios: "11.1.0"
8170
8255
  }
8171
8256
  },
8172
8257
  expression: {
@@ -12684,7 +12769,7 @@ class FormatExpression {
12684
12769
  }
12685
12770
 
12686
12771
  function isImageOptions(value) {
12687
- if (typeof value !== 'string' && !isExpression(value)) {
12772
+ if (value !== null && typeof value === 'object') {
12688
12773
  return true;
12689
12774
  }
12690
12775
  return false;