multixy: added .pad-N class to inner xy pads to help with css customization
This commit is contained in:
parent
270dff6257
commit
9a00d9560e
2 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue