mirror of
https://github.com/wassname/CanvasTextWrapper.git
synced 2026-07-06 05:13:06 +08:00
fixed line height
This commit is contained in:
@@ -242,7 +242,7 @@
|
||||
if (isNaN(fontSize))
|
||||
throw new TypeError('Cannot parse "font".');
|
||||
|
||||
if (isNaN(opts.lineHeight))
|
||||
if (isNaN(lineHeight))
|
||||
throw new TypeError('Cannot parse "lineHeight".');
|
||||
|
||||
if (opts.textAlign.toLocaleLowerCase() !== 'left' && opts.textAlign.toLocaleLowerCase() !== 'center' && opts.textAlign.toLocaleLowerCase() !== 'right')
|
||||
|
||||
Reference in New Issue
Block a user