mirror of
https://github.com/jcreek/SelectionWheel.git
synced 2026-07-13 11:13:45 +00:00
fix(*): Fix ability to click circle to spin
This commit is contained in:
+8
-10
@@ -77,7 +77,7 @@ function makeArrowAndCircle(
|
|||||||
.attr('x', 0)
|
.attr('x', 0)
|
||||||
.attr('y', 0)
|
.attr('y', 0)
|
||||||
.attr('preserveAspectRatio', 'xMaxYMax slice');
|
.attr('preserveAspectRatio', 'xMaxYMax slice');
|
||||||
}
|
|
||||||
container
|
container
|
||||||
.append('circle')
|
.append('circle')
|
||||||
.attr('cx', 0)
|
.attr('cx', 0)
|
||||||
@@ -86,16 +86,14 @@ function makeArrowAndCircle(
|
|||||||
.style('fill', 'white')
|
.style('fill', 'white')
|
||||||
.style('fill', 'url(#image)')
|
.style('fill', 'url(#image)')
|
||||||
.style('cursor', 'pointer');
|
.style('cursor', 'pointer');
|
||||||
if (imageUrlForSpinner.length === 0) {
|
} else {
|
||||||
// spin text
|
|
||||||
container
|
container
|
||||||
.append('text')
|
.append('circle')
|
||||||
.attr('x', 0)
|
.attr('cx', 0)
|
||||||
.attr('y', 10)
|
.attr('cy', 0)
|
||||||
.attr('text-anchor', 'middle')
|
.attr('r', 60)
|
||||||
.text('SPIN')
|
.style('fill', 'white')
|
||||||
.style('font-weight', 'bold')
|
.style('cursor', 'pointer');
|
||||||
.style('font-size', '30px');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user