From 4ac7a41b1085366fd46cf9cd2d35f91ea8ca09b7 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 7 Nov 2016 09:04:21 +0100 Subject: [PATCH] multixy: nicer knobs and tiny perf improvement --- CHANGELOG.md | 3 ++- src/browser/js/app/widgets/pads/multixy.js | 12 +++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ad243401..c234d863 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,8 @@ - launcher displays options descriptions for booleans too - widgets - added generic `value` option for setting a widget's initial value (does not sync linked widget nor send osc message) - - **text** widget's `defaultText` replaced with `value` + - **text** widget's `defaultText` replaced with `value` + - multixy dots are drawn with filled background instead of stroke ## 0.10.4 diff --git a/src/browser/js/app/widgets/pads/multixy.js b/src/browser/js/app/widgets/pads/multixy.js index f4aeef49..328edef5 100644 --- a/src/browser/js/app/widgets/pads/multixy.js +++ b/src/browser/js/app/widgets/pads/multixy.js @@ -139,18 +139,24 @@ MultiXy.prototype.draw = function(){ this.ctx.fillStyle = this.colors.text this.ctx.lineWidth = PXSCALE this.ctx.strokeStyle = this.colors.custom + this.ctx.textAlign = 'center' + this.ctx.textBaseline = 'middle' for (var i=0;i