fader: fix broken horizontal + not compact mode (missing argument in a drawing function)
This commit is contained in:
parent
0625e529c1
commit
b3b2660470
2 changed files with 5 additions and 3 deletions
|
|
@ -1,7 +1,9 @@
|
|||
# Changelog
|
||||
|
||||
## next
|
||||
## 0.8.1
|
||||
|
||||
- bug
|
||||
- broken `fader` with `horizontal` set to `true` and `compact` set to `false`
|
||||
- widgets
|
||||
- remove margins from `plots`
|
||||
- added `origin` options to `plots`
|
||||
|
|
|
|||
|
|
@ -192,12 +192,12 @@ Fader.prototype.draw = function(){
|
|||
|
||||
this.ctx.save()
|
||||
this.ctx.globalAlpha = 0.3
|
||||
this.ctx.arc(d + this.margin * PXSCALE, this.height / 2, 10 * PXSCALE, Math.PI * 2)
|
||||
this.ctx.arc(d + this.margin * PXSCALE, this.height / 2, 10 * PXSCALE, Math.PI * 2, false)
|
||||
this.ctx.fill()
|
||||
this.ctx.restore()
|
||||
|
||||
this.ctx.beginPath()
|
||||
this.ctx.arc(d + this.margin * PXSCALE, this.height / 2, 4 * PXSCALE, Math.PI * 2)
|
||||
this.ctx.arc(d + this.margin * PXSCALE, this.height / 2, 4 * PXSCALE, Math.PI * 2, false)
|
||||
this.ctx.fill()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue