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.CHTMLmtd = void 0;\nvar Wrapper_js_1 = require(\"../Wrapper.js\");\nvar mtd_js_1 = require(\"../../common/Wrappers/mtd.js\");\nvar mtd_js_2 = require(\"../../../core/MmlTree/MmlNodes/mtd.js\");\nvar CHTMLmtd = function (_super) {\n __extends(CHTMLmtd, _super);\n function CHTMLmtd() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n CHTMLmtd.prototype.toCHTML = function (parent) {\n _super.prototype.toCHTML.call(this, parent);\n var ralign = this.node.attributes.get('rowalign');\n var calign = this.node.attributes.get('columnalign');\n var palign = this.parent.node.attributes.get('rowalign');\n if (ralign !== palign) {\n this.adaptor.setAttribute(this.chtml, 'rowalign', ralign);\n }\n if (calign !== 'center' && (this.parent.kind !== 'mlabeledtr' || this !== this.parent.childNodes[0] || calign !== this.parent.parent.node.attributes.get('side'))) {\n this.adaptor.setStyle(this.chtml, 'textAlign', calign);\n }\n if (this.parent.parent.node.getProperty('useHeight')) {\n this.adaptor.append(this.chtml, this.html('mjx-tstrut'));\n }\n };\n CHTMLmtd.kind = mtd_js_2.MmlMtd.prototype.kind;\n CHTMLmtd.styles = {\n 'mjx-mtd': {\n display: 'table-cell',\n 'text-align': 'center',\n 'padding': '.215em .4em'\n },\n 'mjx-mtd:first-child': {\n 'padding-left': 0\n },\n 'mjx-mtd:last-child': {\n 'padding-right': 0\n },\n 'mjx-mtable > * > mjx-itable > *:first-child > mjx-mtd': {\n 'padding-top': 0\n },\n 'mjx-mtable > * > mjx-itable > *:last-child > mjx-mtd': {\n 'padding-bottom': 0\n },\n 'mjx-tstrut': {\n display: 'inline-block',\n height: '1em',\n 'vertical-align': '-.25em'\n },\n 'mjx-labels[align=\"left\"] > mjx-mtr > mjx-mtd': {\n 'text-align': 'left'\n },\n 'mjx-labels[align=\"right\"] > mjx-mtr > mjx-mtd': {\n 'text-align': 'right'\n },\n 'mjx-mtd[extra]': {\n padding: 0\n },\n 'mjx-mtd[rowalign=\"top\"]': {\n 'vertical-align': 'top'\n },\n 'mjx-mtd[rowalign=\"center\"]': {\n 'vertical-align': 'middle'\n },\n 'mjx-mtd[rowalign=\"bottom\"]': {\n 'vertical-align': 'bottom'\n },\n 'mjx-mtd[rowalign=\"baseline\"]': {\n 'vertical-align': 'baseline'\n },\n 'mjx-mtd[rowalign=\"axis\"]': {\n 'vertical-align': '.25em'\n }\n };\n return CHTMLmtd;\n}((0, mtd_js_1.CommonMtdMixin)(Wrapper_js_1.CHTMLWrapper));\nexports.CHTMLmtd = CHTMLmtd;","map":{"version":3,"names":["__extends","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","TypeError","String","__","constructor","create","defineProperty","exports","value","CHTMLmtd","Wrapper_js_1","require","mtd_js_1","mtd_js_2","_super","apply","arguments","toCHTML","parent","ralign","node","attributes","get","calign","palign","adaptor","setAttribute","chtml","kind","childNodes","setStyle","getProperty","append","html","MmlMtd","styles","display","height","padding","CommonMtdMixin","CHTMLWrapper"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/mathjax-full/js/output/chtml/Wrappers/mtd.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.CHTMLmtd = void 0;\nvar Wrapper_js_1 = require(\"../Wrapper.js\");\nvar mtd_js_1 = require(\"../../common/Wrappers/mtd.js\");\nvar mtd_js_2 = require(\"../../../core/MmlTree/MmlNodes/mtd.js\");\nvar CHTMLmtd = (function (_super) {\n __extends(CHTMLmtd, _super);\n function CHTMLmtd() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n CHTMLmtd.prototype.toCHTML = function (parent) {\n _super.prototype.toCHTML.call(this, parent);\n var ralign = this.node.attributes.get('rowalign');\n var calign = this.node.attributes.get('columnalign');\n var palign = this.parent.node.attributes.get('rowalign');\n if (ralign !== palign) {\n this.adaptor.setAttribute(this.chtml, 'rowalign', ralign);\n }\n if (calign !== 'center' &&\n (this.parent.kind !== 'mlabeledtr' || this !== this.parent.childNodes[0] ||\n calign !== this.parent.parent.node.attributes.get('side'))) {\n this.adaptor.setStyle(this.chtml, 'textAlign', calign);\n }\n if (this.parent.parent.node.getProperty('useHeight')) {\n this.adaptor.append(this.chtml, this.html('mjx-tstrut'));\n }\n };\n CHTMLmtd.kind = mtd_js_2.MmlMtd.prototype.kind;\n CHTMLmtd.styles = {\n 'mjx-mtd': {\n display: 'table-cell',\n 'text-align': 'center',\n 'padding': '.215em .4em'\n },\n 'mjx-mtd:first-child': {\n 'padding-left': 0\n },\n 'mjx-mtd:last-child': {\n 'padding-right': 0\n },\n 'mjx-mtable > * > mjx-itable > *:first-child > mjx-mtd': {\n 'padding-top': 0\n },\n 'mjx-mtable > * > mjx-itable > *:last-child > mjx-mtd': {\n 'padding-bottom': 0\n },\n 'mjx-tstrut': {\n display: 'inline-block',\n height: '1em',\n 'vertical-align': '-.25em'\n },\n 'mjx-labels[align=\"left\"] > mjx-mtr > mjx-mtd': {\n 'text-align': 'left'\n },\n 'mjx-labels[align=\"right\"] > mjx-mtr > mjx-mtd': {\n 'text-align': 'right'\n },\n 'mjx-mtd[extra]': {\n padding: 0\n },\n 'mjx-mtd[rowalign=\"top\"]': {\n 'vertical-align': 'top'\n },\n 'mjx-mtd[rowalign=\"center\"]': {\n 'vertical-align': 'middle'\n },\n 'mjx-mtd[rowalign=\"bottom\"]': {\n 'vertical-align': 'bottom'\n },\n 'mjx-mtd[rowalign=\"baseline\"]': {\n 'vertical-align': 'baseline'\n },\n 'mjx-mtd[rowalign=\"axis\"]': {\n 'vertical-align': '.25em'\n }\n };\n return CHTMLmtd;\n}((0, mtd_js_1.CommonMtdMixin)(Wrapper_js_1.CHTMLWrapper)));\nexports.CHTMLmtd = CHTMLmtd;\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,aAAa,GAAGG,MAAM,CAACC,cAAc,IAChC;MAAEC,SAAS,EAAE;IAAG,CAAC,YAAYC,KAAK,IAAI,UAAUL,CAAC,EAAEC,CAAC,EAAE;MAAED,CAAC,CAACI,SAAS,GAAGH,CAAC;IAAE,CAAE,IAC5E,UAAUD,CAAC,EAAEC,CAAC,EAAE;MAAE,KAAK,IAAIK,CAAC,IAAIL,CAAC,EAAE,IAAIC,MAAM,CAACK,SAAS,CAACC,cAAc,CAACC,IAAI,CAACR,CAAC,EAAEK,CAAC,CAAC,EAAEN,CAAC,CAACM,CAAC,CAAC,GAAGL,CAAC,CAACK,CAAC,CAAC;IAAE,CAAC;IACrG,OAAOP,aAAa,CAAC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