7daa34d1b9789f0cd6bdc4d19e64d1102018ba908b6b943d2dff6588cfde4c24.json 6.6 KB

1
  1. {"ast":null,"code":"\"use strict\";\n\nvar __extends = this && this.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.CommonTeXAtomMixin = void 0;\nvar MmlNode_js_1 = require(\"../../../core/MmlTree/MmlNode.js\");\nfunction CommonTeXAtomMixin(Base) {\n return function (_super) {\n __extends(class_1, _super);\n function class_1() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n class_1.prototype.computeBBox = function (bbox, recompute) {\n if (recompute === void 0) {\n recompute = false;\n }\n _super.prototype.computeBBox.call(this, bbox, recompute);\n if (this.childNodes[0] && this.childNodes[0].bbox.ic) {\n bbox.ic = this.childNodes[0].bbox.ic;\n }\n if (this.node.texClass === MmlNode_js_1.TEXCLASS.VCENTER) {\n var h = bbox.h,\n d = bbox.d;\n var a = this.font.params.axis_height;\n var dh = (h + d) / 2 + a - h;\n bbox.h += dh;\n bbox.d -= dh;\n }\n };\n return class_1;\n }(Base);\n}\nexports.CommonTeXAtomMixin = CommonTeXAtomMixin;","map":{"version":3,"names":["__extends","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","TypeError","String","__","constructor","create","defineProperty","exports","value","CommonTeXAtomMixin","MmlNode_js_1","require","Base","_super","class_1","apply","arguments","computeBBox","bbox","recompute","childNodes","ic","node","texClass","TEXCLASS","VCENTER","h","a","font","params","axis_height","dh"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/mathjax-full/js/output/common/Wrappers/TeXAtom.js"],"sourcesContent":["\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CommonTeXAtomMixin = void 0;\nvar MmlNode_js_1 = require(\"../../../core/MmlTree/MmlNode.js\");\nfunction CommonTeXAtomMixin(Base) {\n return (function (_super) {\n __extends(class_1, _super);\n function class_1() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n class_1.prototype.computeBBox = function (bbox, recompute) {\n if (recompute === void 0) { recompute = false; }\n _super.prototype.computeBBox.call(this, bbox, recompute);\n if (this.childNodes[0] && this.childNodes[0].bbox.ic) {\n bbox.ic = this.childNodes[0].bbox.ic;\n }\n if (this.node.texClass === MmlNode_js_1.TEXCLASS.VCENTER) {\n var h = bbox.h, d = bbox.d;\n var a = this.font.params.axis_height;\n var dh = ((h + d) / 2 + a) - h;\n bbox.h += dh;\n bbox.d -= dh;\n }\n };\n return class_1;\n }(Base));\n}\nexports.CommonTeXAtomMixin = CommonTeXAtomMixin;\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAI,IAAI,IAAI,IAAI,CAACA,SAAS,IAAM,YAAY;EACrD,IAAIC,aAAa,GAAG,SAAAA,CAAUC,CAAC,EAAEC,CAAC,EAAE;IAChCF,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