@mapbox/mapbox-gl-style-spec 14.0.0-beta.1 → 14.0.0-beta.2

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.es.js CHANGED
@@ -147,6 +147,7 @@ var $root = {
147
147
  glyphs: {
148
148
  type: "string",
149
149
  doc: "A URL template for loading signed-distance-field glyph sets in PBF format. The URL must include `{fontstack}` and `{range}` tokens. This property is required if any layer uses the `text-field` layout property. The URL must be absolute, containing the [scheme, authority and path components](https://en.wikipedia.org/wiki/URL#Syntax).",
150
+ "default": "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
150
151
  example: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf"
151
152
  },
152
153
  transition: {
@@ -284,6 +285,14 @@ var properties_light_directional = {
284
285
  210,
285
286
  30
286
287
  ],
288
+ minimum: [
289
+ 0,
290
+ 0
291
+ ],
292
+ maximum: [
293
+ 360,
294
+ 90
295
+ ],
287
296
  length: 2,
288
297
  value: "number",
289
298
  "property-type": "data-constant",
@@ -297,7 +306,7 @@ var properties_light_directional = {
297
306
  doc: "Direction of the light source specified as [a azimuthal angle, p polar angle] where a indicates the azimuthal angle of the light relative to north (in degrees and proceeding clockwise), and p indicates polar angle of the light (from 0°, directly above, to 180°, directly below).",
298
307
  example: [
299
308
  90,
300
- 80
309
+ 40
301
310
  ]
302
311
  },
303
312
  color: {
@@ -7886,7 +7895,7 @@ var v8 = {
7886
7895
  doc: "Radius of a fill extrusion edge in meters. If not zero, rounds extrusion edges for a smoother appearance.",
7887
7896
  "sdk-support": {
7888
7897
  "basic functionality": {
7889
- js: "v2.10.0",
7898
+ js: "3.0.0",
7890
7899
  android: "10.7.0",
7891
7900
  ios: "10.7.0"
7892
7901
  },
@@ -8250,7 +8259,7 @@ var v8 = {
8250
8259
  doc: "Controls the intensity of shading near ground and concave angles between walls. Default value 0.0 disables ambient occlusion and values around 0.3 provide the most plausible results for buildings.",
8251
8260
  "sdk-support": {
8252
8261
  "basic functionality": {
8253
- js: "2.10.0",
8262
+ js: "3.0.0",
8254
8263
  android: "10.7.0",
8255
8264
  ios: "10.7.0"
8256
8265
  }
@@ -8275,7 +8284,7 @@ var v8 = {
8275
8284
  ],
8276
8285
  "sdk-support": {
8277
8286
  "basic functionality": {
8278
- js: "2.10.0",
8287
+ js: "3.0.0",
8279
8288
  android: "10.7.0",
8280
8289
  ios: "10.7.0"
8281
8290
  }
@@ -8502,7 +8511,7 @@ var v8 = {
8502
8511
  transition: false,
8503
8512
  "sdk-support": {
8504
8513
  "basic functionality": {
8505
- js: "2.15.0",
8514
+ js: "3.0.0",
8506
8515
  android: "10.10.0",
8507
8516
  ios: "10.10.0"
8508
8517
  }
@@ -19417,7 +19426,7 @@ function validateProperty(options, propertyType) {
19417
19426
  }
19418
19427
  const errors = [];
19419
19428
  if (options.layerType === 'symbol') {
19420
- if (propertyKey === 'text-field' && style && !style.glyphs) {
19429
+ if (propertyKey === 'text-field' && style && !style.glyphs && !style.imports) {
19421
19430
  errors.push(new ValidationError(key, value, 'use of "text-field" requires a style "glyphs" property'));
19422
19431
  }
19423
19432
  if (propertyKey === 'text-font' && isFunction(deepUnbundle(value)) && unbundle(value.type) === 'identity') {