site/node_modules/mathjax-full/js/core/OutputJax.js

50 lines
1.8 KiB
JavaScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AbstractOutputJax = void 0;
var Options_js_1 = require("../util/Options.js");
var FunctionList_js_1 = require("../util/FunctionList.js");
var AbstractOutputJax = (function () {
function AbstractOutputJax(options) {
if (options === void 0) { options = {}; }
this.adaptor = null;
var CLASS = this.constructor;
this.options = (0, Options_js_1.userOptions)((0, Options_js_1.defaultOptions)({}, CLASS.OPTIONS), options);
this.postFilters = new FunctionList_js_1.FunctionList();
}
Object.defineProperty(AbstractOutputJax.prototype, "name", {
get: function () {
return this.constructor.NAME;
},
enumerable: false,
configurable: true
});
AbstractOutputJax.prototype.setAdaptor = function (adaptor) {
this.adaptor = adaptor;
};
AbstractOutputJax.prototype.initialize = function () {
};
AbstractOutputJax.prototype.reset = function () {
var _args = [];
for (var _i = 0; _i < arguments.length; _i++) {
_args[_i] = arguments[_i];
}
};
AbstractOutputJax.prototype.getMetrics = function (_document) {
};
AbstractOutputJax.prototype.styleSheet = function (_document) {
return null;
};
AbstractOutputJax.prototype.pageElements = function (_document) {
return null;
};
AbstractOutputJax.prototype.executeFilters = function (filters, math, document, data) {
var args = { math: math, document: document, data: data };
filters.execute(args);
return args.data;
};
AbstractOutputJax.NAME = 'generic';
AbstractOutputJax.OPTIONS = {};
return AbstractOutputJax;
}());
exports.AbstractOutputJax = AbstractOutputJax;
//# sourceMappingURL=OutputJax.js.map