2fae9fe1dc | ||
---|---|---|
spec | ||
src | ||
.gitattributes | ||
.gitignore | ||
.travis.yml | ||
README.md | ||
appveyor.yml | ||
package.json | ||
test.conf.js | ||
tsconfig.json | ||
typings.json |
README.md
Text utility
A utility for doing speedy text measurement, and trimming text.
Usage (using textUtility.ts in your project)
let props = { text: 'Some text to measure', fontFamily: 'sans-serif', fontSize: '20px' };
let length = TextUtility.measureTextWidth(props);
Run + test locally (for contribution)
npm install
npm test