dfef088ae4a078260a3d9846f2e77ad026db45818eebed1030edb590d052f3ae.json 13 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.CHTMLxml = exports.CHTMLannotationXML = exports.CHTMLannotation = exports.CHTMLsemantics = void 0;\nvar Wrapper_js_1 = require(\"../Wrapper.js\");\nvar semantics_js_1 = require(\"../../common/Wrappers/semantics.js\");\nvar semantics_js_2 = require(\"../../../core/MmlTree/MmlNodes/semantics.js\");\nvar MmlNode_js_1 = require(\"../../../core/MmlTree/MmlNode.js\");\nvar CHTMLsemantics = function (_super) {\n __extends(CHTMLsemantics, _super);\n function CHTMLsemantics() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n CHTMLsemantics.prototype.toCHTML = function (parent) {\n var chtml = this.standardCHTMLnode(parent);\n if (this.childNodes.length) {\n this.childNodes[0].toCHTML(chtml);\n }\n };\n CHTMLsemantics.kind = semantics_js_2.MmlSemantics.prototype.kind;\n return CHTMLsemantics;\n}((0, semantics_js_1.CommonSemanticsMixin)(Wrapper_js_1.CHTMLWrapper));\nexports.CHTMLsemantics = CHTMLsemantics;\nvar CHTMLannotation = function (_super) {\n __extends(CHTMLannotation, _super);\n function CHTMLannotation() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n CHTMLannotation.prototype.toCHTML = function (parent) {\n _super.prototype.toCHTML.call(this, parent);\n };\n CHTMLannotation.prototype.computeBBox = function () {\n return this.bbox;\n };\n CHTMLannotation.kind = semantics_js_2.MmlAnnotation.prototype.kind;\n return CHTMLannotation;\n}(Wrapper_js_1.CHTMLWrapper);\nexports.CHTMLannotation = CHTMLannotation;\nvar CHTMLannotationXML = function (_super) {\n __extends(CHTMLannotationXML, _super);\n function CHTMLannotationXML() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n CHTMLannotationXML.kind = semantics_js_2.MmlAnnotationXML.prototype.kind;\n CHTMLannotationXML.styles = {\n 'mjx-annotation-xml': {\n 'font-family': 'initial',\n 'line-height': 'normal'\n }\n };\n return CHTMLannotationXML;\n}(Wrapper_js_1.CHTMLWrapper);\nexports.CHTMLannotationXML = CHTMLannotationXML;\nvar CHTMLxml = function (_super) {\n __extends(CHTMLxml, _super);\n function CHTMLxml() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n CHTMLxml.prototype.toCHTML = function (parent) {\n this.chtml = this.adaptor.append(parent, this.adaptor.clone(this.node.getXML()));\n };\n CHTMLxml.prototype.computeBBox = function (bbox, _recompute) {\n if (_recompute === void 0) {\n _recompute = false;\n }\n var _a = this.jax.measureXMLnode(this.node.getXML()),\n w = _a.w,\n h = _a.h,\n d = _a.d;\n bbox.w = w;\n bbox.h = h;\n bbox.d = d;\n };\n CHTMLxml.prototype.getStyles = function () {};\n CHTMLxml.prototype.getScale = function () {};\n CHTMLxml.prototype.getVariant = function () {};\n CHTMLxml.kind = MmlNode_js_1.XMLNode.prototype.kind;\n CHTMLxml.autoStyle = false;\n return CHTMLxml;\n}(Wrapper_js_1.CHTMLWrapper);\nexports.CHTMLxml = CHTMLxml;","map":{"version":3,"names":["__extends","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","TypeError","String","__","constructor","create","defineProperty","exports","value","CHTMLxml","CHTMLannotationXML","CHTMLannotation","CHTMLsemantics","Wrapper_js_1","require","semantics_js_1","semantics_js_2","MmlNode_js_1","_super","apply","arguments","toCHTML","parent","chtml","standardCHTMLnode","childNodes","length","kind","MmlSemantics","CommonSemanticsMixin","CHTMLWrapper","computeBBox","bbox","MmlAnnotation","MmlAnnotationXML","styles","adaptor","append","clone","node","getXML","_recompute","_a","jax","measureXMLnode","w","h","getStyles","getScale","getVariant","XMLNode","autoStyle"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/mathjax-full/js/output/chtml/Wrappers/semantics.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.CHTMLxml = exports.CHTMLannotationXML = exports.CHTMLannotation = exports.CHTMLsemantics = void 0;\nvar Wrapper_js_1 = require(\"../Wrapper.js\");\nvar semantics_js_1 = require(\"../../common/Wrappers/semantics.js\");\nvar semantics_js_2 = require(\"../../../core/MmlTree/MmlNodes/semantics.js\");\nvar MmlNode_js_1 = require(\"../../../core/MmlTree/MmlNode.js\");\nvar CHTMLsemantics = (function (_super) {\n __extends(CHTMLsemantics, _super);\n function CHTMLsemantics() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n CHTMLsemantics.prototype.toCHTML = function (parent) {\n var chtml = this.standardCHTMLnode(parent);\n if (this.childNodes.length) {\n this.childNodes[0].toCHTML(chtml);\n }\n };\n CHTMLsemantics.kind = semantics_js_2.MmlSemantics.prototype.kind;\n return CHTMLsemantics;\n}((0, semantics_js_1.CommonSemanticsMixin)(Wrapper_js_1.CHTMLWrapper)));\nexports.CHTMLsemantics = CHTMLsemantics;\nvar CHTMLannotation = (function (_super) {\n __extends(CHTMLannotation, _super);\n function CHTMLannotation() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n CHTMLannotation.prototype.toCHTML = function (parent) {\n _super.prototype.toCHTML.call(this, parent);\n };\n CHTMLannotation.prototype.computeBBox = function () {\n return this.bbox;\n };\n CHTMLannotation.kind = semantics_js_2.MmlAnnotation.prototype.kind;\n return CHTMLannotation;\n}(Wrapper_js_1.CHTMLWrapper));\nexports.CHTMLannotation = CHTMLannotation;\nvar CHTMLannotationXML = (function (_super) {\n __extends(CHTMLannotationXML, _super);\n function CHTMLannotationXML() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n CHTMLannotationXML.kind = semantics_js_2.MmlAnnotationXML.prototype.kind;\n CHTMLannotationXML.styles = {\n 'mjx-annotation-xml': {\n 'font-family': 'initial',\n 'line-height': 'normal'\n }\n };\n return CHTMLannotationXML;\n}(Wrapper_js_1.CHTMLWrapper));\nexports.CHTMLannotationXML = CHTMLannotationXML;\nvar CHTMLxml = (function (_super) {\n __extends(CHTMLxml, _super);\n function CHTMLxml() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n CHTMLxml.prototype.toCHTML = function (parent) {\n this.chtml = this.adaptor.append(parent, this.adaptor.clone(this.node.getXML()));\n };\n CHTMLxml.prototype.computeBBox = function (bbox, _recompute) {\n if (_recompute === void 0) { _recompute = false; }\n var _a = this.jax.measureXMLnode(this.node.getXML()), w = _a.w, h = _a.h, d = _a.d;\n bbox.w = w;\n bbox.h = h;\n bbox.d = d;\n };\n CHTMLxml.prototype.getStyles = function () { };\n CHTMLxml.prototype.getScale = function () { };\n CHTMLxml.prototype.getVariant = function () { };\n CHTMLxml.kind = MmlNode_js_1.XMLNode.prototype.kind;\n CHTMLxml.autoStyle = false;\n return CHTMLxml;\n}(Wrapper_js_1.CHTMLWrapper));\nexports.CHTMLxml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