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