Merge pull request #26262 from Frederick-S/master

MathJax: add two missing properties to SVGOutputProcessor
This commit is contained in:
Armando Aguirre
2018-06-04 14:47:58 -07:00
committed by GitHub
2 changed files with 19 additions and 1 deletions

View File

@@ -1030,6 +1030,17 @@ declare namespace MathJax {
* they were MathML, you might need to set this to true.
*/
addMMLclasses?: boolean;
/*This controls whether the SVG output uses <use> elements to re-use font paths rather than repeat paths every
* time. If useGlobalCache (see below) is set to false, this will still reduce duplication of paths while keeping
* each SVG self-contained.
*/
useFontCache?: boolean;
/*When set to true the SVG Output stores paths (corresponding to “fonts” in the SVG output) in a global SVG
* object using <defs> elements so that it can re-use them in all equations via <use> elements (much like a font
* file allows re-use of characters across the document). While set to true by default, it will have no effect if
* useFontCache is set to false.
*/
useGlobalCache?: boolean;
/*EqnChunk is the number of equations that will be typeset before they appear on screen. Larger values make for
* less visual flicker as the equations are drawn, but also mean longer delays before the reader sees anything.
*/

View File

@@ -57,4 +57,11 @@ MathJax.Hub.Config({
"HTML-CSS": { linebreaks: { automatic: true } },
CommonHTML: { linebreaks: { automatic: true } },
SVG: { linebreaks: { automatic: true } }
});
});
MathJax.Hub.Config({
SVG: {
useFontCache: true,
useGlobalCache: true
}
})