multixy: fix default props when points are named

This commit is contained in:
jean-emmanuel 2024-11-14 13:32:22 +01:00
parent 32803f3f31
commit 20d29f8111
2 changed files with 4 additions and 1 deletions

View file

@ -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'),