-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch fog to use window-scaled units (#10533)
* Switch fog to use window-scaled units * Update style spec for fog range * Update fog validation tests to match new limits * Update fog validations
- Loading branch information
1 parent
fa7bc72
commit fde1179
Showing
12 changed files
with
45 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
}, | ||
"layers": [], | ||
"fog": { | ||
"range": [-2000, -1000], | ||
"range": [-2, -1], | ||
"sky-blend": -4 | ||
} | ||
} | ||
} |
10 changes: 7 additions & 3 deletions
10
test/unit/style-spec/fixture/fog-invalid-input.output-api-supported.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
[ | ||
{ | ||
"line": 10, | ||
"message": "fog: fog.range can't be negative" | ||
"line": 11, | ||
"message": "range[0]: -2 is less than the minimum value 0" | ||
}, | ||
{ | ||
"line": 11, | ||
"message": "range[1]: -1 is less than the minimum value 0" | ||
}, | ||
{ | ||
"line": 12, | ||
"message": "sky-blend: -4 is less than the minimum value 0" | ||
} | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
[ | ||
{ | ||
"line": 10, | ||
"message": "fog: fog.range can't be negative" | ||
"line": 11, | ||
"message": "range[0]: -2 is less than the minimum value 0" | ||
}, | ||
{ | ||
"line": 11, | ||
"message": "range[1]: -1 is less than the minimum value 0" | ||
}, | ||
{ | ||
"line": 12, | ||
"message": "sky-blend: -4 is less than the minimum value 0" | ||
} | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,6 @@ | |
}, | ||
"layers": [], | ||
"fog": { | ||
"range": [2000, 1000] | ||
"range": [2, 1] | ||
} | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
test/unit/style-spec/fixture/fog-invalid-range.output-api-supported.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[ | ||
{ | ||
"line": 10, | ||
"message": "fog: fog.range[0] can't be greater than fog.range[1]" | ||
"message": "fog: fog.range[0] can't be greater than or equal to fog.range[1]" | ||
} | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[ | ||
{ | ||
"line": 10, | ||
"message": "fog: fog.range[0] can't be greater than fog.range[1]" | ||
"message": "fog: fog.range[0] can't be greater than or equal to fog.range[1]" | ||
} | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters