UNPKG

mathml-to-latex-adm

Version:

A JavaScript tool to convert mathml string to LaTeX string

21 lines (20 loc) 702 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ParenthesisWrapper = void 0; var wrapper_1 = require("./wrapper"); var ParenthesisWrapper = /** @class */ (function () { function ParenthesisWrapper() { this._open = '\\left('; this._close = '\\right)'; } ParenthesisWrapper.prototype.wrap = function (str) { return new wrapper_1.Wrapper(this._open, this._close).wrap(str); }; ParenthesisWrapper.prototype.wrapIfMoreThanOneChar = function (str) { if (str.length <= 1) return str; return this.wrap(str); }; return ParenthesisWrapper; }()); exports.ParenthesisWrapper = ParenthesisWrapper;