From d3ba773726cb83c8130821db65b598362d2db7da Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sat, 3 Nov 2018 01:17:36 +0100 Subject: [PATCH] multixy: added `.pad-N` class to inner xy pads to help with css customization --- CHANGELOG.md | 7 ++++++- src/client/app/widgets/pads/multixy.js | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e57eaa7..8ec7cc76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,15 @@ # Changelog +## 0.39.4 + +- widgets + - multixy: added `.pad-N` class to inner xy pads to help with css customization + ## 0.39.3 - bug fixes - broken tabs color property - - broken `/TABS` command; this command doesn't makes panels send osc messages anymore + - broken `/TABS` command; this command doesn't makes panels send osc messages anymore ## 0.39.2 diff --git a/src/client/app/widgets/pads/multixy.js b/src/client/app/widgets/pads/multixy.js index a777f67c..1d80ddf9 100644 --- a/src/client/app/widgets/pads/multixy.js +++ b/src/client/app/widgets/pads/multixy.js @@ -57,7 +57,7 @@ module.exports = class MultiXy extends Pad { this.pads = [] - for (let i=this.npoints-1;i>=0;i--) { + for (let i = 0; i < this.npoints; i++) { this.pads[i] = new Xy({props:{ ...xyDefaults, snap:this.getProp('snap'), @@ -73,6 +73,7 @@ module.exports = class MultiXy extends Pad { input:false }, parent: this}) this.pads[i].sendValue = ()=>{} + this.pads[i].widget.classList.add('pad-' + i) this.wrapper.appendChild(this.pads[i].widget) }