To @flow: fontMetrics, fontMetricsData, Options, Settings, Style (#848)

*     To @flow: fontMetrics, fontMetricsData, Options, Settings, Style

* Don't overuse $Shape, improve type checking for fontMetrics*, make maxSize required in OptionsData and update callers.

* Remove eslintrc globals change, since eslint-plugin-flowtype makes it redundant.

* Remove extra ?s in Options and Settings

* Undo removal of width in fontMetrics and switch to `T | void` for nullable types in Options

* fix typing of FontMetrics
This commit is contained in:
Xuming Zeng
2017-09-09 16:21:52 -05:00
committed by Kevin Barabash
parent ccf09786cc
commit 0f9fb0a1ce
8 changed files with 139 additions and 54 deletions

View File

@@ -21,6 +21,7 @@ const getMathML = function(expr, settings) {
// Setup the default options
const options = new Options({
style: startStyle,
maxSize: Infinity,
});
const built = buildMathML(parseTree(expr, usedSettings), expr, options);