diff options
Diffstat (limited to 'js')
-rwxr-xr-x | js/lib/geom/rectangle.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/lib/geom/rectangle.js b/js/lib/geom/rectangle.js index 8fc80c60..711245ae 100755 --- a/js/lib/geom/rectangle.js +++ b/js/lib/geom/rectangle.js | |||
@@ -541,7 +541,7 @@ exports.Rectangle = Object.create(GeomObj, { | |||
541 | //gradient = ctx.createRadialGradient(w/2, h/2, 0, w/2-this._strokeWidth, h/2, Math.max(ww, hh)/2); | 541 | //gradient = ctx.createRadialGradient(w/2, h/2, 0, w/2-this._strokeWidth, h/2, Math.max(ww, hh)/2); |
542 | gradient = ctx.createRadialGradient(w/2, h/2, 0, w/2, h/2, Math.max(ww, hh)/2); | 542 | gradient = ctx.createRadialGradient(w/2, h/2, 0, w/2, h/2, Math.max(ww, hh)/2); |
543 | } else { | 543 | } else { |
544 | gradient = ctx.createLinearGradient(inset/2, h/2, w-inset, h/2); | 544 | gradient = ctx.createLinearGradient(inset, h/2, w-inset, h/2); |
545 | } | 545 | } |
546 | colors = this._fillColor.color; | 546 | colors = this._fillColor.color; |
547 | 547 | ||