UNPKG

react-native-mathjax-html-to-svg

Version:

React Native component to display mathematics in html using MathJax. Uses [MathJax](https://github.com/mathjax/)

44 lines (43 loc) 1.63 kB
"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 = Options_js_1.userOptions(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.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;