stuff
This commit is contained in:
parent
bc92231240
commit
b8225c639e
11904 changed files with 1472749 additions and 133 deletions
49
node_modules/mathjax-full/js/output/chtml/Wrappers/mspace.js
generated
vendored
Normal file
49
node_modules/mathjax-full/js/output/chtml/Wrappers/mspace.js
generated
vendored
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
"use strict";
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
if (typeof b !== "function" && b !== null)
|
||||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.CHTMLmspace = void 0;
|
||||
var Wrapper_js_1 = require("../Wrapper.js");
|
||||
var mspace_js_1 = require("../../common/Wrappers/mspace.js");
|
||||
var mspace_js_2 = require("../../../core/MmlTree/MmlNodes/mspace.js");
|
||||
var CHTMLmspace = (function (_super) {
|
||||
__extends(CHTMLmspace, _super);
|
||||
function CHTMLmspace() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
CHTMLmspace.prototype.toCHTML = function (parent) {
|
||||
var chtml = this.standardCHTMLnode(parent);
|
||||
var _a = this.getBBox(), w = _a.w, h = _a.h, d = _a.d;
|
||||
if (w < 0) {
|
||||
this.adaptor.setStyle(chtml, 'marginRight', this.em(w));
|
||||
w = 0;
|
||||
}
|
||||
if (w) {
|
||||
this.adaptor.setStyle(chtml, 'width', this.em(w));
|
||||
}
|
||||
h = Math.max(0, h + d);
|
||||
if (h) {
|
||||
this.adaptor.setStyle(chtml, 'height', this.em(Math.max(0, h)));
|
||||
}
|
||||
if (d) {
|
||||
this.adaptor.setStyle(chtml, 'verticalAlign', this.em(-d));
|
||||
}
|
||||
};
|
||||
CHTMLmspace.kind = mspace_js_2.MmlMspace.prototype.kind;
|
||||
return CHTMLmspace;
|
||||
}((0, mspace_js_1.CommonMspaceMixin)(Wrapper_js_1.CHTMLWrapper)));
|
||||
exports.CHTMLmspace = CHTMLmspace;
|
||||
//# sourceMappingURL=mspace.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue