site/node_modules/speech-rule-engine/js/common/mathjax.js

23 lines
867 B
JavaScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const engine_1 = require("./engine");
const EngineConst = require("../common/engine_const");
const System = require("./system");
(function () {
const SIGNAL = MathJax.Callback.Signal('Sre');
MathJax.Extension.Sre = {
version: System.version,
signal: SIGNAL,
ConfigSre: function () {
engine_1.EnginePromise.getall().then(() => MathJax.Callback.Queue(MathJax.Hub.Register.StartupHook('mml Jax Ready', {}), ['Post', MathJax.Hub.Startup.signal, 'Sre Ready']));
}
};
System.setupEngine({
mode: EngineConst.Mode.HTTP,
json: MathJax.Ajax.config.path['SRE'] + '/mathmaps',
xpath: MathJax.Ajax.config.path['SRE'] + '/wgxpath.install.js',
semantics: true
});
MathJax.Extension.Sre.ConfigSre();
})();