Skip to content

Commit

Permalink
Fix function name, rel #554
Browse files Browse the repository at this point in the history
  • Loading branch information
LeaVerou committed Jun 16, 2024
1 parent 72cc69a commit a2df780
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Type.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default class Type {
return this.range;
}
if (this.type === "<percentage>") {
return this.pctRange();
return this.percentageRange();
}
else if (this.type === "<angle>") {
return [0, 360];
Expand Down Expand Up @@ -72,7 +72,7 @@ export default class Type {
let toRange = this.coordRange;

if (this.type === "<percentage>") {
toRange ??= this.pctRange();
toRange ??= this.percentageRange();
}

return mapRange(fromRange, toRange, number);
Expand All @@ -84,7 +84,7 @@ export default class Type {
* @param {number} [precision]
*/
serialize (number, precision) {
let toRange = this.type === "<percentage>" ? this.pctRange(100) : this.computedRange;
let toRange = this.type === "<percentage>" ? this.percentageRange(100) : this.computedRange;

let unit = this.unit;

Expand Down

0 comments on commit a2df780

Please sign in to comment.