Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make requirements for text offset props more precise #8418

Merged
merged 2 commits into from
Jul 5, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions src/style-spec/reference/v8.json
Original file line number Diff line number Diff line change
Expand Up @@ -1815,6 +1815,7 @@
}
},
"requires": [
"text-field",
{
"!" : "text-offset"
}
Expand Down Expand Up @@ -1861,6 +1862,7 @@
}
},
"requires": [
"text-field",
{
"!": "text-anchor"
},
Expand Down Expand Up @@ -1898,9 +1900,6 @@
},
"text-anchor": {
"type": "enum",
"requires": {
"!": "text-variable-anchor"
},
"values": {
"center": {
"doc": "The center of the text is placed closest to the anchor."
Expand Down Expand Up @@ -1933,7 +1932,10 @@
"default": "center",
"doc": "Part of the text placed closest to the anchor.",
"requires": [
"text-field"
"text-field",
{
"!": "text-variable-anchor"
}
],
"sdk-support": {
"basic functionality": {
Expand Down Expand Up @@ -2135,6 +2137,9 @@
"text-field",
{
"!": "text-radial-offset"
},
{
"!": "text-variable-anchor"
}
],
"sdk-support": {
Expand Down