mathjax.js 882 B

12345678910111213141516171819202122
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const engine_js_1 = require("./engine.js");
  4. const EngineConst = require("../common/engine_const.js");
  5. const System = require("./system.js");
  6. (function () {
  7. const SIGNAL = MathJax.Callback.Signal('Sre');
  8. MathJax.Extension.Sre = {
  9. version: System.version,
  10. signal: SIGNAL,
  11. ConfigSre: function () {
  12. engine_js_1.EnginePromise.getall().then(() => MathJax.Callback.Queue(MathJax.Hub.Register.StartupHook('mml Jax Ready', {}), ['Post', MathJax.Hub.Startup.signal, 'Sre Ready']));
  13. }
  14. };
  15. System.setupEngine({
  16. mode: EngineConst.Mode.HTTP,
  17. json: MathJax.Ajax.config.path['SRE'] + '/mathmaps',
  18. xpath: MathJax.Ajax.config.path['SRE'] + '/wgxpath.install.js',
  19. semantics: true
  20. });
  21. MathJax.Extension.Sre.ConfigSre();
  22. })();