@wiris/mathtype-viewer 1.5.0 → 8.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -4
- package/babel.config.js +3 -2
- package/dist/WIRISplugins.js +1 -1
- package/dist/WIRISplugins.js.LICENSE.txt +1 -1
- package/dist/app.d.ts +1 -1
- package/dist/app.d.ts.map +1 -1
- package/dist/latex.d.ts +1 -1
- package/dist/latex.d.ts.map +1 -1
- package/dist/mathml.d.ts +1 -0
- package/dist/mathml.d.ts.map +1 -1
- package/dist/properties.d.ts +3 -3
- package/dist/properties.d.ts.map +1 -1
- package/dist/services.d.ts.map +1 -1
- package/docs/spec.md +25 -25
- package/index.html +19 -21
- package/jest.config.js +4 -0
- package/package.json +10 -5
- package/project.json +4 -12
- package/src/app.ts +10 -11
- package/src/latex.ts +16 -20
- package/src/mathml.spec.ts +189 -0
- package/src/mathml.ts +89 -47
- package/src/properties.ts +58 -66
- package/src/retro.ts +37 -38
- package/src/services.ts +55 -49
- package/tsconfig.json +25 -22
- package/typings/module-name.d.ts +1 -1
- package/webpack.config.js +10 -10
- package/dist/utils.d.ts +0 -3
- package/dist/utils.d.ts.map +0 -1
- package/src/utils.ts +0 -45
package/README.md
CHANGED
|
@@ -12,7 +12,6 @@ To use the MathType viewer in your page, just include the script `dist/WIRISplug
|
|
|
12
12
|
|
|
13
13
|
When loading the page now, all MathML and LaTeX formulas should be displayed as images.
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
## Properties
|
|
17
16
|
|
|
18
17
|
The MathType viewer admits various properties.
|
|
@@ -22,7 +21,7 @@ They can be set like this:
|
|
|
22
21
|
```html
|
|
23
22
|
<script src="dist/WIRISplugins.js&viewer=image" defer></script>
|
|
24
23
|
<script>
|
|
25
|
-
window.document.addEventListener(
|
|
24
|
+
window.document.addEventListener("viewerLoaded", () => {
|
|
26
25
|
window.viewer.Properties.key1 = value1;
|
|
27
26
|
window.viewer.Properties.key2 = value2;
|
|
28
27
|
// ...
|
|
@@ -30,7 +29,6 @@ They can be set like this:
|
|
|
30
29
|
</script>
|
|
31
30
|
```
|
|
32
31
|
|
|
33
|
-
|
|
34
32
|
## Compilation
|
|
35
33
|
|
|
36
34
|
In case you want to compile the source code, you must install the NPM dependencies and then run Webpack.
|
|
@@ -64,7 +62,6 @@ The output will be found in `viewer/dist`.
|
|
|
64
62
|
|
|
65
63
|
For the whole specification, see [here](docs/spec.md).
|
|
66
64
|
|
|
67
|
-
|
|
68
65
|
## Privacy policy
|
|
69
66
|
|
|
70
67
|
The [MathType Privacy Policy](https://www.wiris.com/en/mathtype-privacy-policy/?utm_source=npmjs&utm_medium=referral) covers the data processing operations for the MathType users. It is an addendum of the company's general Privacy Policy and the [general Privacy Policy](https://www.wiris.com/en/privacy-policy?utm_source=npmjs&utm_medium=referral) still applies to MathType users.
|