Skip to content

Commit

Permalink
openSmooth参数bug修复
Browse files Browse the repository at this point in the history
  • Loading branch information
linjc committed Jan 3, 2023
1 parent 4843366 commit f292680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class SmoothSignature {
this.height = options.height || this.height;
this.color = options.color || this.color;
this.bgColor = options.bgColor || this.bgColor;
this.openSmooth = options.openSmooth || this.openSmooth;
this.openSmooth = options.openSmooth === undefined ? this.openSmooth : !!options.openSmooth;
this.minWidth = options.minWidth || this.minWidth;
this.maxWidth = options.maxWidth || this.maxWidth;
this.minSpeed = options.minSpeed || this.minSpeed;
Expand Down

0 comments on commit f292680

Please sign in to comment.