A utility for doing speedy text measurement
Перейти к файлу
Sachin Patney 2fae9fe1dc removing unused properties 2016-08-19 10:43:38 -07:00
spec using module instead of namespace for consistancy in test file 2016-08-19 10:22:28 -07:00
src removing unused properties 2016-08-19 10:43:38 -07:00
.gitattributes initial commit 2016-08-18 21:21:30 -07:00
.gitignore moving main file under src 2016-08-19 10:04:02 -07:00
.travis.yml adding travis & appveyor 2016-08-18 21:27:37 -07:00
README.md Update README.md 2016-08-18 22:08:13 -07:00
appveyor.yml adding travis & appveyor 2016-08-18 21:27:37 -07:00
package.json initial commit 2016-08-18 21:21:30 -07:00
test.conf.js moving main file under src 2016-08-19 10:04:02 -07:00
tsconfig.json moving main file under src 2016-08-19 10:04:02 -07:00
typings.json initial commit 2016-08-18 21:21:30 -07:00

README.md

Build Status Build status

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