@mapbox/mapbox-gl-style-spec 14.8.0 → 14.9.0
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/diff.ts +16 -0
- package/dist/index.cjs +807 -130
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +162 -11
- package/dist/index.es.js +807 -130
- package/dist/index.es.js.map +1 -1
- package/expression/definitions/coercion.ts +1 -1
- package/expression/definitions/config.ts +1 -1
- package/expression/definitions/image.ts +184 -14
- package/expression/definitions/index.ts +7 -0
- package/expression/definitions/interpolate.ts +54 -13
- package/expression/expression.ts +1 -0
- package/expression/index.ts +12 -6
- package/expression/types/formatted.ts +1 -1
- package/expression/types/image_id_with_options.ts +54 -0
- package/expression/types/resolved_image.ts +49 -7
- package/expression/values.ts +9 -7
- package/feature_filter/index.ts +1 -0
- package/function/index.ts +1 -1
- package/group_by_layout.ts +35 -3
- package/package.json +1 -1
- package/reference/v8.json +357 -70
- package/types.ts +118 -9
- package/util/color.ts +62 -1
- package/validate/validate_fog.ts +10 -1
- package/validate/validate_function.ts +1 -1
- package/validate/validate_light.ts +10 -1
- package/validate/validate_lights.ts +11 -1
- package/validate/validate_property.ts +11 -0
- package/validate/validate_rain.ts +47 -0
- package/validate/validate_snow.ts +47 -0
- package/validate/validate_terrain.ts +11 -2
- package/validate_style.min.ts +4 -0
package/diff.ts
CHANGED
|
@@ -125,6 +125,16 @@ export const operations: {
|
|
|
125
125
|
*/
|
|
126
126
|
setFog: 'setFog',
|
|
127
127
|
|
|
128
|
+
/*
|
|
129
|
+
* { command: 'setSnow', args: [snowProperties] }
|
|
130
|
+
*/
|
|
131
|
+
setSnow: 'setSnow',
|
|
132
|
+
|
|
133
|
+
/*
|
|
134
|
+
* { command: 'setRain', args: [rainProperties] }
|
|
135
|
+
*/
|
|
136
|
+
setRain: 'setRain',
|
|
137
|
+
|
|
128
138
|
/*
|
|
129
139
|
* { command: 'setCamera', args: [cameraProperties] }
|
|
130
140
|
*/
|
|
@@ -495,6 +505,12 @@ export default function diffStyles(before: StyleSpecification, after: StyleSpeci
|
|
|
495
505
|
if (!isEqual(before.fog, after.fog)) {
|
|
496
506
|
commands.push({command: operations.setFog, args: [after.fog]});
|
|
497
507
|
}
|
|
508
|
+
if (!isEqual(before.snow, after.snow)) {
|
|
509
|
+
commands.push({command: operations.setSnow, args: [after.snow]});
|
|
510
|
+
}
|
|
511
|
+
if (!isEqual(before.rain, after.rain)) {
|
|
512
|
+
commands.push({command: operations.setRain, args: [after.rain]});
|
|
513
|
+
}
|
|
498
514
|
if (!isEqual(before.projection, after.projection)) {
|
|
499
515
|
commands.push({command: operations.setProjection, args: [after.projection]});
|
|
500
516
|
}
|