OutputJax.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.AbstractOutputJax = void 0;
  4. var Options_js_1 = require("../util/Options.js");
  5. var FunctionList_js_1 = require("../util/FunctionList.js");
  6. var AbstractOutputJax = (function () {
  7. function AbstractOutputJax(options) {
  8. if (options === void 0) { options = {}; }
  9. this.adaptor = null;
  10. var CLASS = this.constructor;
  11. this.options = (0, Options_js_1.userOptions)((0, Options_js_1.defaultOptions)({}, CLASS.OPTIONS), options);
  12. this.postFilters = new FunctionList_js_1.FunctionList();
  13. }
  14. Object.defineProperty(AbstractOutputJax.prototype, "name", {
  15. get: function () {
  16. return this.constructor.NAME;
  17. },
  18. enumerable: false,
  19. configurable: true
  20. });
  21. AbstractOutputJax.prototype.setAdaptor = function (adaptor) {
  22. this.adaptor = adaptor;
  23. };
  24. AbstractOutputJax.prototype.initialize = function () {
  25. };
  26. AbstractOutputJax.prototype.reset = function () {
  27. var _args = [];
  28. for (var _i = 0; _i < arguments.length; _i++) {
  29. _args[_i] = arguments[_i];
  30. }
  31. };
  32. AbstractOutputJax.prototype.getMetrics = function (_document) {
  33. };
  34. AbstractOutputJax.prototype.styleSheet = function (_document) {
  35. return null;
  36. };
  37. AbstractOutputJax.prototype.pageElements = function (_document) {
  38. return null;
  39. };
  40. AbstractOutputJax.prototype.executeFilters = function (filters, math, document, data) {
  41. var args = { math: math, document: document, data: data };
  42. filters.execute(args);
  43. return args.data;
  44. };
  45. AbstractOutputJax.NAME = 'generic';
  46. AbstractOutputJax.OPTIONS = {};
  47. return AbstractOutputJax;
  48. }());
  49. exports.AbstractOutputJax = AbstractOutputJax;
  50. //# sourceMappingURL=OutputJax.js.map