Skip to content

Instantly share code, notes, and snippets.

@monzou
Created October 21, 2015 03:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monzou/6da55466ed0d77a7777c to your computer and use it in GitHub Desktop.
Save monzou/6da55466ed0d77a7777c to your computer and use it in GitHub Desktop.
d3.js line-symbol
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