Skip to content

Commit

Permalink
release 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fazouane-marouane committed Feb 13, 2017
1 parent a2dac30 commit 7e6b712
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Change Log

## 1.1.1

* Floor the optimal `font-size` to avoid rounding errors. Thanks to @Robinfr for PR #2.

## 1.1.0

* Support `lineheight`
* Support `line-height`

## 1.0.0

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fancy-textfill",
"version": "1.1.0",
"version": "1.1.1",
"description": "Fast implementation for resizing text to fill its container.",
"main": "index.js",
"repository": "https://github.com/fazouane-marouane/fancy-textfill",
Expand Down
3 changes: 0 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ function fontInfo(element: HTMLElement): FontInfo {
let matchs = lineHeight.match(/^(\d+(?:.?\d+))(\w*)$/)!;
lineHeightRatio = parseFloat(matchs[1]);
switch(matchs[2]) {
case 'pt':
lineHeightRatio /= 10;
break;
case '%':
lineHeightRatio /= 100;
break;
Expand Down

0 comments on commit 7e6b712

Please sign in to comment.