mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-01 03:20:46 +08:00
Merge pull request #26262 from Frederick-S/master
MathJax: add two missing properties to SVGOutputProcessor
This commit is contained in:
11
types/mathjax/index.d.ts
vendored
11
types/mathjax/index.d.ts
vendored
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user