5a9d4e5e69b5d0839122d4290d19656dc8c6a0655591f86586a046d7e5eb1f40.json 10 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}();\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.MultlinedItem = void 0;\nvar AmsItems_js_1 = require(\"../ams/AmsItems.js\");\nvar NodeUtil_js_1 = __importDefault(require(\"../NodeUtil.js\"));\nvar TexConstants_js_1 = require(\"../TexConstants.js\");\nvar MultlinedItem = function (_super) {\n __extends(MultlinedItem, _super);\n function MultlinedItem() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n Object.defineProperty(MultlinedItem.prototype, \"kind\", {\n get: function () {\n return 'multlined';\n },\n enumerable: false,\n configurable: true\n });\n MultlinedItem.prototype.EndTable = function () {\n if (this.Size() || this.row.length) {\n this.EndEntry();\n this.EndRow();\n }\n if (this.table.length > 1) {\n var options = this.factory.configuration.options.mathtools;\n var gap = options.multlinegap;\n var firstskip = options['firstline-afterskip'] || gap;\n var lastskip = options['lastline-preskip'] || gap;\n var first = NodeUtil_js_1.default.getChildren(this.table[0])[0];\n if (NodeUtil_js_1.default.getAttribute(first, 'columnalign') !== TexConstants_js_1.TexConstant.Align.RIGHT) {\n first.appendChild(this.create('node', 'mspace', [], {\n width: firstskip\n }));\n }\n var last = NodeUtil_js_1.default.getChildren(this.table[this.table.length - 1])[0];\n if (NodeUtil_js_1.default.getAttribute(last, 'columnalign') !== TexConstants_js_1.TexConstant.Align.LEFT) {\n var top_1 = NodeUtil_js_1.default.getChildren(last)[0];\n top_1.childNodes.unshift(null);\n var space = this.create('node', 'mspace', [], {\n width: lastskip\n });\n NodeUtil_js_1.default.setChild(top_1, 0, space);\n }\n }\n _super.prototype.EndTable.call(this);\n };\n return MultlinedItem;\n}(AmsItems_js_1.MultlineItem);\nexports.MultlinedItem = MultlinedItem;","map":{"version":3,"names":["__extends","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","TypeError","String","__","constructor","create","__importDefault","mod","__esModule","defineProperty","exports","value","MultlinedItem","AmsItems_js_1","require","NodeUtil_js_1","TexConstants_js_1","_super","apply","arguments","get","enumerable","configurable","EndTable","Size","row","length","EndEntry","EndRow","table","options","factory","configuration","mathtools","gap","multlinegap","firstskip","lastskip","first","default","getChildren","getAttribute","TexConstant","Align","RIGHT","appendChild","width","last","LEFT","top_1","childNodes","unshift","space","setChild","MultlineItem"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/mathjax-full/js/input/tex/mathtools/MathtoolsItems.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})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.MultlinedItem = void 0;\nvar AmsItems_js_1 = require(\"../ams/AmsItems.js\");\nvar NodeUtil_js_1 = __importDefault(require(\"../NodeUtil.js\"));\nvar TexConstants_js_1 = require(\"../TexConstants.js\");\nvar MultlinedItem = (function (_super) {\n __extends(MultlinedItem, _super);\n function MultlinedItem() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n Object.defineProperty(MultlinedItem.prototype, \"kind\", {\n get: function () {\n return 'multlined';\n },\n enumerable: false,\n configurable: true\n });\n MultlinedItem.prototype.EndTable = function () {\n if (this.Size() || this.row.length) {\n this.EndEntry();\n this.EndRow();\n }\n if (this.table.length > 1) {\n var options = this.factory.configuration.options.mathtools;\n var gap = options.multlinegap;\n var firstskip = options['firstline-afterskip'] || gap;\n var lastskip = options['lastline-preskip'] || gap;\n var first = NodeUtil_js_1.default.getChildren(this.table[0])[0];\n if (NodeUtil_js_1.default.getAttribute(first, 'columnalign') !== TexConstants_js_1.TexConstant.Align.RIGHT) {\n first.appendChild(this.create('node', 'mspace', [], { width: firstskip }));\n }\n var last = NodeUtil_js_1.default.getChildren(this.table[this.table.length - 1])[0];\n if (NodeUtil_js_1.default.getAttribute(last, 'columnalign') !== TexConstants_js_1.TexConstant.Align.LEFT) {\n var top_1 = NodeUtil_js_1.default.getChildren(last)[0];\n top_1.childNodes.unshift(null);\n var space = this.create('node', 'mspace', [], { width: lastskip });\n NodeUtil_js_1.default.setChild(top_1, 0, space);\n }\n }\n _super.prototype.EndTable.call(this);\n };\n return MultlinedItem;\n}(AmsItems_js_1.MultlineItem));\nexports.MultlinedItem = MultlinedItem;\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,SA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