Skip to content

Commit

Permalink
required > optional
Browse files Browse the repository at this point in the history
  • Loading branch information
meetar authored Jan 6, 2017
1 parent 6243618 commit b8509a7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions pages/draw.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,15 @@ roads:
offset: [[13, [0, 6px]], [15, [0, 9px]]]
```

####`optional`
Optional _boolean_. Default is `false`.

Applies to _text_ blocks under _point_ styles.

When `true`, stipulates that any _text_ attached to a _point_ must draw with the point. When `false`, a _point_ and associated _text_ will be tested for collisions separately, and if the _text_ collides, the _point_ will be drawn alone.

Note that attached _text_ will never draw without its _point_.

####`order`
Required _integer_ or _function_. No default.

Expand Down Expand Up @@ -484,15 +493,6 @@ roads:
...
```

####`required`
Optional _boolean_. Default is `false`.

Applies to _text_ blocks under _point_ styles.

When `true`, stipulates that any _text_ attached to a _point_ must draw with the point. When `false`, a _point_ and associated _text_ will be tested for collisions separately, and if the _text_ collides, the _point_ will be drawn alone.

Note that attached _text_ will never draw without its _point_.

####`size`
Optional _number_ in `px`, _[x, y]_ in `px`, or _stops_ having either 1D or 2D values. Mixed 1D and
2D stop values are not allowed. Default is `32px`.
Expand Down

0 comments on commit b8509a7

Please sign in to comment.