We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3a4552 commit 34d00eeCopy full SHA for 34d00ee
src/components/direction-picker/dial.jsx
@@ -56,6 +56,7 @@ class Dial extends React.Component {
56
* @returns {string} Path data string for the gauge.
57
*/
58
gaugePath (radius, direction) {
59
+ direction = ((direction + 180) % 360 + 360) % 360 - 180;
60
const rads = (direction) * (Math.PI / 180);
61
const path = [];
62
path.push(`M ${radius} 0`);
0 commit comments