File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 11# Change Log
22
3+ ## 1.1.1
4+
5+ * Floor the optimal ` font-size ` to avoid rounding errors. Thanks to @Robinfr for PR #2 .
6+
37## 1.1.0
48
5- * Support ` lineheight `
9+ * Support ` line-height `
610
711## 1.0.0
812
Original file line number Diff line number Diff line change 11{
22 "name" : " fancy-textfill" ,
3- "version" : " 1.1.0 " ,
3+ "version" : " 1.1.1 " ,
44 "description" : " Fast implementation for resizing text to fill its container." ,
55 "main" : " index.js" ,
66 "repository" : " https://github.com/fazouane-marouane/fancy-textfill" ,
Original file line number Diff line number Diff line change @@ -22,9 +22,6 @@ function fontInfo(element: HTMLElement): FontInfo {
2222 let matchs = lineHeight . match ( / ^ ( \d + (?: .? \d + ) ) ( \w * ) $ / ) ! ;
2323 lineHeightRatio = parseFloat ( matchs [ 1 ] ) ;
2424 switch ( matchs [ 2 ] ) {
25- case 'pt' :
26- lineHeightRatio /= 10 ;
27- break ;
2825 case '%' :
2926 lineHeightRatio /= 100 ;
3027 break ;
You can’t perform that action at this time.
0 commit comments