Skip to content

Commit

Permalink
fix packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
fazouane-marouane committed Feb 12, 2017
1 parent 445661e commit 0e7cea9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .npmignore
@@ -0,0 +1 @@
build/
8 changes: 6 additions & 2 deletions package.json
Expand Up @@ -11,13 +11,17 @@
"build:dev": "NODE_ENV=development webpack --config build/webpack.config.js",
"test": "NODE_ENV=development intern-runner config=test/intern"
},
"dependencies": {
"devDependencies": {
"@webpack-blocks/webpack2": "^0.4.0",
"html-webpack-plugin": "^2.28.0",
"intern": "^3.4.2",
"jquery": "^3.1.1",
"ts-loader": "^2.0.0",
"typescript": "^2.1.6",
"webpack": "2.2.1"
}
},
"files": [
"dist/fancy-text-fill.js",
"dist/fancy-text-fill.jQuery.js"
]
}
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -81,7 +81,7 @@ function estimateHeight(fontSize: number, wordRatios: number[], maxWidth: number
}
currentLineWidth += wordSize;
}
let computedHeight = fontSize * lines + 5 * (lines - 1);
let computedHeight = fontSize * lines + (fontSize > 10? 5: 8) * (lines - 1);
return computedHeight;
}

Expand Down

0 comments on commit 0e7cea9

Please sign in to comment.