sliders: prevent knob's center negative radius, clean knob style
This commit is contained in:
parent
e1a1c9bf98
commit
fdab98a854
5 changed files with 16 additions and 206 deletions
|
|
@ -182,7 +182,7 @@ Knob.prototype.draw = function(){
|
|||
|
||||
this.ctx.beginPath()
|
||||
this.ctx.fillStyle = this.colors.raised
|
||||
this.ctx.arc(this.width / 2, this.height / 2, this.minDimension / 2 - (30 + this.margin), 0, Math.PI * 2)
|
||||
this.ctx.arc(this.width / 2, this.height / 2, Math.max(this.minDimension / 2 - (30 + this.margin) * PXSCALE, 2 * PXSCALE), 0, Math.PI * 2)
|
||||
this.ctx.fill()
|
||||
|
||||
this.ctx.lineWidth = 2 * PXSCALE
|
||||
|
|
|
|||
|
|
@ -3857,7 +3857,7 @@ Knob.prototype.draw = function(){
|
|||
|
||||
this.ctx.beginPath()
|
||||
this.ctx.fillStyle = this.colors.raised
|
||||
this.ctx.arc(this.width / 2, this.height / 2, this.minDimension / 2 - (30 + this.margin), 0, Math.PI * 2)
|
||||
this.ctx.arc(this.width / 2, this.height / 2, Math.max(this.minDimension / 2 - (30 + this.margin) * PXSCALE, 2 * PXSCALE), 0, Math.PI * 2)
|
||||
this.ctx.fill()
|
||||
|
||||
this.ctx.lineWidth = 2 * PXSCALE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue