@mapbox/mapbox-gl-style-spec 14.0.0-rc.1 → 14.0.0-rc.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.cjs +86 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +86 -31
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/reference/v8.json +70 -24
- package/validate/validate_import.js +7 -0
- package/validate/validate_lights.js +11 -7
package/dist/index.cjs
CHANGED
|
@@ -313,7 +313,14 @@
|
|
|
313
313
|
example: [
|
|
314
314
|
90,
|
|
315
315
|
40
|
|
316
|
-
]
|
|
316
|
+
],
|
|
317
|
+
"sdk-support": {
|
|
318
|
+
"basic functionality": {
|
|
319
|
+
js: "3.0.0",
|
|
320
|
+
android: "11.0.0",
|
|
321
|
+
ios: "11.0.0"
|
|
322
|
+
}
|
|
323
|
+
}
|
|
317
324
|
},
|
|
318
325
|
color: {
|
|
319
326
|
type: "color",
|
|
@@ -326,7 +333,14 @@
|
|
|
326
333
|
]
|
|
327
334
|
},
|
|
328
335
|
transition: true,
|
|
329
|
-
doc: "Color of the directional light."
|
|
336
|
+
doc: "Color of the directional light.",
|
|
337
|
+
"sdk-support": {
|
|
338
|
+
"basic functionality": {
|
|
339
|
+
js: "3.0.0",
|
|
340
|
+
android: "11.0.0",
|
|
341
|
+
ios: "11.0.0"
|
|
342
|
+
}
|
|
343
|
+
}
|
|
330
344
|
},
|
|
331
345
|
intensity: {
|
|
332
346
|
type: "number",
|
|
@@ -341,7 +355,14 @@
|
|
|
341
355
|
]
|
|
342
356
|
},
|
|
343
357
|
transition: true,
|
|
344
|
-
doc: "A multiplier for the color of the directional light."
|
|
358
|
+
doc: "A multiplier for the color of the directional light.",
|
|
359
|
+
"sdk-support": {
|
|
360
|
+
"basic functionality": {
|
|
361
|
+
js: "3.0.0",
|
|
362
|
+
android: "11.0.0",
|
|
363
|
+
ios: "11.0.0"
|
|
364
|
+
}
|
|
365
|
+
}
|
|
345
366
|
},
|
|
346
367
|
"cast-shadows": {
|
|
347
368
|
type: "boolean",
|
|
@@ -351,7 +372,14 @@
|
|
|
351
372
|
expression: {
|
|
352
373
|
interpolated: false
|
|
353
374
|
},
|
|
354
|
-
"property-type": "data-constant"
|
|
375
|
+
"property-type": "data-constant",
|
|
376
|
+
"sdk-support": {
|
|
377
|
+
"basic functionality": {
|
|
378
|
+
js: "3.0.0",
|
|
379
|
+
android: "11.0.0",
|
|
380
|
+
ios: "11.0.0"
|
|
381
|
+
}
|
|
382
|
+
}
|
|
355
383
|
},
|
|
356
384
|
"shadow-intensity": {
|
|
357
385
|
type: "number",
|
|
@@ -366,7 +394,14 @@
|
|
|
366
394
|
]
|
|
367
395
|
},
|
|
368
396
|
doc: "Determines the shadow strength, affecting the shadow receiver surfaces final color. Values near 0.0 reduce the shadow contribution to the final color. Values near to 1.0 make occluded surfaces receive almost no directional light. Designed to be used mostly for transitioning between values 0 and 1.",
|
|
369
|
-
transition: true
|
|
397
|
+
transition: true,
|
|
398
|
+
"sdk-support": {
|
|
399
|
+
"basic functionality": {
|
|
400
|
+
js: "3.0.0",
|
|
401
|
+
android: "11.0.0",
|
|
402
|
+
ios: "11.0.0"
|
|
403
|
+
}
|
|
404
|
+
}
|
|
370
405
|
}
|
|
371
406
|
};
|
|
372
407
|
var properties_light_ambient = {
|
|
@@ -381,7 +416,14 @@
|
|
|
381
416
|
]
|
|
382
417
|
},
|
|
383
418
|
transition: true,
|
|
384
|
-
doc: "Color of the ambient light."
|
|
419
|
+
doc: "Color of the ambient light.",
|
|
420
|
+
"sdk-support": {
|
|
421
|
+
"basic functionality": {
|
|
422
|
+
js: "3.0.0",
|
|
423
|
+
android: "11.0.0",
|
|
424
|
+
ios: "11.0.0"
|
|
425
|
+
}
|
|
426
|
+
}
|
|
385
427
|
},
|
|
386
428
|
intensity: {
|
|
387
429
|
type: "number",
|
|
@@ -396,7 +438,14 @@
|
|
|
396
438
|
]
|
|
397
439
|
},
|
|
398
440
|
transition: true,
|
|
399
|
-
doc: "A multiplier for the color of the ambient light."
|
|
441
|
+
doc: "A multiplier for the color of the ambient light.",
|
|
442
|
+
"sdk-support": {
|
|
443
|
+
"basic functionality": {
|
|
444
|
+
js: "3.0.0",
|
|
445
|
+
android: "11.0.0",
|
|
446
|
+
ios: "11.0.0"
|
|
447
|
+
}
|
|
448
|
+
}
|
|
400
449
|
}
|
|
401
450
|
};
|
|
402
451
|
var properties_light_flat = {
|
|
@@ -423,10 +472,9 @@
|
|
|
423
472
|
example: "map",
|
|
424
473
|
"sdk-support": {
|
|
425
474
|
"basic functionality": {
|
|
426
|
-
js: "0.
|
|
427
|
-
android: "
|
|
428
|
-
ios: "
|
|
429
|
-
macos: "0.5.0"
|
|
475
|
+
js: "3.0.0",
|
|
476
|
+
android: "11.0.0",
|
|
477
|
+
ios: "11.0.0"
|
|
430
478
|
}
|
|
431
479
|
}
|
|
432
480
|
},
|
|
@@ -455,10 +503,9 @@
|
|
|
455
503
|
],
|
|
456
504
|
"sdk-support": {
|
|
457
505
|
"basic functionality": {
|
|
458
|
-
js: "0.
|
|
459
|
-
android: "
|
|
460
|
-
ios: "
|
|
461
|
-
macos: "0.5.0"
|
|
506
|
+
js: "3.0.0",
|
|
507
|
+
android: "11.0.0",
|
|
508
|
+
ios: "11.0.0"
|
|
462
509
|
}
|
|
463
510
|
}
|
|
464
511
|
},
|
|
@@ -476,10 +523,9 @@
|
|
|
476
523
|
doc: "Color tint for lighting extruded geometries.",
|
|
477
524
|
"sdk-support": {
|
|
478
525
|
"basic functionality": {
|
|
479
|
-
js: "0.
|
|
480
|
-
android: "
|
|
481
|
-
ios: "
|
|
482
|
-
macos: "0.5.0"
|
|
526
|
+
js: "3.0.0",
|
|
527
|
+
android: "11.0.0",
|
|
528
|
+
ios: "11.0.0"
|
|
483
529
|
}
|
|
484
530
|
}
|
|
485
531
|
},
|
|
@@ -499,10 +545,9 @@
|
|
|
499
545
|
doc: "Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.",
|
|
500
546
|
"sdk-support": {
|
|
501
547
|
"basic functionality": {
|
|
502
|
-
js: "0.
|
|
503
|
-
android: "
|
|
504
|
-
ios: "
|
|
505
|
-
macos: "0.5.0"
|
|
548
|
+
js: "3.0.0",
|
|
549
|
+
android: "11.0.0",
|
|
550
|
+
ios: "11.0.0"
|
|
506
551
|
}
|
|
507
552
|
}
|
|
508
553
|
}
|
|
@@ -1228,6 +1273,7 @@
|
|
|
1228
1273
|
},
|
|
1229
1274
|
"model-id": {
|
|
1230
1275
|
type: "string",
|
|
1276
|
+
"default": "",
|
|
1231
1277
|
doc: "Model to render.",
|
|
1232
1278
|
"property-type": "data-driven",
|
|
1233
1279
|
expression: {
|
|
@@ -7787,7 +7833,7 @@
|
|
|
7787
7833
|
"default": 0,
|
|
7788
7834
|
minimum: 0,
|
|
7789
7835
|
maximum: 5,
|
|
7790
|
-
units: "
|
|
7836
|
+
units: "intensity",
|
|
7791
7837
|
doc: "Strength of the emission. There is no emission for value 0. For value 1.0, only emissive component (no shading) is displayed and values above 1.0 produce light contribution to surrounding area, for some of the parts (e.g. doors). Expressions that depend on measure-light are not supported when using GeoJSON or vector tile as the model layer source.",
|
|
7792
7838
|
expression: {
|
|
7793
7839
|
interpolated: true,
|
|
@@ -19270,6 +19316,11 @@ ${ JSON.stringify(filterExp, null, 2) }
|
|
|
19270
19316
|
value: importSpec,
|
|
19271
19317
|
valueSpec: styleSpec.import
|
|
19272
19318
|
}));
|
|
19319
|
+
// Empty string is reserved for the root style id
|
|
19320
|
+
if (unbundle(importSpec.id) === '') {
|
|
19321
|
+
const key = `${ options.key }.id`;
|
|
19322
|
+
errors.push(new ValidationError(key, importSpec, `import id can't be an empty string`));
|
|
19323
|
+
}
|
|
19273
19324
|
if (data) {
|
|
19274
19325
|
const key = `${ options.key }.data`;
|
|
19275
19326
|
errors = errors.concat(validateStyle$2(data, styleSpec, { key }));
|
|
@@ -20169,13 +20220,17 @@ ${ JSON.stringify(filterExp, null, 2) }
|
|
|
20169
20220
|
return errors;
|
|
20170
20221
|
}
|
|
20171
20222
|
for (const propertyKey in properties) {
|
|
20172
|
-
|
|
20173
|
-
key
|
|
20174
|
-
|
|
20175
|
-
|
|
20176
|
-
|
|
20177
|
-
|
|
20178
|
-
|
|
20223
|
+
if (!lightPropertySpec[propertyKey]) {
|
|
20224
|
+
errors = errors.concat([new ValidationWarning(options.key, properties[propertyKey], `unknown property "${ propertyKey }"`)]);
|
|
20225
|
+
} else {
|
|
20226
|
+
errors = errors.concat(validate({
|
|
20227
|
+
key: propertyKey,
|
|
20228
|
+
value: properties[propertyKey],
|
|
20229
|
+
valueSpec: lightPropertySpec[propertyKey],
|
|
20230
|
+
style,
|
|
20231
|
+
styleSpec
|
|
20232
|
+
}));
|
|
20233
|
+
}
|
|
20179
20234
|
}
|
|
20180
20235
|
} else {
|
|
20181
20236
|
const transitionMatch = key.match(/^(.*)-transition$/);
|