multixy: added .pad-N class to inner xy pads to help with css customization

This commit is contained in:
jean-emmanuel 2018-11-03 01:17:36 +01:00
parent 58b3b7c853
commit d3ba773726
2 changed files with 8 additions and 2 deletions

View file

@ -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

View file

@ -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)
}