multixy: fix default props when points are named
This commit is contained in:
parent
32803f3f31
commit
20d29f8111
2 changed files with 4 additions and 1 deletions
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
## 1.27.2
|
||||
|
||||
- bug fixes
|
||||
- multixy: `default` not applied when points are named
|
||||
|
||||
- client
|
||||
- show 3-dots menu in read-only mode with access to allowed items (e.g fullscreen)
|
||||
- hide console in read-only mode
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ module.exports = class MultiXy extends Pad {
|
|||
snap:this.getProp('snap'),
|
||||
spring:this.getProp('spring'),
|
||||
ephemeral:this.getProp('ephemeral'),
|
||||
default:this.getProp('default').length === this.getProp('points') * 2 ? [this.getProp('default')[i*2], this.getProp('default')[i*2 + 1]] : '',
|
||||
default:this.getProp('default').length === this.npoints * 2 ? [this.getProp('default')[i*2], this.getProp('default')[i*2 + 1]] : '',
|
||||
rangeX:this.getProp('rangeX'),
|
||||
rangeY:this.getProp('rangeY'),
|
||||
decimals:this.getProp('decimals'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue