Skip to content

Commit

Permalink
add jsdoc, remove refs to unpm
Browse files Browse the repository at this point in the history
  • Loading branch information
javidhsueh committed Apr 13, 2017
1 parent 76c64c8 commit a8281e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/radial-chart/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ function generateLabels(mappedData) {
// could add force direction here to make sure the labels dont overlap
}

/**
* Get the max radius so the chart can extend to the margin.
* @param {Number} width - container width
* @param {Number} height - container height
* @return {Number} radius
*/
function getMaxRadius(width, height) {
return Math.min(width, height) / 2 - DEFAULT_RADIUS_MARGIN;
}
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3438,7 +3438,7 @@ react-motion@^0.4.7:

react-test-renderer@^15.5.4:
version "15.5.4"
resolved "https://unpm.uberinternal.com/react-test-renderer/-/react-test-renderer-15.5.4.tgz#d4ebb23f613d685ea8f5390109c2d20fbf7c83bc"
resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-15.5.4.tgz#d4ebb23f613d685ea8f5390109c2d20fbf7c83bc"
dependencies:
fbjs "^0.8.9"
object-assign "^4.1.0"
Expand Down

0 comments on commit a8281e5

Please sign in to comment.