Skip to content

Commit

Permalink
Make requirements for text offset props more precise (#8418)
Browse files Browse the repository at this point in the history
* Make requirements for text offset props more precise

* Overriding text properties have fewer requirements
  • Loading branch information
Derek Lieu authored and mourner committed Jul 5, 2019
1 parent 94598e7 commit d75dfa8
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions src/style-spec/reference/v8.json
Original file line number Diff line number Diff line change
Expand Up @@ -1815,9 +1815,7 @@
}
},
"requires": [
{
"!" : "text-offset"
}
"text-field"
],
"property-type": "data-driven",
"expression": {
Expand Down Expand Up @@ -1861,12 +1859,7 @@
}
},
"requires": [
{
"!": "text-anchor"
},
{
"!": "text-offset"
},
"text-field",
{
"symbol-placement": [
"point"
Expand Down Expand Up @@ -1898,9 +1891,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 +1923,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 +2128,9 @@
"text-field",
{
"!": "text-radial-offset"
},
{
"!": "text-variable-anchor"
}
],
"sdk-support": {
Expand Down

0 comments on commit d75dfa8

Please sign in to comment.