Skip to content

Instantly share code, notes, and snippets.

@tcarlsen
Created October 21, 2014 13:35
Show Gist options
  • Save tcarlsen/3cd8f1500279ca93114d to your computer and use it in GitHub Desktop.
Save tcarlsen/3cd8f1500279ca93114d to your computer and use it in GitHub Desktop.
label
.text data.label
.style 'font-size', "24px"
.style "font-size", ->
r = innerRadius - 20
return (2 * r) / this.getComputedTextLength() * 24 + "px"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment