multixy: fix decimals property (#688)

This commit is contained in:
jean-emmanuel 2021-02-21 14:39:23 +01:00
parent af53356d4e
commit 587644e225
2 changed files with 4 additions and 2 deletions

View file

@ -4,6 +4,7 @@
- bug fixes
- script: issue when using the `options` argument in `set()` (options leaked to subsequent set() calls in the script)
- multixy: `decimals` property not applied
# 1.8.8

View file

@ -235,11 +235,11 @@ module.exports = class MultiXy extends Pad {
}
getValue() {
getValue(withdecimals) {
var v = []
for (var i=0;i<this.pads.length * 2;i=i+2) {
[v[i],v[i+1]] = this.pads[i/2].getValue()
[v[i],v[i+1]] = this.pads[i/2].getValue(withdecimals)
}
return v
@ -283,6 +283,7 @@ module.exports = class MultiXy extends Pad {
case 'alphaFillOn':
case 'padding':
case 'lineWidth':
case 'decimals':
for (var w of this.pads) {
w.onPropChanged(propName)
}