mrow.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. Object.defineProperty(exports, "__esModule", { value: true });
  18. exports.SVGinferredMrow = exports.SVGmrow = void 0;
  19. var Wrapper_js_1 = require("../Wrapper.js");
  20. var mrow_js_1 = require("../../common/Wrappers/mrow.js");
  21. var mrow_js_2 = require("../../common/Wrappers/mrow.js");
  22. var mrow_js_3 = require("../../../core/MmlTree/MmlNodes/mrow.js");
  23. var SVGmrow = (function (_super) {
  24. __extends(SVGmrow, _super);
  25. function SVGmrow() {
  26. return _super !== null && _super.apply(this, arguments) || this;
  27. }
  28. SVGmrow.prototype.toSVG = function (parent) {
  29. var svg = (this.node.isInferred ? (this.element = parent) : this.standardSVGnode(parent));
  30. this.addChildren(svg);
  31. };
  32. SVGmrow.kind = mrow_js_3.MmlMrow.prototype.kind;
  33. return SVGmrow;
  34. }((0, mrow_js_1.CommonMrowMixin)(Wrapper_js_1.SVGWrapper)));
  35. exports.SVGmrow = SVGmrow;
  36. var SVGinferredMrow = (function (_super) {
  37. __extends(SVGinferredMrow, _super);
  38. function SVGinferredMrow() {
  39. return _super !== null && _super.apply(this, arguments) || this;
  40. }
  41. SVGinferredMrow.kind = mrow_js_3.MmlInferredMrow.prototype.kind;
  42. return SVGinferredMrow;
  43. }((0, mrow_js_2.CommonInferredMrowMixin)(SVGmrow)));
  44. exports.SVGinferredMrow = SVGinferredMrow;
  45. //# sourceMappingURL=mrow.js.map