mtable.js 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546
  1. "use strict";
  2. var __extends = (this && this.__extends) || (function () {
  3. var extendStatics = function (d, b) {
  4. extendStatics = Object.setPrototypeOf ||
  5. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  6. function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
  7. return extendStatics(d, b);
  8. };
  9. return function (d, b) {
  10. if (typeof b !== "function" && b !== null)
  11. throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
  12. extendStatics(d, b);
  13. function __() { this.constructor = d; }
  14. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  15. };
  16. })();
  17. var __values = (this && this.__values) || function(o) {
  18. var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
  19. if (m) return m.call(o);
  20. if (o && typeof o.length === "number") return {
  21. next: function () {
  22. if (o && i >= o.length) o = void 0;
  23. return { value: o && o[i++], done: !o };
  24. }
  25. };
  26. throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
  27. };
  28. var __read = (this && this.__read) || function (o, n) {
  29. var m = typeof Symbol === "function" && o[Symbol.iterator];
  30. if (!m) return o;
  31. var i = m.call(o), r, ar = [], e;
  32. try {
  33. while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
  34. }
  35. catch (error) { e = { error: error }; }
  36. finally {
  37. try {
  38. if (r && !r.done && (m = i["return"])) m.call(i);
  39. }
  40. finally { if (e) throw e.error; }
  41. }
  42. return ar;
  43. };
  44. Object.defineProperty(exports, "__esModule", { value: true });
  45. exports.CHTMLmtable = void 0;
  46. var Wrapper_js_1 = require("../Wrapper.js");
  47. var mtable_js_1 = require("../../common/Wrappers/mtable.js");
  48. var mtable_js_2 = require("../../../core/MmlTree/MmlNodes/mtable.js");
  49. var string_js_1 = require("../../../util/string.js");
  50. var CHTMLmtable = (function (_super) {
  51. __extends(CHTMLmtable, _super);
  52. function CHTMLmtable(factory, node, parent) {
  53. if (parent === void 0) { parent = null; }
  54. var _this = _super.call(this, factory, node, parent) || this;
  55. _this.itable = _this.html('mjx-itable');
  56. _this.labels = _this.html('mjx-itable');
  57. return _this;
  58. }
  59. CHTMLmtable.prototype.getAlignShift = function () {
  60. var data = _super.prototype.getAlignShift.call(this);
  61. if (!this.isTop) {
  62. data[1] = 0;
  63. }
  64. return data;
  65. };
  66. CHTMLmtable.prototype.toCHTML = function (parent) {
  67. var e_1, _a;
  68. var chtml = this.standardCHTMLnode(parent);
  69. this.adaptor.append(chtml, this.html('mjx-table', {}, [this.itable]));
  70. try {
  71. for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) {
  72. var child = _c.value;
  73. child.toCHTML(this.itable);
  74. }
  75. }
  76. catch (e_1_1) { e_1 = { error: e_1_1 }; }
  77. finally {
  78. try {
  79. if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
  80. }
  81. finally { if (e_1) throw e_1.error; }
  82. }
  83. this.padRows();
  84. this.handleColumnSpacing();
  85. this.handleColumnLines();
  86. this.handleColumnWidths();
  87. this.handleRowSpacing();
  88. this.handleRowLines();
  89. this.handleRowHeights();
  90. this.handleFrame();
  91. this.handleWidth();
  92. this.handleLabels();
  93. this.handleAlign();
  94. this.handleJustify();
  95. this.shiftColor();
  96. };
  97. CHTMLmtable.prototype.shiftColor = function () {
  98. var adaptor = this.adaptor;
  99. var color = adaptor.getStyle(this.chtml, 'backgroundColor');
  100. if (color) {
  101. adaptor.setStyle(this.chtml, 'backgroundColor', '');
  102. adaptor.setStyle(this.itable, 'backgroundColor', color);
  103. }
  104. };
  105. CHTMLmtable.prototype.padRows = function () {
  106. var e_2, _a;
  107. var adaptor = this.adaptor;
  108. try {
  109. for (var _b = __values(adaptor.childNodes(this.itable)), _c = _b.next(); !_c.done; _c = _b.next()) {
  110. var row = _c.value;
  111. while (adaptor.childNodes(row).length < this.numCols) {
  112. adaptor.append(row, this.html('mjx-mtd', { 'extra': true }));
  113. }
  114. }
  115. }
  116. catch (e_2_1) { e_2 = { error: e_2_1 }; }
  117. finally {
  118. try {
  119. if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
  120. }
  121. finally { if (e_2) throw e_2.error; }
  122. }
  123. };
  124. CHTMLmtable.prototype.handleColumnSpacing = function () {
  125. var e_3, _a, e_4, _b;
  126. var scale = (this.childNodes[0] ? 1 / this.childNodes[0].getBBox().rscale : 1);
  127. var spacing = this.getEmHalfSpacing(this.fSpace[0], this.cSpace, scale);
  128. var frame = this.frame;
  129. try {
  130. for (var _c = __values(this.tableRows), _d = _c.next(); !_d.done; _d = _c.next()) {
  131. var row = _d.value;
  132. var i = 0;
  133. try {
  134. for (var _e = (e_4 = void 0, __values(row.tableCells)), _f = _e.next(); !_f.done; _f = _e.next()) {
  135. var cell = _f.value;
  136. var lspace = spacing[i++];
  137. var rspace = spacing[i];
  138. var styleNode = (cell ? cell.chtml : this.adaptor.childNodes(row.chtml)[i]);
  139. if ((i > 1 && lspace !== '0.4em') || (frame && i === 1)) {
  140. this.adaptor.setStyle(styleNode, 'paddingLeft', lspace);
  141. }
  142. if ((i < this.numCols && rspace !== '0.4em') || (frame && i === this.numCols)) {
  143. this.adaptor.setStyle(styleNode, 'paddingRight', rspace);
  144. }
  145. }
  146. }
  147. catch (e_4_1) { e_4 = { error: e_4_1 }; }
  148. finally {
  149. try {
  150. if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
  151. }
  152. finally { if (e_4) throw e_4.error; }
  153. }
  154. }
  155. }
  156. catch (e_3_1) { e_3 = { error: e_3_1 }; }
  157. finally {
  158. try {
  159. if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
  160. }
  161. finally { if (e_3) throw e_3.error; }
  162. }
  163. };
  164. CHTMLmtable.prototype.handleColumnLines = function () {
  165. var e_5, _a, e_6, _b;
  166. if (this.node.attributes.get('columnlines') === 'none')
  167. return;
  168. var lines = this.getColumnAttributes('columnlines');
  169. try {
  170. for (var _c = __values(this.childNodes), _d = _c.next(); !_d.done; _d = _c.next()) {
  171. var row = _d.value;
  172. var i = 0;
  173. try {
  174. for (var _e = (e_6 = void 0, __values(this.adaptor.childNodes(row.chtml).slice(1))), _f = _e.next(); !_f.done; _f = _e.next()) {
  175. var cell = _f.value;
  176. var line = lines[i++];
  177. if (line === 'none')
  178. continue;
  179. this.adaptor.setStyle(cell, 'borderLeft', '.07em ' + line);
  180. }
  181. }
  182. catch (e_6_1) { e_6 = { error: e_6_1 }; }
  183. finally {
  184. try {
  185. if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
  186. }
  187. finally { if (e_6) throw e_6.error; }
  188. }
  189. }
  190. }
  191. catch (e_5_1) { e_5 = { error: e_5_1 }; }
  192. finally {
  193. try {
  194. if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
  195. }
  196. finally { if (e_5) throw e_5.error; }
  197. }
  198. };
  199. CHTMLmtable.prototype.handleColumnWidths = function () {
  200. var e_7, _a, e_8, _b;
  201. try {
  202. for (var _c = __values(this.childNodes), _d = _c.next(); !_d.done; _d = _c.next()) {
  203. var row = _d.value;
  204. var i = 0;
  205. try {
  206. for (var _e = (e_8 = void 0, __values(this.adaptor.childNodes(row.chtml))), _f = _e.next(); !_f.done; _f = _e.next()) {
  207. var cell = _f.value;
  208. var w = this.cWidths[i++];
  209. if (w !== null) {
  210. var width = (typeof w === 'number' ? this.em(w) : w);
  211. this.adaptor.setStyle(cell, 'width', width);
  212. this.adaptor.setStyle(cell, 'maxWidth', width);
  213. this.adaptor.setStyle(cell, 'minWidth', width);
  214. }
  215. }
  216. }
  217. catch (e_8_1) { e_8 = { error: e_8_1 }; }
  218. finally {
  219. try {
  220. if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
  221. }
  222. finally { if (e_8) throw e_8.error; }
  223. }
  224. }
  225. }
  226. catch (e_7_1) { e_7 = { error: e_7_1 }; }
  227. finally {
  228. try {
  229. if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
  230. }
  231. finally { if (e_7) throw e_7.error; }
  232. }
  233. };
  234. CHTMLmtable.prototype.handleRowSpacing = function () {
  235. var e_9, _a, e_10, _b;
  236. var scale = (this.childNodes[0] ? 1 / this.childNodes[0].getBBox().rscale : 1);
  237. var spacing = this.getEmHalfSpacing(this.fSpace[1], this.rSpace, scale);
  238. var frame = this.frame;
  239. var i = 0;
  240. try {
  241. for (var _c = __values(this.childNodes), _d = _c.next(); !_d.done; _d = _c.next()) {
  242. var row = _d.value;
  243. var tspace = spacing[i++];
  244. var bspace = spacing[i];
  245. try {
  246. for (var _e = (e_10 = void 0, __values(row.childNodes)), _f = _e.next(); !_f.done; _f = _e.next()) {
  247. var cell = _f.value;
  248. if ((i > 1 && tspace !== '0.215em') || (frame && i === 1)) {
  249. this.adaptor.setStyle(cell.chtml, 'paddingTop', tspace);
  250. }
  251. if ((i < this.numRows && bspace !== '0.215em') || (frame && i === this.numRows)) {
  252. this.adaptor.setStyle(cell.chtml, 'paddingBottom', bspace);
  253. }
  254. }
  255. }
  256. catch (e_10_1) { e_10 = { error: e_10_1 }; }
  257. finally {
  258. try {
  259. if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
  260. }
  261. finally { if (e_10) throw e_10.error; }
  262. }
  263. }
  264. }
  265. catch (e_9_1) { e_9 = { error: e_9_1 }; }
  266. finally {
  267. try {
  268. if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
  269. }
  270. finally { if (e_9) throw e_9.error; }
  271. }
  272. };
  273. CHTMLmtable.prototype.handleRowLines = function () {
  274. var e_11, _a, e_12, _b;
  275. if (this.node.attributes.get('rowlines') === 'none')
  276. return;
  277. var lines = this.getRowAttributes('rowlines');
  278. var i = 0;
  279. try {
  280. for (var _c = __values(this.childNodes.slice(1)), _d = _c.next(); !_d.done; _d = _c.next()) {
  281. var row = _d.value;
  282. var line = lines[i++];
  283. if (line === 'none')
  284. continue;
  285. try {
  286. for (var _e = (e_12 = void 0, __values(this.adaptor.childNodes(row.chtml))), _f = _e.next(); !_f.done; _f = _e.next()) {
  287. var cell = _f.value;
  288. this.adaptor.setStyle(cell, 'borderTop', '.07em ' + line);
  289. }
  290. }
  291. catch (e_12_1) { e_12 = { error: e_12_1 }; }
  292. finally {
  293. try {
  294. if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
  295. }
  296. finally { if (e_12) throw e_12.error; }
  297. }
  298. }
  299. }
  300. catch (e_11_1) { e_11 = { error: e_11_1 }; }
  301. finally {
  302. try {
  303. if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
  304. }
  305. finally { if (e_11) throw e_11.error; }
  306. }
  307. };
  308. CHTMLmtable.prototype.handleRowHeights = function () {
  309. if (this.node.attributes.get('equalrows')) {
  310. this.handleEqualRows();
  311. }
  312. };
  313. CHTMLmtable.prototype.handleEqualRows = function () {
  314. var space = this.getRowHalfSpacing();
  315. var _a = this.getTableData(), H = _a.H, D = _a.D, NH = _a.NH, ND = _a.ND;
  316. var HD = this.getEqualRowHeight();
  317. for (var i = 0; i < this.numRows; i++) {
  318. var row = this.childNodes[i];
  319. this.setRowHeight(row, HD + space[i] + space[i + 1] + this.rLines[i]);
  320. if (HD !== NH[i] + ND[i]) {
  321. this.setRowBaseline(row, HD, (HD - H[i] + D[i]) / 2);
  322. }
  323. }
  324. };
  325. CHTMLmtable.prototype.setRowHeight = function (row, HD) {
  326. this.adaptor.setStyle(row.chtml, 'height', this.em(HD));
  327. };
  328. CHTMLmtable.prototype.setRowBaseline = function (row, HD, D) {
  329. var e_13, _a;
  330. var ralign = row.node.attributes.get('rowalign');
  331. try {
  332. for (var _b = __values(row.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) {
  333. var cell = _c.value;
  334. if (this.setCellBaseline(cell, ralign, HD, D))
  335. break;
  336. }
  337. }
  338. catch (e_13_1) { e_13 = { error: e_13_1 }; }
  339. finally {
  340. try {
  341. if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
  342. }
  343. finally { if (e_13) throw e_13.error; }
  344. }
  345. };
  346. CHTMLmtable.prototype.setCellBaseline = function (cell, ralign, HD, D) {
  347. var calign = cell.node.attributes.get('rowalign');
  348. if (calign === 'baseline' || calign === 'axis') {
  349. var adaptor = this.adaptor;
  350. var child = adaptor.lastChild(cell.chtml);
  351. adaptor.setStyle(child, 'height', this.em(HD));
  352. adaptor.setStyle(child, 'verticalAlign', this.em(-D));
  353. var row = cell.parent;
  354. if ((!row.node.isKind('mlabeledtr') || cell !== row.childNodes[0]) &&
  355. (ralign === 'baseline' || ralign === 'axis')) {
  356. return true;
  357. }
  358. }
  359. return false;
  360. };
  361. CHTMLmtable.prototype.handleFrame = function () {
  362. if (this.frame && this.fLine) {
  363. this.adaptor.setStyle(this.itable, 'border', '.07em ' + this.node.attributes.get('frame'));
  364. }
  365. };
  366. CHTMLmtable.prototype.handleWidth = function () {
  367. var adaptor = this.adaptor;
  368. var _a = this.getBBox(), w = _a.w, L = _a.L, R = _a.R;
  369. adaptor.setStyle(this.chtml, 'minWidth', this.em(L + w + R));
  370. var W = this.node.attributes.get('width');
  371. if ((0, string_js_1.isPercent)(W)) {
  372. adaptor.setStyle(this.chtml, 'width', '');
  373. adaptor.setAttribute(this.chtml, 'width', 'full');
  374. }
  375. else if (!this.hasLabels) {
  376. if (W === 'auto')
  377. return;
  378. W = this.em(this.length2em(W) + 2 * this.fLine);
  379. }
  380. var table = adaptor.firstChild(this.chtml);
  381. adaptor.setStyle(table, 'width', W);
  382. adaptor.setStyle(table, 'minWidth', this.em(w));
  383. if (L || R) {
  384. adaptor.setStyle(this.chtml, 'margin', '');
  385. var style = (this.node.attributes.get('data-width-includes-label') ? 'padding' : 'margin');
  386. if (L === R) {
  387. adaptor.setStyle(table, style, '0 ' + this.em(R));
  388. }
  389. else {
  390. adaptor.setStyle(table, style, '0 ' + this.em(R) + ' 0 ' + this.em(L));
  391. }
  392. }
  393. adaptor.setAttribute(this.itable, 'width', 'full');
  394. };
  395. CHTMLmtable.prototype.handleAlign = function () {
  396. var _a = __read(this.getAlignmentRow(), 2), align = _a[0], row = _a[1];
  397. if (row === null) {
  398. if (align !== 'axis') {
  399. this.adaptor.setAttribute(this.chtml, 'align', align);
  400. }
  401. }
  402. else {
  403. var y = this.getVerticalPosition(row, align);
  404. this.adaptor.setAttribute(this.chtml, 'align', 'top');
  405. this.adaptor.setStyle(this.chtml, 'verticalAlign', this.em(y));
  406. }
  407. };
  408. CHTMLmtable.prototype.handleJustify = function () {
  409. var align = this.getAlignShift()[0];
  410. if (align !== 'center') {
  411. this.adaptor.setAttribute(this.chtml, 'justify', align);
  412. }
  413. };
  414. CHTMLmtable.prototype.handleLabels = function () {
  415. if (!this.hasLabels)
  416. return;
  417. var labels = this.labels;
  418. var attributes = this.node.attributes;
  419. var adaptor = this.adaptor;
  420. var side = attributes.get('side');
  421. adaptor.setAttribute(this.chtml, 'side', side);
  422. adaptor.setAttribute(labels, 'align', side);
  423. adaptor.setStyle(labels, side, '0');
  424. var _a = __read(this.addLabelPadding(side), 2), align = _a[0], shift = _a[1];
  425. if (shift) {
  426. var table = adaptor.firstChild(this.chtml);
  427. this.setIndent(table, align, shift);
  428. }
  429. this.updateRowHeights();
  430. this.addLabelSpacing();
  431. };
  432. CHTMLmtable.prototype.addLabelPadding = function (side) {
  433. var _a = __read(this.getPadAlignShift(side), 3), align = _a[1], shift = _a[2];
  434. var styles = {};
  435. if (side === 'right' && !this.node.attributes.get('data-width-includes-label')) {
  436. var W = this.node.attributes.get('width');
  437. var _b = this.getBBox(), w = _b.w, L = _b.L, R = _b.R;
  438. styles.style = {
  439. width: ((0, string_js_1.isPercent)(W) ? 'calc(' + W + ' + ' + this.em(L + R) + ')' : this.em(L + w + R))
  440. };
  441. }
  442. this.adaptor.append(this.chtml, this.html('mjx-labels', styles, [this.labels]));
  443. return [align, shift];
  444. };
  445. CHTMLmtable.prototype.updateRowHeights = function () {
  446. var _a = this.getTableData(), H = _a.H, D = _a.D, NH = _a.NH, ND = _a.ND;
  447. var space = this.getRowHalfSpacing();
  448. for (var i = 0; i < this.numRows; i++) {
  449. var row = this.childNodes[i];
  450. this.setRowHeight(row, H[i] + D[i] + space[i] + space[i + 1] + this.rLines[i]);
  451. if (H[i] !== NH[i] || D[i] !== ND[i]) {
  452. this.setRowBaseline(row, H[i] + D[i], D[i]);
  453. }
  454. else if (row.node.isKind('mlabeledtr')) {
  455. this.setCellBaseline(row.childNodes[0], '', H[i] + D[i], D[i]);
  456. }
  457. }
  458. };
  459. CHTMLmtable.prototype.addLabelSpacing = function () {
  460. var adaptor = this.adaptor;
  461. var equal = this.node.attributes.get('equalrows');
  462. var _a = this.getTableData(), H = _a.H, D = _a.D;
  463. var HD = (equal ? this.getEqualRowHeight() : 0);
  464. var space = this.getRowHalfSpacing();
  465. var h = this.fLine;
  466. var current = adaptor.firstChild(this.labels);
  467. for (var i = 0; i < this.numRows; i++) {
  468. var row = this.childNodes[i];
  469. if (row.node.isKind('mlabeledtr')) {
  470. h && adaptor.insert(this.html('mjx-mtr', { style: { height: this.em(h) } }), current);
  471. adaptor.setStyle(current, 'height', this.em((equal ? HD : H[i] + D[i]) + space[i] + space[i + 1]));
  472. current = adaptor.next(current);
  473. h = this.rLines[i];
  474. }
  475. else {
  476. h += space[i] + (equal ? HD : H[i] + D[i]) + space[i + 1] + this.rLines[i];
  477. }
  478. }
  479. };
  480. CHTMLmtable.kind = mtable_js_2.MmlMtable.prototype.kind;
  481. CHTMLmtable.styles = {
  482. 'mjx-mtable': {
  483. 'vertical-align': '.25em',
  484. 'text-align': 'center',
  485. 'position': 'relative',
  486. 'box-sizing': 'border-box',
  487. 'border-spacing': 0,
  488. 'border-collapse': 'collapse'
  489. },
  490. 'mjx-mstyle[size="s"] mjx-mtable': {
  491. 'vertical-align': '.354em'
  492. },
  493. 'mjx-labels': {
  494. position: 'absolute',
  495. left: 0,
  496. top: 0
  497. },
  498. 'mjx-table': {
  499. 'display': 'inline-block',
  500. 'vertical-align': '-.5ex',
  501. 'box-sizing': 'border-box'
  502. },
  503. 'mjx-table > mjx-itable': {
  504. 'vertical-align': 'middle',
  505. 'text-align': 'left',
  506. 'box-sizing': 'border-box'
  507. },
  508. 'mjx-labels > mjx-itable': {
  509. position: 'absolute',
  510. top: 0
  511. },
  512. 'mjx-mtable[justify="left"]': {
  513. 'text-align': 'left'
  514. },
  515. 'mjx-mtable[justify="right"]': {
  516. 'text-align': 'right'
  517. },
  518. 'mjx-mtable[justify="left"][side="left"]': {
  519. 'padding-right': '0 ! important'
  520. },
  521. 'mjx-mtable[justify="left"][side="right"]': {
  522. 'padding-left': '0 ! important'
  523. },
  524. 'mjx-mtable[justify="right"][side="left"]': {
  525. 'padding-right': '0 ! important'
  526. },
  527. 'mjx-mtable[justify="right"][side="right"]': {
  528. 'padding-left': '0 ! important'
  529. },
  530. 'mjx-mtable[align]': {
  531. 'vertical-align': 'baseline'
  532. },
  533. 'mjx-mtable[align="top"] > mjx-table': {
  534. 'vertical-align': 'top'
  535. },
  536. 'mjx-mtable[align="bottom"] > mjx-table': {
  537. 'vertical-align': 'bottom'
  538. },
  539. 'mjx-mtable[side="right"] mjx-labels': {
  540. 'min-width': '100%'
  541. }
  542. };
  543. return CHTMLmtable;
  544. }((0, mtable_js_1.CommonMtableMixin)(Wrapper_js_1.CHTMLWrapper)));
  545. exports.CHTMLmtable = CHTMLmtable;
  546. //# sourceMappingURL=mtable.js.map