Created
October 21, 2015 03:18
-
-
Save monzou/6da55466ed0d77a7777c to your computer and use it in GitHub Desktop.
d3.js line-symbol
This file contains hidden or 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
const LINE_SYMBOL_FACTORY = (size) => { | |
let [ w, h ] = [ size / 2, size / 8 ]; | |
return `M ${-w},${-h} L ${w},${-h} ${w},${h} ${-w},${h} Z`; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment