Skip to content

Commit

Permalink
fix: text bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xjiang-at-wiris committed Jul 24, 2024
1 parent d84b601 commit 198dab2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/viewer/docs/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ The following table contains a specification of each of the properties.
| lang | The language for the alt text. | Frontend | | en |
| dpi | Resolution in dots per inch of the generated image. This feature scales the formula with a factor of dpi/96. | Frontend | Positive integer | 96 |
| zoom | The scale of the generated image. | Frontend | Positive floating point number | 1 |
| vieweroffset | Number of pixels to render in advance. | Frontend | Positive floating point number | 200 |
| simultaneousmml | Mmax number of simultaneous MathML rendering petition can make at the same time. | Frontend | Positive floating point number | 50 |
| simultaneouslatex | max number of simultaneous LaTeX rendering petition can make at the same time. | Frontend | Positive floating point number | 50 |
| vieweroffset | We render only the formulas on screen. This parameter defines the number of pixels to render in advance. | Frontend | Positive floating point number | 200 |
| simultaneousmml | Max number of possible simultaneous MathML rendering petitions at the same time. | Frontend | Positive floating point number | 50 |
| simultaneouslatex | Max number of possible simultaneous LaTeX rendering petitions at the same time. | Frontend | Positive floating point number | 50 |

## API

Expand Down
3 changes: 0 additions & 3 deletions packages/viewer/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,9 @@ async function main(w: Window): Promise<void> {

const allElements = document.querySelectorAll('*');
window.addEventListener("load", function () {
let counter = 0;
allElements.forEach(function (element) {
mathobserver.observe(element);
counter++;
});
console.log(counter);
});

//MutationObserver
Expand Down
2 changes: 1 addition & 1 deletion packages/viewer/src/latex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export async function renderLatex(properties: Properties, root: HTMLElement) {

const latexNodes = findLatexTextNodes(root);

const maxLatexPetition = properties.simultaneousmml;
const maxLatexPetition = properties.simultaneouslatex;

let promises = [];

Expand Down

0 comments on commit 198dab2

Please sign in to comment.