multixy: fix decimals property (#688)
This commit is contained in:
parent
af53356d4e
commit
587644e225
2 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue