Skip to content

Commit

Permalink
removes attr camelCase warning
Browse files Browse the repository at this point in the history
  • Loading branch information
1wheel authored Feb 21, 2019
1 parent 68fbd04 commit 20b1fd3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@ selection.at({fontSize: 10, textAnchor: 'end', fontWeight: 600})

With syntax highlighting on, it is a little easier to see the difference between keys and values when everything isn't a string. Plus there's less typing!

Confusingly, there are several SVG attributes that are supposed to be camelCase. To avoid the automatic hypenation, use `attr`:

```js
selection.attr('startOffset', 10)
```

<a name="st" href="#st">#</a> selection.<b>st</b>(<i>name[, value]</i>) [<>](https://github.com/gka/d3-jetpack/blob/master/src/st.js "Source")

Like `at`, but for `style`. Additionally, when a number is passed to a style that requires a unit of measure, like `margin-top` or `font-size`, `px` is automatically appended. Instead of
Expand Down

0 comments on commit 20b1fd3

Please sign in to comment.