add initial marp implementation with sample content and build configuration
This commit is contained in:
113
node_modules/mathjax-full/js/core/DOMAdaptor.d.ts
generated
vendored
Normal file
113
node_modules/mathjax-full/js/core/DOMAdaptor.d.ts
generated
vendored
Normal file
@@ -0,0 +1,113 @@
|
||||
import { OptionList } from '../util/Options.js';
|
||||
export declare type AttributeData = {
|
||||
name: string;
|
||||
value: string;
|
||||
};
|
||||
export declare type PageBBox = {
|
||||
left: number;
|
||||
right: number;
|
||||
top: number;
|
||||
bottom: number;
|
||||
};
|
||||
export interface DOMAdaptor<N, T, D> {
|
||||
document: D;
|
||||
parse(text: string, format?: string): D;
|
||||
node(kind: string, def?: OptionList, children?: (N | T)[], ns?: string): N;
|
||||
text(text: string): T;
|
||||
head(doc: D): N;
|
||||
body(doc: D): N;
|
||||
root(doc: D): N;
|
||||
doctype(doc: D): string;
|
||||
tags(node: N, name: string, ns?: string): N[];
|
||||
getElements(nodes: (string | N | N[])[], document: D): N[];
|
||||
contains(container: N, node: N | T): boolean;
|
||||
parent(node: N | T): N;
|
||||
append(node: N, child: N | T): N | T;
|
||||
insert(nchild: N | T, ochild: N | T): void;
|
||||
remove(child: N | T): N | T;
|
||||
replace(nnode: N | T, onode: N | T): N | T;
|
||||
clone(node: N): N;
|
||||
split(node: T, n: number): T;
|
||||
next(node: N | T): N | T;
|
||||
previous(node: N | T): N | T;
|
||||
firstChild(node: N): N | T;
|
||||
lastChild(node: N): N | T;
|
||||
childNodes(node: N): (N | T)[];
|
||||
childNode(node: N, i: number): N | T;
|
||||
kind(node: N | T): string;
|
||||
value(node: N | T): string;
|
||||
textContent(node: N): string;
|
||||
innerHTML(node: N): string;
|
||||
outerHTML(node: N): string;
|
||||
serializeXML(node: N): string;
|
||||
setAttribute(node: N, name: string, value: string | number, ns?: string): void;
|
||||
setAttributes(node: N, def: OptionList): void;
|
||||
getAttribute(node: N, name: string): string;
|
||||
removeAttribute(node: N, name: string): void;
|
||||
hasAttribute(node: N, name: string): boolean;
|
||||
allAttributes(node: N): AttributeData[];
|
||||
addClass(node: N, name: string): void;
|
||||
removeClass(node: N, name: string): void;
|
||||
hasClass(node: N, name: string): boolean;
|
||||
allClasses(node: N): string[];
|
||||
setStyle(node: N, name: string, value: string): void;
|
||||
getStyle(node: N, name: string): string;
|
||||
allStyles(node: N): string;
|
||||
insertRules(node: N, rules: string[]): void;
|
||||
fontSize(node: N): number;
|
||||
fontFamily(node: N): string;
|
||||
nodeSize(node: N, em?: number, local?: boolean): [number, number];
|
||||
nodeBBox(node: N): PageBBox;
|
||||
}
|
||||
export declare abstract class AbstractDOMAdaptor<N, T, D> implements DOMAdaptor<N, T, D> {
|
||||
document: D;
|
||||
constructor(document?: D);
|
||||
abstract parse(text: string, format?: string): D;
|
||||
node(kind: string, def?: OptionList, children?: (N | T)[], ns?: string): N;
|
||||
protected abstract create(kind: string, ns?: string): N;
|
||||
abstract text(text: string): T;
|
||||
setAttributes(node: N, def: OptionList): void;
|
||||
abstract head(doc: D): N;
|
||||
abstract body(doc: D): N;
|
||||
abstract root(doc: D): N;
|
||||
abstract doctype(doc: D): string;
|
||||
abstract tags(node: N, name: string, ns?: string): N[];
|
||||
abstract getElements(nodes: (string | N | N[])[], document: D): N[];
|
||||
abstract contains(container: N, node: N | T): boolean;
|
||||
abstract parent(node: N | T): N;
|
||||
abstract append(node: N, child: N | T): N | T;
|
||||
abstract insert(nchild: N | T, ochild: N | T): void;
|
||||
abstract remove(child: N | T): N | T;
|
||||
replace(nnode: N | T, onode: N | T): N | T;
|
||||
abstract clone(node: N): N;
|
||||
abstract split(node: T, n: number): T;
|
||||
abstract next(node: N | T): N | T;
|
||||
abstract previous(node: N | T): N | T;
|
||||
abstract firstChild(node: N): N | T;
|
||||
abstract lastChild(node: N): N | T;
|
||||
abstract childNodes(node: N): (N | T)[];
|
||||
childNode(node: N, i: number): N | T;
|
||||
abstract kind(node: N | T): string;
|
||||
abstract value(node: N | T): string;
|
||||
abstract textContent(node: N): string;
|
||||
abstract innerHTML(node: N): string;
|
||||
abstract outerHTML(node: N): string;
|
||||
abstract serializeXML(node: N): string;
|
||||
abstract setAttribute(node: N, name: string, value: string, ns?: string): void;
|
||||
abstract getAttribute(node: N, name: string): string;
|
||||
abstract removeAttribute(node: N, name: string): void;
|
||||
abstract hasAttribute(node: N, name: string): boolean;
|
||||
abstract allAttributes(node: N): AttributeData[];
|
||||
abstract addClass(node: N, name: string): void;
|
||||
abstract removeClass(node: N, name: string): void;
|
||||
abstract hasClass(node: N, name: string): boolean;
|
||||
allClasses(node: N): string[];
|
||||
abstract setStyle(node: N, name: string, value: string): void;
|
||||
abstract getStyle(node: N, name: string): string;
|
||||
abstract allStyles(node: N): string;
|
||||
abstract insertRules(node: N, rules: string[]): void;
|
||||
abstract fontSize(node: N): number;
|
||||
abstract fontFamily(node: N): string;
|
||||
abstract nodeSize(node: N, em?: number, local?: boolean): [number, number];
|
||||
abstract nodeBBox(node: N): PageBBox;
|
||||
}
|
||||
105
node_modules/mathjax-full/js/core/DOMAdaptor.js
generated
vendored
Normal file
105
node_modules/mathjax-full/js/core/DOMAdaptor.js
generated
vendored
Normal file
@@ -0,0 +1,105 @@
|
||||
"use strict";
|
||||
var __values = (this && this.__values) || function(o) {
|
||||
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
||||
if (m) return m.call(o);
|
||||
if (o && typeof o.length === "number") return {
|
||||
next: function () {
|
||||
if (o && i >= o.length) o = void 0;
|
||||
return { value: o && o[i++], done: !o };
|
||||
}
|
||||
};
|
||||
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AbstractDOMAdaptor = void 0;
|
||||
var AbstractDOMAdaptor = (function () {
|
||||
function AbstractDOMAdaptor(document) {
|
||||
if (document === void 0) { document = null; }
|
||||
this.document = document;
|
||||
}
|
||||
AbstractDOMAdaptor.prototype.node = function (kind, def, children, ns) {
|
||||
var e_1, _a;
|
||||
if (def === void 0) { def = {}; }
|
||||
if (children === void 0) { children = []; }
|
||||
var node = this.create(kind, ns);
|
||||
this.setAttributes(node, def);
|
||||
try {
|
||||
for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) {
|
||||
var child = children_1_1.value;
|
||||
this.append(node, child);
|
||||
}
|
||||
}
|
||||
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1);
|
||||
}
|
||||
finally { if (e_1) throw e_1.error; }
|
||||
}
|
||||
return node;
|
||||
};
|
||||
AbstractDOMAdaptor.prototype.setAttributes = function (node, def) {
|
||||
var e_2, _a, e_3, _b, e_4, _c;
|
||||
if (def.style && typeof (def.style) !== 'string') {
|
||||
try {
|
||||
for (var _d = __values(Object.keys(def.style)), _e = _d.next(); !_e.done; _e = _d.next()) {
|
||||
var key = _e.value;
|
||||
this.setStyle(node, key.replace(/-([a-z])/g, function (_m, c) { return c.toUpperCase(); }), def.style[key]);
|
||||
}
|
||||
}
|
||||
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_e && !_e.done && (_a = _d.return)) _a.call(_d);
|
||||
}
|
||||
finally { if (e_2) throw e_2.error; }
|
||||
}
|
||||
}
|
||||
if (def.properties) {
|
||||
try {
|
||||
for (var _f = __values(Object.keys(def.properties)), _g = _f.next(); !_g.done; _g = _f.next()) {
|
||||
var key = _g.value;
|
||||
node[key] = def.properties[key];
|
||||
}
|
||||
}
|
||||
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_g && !_g.done && (_b = _f.return)) _b.call(_f);
|
||||
}
|
||||
finally { if (e_3) throw e_3.error; }
|
||||
}
|
||||
}
|
||||
try {
|
||||
for (var _h = __values(Object.keys(def)), _j = _h.next(); !_j.done; _j = _h.next()) {
|
||||
var key = _j.value;
|
||||
if ((key !== 'style' || typeof (def.style) === 'string') && key !== 'properties') {
|
||||
this.setAttribute(node, key, def[key]);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_j && !_j.done && (_c = _h.return)) _c.call(_h);
|
||||
}
|
||||
finally { if (e_4) throw e_4.error; }
|
||||
}
|
||||
};
|
||||
AbstractDOMAdaptor.prototype.replace = function (nnode, onode) {
|
||||
this.insert(nnode, onode);
|
||||
this.remove(onode);
|
||||
return onode;
|
||||
};
|
||||
AbstractDOMAdaptor.prototype.childNode = function (node, i) {
|
||||
return this.childNodes(node)[i];
|
||||
};
|
||||
AbstractDOMAdaptor.prototype.allClasses = function (node) {
|
||||
var classes = this.getAttribute(node, 'class');
|
||||
return (!classes ? [] :
|
||||
classes.replace(/ +/g, ' ').replace(/^ /, '').replace(/ $/, '').split(/ /));
|
||||
};
|
||||
return AbstractDOMAdaptor;
|
||||
}());
|
||||
exports.AbstractDOMAdaptor = AbstractDOMAdaptor;
|
||||
//# sourceMappingURL=DOMAdaptor.js.map
|
||||
1
node_modules/mathjax-full/js/core/DOMAdaptor.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/DOMAdaptor.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"DOMAdaptor.js","sourceRoot":"","sources":["../../ts/core/DOMAdaptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAuXA;IAWE,4BAAY,QAAkB;QAAlB,yBAAA,EAAA,eAAkB;QAC5B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAUM,iCAAI,GAAX,UAAY,IAAY,EAAE,GAAoB,EAAE,QAAwB,EAAE,EAAW;;QAA3D,oBAAA,EAAA,QAAoB;QAAE,yBAAA,EAAA,aAAwB;QACtE,IAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACnC,I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C,IAAI,GAAG,KAAK,YAAY,EAAE;oBAC/E,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;iBACxC;aACF;;;;;;;;;IACH,CAAC;IA4DM,oCAAO,GAAd,UAAe,KAAY,EAAE,KAAY;QACvC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAC1B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACnB,OAAO,KAAK,CAAC;IACf,CAAC;IAwCM,sCAAS,GAAhB,UAAiB,IAAO,EAAE,CAAS;QACjC,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAClC,CAAC;IA4EM,uCAAU,GAAjB,UAAkB,IAAO;QACvB,IAAM,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACjD,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAc,CAAC,CAAC;YAC3B,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IACvF,CAAC;IA0CH,yBAAC;AAAD,CAAC,AApSD,IAoSC;AApSqB,gDAAkB"}
|
||||
12
node_modules/mathjax-full/js/core/FindMath.d.ts
generated
vendored
Normal file
12
node_modules/mathjax-full/js/core/FindMath.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import { OptionList } from '../util/Options.js';
|
||||
import { ProtoItem } from './MathItem.js';
|
||||
export interface FindMath<N, T, _D> {
|
||||
findMath(node: N): ProtoItem<N, T>[];
|
||||
findMath(strings: string[]): ProtoItem<N, T>[];
|
||||
}
|
||||
export declare abstract class AbstractFindMath<N, T, D> implements FindMath<N, T, D> {
|
||||
static OPTIONS: OptionList;
|
||||
protected options: OptionList;
|
||||
constructor(options: OptionList);
|
||||
abstract findMath(where: N | string[]): ProtoItem<N, T>[];
|
||||
}
|
||||
14
node_modules/mathjax-full/js/core/FindMath.js
generated
vendored
Normal file
14
node_modules/mathjax-full/js/core/FindMath.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AbstractFindMath = void 0;
|
||||
var Options_js_1 = require("../util/Options.js");
|
||||
var AbstractFindMath = (function () {
|
||||
function AbstractFindMath(options) {
|
||||
var CLASS = this.constructor;
|
||||
this.options = (0, Options_js_1.userOptions)((0, Options_js_1.defaultOptions)({}, CLASS.OPTIONS), options);
|
||||
}
|
||||
AbstractFindMath.OPTIONS = {};
|
||||
return AbstractFindMath;
|
||||
}());
|
||||
exports.AbstractFindMath = AbstractFindMath;
|
||||
//# sourceMappingURL=FindMath.js.map
|
||||
1
node_modules/mathjax-full/js/core/FindMath.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/FindMath.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"FindMath.js","sourceRoot":"","sources":["../../ts/core/FindMath.ts"],"names":[],"mappings":";;;AAuBA,iDAA2E;AAsC3E;IAeE,0BAAY,OAAmB;QAC7B,IAAI,KAAK,GAAG,IAAI,CAAC,WAAsC,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,IAAA,wBAAW,EAAC,IAAA,2BAAc,EAAC,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAba,wBAAO,GAAe,EAAE,CAAC;IAuBzC,uBAAC;CAAA,AA5BD,IA4BC;AA5BqB,4CAAgB"}
|
||||
21
node_modules/mathjax-full/js/core/Handler.d.ts
generated
vendored
Normal file
21
node_modules/mathjax-full/js/core/Handler.d.ts
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import { MathDocument, AbstractMathDocument, MathDocumentConstructor } from './MathDocument.js';
|
||||
import { OptionList } from '../util/Options.js';
|
||||
import { DOMAdaptor } from '../core/DOMAdaptor.js';
|
||||
export interface Handler<N, T, D> {
|
||||
name: string;
|
||||
adaptor: DOMAdaptor<N, T, D>;
|
||||
priority: number;
|
||||
documentClass: MathDocumentConstructor<AbstractMathDocument<N, T, D>>;
|
||||
handlesDocument(document: any): boolean;
|
||||
create(document: any, options: OptionList): MathDocument<N, T, D>;
|
||||
}
|
||||
export declare abstract class AbstractHandler<N, T, D> implements Handler<N, T, D> {
|
||||
static NAME: string;
|
||||
adaptor: DOMAdaptor<N, T, D>;
|
||||
priority: number;
|
||||
documentClass: MathDocumentConstructor<AbstractMathDocument<N, T, D>>;
|
||||
constructor(adaptor: DOMAdaptor<N, T, D>, priority?: number);
|
||||
get name(): string;
|
||||
handlesDocument(_document: any): boolean;
|
||||
create(document: any, options: OptionList): MathDocument<N, T, D>;
|
||||
}
|
||||
51
node_modules/mathjax-full/js/core/Handler.js
generated
vendored
Normal file
51
node_modules/mathjax-full/js/core/Handler.js
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
"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.AbstractHandler = void 0;
|
||||
var MathDocument_js_1 = require("./MathDocument.js");
|
||||
var DefaultMathDocument = (function (_super) {
|
||||
__extends(DefaultMathDocument, _super);
|
||||
function DefaultMathDocument() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
return DefaultMathDocument;
|
||||
}(MathDocument_js_1.AbstractMathDocument));
|
||||
var AbstractHandler = (function () {
|
||||
function AbstractHandler(adaptor, priority) {
|
||||
if (priority === void 0) { priority = 5; }
|
||||
this.documentClass = DefaultMathDocument;
|
||||
this.adaptor = adaptor;
|
||||
this.priority = priority;
|
||||
}
|
||||
Object.defineProperty(AbstractHandler.prototype, "name", {
|
||||
get: function () {
|
||||
return this.constructor.NAME;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
AbstractHandler.prototype.handlesDocument = function (_document) {
|
||||
return false;
|
||||
};
|
||||
AbstractHandler.prototype.create = function (document, options) {
|
||||
return new this.documentClass(document, this.adaptor, options);
|
||||
};
|
||||
AbstractHandler.NAME = 'generic';
|
||||
return AbstractHandler;
|
||||
}());
|
||||
exports.AbstractHandler = AbstractHandler;
|
||||
//# sourceMappingURL=Handler.js.map
|
||||
1
node_modules/mathjax-full/js/core/Handler.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/Handler.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Handler.js","sourceRoot":"","sources":["../../ts/core/Handler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAuBA,qDAA8F;AA6D9F;IAA2C,uCAA6B;IAAxE;;IAA0E,CAAC;IAAD,0BAAC;AAAD,CAAC,AAA3E,CAA2C,sCAAoB,GAAY;AAU3E;IA4BE,yBAAY,OAA4B,EAAE,QAAoB;QAApB,yBAAA,EAAA,YAAoB;QAPvD,kBAAa,GAA2D,mBAAmB,CAAC;QAQjG,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAKD,sBAAW,iCAAI;aAAf;YACE,OAAQ,IAAI,CAAC,WAAsC,CAAC,IAAI,CAAC;QAC3D,CAAC;;;OAAA;IAKM,yCAAe,GAAtB,UAAuB,SAAc;QACnC,OAAO,KAAK,CAAC;IACf,CAAC;IAKM,gCAAM,GAAb,UAAc,QAAa,EAAE,OAAmB;QAC9C,OAAO,IAAI,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,OAAO,CAA0B,CAAC;IAC1F,CAAC;IA/Ca,oBAAI,GAAW,SAAS,CAAC;IAiDzC,sBAAC;CAAA,AAtDD,IAsDC;AAtDqB,0CAAe"}
|
||||
10
node_modules/mathjax-full/js/core/HandlerList.d.ts
generated
vendored
Normal file
10
node_modules/mathjax-full/js/core/HandlerList.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { PrioritizedList } from '../util/PrioritizedList.js';
|
||||
import { OptionList } from '../util/Options.js';
|
||||
import { Handler } from './Handler.js';
|
||||
import { MathDocument } from './MathDocument.js';
|
||||
export declare class HandlerList<N, T, D> extends PrioritizedList<Handler<N, T, D>> {
|
||||
register(handler: Handler<N, T, D>): Handler<N, T, D>;
|
||||
unregister(handler: Handler<N, T, D>): void;
|
||||
handlesDocument(document: any): Handler<N, T, D>;
|
||||
document(document: any, options?: OptionList): MathDocument<N, T, D>;
|
||||
}
|
||||
69
node_modules/mathjax-full/js/core/HandlerList.js
generated
vendored
Normal file
69
node_modules/mathjax-full/js/core/HandlerList.js
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
"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 __());
|
||||
};
|
||||
})();
|
||||
var __values = (this && this.__values) || function(o) {
|
||||
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
||||
if (m) return m.call(o);
|
||||
if (o && typeof o.length === "number") return {
|
||||
next: function () {
|
||||
if (o && i >= o.length) o = void 0;
|
||||
return { value: o && o[i++], done: !o };
|
||||
}
|
||||
};
|
||||
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.HandlerList = void 0;
|
||||
var PrioritizedList_js_1 = require("../util/PrioritizedList.js");
|
||||
var HandlerList = (function (_super) {
|
||||
__extends(HandlerList, _super);
|
||||
function HandlerList() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
HandlerList.prototype.register = function (handler) {
|
||||
return this.add(handler, handler.priority);
|
||||
};
|
||||
HandlerList.prototype.unregister = function (handler) {
|
||||
this.remove(handler);
|
||||
};
|
||||
HandlerList.prototype.handlesDocument = function (document) {
|
||||
var e_1, _a;
|
||||
try {
|
||||
for (var _b = __values(this), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var item = _c.value;
|
||||
var handler = item.item;
|
||||
if (handler.handlesDocument(document)) {
|
||||
return handler;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_1) throw e_1.error; }
|
||||
}
|
||||
throw new Error("Can't find handler for document");
|
||||
};
|
||||
HandlerList.prototype.document = function (document, options) {
|
||||
if (options === void 0) { options = null; }
|
||||
return this.handlesDocument(document).create(document, options);
|
||||
};
|
||||
return HandlerList;
|
||||
}(PrioritizedList_js_1.PrioritizedList));
|
||||
exports.HandlerList = HandlerList;
|
||||
//# sourceMappingURL=HandlerList.js.map
|
||||
1
node_modules/mathjax-full/js/core/HandlerList.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/HandlerList.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"HandlerList.js","sourceRoot":"","sources":["../../ts/core/HandlerList.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBA,iEAA2D;AAiB3D;IAA0C,+BAAiC;IAA3E;;IAwCA,CAAC;IAlCQ,8BAAQ,GAAf,UAAgB,OAAyB;QACvC,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC7C,CAAC;IAKM,gCAAU,GAAjB,UAAkB,OAAyB;QACzC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACvB,CAAC;IAMM,qCAAe,GAAtB,UAAuB,QAAa;;;YAClC,KAAmB,IAAA,KAAA,SAAA,IAAI,CAAA,gBAAA,4BAAE;gBAApB,IAAM,IAAI,WAAA;gBACb,IAAI,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC;gBACxB,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE;oBACrC,OAAO,OAAO,CAAC;iBAChB;aACF;;;;;;;;;QACD,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;IACrD,CAAC;IAOM,8BAAQ,GAAf,UAAgB,QAAa,EAAE,OAA0B;QAA1B,wBAAA,EAAA,cAA0B;QACvD,OAAO,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAEH,kBAAC;AAAD,CAAC,AAxCD,CAA0C,oCAAe,GAwCxD;AAxCY,kCAAW"}
|
||||
41
node_modules/mathjax-full/js/core/InputJax.d.ts
generated
vendored
Normal file
41
node_modules/mathjax-full/js/core/InputJax.d.ts
generated
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
import { MathDocument } from './MathDocument.js';
|
||||
import { MathItem, ProtoItem } from './MathItem.js';
|
||||
import { MmlNode } from './MmlTree/MmlNode.js';
|
||||
import { MmlFactory } from './MmlTree/MmlFactory.js';
|
||||
import { OptionList } from '../util/Options.js';
|
||||
import { FunctionList } from '../util/FunctionList.js';
|
||||
import { DOMAdaptor } from '../core/DOMAdaptor.js';
|
||||
export interface InputJax<N, T, D> {
|
||||
name: string;
|
||||
processStrings: boolean;
|
||||
options: OptionList;
|
||||
preFilters: FunctionList;
|
||||
postFilters: FunctionList;
|
||||
adaptor: DOMAdaptor<N, T, D>;
|
||||
mmlFactory: MmlFactory;
|
||||
setAdaptor(adaptor: DOMAdaptor<N, T, D>): void;
|
||||
setMmlFactory(mmlFactory: MmlFactory): void;
|
||||
initialize(): void;
|
||||
reset(...args: any[]): void;
|
||||
findMath(which: N | string[], options?: OptionList): ProtoItem<N, T>[];
|
||||
compile(math: MathItem<N, T, D>, document: MathDocument<N, T, D>): MmlNode;
|
||||
}
|
||||
export declare abstract class AbstractInputJax<N, T, D> implements InputJax<N, T, D> {
|
||||
static NAME: string;
|
||||
static OPTIONS: OptionList;
|
||||
options: OptionList;
|
||||
preFilters: FunctionList;
|
||||
postFilters: FunctionList;
|
||||
adaptor: DOMAdaptor<N, T, D>;
|
||||
mmlFactory: MmlFactory;
|
||||
constructor(options?: OptionList);
|
||||
get name(): string;
|
||||
setAdaptor(adaptor: DOMAdaptor<N, T, D>): void;
|
||||
setMmlFactory(mmlFactory: MmlFactory): void;
|
||||
initialize(): void;
|
||||
reset(..._args: any[]): void;
|
||||
get processStrings(): boolean;
|
||||
findMath(_node: N | string[], _options?: OptionList): ProtoItem<N, T>[];
|
||||
abstract compile(math: MathItem<N, T, D>, document: MathDocument<N, T, D>): MmlNode;
|
||||
protected executeFilters(filters: FunctionList, math: MathItem<N, T, D>, document: MathDocument<N, T, D>, data: any): any;
|
||||
}
|
||||
57
node_modules/mathjax-full/js/core/InputJax.js
generated
vendored
Normal file
57
node_modules/mathjax-full/js/core/InputJax.js
generated
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AbstractInputJax = void 0;
|
||||
var Options_js_1 = require("../util/Options.js");
|
||||
var FunctionList_js_1 = require("../util/FunctionList.js");
|
||||
var AbstractInputJax = (function () {
|
||||
function AbstractInputJax(options) {
|
||||
if (options === void 0) { options = {}; }
|
||||
this.adaptor = null;
|
||||
this.mmlFactory = null;
|
||||
var CLASS = this.constructor;
|
||||
this.options = (0, Options_js_1.userOptions)((0, Options_js_1.defaultOptions)({}, CLASS.OPTIONS), options);
|
||||
this.preFilters = new FunctionList_js_1.FunctionList();
|
||||
this.postFilters = new FunctionList_js_1.FunctionList();
|
||||
}
|
||||
Object.defineProperty(AbstractInputJax.prototype, "name", {
|
||||
get: function () {
|
||||
return this.constructor.NAME;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
AbstractInputJax.prototype.setAdaptor = function (adaptor) {
|
||||
this.adaptor = adaptor;
|
||||
};
|
||||
AbstractInputJax.prototype.setMmlFactory = function (mmlFactory) {
|
||||
this.mmlFactory = mmlFactory;
|
||||
};
|
||||
AbstractInputJax.prototype.initialize = function () {
|
||||
};
|
||||
AbstractInputJax.prototype.reset = function () {
|
||||
var _args = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
_args[_i] = arguments[_i];
|
||||
}
|
||||
};
|
||||
Object.defineProperty(AbstractInputJax.prototype, "processStrings", {
|
||||
get: function () {
|
||||
return true;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
AbstractInputJax.prototype.findMath = function (_node, _options) {
|
||||
return [];
|
||||
};
|
||||
AbstractInputJax.prototype.executeFilters = function (filters, math, document, data) {
|
||||
var args = { math: math, document: document, data: data };
|
||||
filters.execute(args);
|
||||
return args.data;
|
||||
};
|
||||
AbstractInputJax.NAME = 'generic';
|
||||
AbstractInputJax.OPTIONS = {};
|
||||
return AbstractInputJax;
|
||||
}());
|
||||
exports.AbstractInputJax = AbstractInputJax;
|
||||
//# sourceMappingURL=InputJax.js.map
|
||||
1
node_modules/mathjax-full/js/core/InputJax.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/InputJax.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"InputJax.js","sourceRoot":"","sources":["../../ts/core/InputJax.ts"],"names":[],"mappings":";;;AA2BA,iDAA2E;AAC3E,2DAAqD;AA8FrD;IAyCE,0BAAY,OAAwB;QAAxB,wBAAA,EAAA,YAAwB;QAX7B,YAAO,GAAwB,IAAI,CAAC;QAIpC,eAAU,GAAe,IAAI,CAAC;QAQnC,IAAI,KAAK,GAAG,IAAI,CAAC,WAAsC,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,IAAA,wBAAW,EAAC,IAAA,2BAAc,EAAC,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;QACvE,IAAI,CAAC,UAAU,GAAG,IAAI,8BAAY,EAAE,CAAC;QACrC,IAAI,CAAC,WAAW,GAAG,IAAI,8BAAY,EAAE,CAAC;IACxC,CAAC;IAKD,sBAAW,kCAAI;aAAf;YACE,OAAQ,IAAI,CAAC,WAAuC,CAAC,IAAI,CAAC;QAC5D,CAAC;;;OAAA;IAKM,qCAAU,GAAjB,UAAkB,OAA4B;QAC5C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAKM,wCAAa,GAApB,UAAqB,UAAsB;QACzC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAKM,qCAAU,GAAjB;IACA,CAAC;IAKM,gCAAK,GAAZ;QAAa,eAAe;aAAf,UAAe,EAAf,qBAAe,EAAf,IAAe;YAAf,0BAAe;;IAC5B,CAAC;IAKD,sBAAW,4CAAc;aAAzB;YACE,OAAO,IAAI,CAAC;QACd,CAAC;;;OAAA;IAKM,mCAAQ,GAAf,UAAgB,KAAmB,EAAE,QAAqB;QACxD,OAAO,EAAuB,CAAC;IACjC,CAAC;IAiBS,yCAAc,GAAxB,UACE,OAAqB,EAAE,IAAuB,EAC9C,QAA+B,EAAE,IAAS;QAE1C,IAAI,IAAI,GAAG,EAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAC,CAAC;QACxD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACtB,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAhHa,qBAAI,GAAW,SAAS,CAAC;IAKzB,wBAAO,GAAe,EAAE,CAAC;IA6GzC,uBAAC;CAAA,AAvHD,IAuHC;AAvHqB,4CAAgB"}
|
||||
141
node_modules/mathjax-full/js/core/MathDocument.d.ts
generated
vendored
Normal file
141
node_modules/mathjax-full/js/core/MathDocument.d.ts
generated
vendored
Normal file
@@ -0,0 +1,141 @@
|
||||
import { OptionList } from '../util/Options.js';
|
||||
import { InputJax } from './InputJax.js';
|
||||
import { OutputJax } from './OutputJax.js';
|
||||
import { MathList } from './MathList.js';
|
||||
import { MathItem } from './MathItem.js';
|
||||
import { MmlNode } from './MmlTree/MmlNode.js';
|
||||
import { MmlFactory } from '../core/MmlTree/MmlFactory.js';
|
||||
import { DOMAdaptor } from '../core/DOMAdaptor.js';
|
||||
import { BitField } from '../util/BitField.js';
|
||||
import { PrioritizedList } from '../util/PrioritizedList.js';
|
||||
export declare type RenderDoc<N, T, D> = (document: MathDocument<N, T, D>) => boolean;
|
||||
export declare type RenderMath<N, T, D> = (math: MathItem<N, T, D>, document: MathDocument<N, T, D>) => boolean;
|
||||
export declare type RenderData<N, T, D> = {
|
||||
id: string;
|
||||
renderDoc: RenderDoc<N, T, D>;
|
||||
renderMath: RenderMath<N, T, D>;
|
||||
convert: boolean;
|
||||
};
|
||||
export declare type RenderAction<N, T, D> = [
|
||||
number
|
||||
] | [
|
||||
number,
|
||||
string
|
||||
] | [
|
||||
number,
|
||||
string,
|
||||
string
|
||||
] | [
|
||||
number,
|
||||
RenderDoc<N, T, D>,
|
||||
RenderMath<N, T, D>
|
||||
] | [
|
||||
number,
|
||||
boolean
|
||||
] | [
|
||||
number,
|
||||
string,
|
||||
boolean
|
||||
] | [
|
||||
number,
|
||||
string,
|
||||
string,
|
||||
boolean
|
||||
] | [
|
||||
number,
|
||||
RenderDoc<N, T, D>,
|
||||
RenderMath<N, T, D>,
|
||||
boolean
|
||||
];
|
||||
export declare type RenderActions<N, T, D> = {
|
||||
[id: string]: RenderAction<N, T, D>;
|
||||
};
|
||||
export declare class RenderList<N, T, D> extends PrioritizedList<RenderData<N, T, D>> {
|
||||
static create<N, T, D>(actions: RenderActions<N, T, D>): RenderList<N, T, D>;
|
||||
static action<N, T, D>(id: string, action: RenderAction<N, T, D>): [RenderData<N, T, D>, number];
|
||||
protected static methodActions(method1: string, method2?: string): ((math: any, document: any) => boolean)[];
|
||||
renderDoc(document: MathDocument<N, T, D>, start?: number): void;
|
||||
renderMath(math: MathItem<N, T, D>, document: MathDocument<N, T, D>, start?: number): void;
|
||||
renderConvert(math: MathItem<N, T, D>, document: MathDocument<N, T, D>, end?: number): void;
|
||||
findID(id: string): RenderData<N, T, D> | null;
|
||||
}
|
||||
export declare type ContainerList<N> = string | N | (string | N | N[])[];
|
||||
export declare type ResetList = {
|
||||
all?: boolean;
|
||||
processed?: boolean;
|
||||
inputJax?: any[];
|
||||
outputJax?: any[];
|
||||
};
|
||||
export declare const resetOptions: ResetList;
|
||||
export declare const resetAllOptions: ResetList;
|
||||
export interface MathDocument<N, T, D> {
|
||||
document: D;
|
||||
kind: string;
|
||||
options: OptionList;
|
||||
math: MathList<N, T, D>;
|
||||
renderActions: RenderList<N, T, D>;
|
||||
processed: BitField;
|
||||
inputJax: InputJax<N, T, D>[];
|
||||
outputJax: OutputJax<N, T, D>;
|
||||
adaptor: DOMAdaptor<N, T, D>;
|
||||
mmlFactory: MmlFactory;
|
||||
addRenderAction(id: string, ...action: any[]): void;
|
||||
removeRenderAction(id: string): void;
|
||||
render(): MathDocument<N, T, D>;
|
||||
rerender(start?: number): MathDocument<N, T, D>;
|
||||
convert(math: string, options?: OptionList): MmlNode | N;
|
||||
findMath(options?: OptionList): MathDocument<N, T, D>;
|
||||
compile(): MathDocument<N, T, D>;
|
||||
getMetrics(): MathDocument<N, T, D>;
|
||||
typeset(): MathDocument<N, T, D>;
|
||||
updateDocument(): MathDocument<N, T, D>;
|
||||
removeFromDocument(restore?: boolean): MathDocument<N, T, D>;
|
||||
state(state: number, restore?: boolean): MathDocument<N, T, D>;
|
||||
reset(options?: ResetList): MathDocument<N, T, D>;
|
||||
clear(): MathDocument<N, T, D>;
|
||||
concat(list: MathList<N, T, D>): MathDocument<N, T, D>;
|
||||
clearMathItemsWithin(containers: ContainerList<N>): MathItem<N, T, D>[];
|
||||
getMathItemsWithin(elements: ContainerList<N>): MathItem<N, T, D>[];
|
||||
}
|
||||
export declare abstract class AbstractMathDocument<N, T, D> implements MathDocument<N, T, D> {
|
||||
static KIND: string;
|
||||
static OPTIONS: OptionList;
|
||||
static ProcessBits: typeof BitField;
|
||||
document: D;
|
||||
options: OptionList;
|
||||
math: MathList<N, T, D>;
|
||||
renderActions: RenderList<N, T, D>;
|
||||
processed: BitField;
|
||||
inputJax: InputJax<N, T, D>[];
|
||||
outputJax: OutputJax<N, T, D>;
|
||||
adaptor: DOMAdaptor<N, T, D>;
|
||||
mmlFactory: MmlFactory;
|
||||
constructor(document: D, adaptor: DOMAdaptor<N, T, D>, options: OptionList);
|
||||
get kind(): string;
|
||||
addRenderAction(id: string, ...action: any[]): void;
|
||||
removeRenderAction(id: string): void;
|
||||
render(): this;
|
||||
rerender(start?: number): this;
|
||||
convert(math: string, options?: OptionList): any;
|
||||
findMath(_options?: OptionList): this;
|
||||
compile(): this;
|
||||
protected compileMath(math: MathItem<N, T, D>): void;
|
||||
compileError(math: MathItem<N, T, D>, err: Error): void;
|
||||
typeset(): this;
|
||||
typesetError(math: MathItem<N, T, D>, err: Error): void;
|
||||
getMetrics(): this;
|
||||
updateDocument(): this;
|
||||
removeFromDocument(_restore?: boolean): this;
|
||||
state(state: number, restore?: boolean): this;
|
||||
reset(options?: ResetList): this;
|
||||
clear(): this;
|
||||
concat(list: MathList<N, T, D>): this;
|
||||
clearMathItemsWithin(containers: ContainerList<N>): MathItem<N, T, D>[];
|
||||
getMathItemsWithin(elements: ContainerList<N>): MathItem<N, T, D>[];
|
||||
}
|
||||
export interface MathDocumentConstructor<D extends MathDocument<any, any, any>> {
|
||||
KIND: string;
|
||||
OPTIONS: OptionList;
|
||||
ProcessBits: typeof BitField;
|
||||
new (...args: any[]): D;
|
||||
}
|
||||
606
node_modules/mathjax-full/js/core/MathDocument.js
generated
vendored
Normal file
606
node_modules/mathjax-full/js/core/MathDocument.js
generated
vendored
Normal file
@@ -0,0 +1,606 @@
|
||||
"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 __());
|
||||
};
|
||||
})();
|
||||
var __values = (this && this.__values) || function(o) {
|
||||
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
||||
if (m) return m.call(o);
|
||||
if (o && typeof o.length === "number") return {
|
||||
next: function () {
|
||||
if (o && i >= o.length) o = void 0;
|
||||
return { value: o && o[i++], done: !o };
|
||||
}
|
||||
};
|
||||
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
||||
};
|
||||
var __read = (this && this.__read) || function (o, n) {
|
||||
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
||||
if (!m) return o;
|
||||
var i = m.call(o), r, ar = [], e;
|
||||
try {
|
||||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
||||
}
|
||||
catch (error) { e = { error: error }; }
|
||||
finally {
|
||||
try {
|
||||
if (r && !r.done && (m = i["return"])) m.call(i);
|
||||
}
|
||||
finally { if (e) throw e.error; }
|
||||
}
|
||||
return ar;
|
||||
};
|
||||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
||||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
||||
if (ar || !(i in from)) {
|
||||
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
||||
ar[i] = from[i];
|
||||
}
|
||||
}
|
||||
return to.concat(ar || Array.prototype.slice.call(from));
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AbstractMathDocument = exports.resetAllOptions = exports.resetOptions = exports.RenderList = void 0;
|
||||
var Options_js_1 = require("../util/Options.js");
|
||||
var InputJax_js_1 = require("./InputJax.js");
|
||||
var OutputJax_js_1 = require("./OutputJax.js");
|
||||
var MathList_js_1 = require("./MathList.js");
|
||||
var MathItem_js_1 = require("./MathItem.js");
|
||||
var MmlFactory_js_1 = require("../core/MmlTree/MmlFactory.js");
|
||||
var BitField_js_1 = require("../util/BitField.js");
|
||||
var PrioritizedList_js_1 = require("../util/PrioritizedList.js");
|
||||
var RenderList = (function (_super) {
|
||||
__extends(RenderList, _super);
|
||||
function RenderList() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
RenderList.create = function (actions) {
|
||||
var e_1, _a;
|
||||
var list = new this();
|
||||
try {
|
||||
for (var _b = __values(Object.keys(actions)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var id = _c.value;
|
||||
var _d = __read(this.action(id, actions[id]), 2), action = _d[0], priority = _d[1];
|
||||
if (priority) {
|
||||
list.add(action, priority);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_1) throw e_1.error; }
|
||||
}
|
||||
return list;
|
||||
};
|
||||
RenderList.action = function (id, action) {
|
||||
var _a, _b, _c, _d;
|
||||
var renderDoc, renderMath;
|
||||
var convert = true;
|
||||
var priority = action[0];
|
||||
if (action.length === 1 || typeof action[1] === 'boolean') {
|
||||
action.length === 2 && (convert = action[1]);
|
||||
_a = __read(this.methodActions(id), 2), renderDoc = _a[0], renderMath = _a[1];
|
||||
}
|
||||
else if (typeof action[1] === 'string') {
|
||||
if (typeof action[2] === 'string') {
|
||||
action.length === 4 && (convert = action[3]);
|
||||
var _e = __read(action.slice(1), 2), method1 = _e[0], method2 = _e[1];
|
||||
_b = __read(this.methodActions(method1, method2), 2), renderDoc = _b[0], renderMath = _b[1];
|
||||
}
|
||||
else {
|
||||
action.length === 3 && (convert = action[2]);
|
||||
_c = __read(this.methodActions(action[1]), 2), renderDoc = _c[0], renderMath = _c[1];
|
||||
}
|
||||
}
|
||||
else {
|
||||
action.length === 4 && (convert = action[3]);
|
||||
_d = __read(action.slice(1), 2), renderDoc = _d[0], renderMath = _d[1];
|
||||
}
|
||||
return [{ id: id, renderDoc: renderDoc, renderMath: renderMath, convert: convert }, priority];
|
||||
};
|
||||
RenderList.methodActions = function (method1, method2) {
|
||||
if (method2 === void 0) { method2 = method1; }
|
||||
return [
|
||||
function (document) { method1 && document[method1](); return false; },
|
||||
function (math, document) { method2 && math[method2](document); return false; }
|
||||
];
|
||||
};
|
||||
RenderList.prototype.renderDoc = function (document, start) {
|
||||
var e_2, _a;
|
||||
if (start === void 0) { start = MathItem_js_1.STATE.UNPROCESSED; }
|
||||
try {
|
||||
for (var _b = __values(this.items), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var item = _c.value;
|
||||
if (item.priority >= start) {
|
||||
if (item.item.renderDoc(document))
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_2) throw e_2.error; }
|
||||
}
|
||||
};
|
||||
RenderList.prototype.renderMath = function (math, document, start) {
|
||||
var e_3, _a;
|
||||
if (start === void 0) { start = MathItem_js_1.STATE.UNPROCESSED; }
|
||||
try {
|
||||
for (var _b = __values(this.items), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var item = _c.value;
|
||||
if (item.priority >= start) {
|
||||
if (item.item.renderMath(math, document))
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_3) throw e_3.error; }
|
||||
}
|
||||
};
|
||||
RenderList.prototype.renderConvert = function (math, document, end) {
|
||||
var e_4, _a;
|
||||
if (end === void 0) { end = MathItem_js_1.STATE.LAST; }
|
||||
try {
|
||||
for (var _b = __values(this.items), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var item = _c.value;
|
||||
if (item.priority > end)
|
||||
return;
|
||||
if (item.item.convert) {
|
||||
if (item.item.renderMath(math, document))
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_4) throw e_4.error; }
|
||||
}
|
||||
};
|
||||
RenderList.prototype.findID = function (id) {
|
||||
var e_5, _a;
|
||||
try {
|
||||
for (var _b = __values(this.items), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var item = _c.value;
|
||||
if (item.item.id === id) {
|
||||
return item.item;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_5) throw e_5.error; }
|
||||
}
|
||||
return null;
|
||||
};
|
||||
return RenderList;
|
||||
}(PrioritizedList_js_1.PrioritizedList));
|
||||
exports.RenderList = RenderList;
|
||||
exports.resetOptions = {
|
||||
all: false,
|
||||
processed: false,
|
||||
inputJax: null,
|
||||
outputJax: null
|
||||
};
|
||||
exports.resetAllOptions = {
|
||||
all: true,
|
||||
processed: true,
|
||||
inputJax: [],
|
||||
outputJax: []
|
||||
};
|
||||
var DefaultInputJax = (function (_super) {
|
||||
__extends(DefaultInputJax, _super);
|
||||
function DefaultInputJax() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
DefaultInputJax.prototype.compile = function (_math) {
|
||||
return null;
|
||||
};
|
||||
return DefaultInputJax;
|
||||
}(InputJax_js_1.AbstractInputJax));
|
||||
var DefaultOutputJax = (function (_super) {
|
||||
__extends(DefaultOutputJax, _super);
|
||||
function DefaultOutputJax() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
DefaultOutputJax.prototype.typeset = function (_math, _document) {
|
||||
if (_document === void 0) { _document = null; }
|
||||
return null;
|
||||
};
|
||||
DefaultOutputJax.prototype.escaped = function (_math, _document) {
|
||||
return null;
|
||||
};
|
||||
return DefaultOutputJax;
|
||||
}(OutputJax_js_1.AbstractOutputJax));
|
||||
var DefaultMathList = (function (_super) {
|
||||
__extends(DefaultMathList, _super);
|
||||
function DefaultMathList() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
return DefaultMathList;
|
||||
}(MathList_js_1.AbstractMathList));
|
||||
var DefaultMathItem = (function (_super) {
|
||||
__extends(DefaultMathItem, _super);
|
||||
function DefaultMathItem() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
return DefaultMathItem;
|
||||
}(MathItem_js_1.AbstractMathItem));
|
||||
var AbstractMathDocument = (function () {
|
||||
function AbstractMathDocument(document, adaptor, options) {
|
||||
var _this = this;
|
||||
var CLASS = this.constructor;
|
||||
this.document = document;
|
||||
this.options = (0, Options_js_1.userOptions)((0, Options_js_1.defaultOptions)({}, CLASS.OPTIONS), options);
|
||||
this.math = new (this.options['MathList'] || DefaultMathList)();
|
||||
this.renderActions = RenderList.create(this.options['renderActions']);
|
||||
this.processed = new AbstractMathDocument.ProcessBits();
|
||||
this.outputJax = this.options['OutputJax'] || new DefaultOutputJax();
|
||||
var inputJax = this.options['InputJax'] || [new DefaultInputJax()];
|
||||
if (!Array.isArray(inputJax)) {
|
||||
inputJax = [inputJax];
|
||||
}
|
||||
this.inputJax = inputJax;
|
||||
this.adaptor = adaptor;
|
||||
this.outputJax.setAdaptor(adaptor);
|
||||
this.inputJax.map(function (jax) { return jax.setAdaptor(adaptor); });
|
||||
this.mmlFactory = this.options['MmlFactory'] || new MmlFactory_js_1.MmlFactory();
|
||||
this.inputJax.map(function (jax) { return jax.setMmlFactory(_this.mmlFactory); });
|
||||
this.outputJax.initialize();
|
||||
this.inputJax.map(function (jax) { return jax.initialize(); });
|
||||
}
|
||||
Object.defineProperty(AbstractMathDocument.prototype, "kind", {
|
||||
get: function () {
|
||||
return this.constructor.KIND;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
AbstractMathDocument.prototype.addRenderAction = function (id) {
|
||||
var action = [];
|
||||
for (var _i = 1; _i < arguments.length; _i++) {
|
||||
action[_i - 1] = arguments[_i];
|
||||
}
|
||||
var _a = __read(RenderList.action(id, action), 2), fn = _a[0], p = _a[1];
|
||||
this.renderActions.add(fn, p);
|
||||
};
|
||||
AbstractMathDocument.prototype.removeRenderAction = function (id) {
|
||||
var action = this.renderActions.findID(id);
|
||||
if (action) {
|
||||
this.renderActions.remove(action);
|
||||
}
|
||||
};
|
||||
AbstractMathDocument.prototype.render = function () {
|
||||
this.renderActions.renderDoc(this);
|
||||
return this;
|
||||
};
|
||||
AbstractMathDocument.prototype.rerender = function (start) {
|
||||
if (start === void 0) { start = MathItem_js_1.STATE.RERENDER; }
|
||||
this.state(start - 1);
|
||||
this.render();
|
||||
return this;
|
||||
};
|
||||
AbstractMathDocument.prototype.convert = function (math, options) {
|
||||
if (options === void 0) { options = {}; }
|
||||
var _a = (0, Options_js_1.userOptions)({
|
||||
format: this.inputJax[0].name, display: true, end: MathItem_js_1.STATE.LAST,
|
||||
em: 16, ex: 8, containerWidth: null, lineWidth: 1000000, scale: 1, family: ''
|
||||
}, options), format = _a.format, display = _a.display, end = _a.end, ex = _a.ex, em = _a.em, containerWidth = _a.containerWidth, lineWidth = _a.lineWidth, scale = _a.scale, family = _a.family;
|
||||
if (containerWidth === null) {
|
||||
containerWidth = 80 * ex;
|
||||
}
|
||||
var jax = this.inputJax.reduce(function (jax, ijax) { return (ijax.name === format ? ijax : jax); }, null);
|
||||
var mitem = new this.options.MathItem(math, jax, display);
|
||||
mitem.start.node = this.adaptor.body(this.document);
|
||||
mitem.setMetrics(em, ex, containerWidth, lineWidth, scale);
|
||||
if (this.outputJax.options.mtextInheritFont) {
|
||||
mitem.outputData.mtextFamily = family;
|
||||
}
|
||||
if (this.outputJax.options.merrorInheritFont) {
|
||||
mitem.outputData.merrorFamily = family;
|
||||
}
|
||||
mitem.convert(this, end);
|
||||
return (mitem.typesetRoot || mitem.root);
|
||||
};
|
||||
AbstractMathDocument.prototype.findMath = function (_options) {
|
||||
if (_options === void 0) { _options = null; }
|
||||
this.processed.set('findMath');
|
||||
return this;
|
||||
};
|
||||
AbstractMathDocument.prototype.compile = function () {
|
||||
var e_6, _a, e_7, _b;
|
||||
if (!this.processed.isSet('compile')) {
|
||||
var recompile = [];
|
||||
try {
|
||||
for (var _c = __values(this.math), _d = _c.next(); !_d.done; _d = _c.next()) {
|
||||
var math = _d.value;
|
||||
this.compileMath(math);
|
||||
if (math.inputData.recompile !== undefined) {
|
||||
recompile.push(math);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
||||
}
|
||||
finally { if (e_6) throw e_6.error; }
|
||||
}
|
||||
try {
|
||||
for (var recompile_1 = __values(recompile), recompile_1_1 = recompile_1.next(); !recompile_1_1.done; recompile_1_1 = recompile_1.next()) {
|
||||
var math = recompile_1_1.value;
|
||||
var data = math.inputData.recompile;
|
||||
math.state(data.state);
|
||||
math.inputData.recompile = data;
|
||||
this.compileMath(math);
|
||||
}
|
||||
}
|
||||
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (recompile_1_1 && !recompile_1_1.done && (_b = recompile_1.return)) _b.call(recompile_1);
|
||||
}
|
||||
finally { if (e_7) throw e_7.error; }
|
||||
}
|
||||
this.processed.set('compile');
|
||||
}
|
||||
return this;
|
||||
};
|
||||
AbstractMathDocument.prototype.compileMath = function (math) {
|
||||
try {
|
||||
math.compile(this);
|
||||
}
|
||||
catch (err) {
|
||||
if (err.retry || err.restart) {
|
||||
throw err;
|
||||
}
|
||||
this.options['compileError'](this, math, err);
|
||||
math.inputData['error'] = err;
|
||||
}
|
||||
};
|
||||
AbstractMathDocument.prototype.compileError = function (math, err) {
|
||||
math.root = this.mmlFactory.create('math', null, [
|
||||
this.mmlFactory.create('merror', { 'data-mjx-error': err.message, title: err.message }, [
|
||||
this.mmlFactory.create('mtext', null, [
|
||||
this.mmlFactory.create('text').setText('Math input error')
|
||||
])
|
||||
])
|
||||
]);
|
||||
if (math.display) {
|
||||
math.root.attributes.set('display', 'block');
|
||||
}
|
||||
math.inputData.error = err.message;
|
||||
};
|
||||
AbstractMathDocument.prototype.typeset = function () {
|
||||
var e_8, _a;
|
||||
if (!this.processed.isSet('typeset')) {
|
||||
try {
|
||||
for (var _b = __values(this.math), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var math = _c.value;
|
||||
try {
|
||||
math.typeset(this);
|
||||
}
|
||||
catch (err) {
|
||||
if (err.retry || err.restart) {
|
||||
throw err;
|
||||
}
|
||||
this.options['typesetError'](this, math, err);
|
||||
math.outputData['error'] = err;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e_8_1) { e_8 = { error: e_8_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_8) throw e_8.error; }
|
||||
}
|
||||
this.processed.set('typeset');
|
||||
}
|
||||
return this;
|
||||
};
|
||||
AbstractMathDocument.prototype.typesetError = function (math, err) {
|
||||
math.typesetRoot = this.adaptor.node('mjx-container', {
|
||||
class: 'MathJax mjx-output-error',
|
||||
jax: this.outputJax.name,
|
||||
}, [
|
||||
this.adaptor.node('span', {
|
||||
'data-mjx-error': err.message,
|
||||
title: err.message,
|
||||
style: {
|
||||
color: 'red',
|
||||
'background-color': 'yellow',
|
||||
'line-height': 'normal'
|
||||
}
|
||||
}, [
|
||||
this.adaptor.text('Math output error')
|
||||
])
|
||||
]);
|
||||
if (math.display) {
|
||||
this.adaptor.setAttributes(math.typesetRoot, {
|
||||
style: {
|
||||
display: 'block',
|
||||
margin: '1em 0',
|
||||
'text-align': 'center'
|
||||
}
|
||||
});
|
||||
}
|
||||
math.outputData.error = err.message;
|
||||
};
|
||||
AbstractMathDocument.prototype.getMetrics = function () {
|
||||
if (!this.processed.isSet('getMetrics')) {
|
||||
this.outputJax.getMetrics(this);
|
||||
this.processed.set('getMetrics');
|
||||
}
|
||||
return this;
|
||||
};
|
||||
AbstractMathDocument.prototype.updateDocument = function () {
|
||||
var e_9, _a;
|
||||
if (!this.processed.isSet('updateDocument')) {
|
||||
try {
|
||||
for (var _b = __values(this.math.reversed()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var math = _c.value;
|
||||
math.updateDocument(this);
|
||||
}
|
||||
}
|
||||
catch (e_9_1) { e_9 = { error: e_9_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_9) throw e_9.error; }
|
||||
}
|
||||
this.processed.set('updateDocument');
|
||||
}
|
||||
return this;
|
||||
};
|
||||
AbstractMathDocument.prototype.removeFromDocument = function (_restore) {
|
||||
if (_restore === void 0) { _restore = false; }
|
||||
return this;
|
||||
};
|
||||
AbstractMathDocument.prototype.state = function (state, restore) {
|
||||
var e_10, _a;
|
||||
if (restore === void 0) { restore = false; }
|
||||
try {
|
||||
for (var _b = __values(this.math), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var math = _c.value;
|
||||
math.state(state, restore);
|
||||
}
|
||||
}
|
||||
catch (e_10_1) { e_10 = { error: e_10_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_10) throw e_10.error; }
|
||||
}
|
||||
if (state < MathItem_js_1.STATE.INSERTED) {
|
||||
this.processed.clear('updateDocument');
|
||||
}
|
||||
if (state < MathItem_js_1.STATE.TYPESET) {
|
||||
this.processed.clear('typeset');
|
||||
this.processed.clear('getMetrics');
|
||||
}
|
||||
if (state < MathItem_js_1.STATE.COMPILED) {
|
||||
this.processed.clear('compile');
|
||||
}
|
||||
return this;
|
||||
};
|
||||
AbstractMathDocument.prototype.reset = function (options) {
|
||||
var _a;
|
||||
if (options === void 0) { options = { processed: true }; }
|
||||
options = (0, Options_js_1.userOptions)(Object.assign({}, exports.resetOptions), options);
|
||||
options.all && Object.assign(options, exports.resetAllOptions);
|
||||
options.processed && this.processed.reset();
|
||||
options.inputJax && this.inputJax.forEach(function (jax) { return jax.reset.apply(jax, __spreadArray([], __read(options.inputJax), false)); });
|
||||
options.outputJax && (_a = this.outputJax).reset.apply(_a, __spreadArray([], __read(options.outputJax), false));
|
||||
return this;
|
||||
};
|
||||
AbstractMathDocument.prototype.clear = function () {
|
||||
this.reset();
|
||||
this.math.clear();
|
||||
return this;
|
||||
};
|
||||
AbstractMathDocument.prototype.concat = function (list) {
|
||||
this.math.merge(list);
|
||||
return this;
|
||||
};
|
||||
AbstractMathDocument.prototype.clearMathItemsWithin = function (containers) {
|
||||
var _a;
|
||||
var items = this.getMathItemsWithin(containers);
|
||||
(_a = this.math).remove.apply(_a, __spreadArray([], __read(items), false));
|
||||
return items;
|
||||
};
|
||||
AbstractMathDocument.prototype.getMathItemsWithin = function (elements) {
|
||||
var e_11, _a, e_12, _b;
|
||||
if (!Array.isArray(elements)) {
|
||||
elements = [elements];
|
||||
}
|
||||
var adaptor = this.adaptor;
|
||||
var items = [];
|
||||
var containers = adaptor.getElements(elements, this.document);
|
||||
try {
|
||||
ITEMS: for (var _c = __values(this.math), _d = _c.next(); !_d.done; _d = _c.next()) {
|
||||
var item = _d.value;
|
||||
try {
|
||||
for (var containers_1 = (e_12 = void 0, __values(containers)), containers_1_1 = containers_1.next(); !containers_1_1.done; containers_1_1 = containers_1.next()) {
|
||||
var container = containers_1_1.value;
|
||||
if (item.start.node && adaptor.contains(container, item.start.node)) {
|
||||
items.push(item);
|
||||
continue ITEMS;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e_12_1) { e_12 = { error: e_12_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (containers_1_1 && !containers_1_1.done && (_b = containers_1.return)) _b.call(containers_1);
|
||||
}
|
||||
finally { if (e_12) throw e_12.error; }
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e_11_1) { e_11 = { error: e_11_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
||||
}
|
||||
finally { if (e_11) throw e_11.error; }
|
||||
}
|
||||
return items;
|
||||
};
|
||||
AbstractMathDocument.KIND = 'MathDocument';
|
||||
AbstractMathDocument.OPTIONS = {
|
||||
OutputJax: null,
|
||||
InputJax: null,
|
||||
MmlFactory: null,
|
||||
MathList: DefaultMathList,
|
||||
MathItem: DefaultMathItem,
|
||||
compileError: function (doc, math, err) {
|
||||
doc.compileError(math, err);
|
||||
},
|
||||
typesetError: function (doc, math, err) {
|
||||
doc.typesetError(math, err);
|
||||
},
|
||||
renderActions: (0, Options_js_1.expandable)({
|
||||
find: [MathItem_js_1.STATE.FINDMATH, 'findMath', '', false],
|
||||
compile: [MathItem_js_1.STATE.COMPILED],
|
||||
metrics: [MathItem_js_1.STATE.METRICS, 'getMetrics', '', false],
|
||||
typeset: [MathItem_js_1.STATE.TYPESET],
|
||||
update: [MathItem_js_1.STATE.INSERTED, 'updateDocument', false]
|
||||
})
|
||||
};
|
||||
AbstractMathDocument.ProcessBits = (0, BitField_js_1.BitFieldClass)('findMath', 'compile', 'getMetrics', 'typeset', 'updateDocument');
|
||||
return AbstractMathDocument;
|
||||
}());
|
||||
exports.AbstractMathDocument = AbstractMathDocument;
|
||||
//# sourceMappingURL=MathDocument.js.map
|
||||
1
node_modules/mathjax-full/js/core/MathDocument.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MathDocument.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
79
node_modules/mathjax-full/js/core/MathItem.d.ts
generated
vendored
Normal file
79
node_modules/mathjax-full/js/core/MathItem.d.ts
generated
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
import { MathDocument } from './MathDocument.js';
|
||||
import { InputJax } from './InputJax.js';
|
||||
import { OptionList } from '../util/Options.js';
|
||||
import { MmlNode } from './MmlTree/MmlNode.js';
|
||||
export declare type Location<N, T> = {
|
||||
i?: number;
|
||||
n?: number;
|
||||
delim?: string;
|
||||
node?: N | T;
|
||||
};
|
||||
export declare type Metrics = {
|
||||
em: number;
|
||||
ex: number;
|
||||
containerWidth: number;
|
||||
lineWidth: number;
|
||||
scale: number;
|
||||
};
|
||||
export interface MathItem<N, T, D> {
|
||||
math: string;
|
||||
inputJax: InputJax<N, T, D>;
|
||||
display: boolean;
|
||||
isEscaped: boolean;
|
||||
start: Location<N, T>;
|
||||
end: Location<N, T>;
|
||||
root: MmlNode;
|
||||
typesetRoot: N;
|
||||
metrics: Metrics;
|
||||
inputData: OptionList;
|
||||
outputData: OptionList;
|
||||
render(document: MathDocument<N, T, D>): void;
|
||||
rerender(document: MathDocument<N, T, D>, start?: number): void;
|
||||
convert(document: MathDocument<N, T, D>, end?: number): void;
|
||||
compile(document: MathDocument<N, T, D>): void;
|
||||
typeset(document: MathDocument<N, T, D>): void;
|
||||
updateDocument(document: MathDocument<N, T, D>): void;
|
||||
removeFromDocument(restore: boolean): void;
|
||||
setMetrics(em: number, ex: number, cwidth: number, lwidth: number, scale: number): void;
|
||||
state(state?: number, restore?: boolean): number;
|
||||
reset(restore?: boolean): void;
|
||||
}
|
||||
export declare type ProtoItem<N, T> = {
|
||||
math: string;
|
||||
start: Location<N, T>;
|
||||
end: Location<N, T>;
|
||||
open?: string;
|
||||
close?: string;
|
||||
n?: number;
|
||||
display: boolean;
|
||||
};
|
||||
export declare function protoItem<N, T>(open: string, math: string, close: string, n: number, start: number, end: number, display?: boolean): ProtoItem<N, T>;
|
||||
export declare abstract class AbstractMathItem<N, T, D> implements MathItem<N, T, D> {
|
||||
math: string;
|
||||
inputJax: InputJax<N, T, D>;
|
||||
display: boolean;
|
||||
start: Location<N, T>;
|
||||
end: Location<N, T>;
|
||||
root: MmlNode;
|
||||
typesetRoot: N;
|
||||
metrics: Metrics;
|
||||
inputData: OptionList;
|
||||
outputData: OptionList;
|
||||
protected _state: number;
|
||||
get isEscaped(): boolean;
|
||||
constructor(math: string, jax: InputJax<N, T, D>, display?: boolean, start?: Location<N, T>, end?: Location<N, T>);
|
||||
render(document: MathDocument<N, T, D>): void;
|
||||
rerender(document: MathDocument<N, T, D>, start?: number): void;
|
||||
convert(document: MathDocument<N, T, D>, end?: number): void;
|
||||
compile(document: MathDocument<N, T, D>): void;
|
||||
typeset(document: MathDocument<N, T, D>): void;
|
||||
updateDocument(_document: MathDocument<N, T, D>): void;
|
||||
removeFromDocument(_restore?: boolean): void;
|
||||
setMetrics(em: number, ex: number, cwidth: number, lwidth: number, scale: number): void;
|
||||
state(state?: number, restore?: boolean): number;
|
||||
reset(restore?: boolean): void;
|
||||
}
|
||||
export declare const STATE: {
|
||||
[state: string]: number;
|
||||
};
|
||||
export declare function newState(name: string, state: number): void;
|
||||
120
node_modules/mathjax-full/js/core/MathItem.js
generated
vendored
Normal file
120
node_modules/mathjax-full/js/core/MathItem.js
generated
vendored
Normal file
@@ -0,0 +1,120 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.newState = exports.STATE = exports.AbstractMathItem = exports.protoItem = void 0;
|
||||
function protoItem(open, math, close, n, start, end, display) {
|
||||
if (display === void 0) { display = null; }
|
||||
var item = { open: open, math: math, close: close,
|
||||
n: n, start: { n: start }, end: { n: end }, display: display };
|
||||
return item;
|
||||
}
|
||||
exports.protoItem = protoItem;
|
||||
var AbstractMathItem = (function () {
|
||||
function AbstractMathItem(math, jax, display, start, end) {
|
||||
if (display === void 0) { display = true; }
|
||||
if (start === void 0) { start = { i: 0, n: 0, delim: '' }; }
|
||||
if (end === void 0) { end = { i: 0, n: 0, delim: '' }; }
|
||||
this.root = null;
|
||||
this.typesetRoot = null;
|
||||
this.metrics = {};
|
||||
this.inputData = {};
|
||||
this.outputData = {};
|
||||
this._state = exports.STATE.UNPROCESSED;
|
||||
this.math = math;
|
||||
this.inputJax = jax;
|
||||
this.display = display;
|
||||
this.start = start;
|
||||
this.end = end;
|
||||
this.root = null;
|
||||
this.typesetRoot = null;
|
||||
this.metrics = {};
|
||||
this.inputData = {};
|
||||
this.outputData = {};
|
||||
}
|
||||
Object.defineProperty(AbstractMathItem.prototype, "isEscaped", {
|
||||
get: function () {
|
||||
return this.display === null;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
AbstractMathItem.prototype.render = function (document) {
|
||||
document.renderActions.renderMath(this, document);
|
||||
};
|
||||
AbstractMathItem.prototype.rerender = function (document, start) {
|
||||
if (start === void 0) { start = exports.STATE.RERENDER; }
|
||||
if (this.state() >= start) {
|
||||
this.state(start - 1);
|
||||
}
|
||||
document.renderActions.renderMath(this, document, start);
|
||||
};
|
||||
AbstractMathItem.prototype.convert = function (document, end) {
|
||||
if (end === void 0) { end = exports.STATE.LAST; }
|
||||
document.renderActions.renderConvert(this, document, end);
|
||||
};
|
||||
AbstractMathItem.prototype.compile = function (document) {
|
||||
if (this.state() < exports.STATE.COMPILED) {
|
||||
this.root = this.inputJax.compile(this, document);
|
||||
this.state(exports.STATE.COMPILED);
|
||||
}
|
||||
};
|
||||
AbstractMathItem.prototype.typeset = function (document) {
|
||||
if (this.state() < exports.STATE.TYPESET) {
|
||||
this.typesetRoot = document.outputJax[this.isEscaped ? 'escaped' : 'typeset'](this, document);
|
||||
this.state(exports.STATE.TYPESET);
|
||||
}
|
||||
};
|
||||
AbstractMathItem.prototype.updateDocument = function (_document) { };
|
||||
AbstractMathItem.prototype.removeFromDocument = function (_restore) {
|
||||
if (_restore === void 0) { _restore = false; }
|
||||
};
|
||||
AbstractMathItem.prototype.setMetrics = function (em, ex, cwidth, lwidth, scale) {
|
||||
this.metrics = {
|
||||
em: em, ex: ex,
|
||||
containerWidth: cwidth,
|
||||
lineWidth: lwidth,
|
||||
scale: scale
|
||||
};
|
||||
};
|
||||
AbstractMathItem.prototype.state = function (state, restore) {
|
||||
if (state === void 0) { state = null; }
|
||||
if (restore === void 0) { restore = false; }
|
||||
if (state != null) {
|
||||
if (state < exports.STATE.INSERTED && this._state >= exports.STATE.INSERTED) {
|
||||
this.removeFromDocument(restore);
|
||||
}
|
||||
if (state < exports.STATE.TYPESET && this._state >= exports.STATE.TYPESET) {
|
||||
this.outputData = {};
|
||||
}
|
||||
if (state < exports.STATE.COMPILED && this._state >= exports.STATE.COMPILED) {
|
||||
this.inputData = {};
|
||||
}
|
||||
this._state = state;
|
||||
}
|
||||
return this._state;
|
||||
};
|
||||
AbstractMathItem.prototype.reset = function (restore) {
|
||||
if (restore === void 0) { restore = false; }
|
||||
this.state(exports.STATE.UNPROCESSED, restore);
|
||||
};
|
||||
return AbstractMathItem;
|
||||
}());
|
||||
exports.AbstractMathItem = AbstractMathItem;
|
||||
exports.STATE = {
|
||||
UNPROCESSED: 0,
|
||||
FINDMATH: 10,
|
||||
COMPILED: 20,
|
||||
CONVERT: 100,
|
||||
METRICS: 110,
|
||||
RERENDER: 125,
|
||||
TYPESET: 150,
|
||||
INSERTED: 200,
|
||||
LAST: 10000
|
||||
};
|
||||
function newState(name, state) {
|
||||
if (name in exports.STATE) {
|
||||
throw Error('State ' + name + ' already exists');
|
||||
}
|
||||
exports.STATE[name] = state;
|
||||
}
|
||||
exports.newState = newState;
|
||||
//# sourceMappingURL=MathItem.js.map
|
||||
1
node_modules/mathjax-full/js/core/MathItem.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MathItem.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"MathItem.js","sourceRoot":"","sources":["../../ts/core/MathItem.ts"],"names":[],"mappings":";;;AA0OA,SAAgB,SAAS,CAAO,IAAY,EAAE,IAAY,EAAE,KAAa,EAAE,CAAS,EACpD,KAAa,EAAE,GAAW,EAAE,OAAuB;IAAvB,wBAAA,EAAA,cAAuB;IACjF,IAAI,IAAI,GAAoB,EAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KA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C,CAAC;IAEH,uBAAC;AAAD,CAAC,AAlLD,IAkLC;AAlLqB,4CAAgB;AAyLzB,QAAA,KAAK,GAA8B;IAC9C,WAAW,EAAE,CAAC;IACd,QAAQ,EAAE,EAAE;IACZ,QAAQ,EAAE,EAAE;IACZ,OAAO,EAAE,GAAG;IACZ,OAAO,EAAE,GAAG;IACZ,QAAQ,EAAE,GAAG;IACb,OAAO,EAAE,GAAG;IACZ,QAAQ,EAAE,GAAG;IACb,IAAI,EAAE,KAAK;CACZ,CAAC;AAQF,SAAgB,QAAQ,CAAC,IAAY,EAAE,KAAa;IAClD,IAAI,IAAI,IAAI,aAAK,EAAE;QACjB,MAAM,KAAK,CAAC,QAAQ,GAAG,IAAI,GAAG,iBAAiB,CAAC,CAAC;KAClD;IACD,aAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;AACtB,CAAC;AALD,4BAKC"}
|
||||
8
node_modules/mathjax-full/js/core/MathList.d.ts
generated
vendored
Normal file
8
node_modules/mathjax-full/js/core/MathList.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { LinkedList } from '../util/LinkedList.js';
|
||||
import { MathItem } from './MathItem.js';
|
||||
export interface MathList<N, T, D> extends LinkedList<MathItem<N, T, D>> {
|
||||
isBefore(a: MathItem<N, T, D>, b: MathItem<N, T, D>): boolean;
|
||||
}
|
||||
export declare abstract class AbstractMathList<N, T, D> extends LinkedList<MathItem<N, T, D>> implements MathList<N, T, D> {
|
||||
isBefore(a: MathItem<N, T, D>, b: MathItem<N, T, D>): boolean;
|
||||
}
|
||||
31
node_modules/mathjax-full/js/core/MathList.js
generated
vendored
Normal file
31
node_modules/mathjax-full/js/core/MathList.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
"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.AbstractMathList = void 0;
|
||||
var LinkedList_js_1 = require("../util/LinkedList.js");
|
||||
var AbstractMathList = (function (_super) {
|
||||
__extends(AbstractMathList, _super);
|
||||
function AbstractMathList() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
AbstractMathList.prototype.isBefore = function (a, b) {
|
||||
return (a.start.i < b.start.i || (a.start.i === b.start.i && a.start.n < b.start.n));
|
||||
};
|
||||
return AbstractMathList;
|
||||
}(LinkedList_js_1.LinkedList));
|
||||
exports.AbstractMathList = AbstractMathList;
|
||||
//# sourceMappingURL=MathList.js.map
|
||||
1
node_modules/mathjax-full/js/core/MathList.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MathList.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"MathList.js","sourceRoot":"","sources":["../../ts/core/MathList.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAuBA,uDAAiD;AA6BjD;IACA,oCAA6B;IAD7B;;IAUA,CAAC;IAJQ,mCAAQ,GAAf,UAAgB,CAAoB,EAAE,CAAoB;QACxD,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IACvF,CAAC;IAEH,uBAAC;AAAD,CAAC,AAVD,CACA,0BAAU,GAST;AAVqB,4CAAgB"}
|
||||
27
node_modules/mathjax-full/js/core/MmlTree/Attributes.d.ts
generated
vendored
Normal file
27
node_modules/mathjax-full/js/core/MmlTree/Attributes.d.ts
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import { PropertyList, Property } from '../Tree/Node.js';
|
||||
export declare const INHERIT = "_inherit_";
|
||||
export declare class Attributes {
|
||||
protected attributes: PropertyList;
|
||||
protected inherited: PropertyList;
|
||||
protected defaults: PropertyList;
|
||||
protected global: PropertyList;
|
||||
constructor(defaults: PropertyList, global: PropertyList);
|
||||
set(name: string, value: Property): void;
|
||||
setList(list: PropertyList): void;
|
||||
get(name: string): Property;
|
||||
getExplicit(name: string): Property;
|
||||
getList(...names: string[]): PropertyList;
|
||||
setInherited(name: string, value: Property): void;
|
||||
getInherited(name: string): Property;
|
||||
getDefault(name: string): Property;
|
||||
isSet(name: string): boolean;
|
||||
hasDefault(name: string): boolean;
|
||||
getExplicitNames(): string[];
|
||||
getInheritedNames(): string[];
|
||||
getDefaultNames(): string[];
|
||||
getGlobalNames(): string[];
|
||||
getAllAttributes(): PropertyList;
|
||||
getAllInherited(): PropertyList;
|
||||
getAllDefaults(): PropertyList;
|
||||
getAllGlobals(): PropertyList;
|
||||
}
|
||||
107
node_modules/mathjax-full/js/core/MmlTree/Attributes.js
generated
vendored
Normal file
107
node_modules/mathjax-full/js/core/MmlTree/Attributes.js
generated
vendored
Normal file
@@ -0,0 +1,107 @@
|
||||
"use strict";
|
||||
var __values = (this && this.__values) || function(o) {
|
||||
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
||||
if (m) return m.call(o);
|
||||
if (o && typeof o.length === "number") return {
|
||||
next: function () {
|
||||
if (o && i >= o.length) o = void 0;
|
||||
return { value: o && o[i++], done: !o };
|
||||
}
|
||||
};
|
||||
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Attributes = exports.INHERIT = void 0;
|
||||
exports.INHERIT = '_inherit_';
|
||||
var Attributes = (function () {
|
||||
function Attributes(defaults, global) {
|
||||
this.global = global;
|
||||
this.defaults = Object.create(global);
|
||||
this.inherited = Object.create(this.defaults);
|
||||
this.attributes = Object.create(this.inherited);
|
||||
Object.assign(this.defaults, defaults);
|
||||
}
|
||||
Attributes.prototype.set = function (name, value) {
|
||||
this.attributes[name] = value;
|
||||
};
|
||||
Attributes.prototype.setList = function (list) {
|
||||
Object.assign(this.attributes, list);
|
||||
};
|
||||
Attributes.prototype.get = function (name) {
|
||||
var value = this.attributes[name];
|
||||
if (value === exports.INHERIT) {
|
||||
value = this.global[name];
|
||||
}
|
||||
return value;
|
||||
};
|
||||
Attributes.prototype.getExplicit = function (name) {
|
||||
if (!this.attributes.hasOwnProperty(name)) {
|
||||
return undefined;
|
||||
}
|
||||
return this.attributes[name];
|
||||
};
|
||||
Attributes.prototype.getList = function () {
|
||||
var e_1, _a;
|
||||
var names = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
names[_i] = arguments[_i];
|
||||
}
|
||||
var values = {};
|
||||
try {
|
||||
for (var names_1 = __values(names), names_1_1 = names_1.next(); !names_1_1.done; names_1_1 = names_1.next()) {
|
||||
var name_1 = names_1_1.value;
|
||||
values[name_1] = this.get(name_1);
|
||||
}
|
||||
}
|
||||
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (names_1_1 && !names_1_1.done && (_a = names_1.return)) _a.call(names_1);
|
||||
}
|
||||
finally { if (e_1) throw e_1.error; }
|
||||
}
|
||||
return values;
|
||||
};
|
||||
Attributes.prototype.setInherited = function (name, value) {
|
||||
this.inherited[name] = value;
|
||||
};
|
||||
Attributes.prototype.getInherited = function (name) {
|
||||
return this.inherited[name];
|
||||
};
|
||||
Attributes.prototype.getDefault = function (name) {
|
||||
return this.defaults[name];
|
||||
};
|
||||
Attributes.prototype.isSet = function (name) {
|
||||
return this.attributes.hasOwnProperty(name) || this.inherited.hasOwnProperty(name);
|
||||
};
|
||||
Attributes.prototype.hasDefault = function (name) {
|
||||
return (name in this.defaults);
|
||||
};
|
||||
Attributes.prototype.getExplicitNames = function () {
|
||||
return Object.keys(this.attributes);
|
||||
};
|
||||
Attributes.prototype.getInheritedNames = function () {
|
||||
return Object.keys(this.inherited);
|
||||
};
|
||||
Attributes.prototype.getDefaultNames = function () {
|
||||
return Object.keys(this.defaults);
|
||||
};
|
||||
Attributes.prototype.getGlobalNames = function () {
|
||||
return Object.keys(this.global);
|
||||
};
|
||||
Attributes.prototype.getAllAttributes = function () {
|
||||
return this.attributes;
|
||||
};
|
||||
Attributes.prototype.getAllInherited = function () {
|
||||
return this.inherited;
|
||||
};
|
||||
Attributes.prototype.getAllDefaults = function () {
|
||||
return this.defaults;
|
||||
};
|
||||
Attributes.prototype.getAllGlobals = function () {
|
||||
return this.global;
|
||||
};
|
||||
return Attributes;
|
||||
}());
|
||||
exports.Attributes = Attributes;
|
||||
//# sourceMappingURL=Attributes.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/Attributes.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/Attributes.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Attributes.js","sourceRoot":"","sources":["../../../ts/core/MmlTree/Attributes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AA4Ba,QAAA,OAAO,GAAG,WAAW,CAAC;AAUnC;IAwBE,oBAAY,QAAsB,EAAE,MAAoB;QACtD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,MA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,CAAC,MAAM,CAAC;IACrB,CAAC;IAEH,iBAAC;AAAD,CAAC,AApLD,IAoLC;AApLY,gCAAU"}
|
||||
33
node_modules/mathjax-full/js/core/MmlTree/JsonMmlVisitor.d.ts
generated
vendored
Normal file
33
node_modules/mathjax-full/js/core/MmlTree/JsonMmlVisitor.d.ts
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
import { PropertyList } from '../Tree/Node.js';
|
||||
import { MmlVisitor } from './MmlVisitor.js';
|
||||
import { MmlNode, TextNode, XMLNode } from './MmlNode.js';
|
||||
export declare type MmlNodeJSON = {
|
||||
kind: string;
|
||||
texClass: number;
|
||||
isEmbellished?: boolean;
|
||||
isSpacelike?: boolean;
|
||||
isInferred?: boolean;
|
||||
childNodes: MmlJSON[];
|
||||
attributes: PropertyList;
|
||||
inherited: PropertyList;
|
||||
properties: PropertyList;
|
||||
};
|
||||
export declare type MmlTextJSON = {
|
||||
kind: string;
|
||||
text: string;
|
||||
};
|
||||
export declare type MmlXmlJSON = {
|
||||
kind: string;
|
||||
xml: any;
|
||||
};
|
||||
export declare type MmlJSON = MmlNodeJSON | MmlTextJSON | MmlXmlJSON;
|
||||
export declare class JsonMmlVisitor extends MmlVisitor {
|
||||
visitTree(node: MmlNode): MmlJSON;
|
||||
visitTextNode(node: TextNode): MmlTextJSON;
|
||||
visitXMLNode(node: XMLNode): MmlXmlJSON;
|
||||
visitDefault(node: MmlNode): MmlJSON;
|
||||
getChildren(node: MmlNode): MmlJSON[];
|
||||
getAttributes(node: MmlNode): PropertyList;
|
||||
getInherited(node: MmlNode): PropertyList;
|
||||
getProperties(node: MmlNode): PropertyList;
|
||||
}
|
||||
95
node_modules/mathjax-full/js/core/MmlTree/JsonMmlVisitor.js
generated
vendored
Normal file
95
node_modules/mathjax-full/js/core/MmlTree/JsonMmlVisitor.js
generated
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
"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 __());
|
||||
};
|
||||
})();
|
||||
var __values = (this && this.__values) || function(o) {
|
||||
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
||||
if (m) return m.call(o);
|
||||
if (o && typeof o.length === "number") return {
|
||||
next: function () {
|
||||
if (o && i >= o.length) o = void 0;
|
||||
return { value: o && o[i++], done: !o };
|
||||
}
|
||||
};
|
||||
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.JsonMmlVisitor = void 0;
|
||||
var MmlVisitor_js_1 = require("./MmlVisitor.js");
|
||||
var JsonMmlVisitor = (function (_super) {
|
||||
__extends(JsonMmlVisitor, _super);
|
||||
function JsonMmlVisitor() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
JsonMmlVisitor.prototype.visitTree = function (node) {
|
||||
return this.visitNode(node);
|
||||
};
|
||||
JsonMmlVisitor.prototype.visitTextNode = function (node) {
|
||||
return { kind: node.kind, text: node.getText() };
|
||||
};
|
||||
JsonMmlVisitor.prototype.visitXMLNode = function (node) {
|
||||
return { kind: node.kind, xml: node.getXML() };
|
||||
};
|
||||
JsonMmlVisitor.prototype.visitDefault = function (node) {
|
||||
var json = {
|
||||
kind: node.kind.replace(/inferredM/, 'm'),
|
||||
texClass: node.texClass,
|
||||
attributes: this.getAttributes(node),
|
||||
inherited: this.getInherited(node),
|
||||
properties: this.getProperties(node),
|
||||
childNodes: this.getChildren(node)
|
||||
};
|
||||
if (node.isInferred) {
|
||||
json.isInferred = true;
|
||||
}
|
||||
if (node.isEmbellished) {
|
||||
json.isEmbellished = true;
|
||||
}
|
||||
if (node.isSpacelike) {
|
||||
json.isSpacelike = true;
|
||||
}
|
||||
return json;
|
||||
};
|
||||
JsonMmlVisitor.prototype.getChildren = function (node) {
|
||||
var e_1, _a;
|
||||
var children = [];
|
||||
try {
|
||||
for (var _b = __values(node.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var child = _c.value;
|
||||
children.push(this.visitNode(child));
|
||||
}
|
||||
}
|
||||
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_1) throw e_1.error; }
|
||||
}
|
||||
return children;
|
||||
};
|
||||
JsonMmlVisitor.prototype.getAttributes = function (node) {
|
||||
return Object.assign({}, node.attributes.getAllAttributes());
|
||||
};
|
||||
JsonMmlVisitor.prototype.getInherited = function (node) {
|
||||
return Object.assign({}, node.attributes.getAllInherited());
|
||||
};
|
||||
JsonMmlVisitor.prototype.getProperties = function (node) {
|
||||
return Object.assign({}, node.getAllProperties());
|
||||
};
|
||||
return JsonMmlVisitor;
|
||||
}(MmlVisitor_js_1.MmlVisitor));
|
||||
exports.JsonMmlVisitor = JsonMmlVisitor;
|
||||
//# sourceMappingURL=JsonMmlVisitor.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/JsonMmlVisitor.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/JsonMmlVisitor.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"JsonMmlVisitor.js","sourceRoot":"","sources":["../../../ts/core/MmlTree/JsonMmlVisitor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;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;YAClB,KAAoB,IAAA,KAAA,SAAA,IAAI,CAAC,UAAU,CAAA,gBAAA,4BAAE;gBAAhC,IAAM,KAAK,WAAA;gBACd,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;aACtC;;;;;;;;;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;IAMM,sCAAa,GAApB,UAAqB,IAAa;QAChC,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAC/D,CAAC;IAMM,qCAAY,GAAnB,UAAoB,IAAa;QAC/B,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC,CAAC;IAC9D,CAAC;IAMM,sCAAa,GAApB,UAAqB,IAAa;QAChC,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC;IACpD,CAAC;IAEH,qBAAC;AAAD,CAAC,AA9FD,CAAoC,0BAAU,GA8F7C;AA9FY,wCAAc"}
|
||||
11
node_modules/mathjax-full/js/core/MmlTree/LegacyMmlVisitor.d.ts
generated
vendored
Normal file
11
node_modules/mathjax-full/js/core/MmlTree/LegacyMmlVisitor.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import { MmlVisitor } from './MmlVisitor.js';
|
||||
import { MmlNode, TextNode, XMLNode } from './MmlNode.js';
|
||||
export declare class LegacyMmlVisitor extends MmlVisitor {
|
||||
visitTree(node: MmlNode): any;
|
||||
visitTextNode(node: TextNode, parent: any): void;
|
||||
visitXMLNode(node: XMLNode, parent: any): void;
|
||||
visitInferredMrowNode(node: MmlNode, parent: any): void;
|
||||
visitDefault(node: MmlNode, parent: any): void;
|
||||
addAttributes(node: MmlNode, mml: any): void;
|
||||
addProperties(node: MmlNode, mml: any): void;
|
||||
}
|
||||
124
node_modules/mathjax-full/js/core/MmlTree/LegacyMmlVisitor.js
generated
vendored
Normal file
124
node_modules/mathjax-full/js/core/MmlTree/LegacyMmlVisitor.js
generated
vendored
Normal file
@@ -0,0 +1,124 @@
|
||||
"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 __());
|
||||
};
|
||||
})();
|
||||
var __values = (this && this.__values) || function(o) {
|
||||
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
||||
if (m) return m.call(o);
|
||||
if (o && typeof o.length === "number") return {
|
||||
next: function () {
|
||||
if (o && i >= o.length) o = void 0;
|
||||
return { value: o && o[i++], done: !o };
|
||||
}
|
||||
};
|
||||
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.LegacyMmlVisitor = void 0;
|
||||
var MmlVisitor_js_1 = require("./MmlVisitor.js");
|
||||
var MML = MathJax.ElementJax.mml;
|
||||
var LegacyMmlVisitor = (function (_super) {
|
||||
__extends(LegacyMmlVisitor, _super);
|
||||
function LegacyMmlVisitor() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
LegacyMmlVisitor.prototype.visitTree = function (node) {
|
||||
var root = MML.mrow();
|
||||
this.visitNode(node, root);
|
||||
root = root.data[0];
|
||||
root.parent = null;
|
||||
return root;
|
||||
};
|
||||
LegacyMmlVisitor.prototype.visitTextNode = function (node, parent) {
|
||||
parent.Append(MML.chars(node.getText()));
|
||||
};
|
||||
LegacyMmlVisitor.prototype.visitXMLNode = function (node, parent) {
|
||||
parent.Append(MML.xml(node.getXML()));
|
||||
};
|
||||
LegacyMmlVisitor.prototype.visitInferredMrowNode = function (node, parent) {
|
||||
var e_1, _a;
|
||||
try {
|
||||
for (var _b = __values(node.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var child = _c.value;
|
||||
this.visitNode(child, parent);
|
||||
}
|
||||
}
|
||||
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_1) throw e_1.error; }
|
||||
}
|
||||
};
|
||||
LegacyMmlVisitor.prototype.visitDefault = function (node, parent) {
|
||||
var e_2, _a;
|
||||
var mml = MML[node.kind]();
|
||||
this.addAttributes(node, mml);
|
||||
this.addProperties(node, mml);
|
||||
try {
|
||||
for (var _b = __values(node.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var child = _c.value;
|
||||
this.visitNode(child, mml);
|
||||
}
|
||||
}
|
||||
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_2) throw e_2.error; }
|
||||
}
|
||||
parent.Append(mml);
|
||||
};
|
||||
LegacyMmlVisitor.prototype.addAttributes = function (node, mml) {
|
||||
var e_3, _a;
|
||||
var attributes = node.attributes;
|
||||
var names = attributes.getExplicitNames();
|
||||
try {
|
||||
for (var names_1 = __values(names), names_1_1 = names_1.next(); !names_1_1.done; names_1_1 = names_1.next()) {
|
||||
var name_1 = names_1_1.value;
|
||||
mml[name_1] = attributes.getExplicit(name_1);
|
||||
}
|
||||
}
|
||||
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (names_1_1 && !names_1_1.done && (_a = names_1.return)) _a.call(names_1);
|
||||
}
|
||||
finally { if (e_3) throw e_3.error; }
|
||||
}
|
||||
};
|
||||
LegacyMmlVisitor.prototype.addProperties = function (node, mml) {
|
||||
var e_4, _a;
|
||||
var names = node.getPropertyNames();
|
||||
try {
|
||||
for (var names_2 = __values(names), names_2_1 = names_2.next(); !names_2_1.done; names_2_1 = names_2.next()) {
|
||||
var name_2 = names_2_1.value;
|
||||
mml[name_2] = node.getProperty(name_2);
|
||||
}
|
||||
}
|
||||
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (names_2_1 && !names_2_1.done && (_a = names_2.return)) _a.call(names_2);
|
||||
}
|
||||
finally { if (e_4) throw e_4.error; }
|
||||
}
|
||||
};
|
||||
return LegacyMmlVisitor;
|
||||
}(MmlVisitor_js_1.MmlVisitor));
|
||||
exports.LegacyMmlVisitor = LegacyMmlVisitor;
|
||||
//# sourceMappingURL=LegacyMmlVisitor.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/LegacyMmlVisitor.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/LegacyMmlVisitor.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"LegacyMmlVisitor.js","sourceRoot":"","sources":["../../../ts/core/MmlTree/LegacyMmlVisitor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBA,iDAA2C;AAO3C,IAAI,GAAG,GAAG,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC;AAOjC;IAAsC,oCAAU;IAAhD;;IA0FA,CAAC;IAjFQ,oCAAS,GAAhB,UAAiB,IAAa;QAC5B,IAAI,IAAI,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;QACtB,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC3B,I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C,UAAU,CAAC;QACjC,IAAI,KAAK,GAAG,UAAU,CAAC,gBAAgB,EAAE,CAAC;;YAC1C,KAAmB,IAAA,UAAA,SAAA,KAAK,CAAA,4BAAA,+CAAE;gBAArB,IAAM,MAAI,kBAAA;gBACb,GAAG,CAAC,MAAI,CAAC,GAAG,UAAU,CAAC,WAAW,CAAC,MAAI,CAAC,CAAC;aAC1C;;;;;;;;;IACH,CAAC;IAMM,wCAAa,GAApB,UAAqB,IAAa,EAAE,GAAQ;;QAC1C,IAAI,KAAK,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC;;YACpC,KAAmB,IAAA,UAAA,SAAA,KAAK,CAAA,4BAAA,+CAAE;gBAArB,IAAM,MAAI,kBAAA;gBACb,GAAG,CAAC,MAAI,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,MAAI,CAAC,CAAC;aACpC;;;;;;;;;IACH,CAAC;IAEH,uBAAC;AAAD,CAAC,AA1FD,CAAsC,0BAAU,GA0F/C;AA1FY,4CAAgB"}
|
||||
4
node_modules/mathjax-full/js/core/MmlTree/MML.d.ts
generated
vendored
Normal file
4
node_modules/mathjax-full/js/core/MmlTree/MML.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { MmlNodeClass } from './MmlNode.js';
|
||||
export declare let MML: {
|
||||
[kind: string]: MmlNodeClass;
|
||||
};
|
||||
80
node_modules/mathjax-full/js/core/MmlTree/MML.js
generated
vendored
Normal file
80
node_modules/mathjax-full/js/core/MmlTree/MML.js
generated
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
"use strict";
|
||||
var _a;
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MML = void 0;
|
||||
var MmlNode_js_1 = require("./MmlNode.js");
|
||||
var math_js_1 = require("./MmlNodes/math.js");
|
||||
var mi_js_1 = require("./MmlNodes/mi.js");
|
||||
var mn_js_1 = require("./MmlNodes/mn.js");
|
||||
var mo_js_1 = require("./MmlNodes/mo.js");
|
||||
var mtext_js_1 = require("./MmlNodes/mtext.js");
|
||||
var mspace_js_1 = require("./MmlNodes/mspace.js");
|
||||
var ms_js_1 = require("./MmlNodes/ms.js");
|
||||
var mrow_js_1 = require("./MmlNodes/mrow.js");
|
||||
var mfrac_js_1 = require("./MmlNodes/mfrac.js");
|
||||
var msqrt_js_1 = require("./MmlNodes/msqrt.js");
|
||||
var mroot_js_1 = require("./MmlNodes/mroot.js");
|
||||
var mstyle_js_1 = require("./MmlNodes/mstyle.js");
|
||||
var merror_js_1 = require("./MmlNodes/merror.js");
|
||||
var mpadded_js_1 = require("./MmlNodes/mpadded.js");
|
||||
var mphantom_js_1 = require("./MmlNodes/mphantom.js");
|
||||
var mfenced_js_1 = require("./MmlNodes/mfenced.js");
|
||||
var menclose_js_1 = require("./MmlNodes/menclose.js");
|
||||
var maction_js_1 = require("./MmlNodes/maction.js");
|
||||
var msubsup_js_1 = require("./MmlNodes/msubsup.js");
|
||||
var munderover_js_1 = require("./MmlNodes/munderover.js");
|
||||
var mmultiscripts_js_1 = require("./MmlNodes/mmultiscripts.js");
|
||||
var mtable_js_1 = require("./MmlNodes/mtable.js");
|
||||
var mtr_js_1 = require("./MmlNodes/mtr.js");
|
||||
var mtd_js_1 = require("./MmlNodes/mtd.js");
|
||||
var maligngroup_js_1 = require("./MmlNodes/maligngroup.js");
|
||||
var malignmark_js_1 = require("./MmlNodes/malignmark.js");
|
||||
var mglyph_js_1 = require("./MmlNodes/mglyph.js");
|
||||
var semantics_js_1 = require("./MmlNodes/semantics.js");
|
||||
var TeXAtom_js_1 = require("./MmlNodes/TeXAtom.js");
|
||||
var mathchoice_js_1 = require("./MmlNodes/mathchoice.js");
|
||||
exports.MML = (_a = {},
|
||||
_a[math_js_1.MmlMath.prototype.kind] = math_js_1.MmlMath,
|
||||
_a[mi_js_1.MmlMi.prototype.kind] = mi_js_1.MmlMi,
|
||||
_a[mn_js_1.MmlMn.prototype.kind] = mn_js_1.MmlMn,
|
||||
_a[mo_js_1.MmlMo.prototype.kind] = mo_js_1.MmlMo,
|
||||
_a[mtext_js_1.MmlMtext.prototype.kind] = mtext_js_1.MmlMtext,
|
||||
_a[mspace_js_1.MmlMspace.prototype.kind] = mspace_js_1.MmlMspace,
|
||||
_a[ms_js_1.MmlMs.prototype.kind] = ms_js_1.MmlMs,
|
||||
_a[mrow_js_1.MmlMrow.prototype.kind] = mrow_js_1.MmlMrow,
|
||||
_a[mrow_js_1.MmlInferredMrow.prototype.kind] = mrow_js_1.MmlInferredMrow,
|
||||
_a[mfrac_js_1.MmlMfrac.prototype.kind] = mfrac_js_1.MmlMfrac,
|
||||
_a[msqrt_js_1.MmlMsqrt.prototype.kind] = msqrt_js_1.MmlMsqrt,
|
||||
_a[mroot_js_1.MmlMroot.prototype.kind] = mroot_js_1.MmlMroot,
|
||||
_a[mstyle_js_1.MmlMstyle.prototype.kind] = mstyle_js_1.MmlMstyle,
|
||||
_a[merror_js_1.MmlMerror.prototype.kind] = merror_js_1.MmlMerror,
|
||||
_a[mpadded_js_1.MmlMpadded.prototype.kind] = mpadded_js_1.MmlMpadded,
|
||||
_a[mphantom_js_1.MmlMphantom.prototype.kind] = mphantom_js_1.MmlMphantom,
|
||||
_a[mfenced_js_1.MmlMfenced.prototype.kind] = mfenced_js_1.MmlMfenced,
|
||||
_a[menclose_js_1.MmlMenclose.prototype.kind] = menclose_js_1.MmlMenclose,
|
||||
_a[maction_js_1.MmlMaction.prototype.kind] = maction_js_1.MmlMaction,
|
||||
_a[msubsup_js_1.MmlMsub.prototype.kind] = msubsup_js_1.MmlMsub,
|
||||
_a[msubsup_js_1.MmlMsup.prototype.kind] = msubsup_js_1.MmlMsup,
|
||||
_a[msubsup_js_1.MmlMsubsup.prototype.kind] = msubsup_js_1.MmlMsubsup,
|
||||
_a[munderover_js_1.MmlMunder.prototype.kind] = munderover_js_1.MmlMunder,
|
||||
_a[munderover_js_1.MmlMover.prototype.kind] = munderover_js_1.MmlMover,
|
||||
_a[munderover_js_1.MmlMunderover.prototype.kind] = munderover_js_1.MmlMunderover,
|
||||
_a[mmultiscripts_js_1.MmlMmultiscripts.prototype.kind] = mmultiscripts_js_1.MmlMmultiscripts,
|
||||
_a[mmultiscripts_js_1.MmlMprescripts.prototype.kind] = mmultiscripts_js_1.MmlMprescripts,
|
||||
_a[mmultiscripts_js_1.MmlNone.prototype.kind] = mmultiscripts_js_1.MmlNone,
|
||||
_a[mtable_js_1.MmlMtable.prototype.kind] = mtable_js_1.MmlMtable,
|
||||
_a[mtr_js_1.MmlMlabeledtr.prototype.kind] = mtr_js_1.MmlMlabeledtr,
|
||||
_a[mtr_js_1.MmlMtr.prototype.kind] = mtr_js_1.MmlMtr,
|
||||
_a[mtd_js_1.MmlMtd.prototype.kind] = mtd_js_1.MmlMtd,
|
||||
_a[maligngroup_js_1.MmlMaligngroup.prototype.kind] = maligngroup_js_1.MmlMaligngroup,
|
||||
_a[malignmark_js_1.MmlMalignmark.prototype.kind] = malignmark_js_1.MmlMalignmark,
|
||||
_a[mglyph_js_1.MmlMglyph.prototype.kind] = mglyph_js_1.MmlMglyph,
|
||||
_a[semantics_js_1.MmlSemantics.prototype.kind] = semantics_js_1.MmlSemantics,
|
||||
_a[semantics_js_1.MmlAnnotation.prototype.kind] = semantics_js_1.MmlAnnotation,
|
||||
_a[semantics_js_1.MmlAnnotationXML.prototype.kind] = semantics_js_1.MmlAnnotationXML,
|
||||
_a[TeXAtom_js_1.TeXAtom.prototype.kind] = TeXAtom_js_1.TeXAtom,
|
||||
_a[mathchoice_js_1.MathChoice.prototype.kind] = mathchoice_js_1.MathChoice,
|
||||
_a[MmlNode_js_1.TextNode.prototype.kind] = MmlNode_js_1.TextNode,
|
||||
_a[MmlNode_js_1.XMLNode.prototype.kind] = MmlNode_js_1.XMLNode,
|
||||
_a);
|
||||
//# sourceMappingURL=MML.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/MML.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/MML.js.map
generated
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AAG,+BAAc;IAC/C,GAAC,6BAAa,CAAC,SAAS,CAAC,IAAI,IAAG,6BAAa;IAE7C,GAAC,qBAAS,CAAC,SAAS,CAAC,IAAI,IAAG,qBAAS;IAErC,GAAC,2BAAY,CAAC,SAAS,CAAC,IAAI,IAAG,2BAAY;IAC3C,GAAC,4BAAa,CAAC,SAAS,CAAC,IAAI,IAAG,4BAAa;IAC7C,GAAC,+BAAgB,CAAC,SAAS,CAAC,IAAI,IAAG,+BAAgB;IAEnD,GAAC,oBAAO,CAAC,SAAS,CAAC,IAAI,IAAG,oBAAO;IACjC,GAAC,0BAAU,CAAC,SAAS,CAAC,IAAI,IAAG,0BAAU;IAEvC,GAAC,qBAAQ,CAAC,SAAS,CAAC,IAAI,IAAG,qBAAQ;IACnC,GAAC,oBAAO,CAAC,SAAS,CAAC,IAAI,IAAG,oBAAO;QACjC"}
|
||||
11
node_modules/mathjax-full/js/core/MmlTree/MathMLVisitor.d.ts
generated
vendored
Normal file
11
node_modules/mathjax-full/js/core/MmlTree/MathMLVisitor.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import { MmlVisitor } from './MmlVisitor.js';
|
||||
import { MmlNode, TextNode, XMLNode } from './MmlNode.js';
|
||||
export declare class MathMLVisitor extends MmlVisitor {
|
||||
protected document: Document;
|
||||
visitTree(node: MmlNode, document: Document): Node;
|
||||
visitTextNode(node: TextNode, parent: Element): void;
|
||||
visitXMLNode(node: XMLNode, parent: Element): void;
|
||||
visitInferredMrowNode(node: MmlNode, parent: Element): void;
|
||||
visitDefault(node: MmlNode, parent: Element): void;
|
||||
addAttributes(node: MmlNode, mml: Element): void;
|
||||
}
|
||||
107
node_modules/mathjax-full/js/core/MmlTree/MathMLVisitor.js
generated
vendored
Normal file
107
node_modules/mathjax-full/js/core/MmlTree/MathMLVisitor.js
generated
vendored
Normal file
@@ -0,0 +1,107 @@
|
||||
"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 __());
|
||||
};
|
||||
})();
|
||||
var __values = (this && this.__values) || function(o) {
|
||||
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
||||
if (m) return m.call(o);
|
||||
if (o && typeof o.length === "number") return {
|
||||
next: function () {
|
||||
if (o && i >= o.length) o = void 0;
|
||||
return { value: o && o[i++], done: !o };
|
||||
}
|
||||
};
|
||||
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MathMLVisitor = void 0;
|
||||
var MmlVisitor_js_1 = require("./MmlVisitor.js");
|
||||
var MathMLVisitor = (function (_super) {
|
||||
__extends(MathMLVisitor, _super);
|
||||
function MathMLVisitor() {
|
||||
var _this = _super !== null && _super.apply(this, arguments) || this;
|
||||
_this.document = null;
|
||||
return _this;
|
||||
}
|
||||
MathMLVisitor.prototype.visitTree = function (node, document) {
|
||||
this.document = document;
|
||||
var root = document.createElement('top');
|
||||
this.visitNode(node, root);
|
||||
this.document = null;
|
||||
return root.firstChild;
|
||||
};
|
||||
MathMLVisitor.prototype.visitTextNode = function (node, parent) {
|
||||
parent.appendChild(this.document.createTextNode(node.getText()));
|
||||
};
|
||||
MathMLVisitor.prototype.visitXMLNode = function (node, parent) {
|
||||
parent.appendChild(node.getXML().cloneNode(true));
|
||||
};
|
||||
MathMLVisitor.prototype.visitInferredMrowNode = function (node, parent) {
|
||||
var e_1, _a;
|
||||
try {
|
||||
for (var _b = __values(node.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var child = _c.value;
|
||||
this.visitNode(child, parent);
|
||||
}
|
||||
}
|
||||
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_1) throw e_1.error; }
|
||||
}
|
||||
};
|
||||
MathMLVisitor.prototype.visitDefault = function (node, parent) {
|
||||
var e_2, _a;
|
||||
var mml = this.document.createElement(node.kind);
|
||||
this.addAttributes(node, mml);
|
||||
try {
|
||||
for (var _b = __values(node.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var child = _c.value;
|
||||
this.visitNode(child, mml);
|
||||
}
|
||||
}
|
||||
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_2) throw e_2.error; }
|
||||
}
|
||||
parent.appendChild(mml);
|
||||
};
|
||||
MathMLVisitor.prototype.addAttributes = function (node, mml) {
|
||||
var e_3, _a;
|
||||
var attributes = node.attributes;
|
||||
var names = attributes.getExplicitNames();
|
||||
try {
|
||||
for (var names_1 = __values(names), names_1_1 = names_1.next(); !names_1_1.done; names_1_1 = names_1.next()) {
|
||||
var name_1 = names_1_1.value;
|
||||
mml.setAttribute(name_1, attributes.getExplicit(name_1).toString());
|
||||
}
|
||||
}
|
||||
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (names_1_1 && !names_1_1.done && (_a = names_1.return)) _a.call(names_1);
|
||||
}
|
||||
finally { if (e_3) throw e_3.error; }
|
||||
}
|
||||
};
|
||||
return MathMLVisitor;
|
||||
}(MmlVisitor_js_1.MmlVisitor));
|
||||
exports.MathMLVisitor = MathMLVisitor;
|
||||
//# sourceMappingURL=MathMLVisitor.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/MathMLVisitor.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/MathMLVisitor.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"MathMLVisitor.js","sourceRoot":"","sources":["../../../ts/core/MmlTree/MathMLVisitor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBA,iDAA2C;AAQ3C;IAAmC,iCAAU;IAA7C;QAAA,qEAgFC;QA5EW,cAAQ,GAAa,IAAI,CAAC;;IA4EtC,CAAC;IAnEQ,iCAAS,GAAhB,UAAiB,IAAa,EAAE,QAAkB;QAChD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QACzC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAMM,qCAAa,GAApB,UAAqB,IAAc,EAAE,MAAe;QAClD,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACnE,CAAC;IAMM,oCAAY,GAAnB,UAAoB,IAAa,EAAE,MAAe;QAChD,MAAM,CAAC,WAAW,CAAE,IAAI,CAAC,MAAM,EAAc,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IACjE,CAAC;IASM,6CAAqB,GAA5B,UAA6B,IAAa,EAAE,MAAe;;;YACzD,KAAoB,IAAA,KAAA,SAAA,IAAI,CAAC,UAAU,CAAA,gBAAA,4BAAE;gBAAhC,IAAM,KAAK,WAAA;gBACd,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;aAC/B;;;;;;;;;IACH,CAAC;IAYM,oCAAY,GAAnB,UAAoB,IAAa,EAAE,MAAe;;QAChD,IAAI,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;;YAC9B,KAAoB,IAAA,KAAA,SAAA,IAAI,CAAC,UAAU,CAAA,gBAAA,4BAAE;gBAAhC,IAAM,KAAK,WAAA;gBACd,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;aAC5B;;;;;;;;;QACD,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAC1B,CAAC;IAKM,qCAAa,GAApB,UAAqB,IAAa,EAAE,GAAY;;QAC9C,IAAI,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QACjC,IAAI,KAAK,GAAG,UAAU,CAAC,gBAAgB,EAAE,CAAC;;YAC1C,KAAmB,IAAA,UAAA,SAAA,KAAK,CAAA,4BAAA,+CAAE;gBAArB,IAAM,MAAI,kBAAA;gBACb,GAAG,CAAC,YAAY,CAAC,MAAI,EAAE,UAAU,CAAC,WAAW,CAAC,MAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;aACjE;;;;;;;;;IACH,CAAC;IAEH,oBAAC;AAAD,CAAC,AAhFD,CAAmC,0BAAU,GAgF5C;AAhFY,sCAAa"}
|
||||
8
node_modules/mathjax-full/js/core/MmlTree/MmlFactory.d.ts
generated
vendored
Normal file
8
node_modules/mathjax-full/js/core/MmlTree/MmlFactory.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { AbstractNodeFactory } from '../Tree/NodeFactory.js';
|
||||
import { MmlNode, MmlNodeClass } from './MmlNode.js';
|
||||
export declare class MmlFactory extends AbstractNodeFactory<MmlNode, MmlNodeClass> {
|
||||
static defaultNodes: {
|
||||
[kind: string]: MmlNodeClass;
|
||||
};
|
||||
get MML(): Object;
|
||||
}
|
||||
37
node_modules/mathjax-full/js/core/MmlTree/MmlFactory.js
generated
vendored
Normal file
37
node_modules/mathjax-full/js/core/MmlTree/MmlFactory.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
"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.MmlFactory = void 0;
|
||||
var NodeFactory_js_1 = require("../Tree/NodeFactory.js");
|
||||
var MML_js_1 = require("./MML.js");
|
||||
var MmlFactory = (function (_super) {
|
||||
__extends(MmlFactory, _super);
|
||||
function MmlFactory() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
Object.defineProperty(MmlFactory.prototype, "MML", {
|
||||
get: function () {
|
||||
return this.node;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
MmlFactory.defaultNodes = MML_js_1.MML;
|
||||
return MmlFactory;
|
||||
}(NodeFactory_js_1.AbstractNodeFactory));
|
||||
exports.MmlFactory = MmlFactory;
|
||||
//# sourceMappingURL=MmlFactory.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/MmlFactory.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/MmlFactory.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"MmlFactory.js","sourceRoot":"","sources":["../../../ts/core/MmlTree/MmlFactory.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAuBA,yDAA2D;AAE3D,mCAA6B;AAO7B;IAAgC,8BAA0C;IAA1E;;IAeA,CAAC;IAJC,sBAAI,2BAAG;aAAP;YACE,OAAO,IAAI,CAAC,IAAI,CAAC;QACnB,CAAC;;;OAAA;IARa,uBAAY,GAAG,YAAG,CAAC;IAUnC,iBAAC;CAAA,AAfD,CAAgC,oCAAmB,GAelD;AAfY,gCAAU"}
|
||||
175
node_modules/mathjax-full/js/core/MmlTree/MmlNode.d.ts
generated
vendored
Normal file
175
node_modules/mathjax-full/js/core/MmlTree/MmlNode.d.ts
generated
vendored
Normal file
@@ -0,0 +1,175 @@
|
||||
import { Attributes } from './Attributes.js';
|
||||
import { Property, PropertyList, Node, AbstractNode, AbstractEmptyNode, NodeClass } from '../Tree/Node.js';
|
||||
import { MmlFactory } from './MmlFactory.js';
|
||||
import { DOMAdaptor } from '../DOMAdaptor.js';
|
||||
export declare type AttributeList = {
|
||||
[attribute: string]: [string, Property];
|
||||
};
|
||||
export declare const TEXCLASS: {
|
||||
ORD: number;
|
||||
OP: number;
|
||||
BIN: number;
|
||||
REL: number;
|
||||
OPEN: number;
|
||||
CLOSE: number;
|
||||
PUNCT: number;
|
||||
INNER: number;
|
||||
VCENTER: number;
|
||||
NONE: number;
|
||||
};
|
||||
export declare const TEXCLASSNAMES: string[];
|
||||
export declare const indentAttributes: string[];
|
||||
export declare type MMLNODE = MmlNode | TextNode | XMLNode;
|
||||
export interface MmlNode extends Node {
|
||||
readonly isToken: boolean;
|
||||
readonly isEmbellished: boolean;
|
||||
readonly isSpacelike: boolean;
|
||||
readonly linebreakContainer: boolean;
|
||||
readonly hasNewLine: boolean;
|
||||
readonly arity: number;
|
||||
readonly isInferred: boolean;
|
||||
readonly Parent: MmlNode;
|
||||
readonly notParent: boolean;
|
||||
parent: MmlNode;
|
||||
texClass: number;
|
||||
prevClass: number;
|
||||
prevLevel: number;
|
||||
attributes: Attributes;
|
||||
core(): MmlNode;
|
||||
coreMO(): MmlNode;
|
||||
coreIndex(): number;
|
||||
childPosition(): number;
|
||||
setTeXclass(prev: MmlNode): MmlNode;
|
||||
texSpacing(): string;
|
||||
hasSpacingAttributes(): boolean;
|
||||
setInheritedAttributes(attributes: AttributeList, display: boolean, level: number, prime: boolean): void;
|
||||
inheritAttributesFrom(node: MmlNode): void;
|
||||
mError(message: string, options: PropertyList, short?: boolean): MmlNode;
|
||||
verifyTree(options?: PropertyList): void;
|
||||
}
|
||||
export interface MmlNodeClass extends NodeClass {
|
||||
defaults?: PropertyList;
|
||||
new (factory: MmlFactory, attributes?: PropertyList, children?: MmlNode[]): MmlNode;
|
||||
}
|
||||
export declare abstract class AbstractMmlNode extends AbstractNode implements MmlNode {
|
||||
static defaults: PropertyList;
|
||||
static noInherit: {
|
||||
[node1: string]: {
|
||||
[node2: string]: {
|
||||
[attribute: string]: boolean;
|
||||
};
|
||||
};
|
||||
};
|
||||
static alwaysInherit: {
|
||||
[name: string]: boolean;
|
||||
};
|
||||
static verifyDefaults: PropertyList;
|
||||
prevClass: number;
|
||||
prevLevel: number;
|
||||
attributes: Attributes;
|
||||
childNodes: MmlNode[];
|
||||
parent: MmlNode;
|
||||
readonly factory: MmlFactory;
|
||||
protected texclass: number;
|
||||
constructor(factory: MmlFactory, attributes?: PropertyList, children?: MmlNode[]);
|
||||
copy(keepIds?: boolean): AbstractMmlNode;
|
||||
get texClass(): number;
|
||||
set texClass(texClass: number);
|
||||
get isToken(): boolean;
|
||||
get isEmbellished(): boolean;
|
||||
get isSpacelike(): boolean;
|
||||
get linebreakContainer(): boolean;
|
||||
get hasNewLine(): boolean;
|
||||
get arity(): number;
|
||||
get isInferred(): boolean;
|
||||
get Parent(): MmlNode;
|
||||
get notParent(): boolean;
|
||||
setChildren(children: MmlNode[]): void;
|
||||
appendChild(child: MmlNode): Node;
|
||||
replaceChild(newChild: MmlNode, oldChild: MmlNode): Node;
|
||||
core(): MmlNode;
|
||||
coreMO(): MmlNode;
|
||||
coreIndex(): number;
|
||||
childPosition(): number;
|
||||
setTeXclass(prev: MmlNode): MmlNode;
|
||||
protected updateTeXclass(core: MmlNode): void;
|
||||
protected getPrevClass(prev: MmlNode): void;
|
||||
texSpacing(): string;
|
||||
hasSpacingAttributes(): boolean;
|
||||
setInheritedAttributes(attributes?: AttributeList, display?: boolean, level?: number, prime?: boolean): void;
|
||||
protected setChildInheritedAttributes(attributes: AttributeList, display: boolean, level: number, prime: boolean): void;
|
||||
protected addInheritedAttributes(current: AttributeList, attributes: PropertyList): AttributeList;
|
||||
inheritAttributesFrom(node: MmlNode): void;
|
||||
verifyTree(options?: PropertyList): void;
|
||||
protected verifyAttributes(options: PropertyList): void;
|
||||
protected verifyChildren(options: PropertyList): void;
|
||||
mError(message: string, options: PropertyList, short?: boolean): MmlNode;
|
||||
}
|
||||
export declare abstract class AbstractMmlTokenNode extends AbstractMmlNode {
|
||||
static defaults: PropertyList;
|
||||
get isToken(): boolean;
|
||||
getText(): string;
|
||||
protected setChildInheritedAttributes(attributes: AttributeList, display: boolean, level: number, prime: boolean): void;
|
||||
walkTree(func: (node: Node, data?: any) => void, data?: any): any;
|
||||
}
|
||||
export declare abstract class AbstractMmlLayoutNode extends AbstractMmlNode {
|
||||
static defaults: PropertyList;
|
||||
get isSpacelike(): boolean;
|
||||
get isEmbellished(): boolean;
|
||||
get arity(): number;
|
||||
core(): MmlNode;
|
||||
coreMO(): MmlNode;
|
||||
setTeXclass(prev: MmlNode): MmlNode;
|
||||
}
|
||||
export declare abstract class AbstractMmlBaseNode extends AbstractMmlNode {
|
||||
static defaults: PropertyList;
|
||||
get isEmbellished(): boolean;
|
||||
core(): MmlNode;
|
||||
coreMO(): MmlNode;
|
||||
setTeXclass(prev: MmlNode): MmlNode;
|
||||
}
|
||||
export declare abstract class AbstractMmlEmptyNode extends AbstractEmptyNode implements MmlNode {
|
||||
parent: MmlNode;
|
||||
get isToken(): boolean;
|
||||
get isEmbellished(): boolean;
|
||||
get isSpacelike(): boolean;
|
||||
get linebreakContainer(): boolean;
|
||||
get hasNewLine(): boolean;
|
||||
get arity(): number;
|
||||
get isInferred(): boolean;
|
||||
get notParent(): boolean;
|
||||
get Parent(): MmlNode;
|
||||
get texClass(): number;
|
||||
get prevClass(): number;
|
||||
get prevLevel(): number;
|
||||
hasSpacingAttributes(): boolean;
|
||||
get attributes(): Attributes;
|
||||
core(): MmlNode;
|
||||
coreMO(): MmlNode;
|
||||
coreIndex(): number;
|
||||
childPosition(): number;
|
||||
setTeXclass(prev: MmlNode): MmlNode;
|
||||
texSpacing(): string;
|
||||
setInheritedAttributes(_attributes: AttributeList, _display: boolean, _level: number, _prime: boolean): void;
|
||||
inheritAttributesFrom(_node: MmlNode): void;
|
||||
verifyTree(_options: PropertyList): void;
|
||||
mError(_message: string, _options: PropertyList, _short?: boolean): MmlNode;
|
||||
}
|
||||
export declare class TextNode extends AbstractMmlEmptyNode {
|
||||
protected text: string;
|
||||
get kind(): string;
|
||||
getText(): string;
|
||||
setText(text: string): TextNode;
|
||||
copy(): TextNode;
|
||||
toString(): string;
|
||||
}
|
||||
export declare class XMLNode extends AbstractMmlEmptyNode {
|
||||
protected xml: Object;
|
||||
protected adaptor: DOMAdaptor<any, any, any>;
|
||||
get kind(): string;
|
||||
getXML(): Object;
|
||||
setXML(xml: Object, adaptor?: DOMAdaptor<any, any, any>): XMLNode;
|
||||
getSerializedXML(): string;
|
||||
copy(): XMLNode;
|
||||
toString(): string;
|
||||
}
|
||||
924
node_modules/mathjax-full/js/core/MmlTree/MmlNode.js
generated
vendored
Normal file
924
node_modules/mathjax-full/js/core/MmlTree/MmlNode.js
generated
vendored
Normal file
@@ -0,0 +1,924 @@
|
||||
"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 __());
|
||||
};
|
||||
})();
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
var __values = (this && this.__values) || function(o) {
|
||||
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
||||
if (m) return m.call(o);
|
||||
if (o && typeof o.length === "number") return {
|
||||
next: function () {
|
||||
if (o && i >= o.length) o = void 0;
|
||||
return { value: o && o[i++], done: !o };
|
||||
}
|
||||
};
|
||||
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
||||
};
|
||||
var __read = (this && this.__read) || function (o, n) {
|
||||
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
||||
if (!m) return o;
|
||||
var i = m.call(o), r, ar = [], e;
|
||||
try {
|
||||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
||||
}
|
||||
catch (error) { e = { error: error }; }
|
||||
finally {
|
||||
try {
|
||||
if (r && !r.done && (m = i["return"])) m.call(i);
|
||||
}
|
||||
finally { if (e) throw e.error; }
|
||||
}
|
||||
return ar;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.XMLNode = exports.TextNode = exports.AbstractMmlEmptyNode = exports.AbstractMmlBaseNode = exports.AbstractMmlLayoutNode = exports.AbstractMmlTokenNode = exports.AbstractMmlNode = exports.indentAttributes = exports.TEXCLASSNAMES = exports.TEXCLASS = void 0;
|
||||
var Attributes_js_1 = require("./Attributes.js");
|
||||
var Node_js_1 = require("../Tree/Node.js");
|
||||
exports.TEXCLASS = {
|
||||
ORD: 0,
|
||||
OP: 1,
|
||||
BIN: 2,
|
||||
REL: 3,
|
||||
OPEN: 4,
|
||||
CLOSE: 5,
|
||||
PUNCT: 6,
|
||||
INNER: 7,
|
||||
VCENTER: 8,
|
||||
NONE: -1
|
||||
};
|
||||
exports.TEXCLASSNAMES = ['ORD', 'OP', 'BIN', 'REL', 'OPEN', 'CLOSE', 'PUNCT', 'INNER', 'VCENTER'];
|
||||
var TEXSPACELENGTH = ['', 'thinmathspace', 'mediummathspace', 'thickmathspace'];
|
||||
var TEXSPACE = [
|
||||
[0, -1, 2, 3, 0, 0, 0, 1],
|
||||
[-1, -1, 0, 3, 0, 0, 0, 1],
|
||||
[2, 2, 0, 0, 2, 0, 0, 2],
|
||||
[3, 3, 0, 0, 3, 0, 0, 3],
|
||||
[0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[0, -1, 2, 3, 0, 0, 0, 1],
|
||||
[1, 1, 0, 1, 1, 1, 1, 1],
|
||||
[1, -1, 2, 3, 1, 0, 1, 1]
|
||||
];
|
||||
exports.indentAttributes = [
|
||||
'indentalign', 'indentalignfirst',
|
||||
'indentshift', 'indentshiftfirst'
|
||||
];
|
||||
var AbstractMmlNode = (function (_super) {
|
||||
__extends(AbstractMmlNode, _super);
|
||||
function AbstractMmlNode(factory, attributes, children) {
|
||||
if (attributes === void 0) { attributes = {}; }
|
||||
if (children === void 0) { children = []; }
|
||||
var _this = _super.call(this, factory) || this;
|
||||
_this.prevClass = null;
|
||||
_this.prevLevel = null;
|
||||
_this.texclass = null;
|
||||
if (_this.arity < 0) {
|
||||
_this.childNodes = [factory.create('inferredMrow')];
|
||||
_this.childNodes[0].parent = _this;
|
||||
}
|
||||
_this.setChildren(children);
|
||||
_this.attributes = new Attributes_js_1.Attributes(factory.getNodeClass(_this.kind).defaults, factory.getNodeClass('math').defaults);
|
||||
_this.attributes.setList(attributes);
|
||||
return _this;
|
||||
}
|
||||
AbstractMmlNode.prototype.copy = function (keepIds) {
|
||||
var e_1, _a, e_2, _b;
|
||||
if (keepIds === void 0) { keepIds = false; }
|
||||
var node = this.factory.create(this.kind);
|
||||
node.properties = __assign({}, this.properties);
|
||||
if (this.attributes) {
|
||||
var attributes = this.attributes.getAllAttributes();
|
||||
try {
|
||||
for (var _c = __values(Object.keys(attributes)), _d = _c.next(); !_d.done; _d = _c.next()) {
|
||||
var name_1 = _d.value;
|
||||
if (name_1 !== 'id' || keepIds) {
|
||||
node.attributes.set(name_1, attributes[name_1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
||||
}
|
||||
finally { if (e_1) throw e_1.error; }
|
||||
}
|
||||
}
|
||||
if (this.childNodes && this.childNodes.length) {
|
||||
var children = this.childNodes;
|
||||
if (children.length === 1 && children[0].isInferred) {
|
||||
children = children[0].childNodes;
|
||||
}
|
||||
try {
|
||||
for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) {
|
||||
var child = children_1_1.value;
|
||||
if (child) {
|
||||
node.appendChild(child.copy());
|
||||
}
|
||||
else {
|
||||
node.childNodes.push(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (children_1_1 && !children_1_1.done && (_b = children_1.return)) _b.call(children_1);
|
||||
}
|
||||
finally { if (e_2) throw e_2.error; }
|
||||
}
|
||||
}
|
||||
return node;
|
||||
};
|
||||
Object.defineProperty(AbstractMmlNode.prototype, "texClass", {
|
||||
get: function () {
|
||||
return this.texclass;
|
||||
},
|
||||
set: function (texClass) {
|
||||
this.texclass = texClass;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(AbstractMmlNode.prototype, "isToken", {
|
||||
get: function () {
|
||||
return false;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(AbstractMmlNode.prototype, "isEmbellished", {
|
||||
get: function () {
|
||||
return false;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(AbstractMmlNode.prototype, "isSpacelike", {
|
||||
get: function () {
|
||||
return false;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(AbstractMmlNode.prototype, "linebreakContainer", {
|
||||
get: function () {
|
||||
return false;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(AbstractMmlNode.prototype, "hasNewLine", {
|
||||
get: function () {
|
||||
return false;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(AbstractMmlNode.prototype, "arity", {
|
||||
get: function () {
|
||||
return Infinity;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(AbstractMmlNode.prototype, "isInferred", {
|
||||
get: function () {
|
||||
return false;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(AbstractMmlNode.prototype, "Parent", {
|
||||
get: function () {
|
||||
var parent = this.parent;
|
||||
while (parent && parent.notParent) {
|
||||
parent = parent.Parent;
|
||||
}
|
||||
return parent;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(AbstractMmlNode.prototype, "notParent", {
|
||||
get: function () {
|
||||
return false;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
AbstractMmlNode.prototype.setChildren = function (children) {
|
||||
if (this.arity < 0) {
|
||||
return this.childNodes[0].setChildren(children);
|
||||
}
|
||||
return _super.prototype.setChildren.call(this, children);
|
||||
};
|
||||
AbstractMmlNode.prototype.appendChild = function (child) {
|
||||
var e_3, _a;
|
||||
var _this = this;
|
||||
if (this.arity < 0) {
|
||||
this.childNodes[0].appendChild(child);
|
||||
return child;
|
||||
}
|
||||
if (child.isInferred) {
|
||||
if (this.arity === Infinity) {
|
||||
child.childNodes.forEach(function (node) { return _super.prototype.appendChild.call(_this, node); });
|
||||
return child;
|
||||
}
|
||||
var original = child;
|
||||
child = this.factory.create('mrow');
|
||||
child.setChildren(original.childNodes);
|
||||
child.attributes = original.attributes;
|
||||
try {
|
||||
for (var _b = __values(original.getPropertyNames()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var name_2 = _c.value;
|
||||
child.setProperty(name_2, original.getProperty(name_2));
|
||||
}
|
||||
}
|
||||
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_3) throw e_3.error; }
|
||||
}
|
||||
}
|
||||
return _super.prototype.appendChild.call(this, child);
|
||||
};
|
||||
AbstractMmlNode.prototype.replaceChild = function (newChild, oldChild) {
|
||||
if (this.arity < 0) {
|
||||
this.childNodes[0].replaceChild(newChild, oldChild);
|
||||
return newChild;
|
||||
}
|
||||
return _super.prototype.replaceChild.call(this, newChild, oldChild);
|
||||
};
|
||||
AbstractMmlNode.prototype.core = function () {
|
||||
return this;
|
||||
};
|
||||
AbstractMmlNode.prototype.coreMO = function () {
|
||||
return this;
|
||||
};
|
||||
AbstractMmlNode.prototype.coreIndex = function () {
|
||||
return 0;
|
||||
};
|
||||
AbstractMmlNode.prototype.childPosition = function () {
|
||||
var e_4, _a;
|
||||
var child = this;
|
||||
var parent = child.parent;
|
||||
while (parent && parent.notParent) {
|
||||
child = parent;
|
||||
parent = parent.parent;
|
||||
}
|
||||
if (parent) {
|
||||
var i = 0;
|
||||
try {
|
||||
for (var _b = __values(parent.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var node = _c.value;
|
||||
if (node === child) {
|
||||
return i;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_4) throw e_4.error; }
|
||||
}
|
||||
}
|
||||
return null;
|
||||
};
|
||||
AbstractMmlNode.prototype.setTeXclass = function (prev) {
|
||||
this.getPrevClass(prev);
|
||||
return (this.texClass != null ? this : prev);
|
||||
};
|
||||
AbstractMmlNode.prototype.updateTeXclass = function (core) {
|
||||
if (core) {
|
||||
this.prevClass = core.prevClass;
|
||||
this.prevLevel = core.prevLevel;
|
||||
core.prevClass = core.prevLevel = null;
|
||||
this.texClass = core.texClass;
|
||||
}
|
||||
};
|
||||
AbstractMmlNode.prototype.getPrevClass = function (prev) {
|
||||
if (prev) {
|
||||
this.prevClass = prev.texClass;
|
||||
this.prevLevel = prev.attributes.get('scriptlevel');
|
||||
}
|
||||
};
|
||||
AbstractMmlNode.prototype.texSpacing = function () {
|
||||
var prevClass = (this.prevClass != null ? this.prevClass : exports.TEXCLASS.NONE);
|
||||
var texClass = this.texClass || exports.TEXCLASS.ORD;
|
||||
if (prevClass === exports.TEXCLASS.NONE || texClass === exports.TEXCLASS.NONE) {
|
||||
return '';
|
||||
}
|
||||
if (prevClass === exports.TEXCLASS.VCENTER) {
|
||||
prevClass = exports.TEXCLASS.ORD;
|
||||
}
|
||||
if (texClass === exports.TEXCLASS.VCENTER) {
|
||||
texClass = exports.TEXCLASS.ORD;
|
||||
}
|
||||
var space = TEXSPACE[prevClass][texClass];
|
||||
if ((this.prevLevel > 0 || this.attributes.get('scriptlevel') > 0) && space >= 0) {
|
||||
return '';
|
||||
}
|
||||
return TEXSPACELENGTH[Math.abs(space)];
|
||||
};
|
||||
AbstractMmlNode.prototype.hasSpacingAttributes = function () {
|
||||
return this.isEmbellished && this.coreMO().hasSpacingAttributes();
|
||||
};
|
||||
AbstractMmlNode.prototype.setInheritedAttributes = function (attributes, display, level, prime) {
|
||||
var e_5, _a;
|
||||
if (attributes === void 0) { attributes = {}; }
|
||||
if (display === void 0) { display = false; }
|
||||
if (level === void 0) { level = 0; }
|
||||
if (prime === void 0) { prime = false; }
|
||||
var defaults = this.attributes.getAllDefaults();
|
||||
try {
|
||||
for (var _b = __values(Object.keys(attributes)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var key = _c.value;
|
||||
if (defaults.hasOwnProperty(key) || AbstractMmlNode.alwaysInherit.hasOwnProperty(key)) {
|
||||
var _d = __read(attributes[key], 2), node = _d[0], value = _d[1];
|
||||
var noinherit = (AbstractMmlNode.noInherit[node] || {})[this.kind] || {};
|
||||
if (!noinherit[key]) {
|
||||
this.attributes.setInherited(key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_5) throw e_5.error; }
|
||||
}
|
||||
var displaystyle = this.attributes.getExplicit('displaystyle');
|
||||
if (displaystyle === undefined) {
|
||||
this.attributes.setInherited('displaystyle', display);
|
||||
}
|
||||
var scriptlevel = this.attributes.getExplicit('scriptlevel');
|
||||
if (scriptlevel === undefined) {
|
||||
this.attributes.setInherited('scriptlevel', level);
|
||||
}
|
||||
if (prime) {
|
||||
this.setProperty('texprimestyle', prime);
|
||||
}
|
||||
var arity = this.arity;
|
||||
if (arity >= 0 && arity !== Infinity && ((arity === 1 && this.childNodes.length === 0) ||
|
||||
(arity !== 1 && this.childNodes.length !== arity))) {
|
||||
if (arity < this.childNodes.length) {
|
||||
this.childNodes = this.childNodes.slice(0, arity);
|
||||
}
|
||||
else {
|
||||
while (this.childNodes.length < arity) {
|
||||
this.appendChild(this.factory.create('mrow'));
|
||||
}
|
||||
}
|
||||
}
|
||||
this.setChildInheritedAttributes(attributes, display, level, prime);
|
||||
};
|
||||
AbstractMmlNode.prototype.setChildInheritedAttributes = function (attributes, display, level, prime) {
|
||||
var e_6, _a;
|
||||
try {
|
||||
for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var child = _c.value;
|
||||
child.setInheritedAttributes(attributes, display, level, prime);
|
||||
}
|
||||
}
|
||||
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_6) throw e_6.error; }
|
||||
}
|
||||
};
|
||||
AbstractMmlNode.prototype.addInheritedAttributes = function (current, attributes) {
|
||||
var e_7, _a;
|
||||
var updated = __assign({}, current);
|
||||
try {
|
||||
for (var _b = __values(Object.keys(attributes)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var name_3 = _c.value;
|
||||
if (name_3 !== 'displaystyle' && name_3 !== 'scriptlevel' && name_3 !== 'style') {
|
||||
updated[name_3] = [this.kind, attributes[name_3]];
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_7) throw e_7.error; }
|
||||
}
|
||||
return updated;
|
||||
};
|
||||
AbstractMmlNode.prototype.inheritAttributesFrom = function (node) {
|
||||
var attributes = node.attributes;
|
||||
var display = attributes.get('displaystyle');
|
||||
var scriptlevel = attributes.get('scriptlevel');
|
||||
var defaults = (!attributes.isSet('mathsize') ? {} : {
|
||||
mathsize: ['math', attributes.get('mathsize')]
|
||||
});
|
||||
var prime = node.getProperty('texprimestyle') || false;
|
||||
this.setInheritedAttributes(defaults, display, scriptlevel, prime);
|
||||
};
|
||||
AbstractMmlNode.prototype.verifyTree = function (options) {
|
||||
if (options === void 0) { options = null; }
|
||||
if (options === null) {
|
||||
return;
|
||||
}
|
||||
this.verifyAttributes(options);
|
||||
var arity = this.arity;
|
||||
if (options['checkArity']) {
|
||||
if (arity >= 0 && arity !== Infinity &&
|
||||
((arity === 1 && this.childNodes.length === 0) ||
|
||||
(arity !== 1 && this.childNodes.length !== arity))) {
|
||||
this.mError('Wrong number of children for "' + this.kind + '" node', options, true);
|
||||
}
|
||||
}
|
||||
this.verifyChildren(options);
|
||||
};
|
||||
AbstractMmlNode.prototype.verifyAttributes = function (options) {
|
||||
var e_8, _a;
|
||||
if (options['checkAttributes']) {
|
||||
var attributes = this.attributes;
|
||||
var bad = [];
|
||||
try {
|
||||
for (var _b = __values(attributes.getExplicitNames()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var name_4 = _c.value;
|
||||
if (name_4.substr(0, 5) !== 'data-' && attributes.getDefault(name_4) === undefined &&
|
||||
!name_4.match(/^(?:class|style|id|(?:xlink:)?href)$/)) {
|
||||
bad.push(name_4);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e_8_1) { e_8 = { error: e_8_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_8) throw e_8.error; }
|
||||
}
|
||||
if (bad.length) {
|
||||
this.mError('Unknown attributes for ' + this.kind + ' node: ' + bad.join(', '), options);
|
||||
}
|
||||
}
|
||||
};
|
||||
AbstractMmlNode.prototype.verifyChildren = function (options) {
|
||||
var e_9, _a;
|
||||
try {
|
||||
for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var child = _c.value;
|
||||
child.verifyTree(options);
|
||||
}
|
||||
}
|
||||
catch (e_9_1) { e_9 = { error: e_9_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_9) throw e_9.error; }
|
||||
}
|
||||
};
|
||||
AbstractMmlNode.prototype.mError = function (message, options, short) {
|
||||
if (short === void 0) { short = false; }
|
||||
if (this.parent && this.parent.isKind('merror')) {
|
||||
return null;
|
||||
}
|
||||
var merror = this.factory.create('merror');
|
||||
merror.attributes.set('data-mjx-message', message);
|
||||
if (options['fullErrors'] || short) {
|
||||
var mtext = this.factory.create('mtext');
|
||||
var text = this.factory.create('text');
|
||||
text.setText(options['fullErrors'] ? message : this.kind);
|
||||
mtext.appendChild(text);
|
||||
merror.appendChild(mtext);
|
||||
this.parent.replaceChild(merror, this);
|
||||
}
|
||||
else {
|
||||
this.parent.replaceChild(merror, this);
|
||||
merror.appendChild(this);
|
||||
}
|
||||
return merror;
|
||||
};
|
||||
AbstractMmlNode.defaults = {
|
||||
mathbackground: Attributes_js_1.INHERIT,
|
||||
mathcolor: Attributes_js_1.INHERIT,
|
||||
mathsize: Attributes_js_1.INHERIT,
|
||||
dir: Attributes_js_1.INHERIT
|
||||
};
|
||||
AbstractMmlNode.noInherit = {
|
||||
mstyle: {
|
||||
mpadded: { width: true, height: true, depth: true, lspace: true, voffset: true },
|
||||
mtable: { width: true, height: true, depth: true, align: true }
|
||||
},
|
||||
maligngroup: {
|
||||
mrow: { groupalign: true },
|
||||
mtable: { groupalign: true }
|
||||
}
|
||||
};
|
||||
AbstractMmlNode.alwaysInherit = {
|
||||
scriptminsize: true,
|
||||
scriptsizemultiplier: true
|
||||
};
|
||||
AbstractMmlNode.verifyDefaults = {
|
||||
checkArity: true,
|
||||
checkAttributes: false,
|
||||
fullErrors: false,
|
||||
fixMmultiscripts: true,
|
||||
fixMtables: true
|
||||
};
|
||||
return AbstractMmlNode;
|
||||
}(Node_js_1.AbstractNode));
|
||||
exports.AbstractMmlNode = AbstractMmlNode;
|
||||
var AbstractMmlTokenNode = (function (_super) {
|
||||
__extends(AbstractMmlTokenNode, _super);
|
||||
function AbstractMmlTokenNode() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
Object.defineProperty(AbstractMmlTokenNode.prototype, "isToken", {
|
||||
get: function () {
|
||||
return true;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
AbstractMmlTokenNode.prototype.getText = function () {
|
||||
var e_10, _a;
|
||||
var text = '';
|
||||
try {
|
||||
for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var child = _c.value;
|
||||
if (child instanceof TextNode) {
|
||||
text += child.getText();
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e_10_1) { e_10 = { error: e_10_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_10) throw e_10.error; }
|
||||
}
|
||||
return text;
|
||||
};
|
||||
AbstractMmlTokenNode.prototype.setChildInheritedAttributes = function (attributes, display, level, prime) {
|
||||
var e_11, _a;
|
||||
try {
|
||||
for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var child = _c.value;
|
||||
if (child instanceof AbstractMmlNode) {
|
||||
child.setInheritedAttributes(attributes, display, level, prime);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e_11_1) { e_11 = { error: e_11_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_11) throw e_11.error; }
|
||||
}
|
||||
};
|
||||
AbstractMmlTokenNode.prototype.walkTree = function (func, data) {
|
||||
var e_12, _a;
|
||||
func(this, data);
|
||||
try {
|
||||
for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var child = _c.value;
|
||||
if (child instanceof AbstractMmlNode) {
|
||||
child.walkTree(func, data);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e_12_1) { e_12 = { error: e_12_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_12) throw e_12.error; }
|
||||
}
|
||||
return data;
|
||||
};
|
||||
AbstractMmlTokenNode.defaults = __assign(__assign({}, AbstractMmlNode.defaults), { mathvariant: 'normal', mathsize: Attributes_js_1.INHERIT });
|
||||
return AbstractMmlTokenNode;
|
||||
}(AbstractMmlNode));
|
||||
exports.AbstractMmlTokenNode = AbstractMmlTokenNode;
|
||||
var AbstractMmlLayoutNode = (function (_super) {
|
||||
__extends(AbstractMmlLayoutNode, _super);
|
||||
function AbstractMmlLayoutNode() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
Object.defineProperty(AbstractMmlLayoutNode.prototype, "isSpacelike", {
|
||||
get: function () {
|
||||
return this.childNodes[0].isSpacelike;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(AbstractMmlLayoutNode.prototype, "isEmbellished", {
|
||||
get: function () {
|
||||
return this.childNodes[0].isEmbellished;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(AbstractMmlLayoutNode.prototype, "arity", {
|
||||
get: function () {
|
||||
return -1;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
AbstractMmlLayoutNode.prototype.core = function () {
|
||||
return this.childNodes[0];
|
||||
};
|
||||
AbstractMmlLayoutNode.prototype.coreMO = function () {
|
||||
return this.childNodes[0].coreMO();
|
||||
};
|
||||
AbstractMmlLayoutNode.prototype.setTeXclass = function (prev) {
|
||||
prev = this.childNodes[0].setTeXclass(prev);
|
||||
this.updateTeXclass(this.childNodes[0]);
|
||||
return prev;
|
||||
};
|
||||
AbstractMmlLayoutNode.defaults = AbstractMmlNode.defaults;
|
||||
return AbstractMmlLayoutNode;
|
||||
}(AbstractMmlNode));
|
||||
exports.AbstractMmlLayoutNode = AbstractMmlLayoutNode;
|
||||
var AbstractMmlBaseNode = (function (_super) {
|
||||
__extends(AbstractMmlBaseNode, _super);
|
||||
function AbstractMmlBaseNode() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
Object.defineProperty(AbstractMmlBaseNode.prototype, "isEmbellished", {
|
||||
get: function () {
|
||||
return this.childNodes[0].isEmbellished;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
AbstractMmlBaseNode.prototype.core = function () {
|
||||
return this.childNodes[0];
|
||||
};
|
||||
AbstractMmlBaseNode.prototype.coreMO = function () {
|
||||
return this.childNodes[0].coreMO();
|
||||
};
|
||||
AbstractMmlBaseNode.prototype.setTeXclass = function (prev) {
|
||||
var e_13, _a;
|
||||
this.getPrevClass(prev);
|
||||
this.texClass = exports.TEXCLASS.ORD;
|
||||
var base = this.childNodes[0];
|
||||
if (base) {
|
||||
if (this.isEmbellished || base.isKind('mi')) {
|
||||
prev = base.setTeXclass(prev);
|
||||
this.updateTeXclass(this.core());
|
||||
}
|
||||
else {
|
||||
base.setTeXclass(null);
|
||||
prev = this;
|
||||
}
|
||||
}
|
||||
else {
|
||||
prev = this;
|
||||
}
|
||||
try {
|
||||
for (var _b = __values(this.childNodes.slice(1)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var child = _c.value;
|
||||
if (child) {
|
||||
child.setTeXclass(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e_13_1) { e_13 = { error: e_13_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_13) throw e_13.error; }
|
||||
}
|
||||
return prev;
|
||||
};
|
||||
AbstractMmlBaseNode.defaults = AbstractMmlNode.defaults;
|
||||
return AbstractMmlBaseNode;
|
||||
}(AbstractMmlNode));
|
||||
exports.AbstractMmlBaseNode = AbstractMmlBaseNode;
|
||||
var AbstractMmlEmptyNode = (function (_super) {
|
||||
__extends(AbstractMmlEmptyNode, _super);
|
||||
function AbstractMmlEmptyNode() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
Object.defineProperty(AbstractMmlEmptyNode.prototype, "isToken", {
|
||||
get: function () {
|
||||
return false;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(AbstractMmlEmptyNode.prototype, "isEmbellished", {
|
||||
get: function () {
|
||||
return false;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(AbstractMmlEmptyNode.prototype, "isSpacelike", {
|
||||
get: function () {
|
||||
return false;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(AbstractMmlEmptyNode.prototype, "linebreakContainer", {
|
||||
get: function () {
|
||||
return false;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(AbstractMmlEmptyNode.prototype, "hasNewLine", {
|
||||
get: function () {
|
||||
return false;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(AbstractMmlEmptyNode.prototype, "arity", {
|
||||
get: function () {
|
||||
return 0;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(AbstractMmlEmptyNode.prototype, "isInferred", {
|
||||
get: function () {
|
||||
return false;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(AbstractMmlEmptyNode.prototype, "notParent", {
|
||||
get: function () {
|
||||
return false;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(AbstractMmlEmptyNode.prototype, "Parent", {
|
||||
get: function () {
|
||||
return this.parent;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(AbstractMmlEmptyNode.prototype, "texClass", {
|
||||
get: function () {
|
||||
return exports.TEXCLASS.NONE;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(AbstractMmlEmptyNode.prototype, "prevClass", {
|
||||
get: function () {
|
||||
return exports.TEXCLASS.NONE;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(AbstractMmlEmptyNode.prototype, "prevLevel", {
|
||||
get: function () {
|
||||
return 0;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
AbstractMmlEmptyNode.prototype.hasSpacingAttributes = function () {
|
||||
return false;
|
||||
};
|
||||
Object.defineProperty(AbstractMmlEmptyNode.prototype, "attributes", {
|
||||
get: function () {
|
||||
return null;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
AbstractMmlEmptyNode.prototype.core = function () {
|
||||
return this;
|
||||
};
|
||||
AbstractMmlEmptyNode.prototype.coreMO = function () {
|
||||
return this;
|
||||
};
|
||||
AbstractMmlEmptyNode.prototype.coreIndex = function () {
|
||||
return 0;
|
||||
};
|
||||
AbstractMmlEmptyNode.prototype.childPosition = function () {
|
||||
return 0;
|
||||
};
|
||||
AbstractMmlEmptyNode.prototype.setTeXclass = function (prev) {
|
||||
return prev;
|
||||
};
|
||||
AbstractMmlEmptyNode.prototype.texSpacing = function () {
|
||||
return '';
|
||||
};
|
||||
AbstractMmlEmptyNode.prototype.setInheritedAttributes = function (_attributes, _display, _level, _prime) { };
|
||||
AbstractMmlEmptyNode.prototype.inheritAttributesFrom = function (_node) { };
|
||||
AbstractMmlEmptyNode.prototype.verifyTree = function (_options) { };
|
||||
AbstractMmlEmptyNode.prototype.mError = function (_message, _options, _short) {
|
||||
if (_short === void 0) { _short = false; }
|
||||
return null;
|
||||
};
|
||||
return AbstractMmlEmptyNode;
|
||||
}(Node_js_1.AbstractEmptyNode));
|
||||
exports.AbstractMmlEmptyNode = AbstractMmlEmptyNode;
|
||||
var TextNode = (function (_super) {
|
||||
__extends(TextNode, _super);
|
||||
function TextNode() {
|
||||
var _this = _super !== null && _super.apply(this, arguments) || this;
|
||||
_this.text = '';
|
||||
return _this;
|
||||
}
|
||||
Object.defineProperty(TextNode.prototype, "kind", {
|
||||
get: function () {
|
||||
return 'text';
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
TextNode.prototype.getText = function () {
|
||||
return this.text;
|
||||
};
|
||||
TextNode.prototype.setText = function (text) {
|
||||
this.text = text;
|
||||
return this;
|
||||
};
|
||||
TextNode.prototype.copy = function () {
|
||||
return this.factory.create(this.kind).setText(this.getText());
|
||||
};
|
||||
TextNode.prototype.toString = function () {
|
||||
return this.text;
|
||||
};
|
||||
return TextNode;
|
||||
}(AbstractMmlEmptyNode));
|
||||
exports.TextNode = TextNode;
|
||||
var XMLNode = (function (_super) {
|
||||
__extends(XMLNode, _super);
|
||||
function XMLNode() {
|
||||
var _this = _super !== null && _super.apply(this, arguments) || this;
|
||||
_this.xml = null;
|
||||
_this.adaptor = null;
|
||||
return _this;
|
||||
}
|
||||
Object.defineProperty(XMLNode.prototype, "kind", {
|
||||
get: function () {
|
||||
return 'XML';
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
XMLNode.prototype.getXML = function () {
|
||||
return this.xml;
|
||||
};
|
||||
XMLNode.prototype.setXML = function (xml, adaptor) {
|
||||
if (adaptor === void 0) { adaptor = null; }
|
||||
this.xml = xml;
|
||||
this.adaptor = adaptor;
|
||||
return this;
|
||||
};
|
||||
XMLNode.prototype.getSerializedXML = function () {
|
||||
return this.adaptor.serializeXML(this.xml);
|
||||
};
|
||||
XMLNode.prototype.copy = function () {
|
||||
return this.factory.create(this.kind).setXML(this.adaptor.clone(this.xml));
|
||||
};
|
||||
XMLNode.prototype.toString = function () {
|
||||
return 'XML data';
|
||||
};
|
||||
return XMLNode;
|
||||
}(AbstractMmlEmptyNode));
|
||||
exports.XMLNode = XMLNode;
|
||||
//# sourceMappingURL=MmlNode.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/MmlNode.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/MmlNode.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
13
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/TeXAtom.d.ts
generated
vendored
Normal file
13
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/TeXAtom.d.ts
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { MmlFactory } from '../MmlFactory.js';
|
||||
import { PropertyList } from '../../Tree/Node.js';
|
||||
import { AbstractMmlBaseNode, MmlNode } from '../MmlNode.js';
|
||||
export declare class TeXAtom extends AbstractMmlBaseNode {
|
||||
static defaults: PropertyList;
|
||||
protected texclass: number;
|
||||
get kind(): string;
|
||||
get arity(): number;
|
||||
get notParent(): boolean;
|
||||
constructor(factory: MmlFactory, attributes: PropertyList, children: MmlNode[]);
|
||||
setTeXclass(prev: MmlNode): MmlNode;
|
||||
adjustTeXclass(prev: MmlNode): MmlNode;
|
||||
}
|
||||
73
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/TeXAtom.js
generated
vendored
Normal file
73
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/TeXAtom.js
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
"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 __());
|
||||
};
|
||||
})();
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.TeXAtom = void 0;
|
||||
var MmlNode_js_1 = require("../MmlNode.js");
|
||||
var mo_js_1 = require("./mo.js");
|
||||
var TeXAtom = (function (_super) {
|
||||
__extends(TeXAtom, _super);
|
||||
function TeXAtom(factory, attributes, children) {
|
||||
var _this = _super.call(this, factory, attributes, children) || this;
|
||||
_this.texclass = MmlNode_js_1.TEXCLASS.ORD;
|
||||
_this.setProperty('texClass', _this.texClass);
|
||||
return _this;
|
||||
}
|
||||
Object.defineProperty(TeXAtom.prototype, "kind", {
|
||||
get: function () {
|
||||
return 'TeXAtom';
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(TeXAtom.prototype, "arity", {
|
||||
get: function () {
|
||||
return -1;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(TeXAtom.prototype, "notParent", {
|
||||
get: function () {
|
||||
return this.childNodes[0] && this.childNodes[0].childNodes.length === 1;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
TeXAtom.prototype.setTeXclass = function (prev) {
|
||||
this.childNodes[0].setTeXclass(null);
|
||||
return this.adjustTeXclass(prev);
|
||||
};
|
||||
TeXAtom.prototype.adjustTeXclass = function (prev) {
|
||||
return prev;
|
||||
};
|
||||
TeXAtom.defaults = __assign({}, MmlNode_js_1.AbstractMmlBaseNode.defaults);
|
||||
return TeXAtom;
|
||||
}(MmlNode_js_1.AbstractMmlBaseNode));
|
||||
exports.TeXAtom = TeXAtom;
|
||||
TeXAtom.prototype.adjustTeXclass = mo_js_1.MmlMo.prototype.adjustTeXclass;
|
||||
//# sourceMappingURL=TeXAtom.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/TeXAtom.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/TeXAtom.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"TeXAtom.js","sourceRoot":"","sources":["../../../../ts/core/MmlTree/MmlNodes/TeXAtom.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,4CAAqE;AACrE,iCAA8B;AAO9B;IAA6B,2BAAmB;IAwC9C,iBAAY,OAAmB,EAAE,UAAwB,EAAE,QAAmB;QAA9E,YACE,kBAAM,OAAO,EAAE,UAAU,EAAE,QAAQ,CAAC,SAErC;QA/BS,cAAQ,GAAG,qBAAQ,CAAC,GAAG,CAAC;QA8BhC,KAAI,CAAC,WAAW,CAAC,UAAU,EAAE,KAAI,CAAC,QAAQ,CAAC,CAAC;;IAC9C,CAAC;IA1BD,sBAAW,yBAAI;aAAf;YACE,OAAO,SAAS,CAAC;QACnB,CAAC;;;OAAA;IAMD,sBAAW,0BAAK;aAAhB;YACE,OAAO,CAAC,CAAC,CAAC;QACZ,CAAC;;;OAAA;IAMD,sBAAW,8BAAS;aAApB;YACE,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,CAAC;QAC1E,CAAC;;;OAAA;IAaM,6BAAW,GAAlB,UAAmB,IAAa;QAC9B,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACrC,OAAO,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAOM,gCAAc,GAArB,UAAsB,IAAa;QACjC,OAAO,IAAI,CAAC;IACd,CAAC;IAvDa,gBAAQ,gBACjB,gCAAmB,CAAC,QAAQ,EAC/B;IAuDJ,cAAC;CAAA,AA9DD,CAA6B,gCAAmB,GA8D/C;AA9DY,0BAAO;AAkEpB,OAAO,CAAC,SAAS,CAAC,cAAc,GAAG,aAAK,CAAC,SAAS,CAAC,cAAc,CAAC"}
|
||||
15
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/maction.d.ts
generated
vendored
Normal file
15
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/maction.d.ts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { PropertyList } from '../../Tree/Node.js';
|
||||
import { MmlNode, AbstractMmlNode } from '../MmlNode.js';
|
||||
export declare class MmlMaction extends AbstractMmlNode {
|
||||
static defaults: PropertyList;
|
||||
get kind(): string;
|
||||
get arity(): number;
|
||||
get selected(): MmlNode;
|
||||
get isEmbellished(): boolean;
|
||||
get isSpacelike(): boolean;
|
||||
core(): MmlNode;
|
||||
coreMO(): MmlNode;
|
||||
protected verifyAttributes(options: PropertyList): void;
|
||||
setTeXclass(prev: MmlNode): MmlNode;
|
||||
nextToggleSelection(): void;
|
||||
}
|
||||
107
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/maction.js
generated
vendored
Normal file
107
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/maction.js
generated
vendored
Normal file
@@ -0,0 +1,107 @@
|
||||
"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 __());
|
||||
};
|
||||
})();
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MmlMaction = void 0;
|
||||
var MmlNode_js_1 = require("../MmlNode.js");
|
||||
var MmlMaction = (function (_super) {
|
||||
__extends(MmlMaction, _super);
|
||||
function MmlMaction() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
Object.defineProperty(MmlMaction.prototype, "kind", {
|
||||
get: function () {
|
||||
return 'maction';
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MmlMaction.prototype, "arity", {
|
||||
get: function () {
|
||||
return 1;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MmlMaction.prototype, "selected", {
|
||||
get: function () {
|
||||
var selection = this.attributes.get('selection');
|
||||
var i = Math.max(1, Math.min(this.childNodes.length, selection)) - 1;
|
||||
return this.childNodes[i] || this.factory.create('mrow');
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MmlMaction.prototype, "isEmbellished", {
|
||||
get: function () {
|
||||
return this.selected.isEmbellished;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MmlMaction.prototype, "isSpacelike", {
|
||||
get: function () {
|
||||
return this.selected.isSpacelike;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
MmlMaction.prototype.core = function () {
|
||||
return this.selected.core();
|
||||
};
|
||||
MmlMaction.prototype.coreMO = function () {
|
||||
return this.selected.coreMO();
|
||||
};
|
||||
MmlMaction.prototype.verifyAttributes = function (options) {
|
||||
_super.prototype.verifyAttributes.call(this, options);
|
||||
if (this.attributes.get('actiontype') !== 'toggle' &&
|
||||
this.attributes.getExplicit('selection') !== undefined) {
|
||||
var attributes = this.attributes.getAllAttributes();
|
||||
delete attributes.selection;
|
||||
}
|
||||
};
|
||||
MmlMaction.prototype.setTeXclass = function (prev) {
|
||||
if (this.attributes.get('actiontype') === 'tooltip' && this.childNodes[1]) {
|
||||
this.childNodes[1].setTeXclass(null);
|
||||
}
|
||||
var selected = this.selected;
|
||||
prev = selected.setTeXclass(prev);
|
||||
this.updateTeXclass(selected);
|
||||
return prev;
|
||||
};
|
||||
MmlMaction.prototype.nextToggleSelection = function () {
|
||||
var selection = Math.max(1, this.attributes.get('selection') + 1);
|
||||
if (selection > this.childNodes.length) {
|
||||
selection = 1;
|
||||
}
|
||||
this.attributes.set('selection', selection);
|
||||
};
|
||||
MmlMaction.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlNode.defaults), { actiontype: 'toggle', selection: 1 });
|
||||
return MmlMaction;
|
||||
}(MmlNode_js_1.AbstractMmlNode));
|
||||
exports.MmlMaction = MmlMaction;
|
||||
//# sourceMappingURL=maction.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/maction.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/maction.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"maction.js","sourceRoot":"","sources":["../../../../ts/core/MmlTree/MmlNodes/maction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,4CAAuD;AAOvD;IAAgC,8BAAe;IAA/C;;IAsGA,CAAC;IAxFC,sBAAW,4BAAI;aAAf;YAC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AW,GAAlB,UAAmB,IAAa;QAC9B,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,YAAY,CAAC,KAAK,SAAS,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;YACzE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;SACtC;QACD,IAAI,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC7B,IAAI,GAAG,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAClC,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;QAC9B,OAAO,IAAI,CAAC;IACd,CAAC;IAKM,wCAAmB,GAA1B;QACE,IAAI,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,WAAW,CAAY,GAAG,CAAC,CAAC,CAAC;QAC9E,IAAI,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;YACtC,SAAS,GAAG,CAAC,CAAC;SACf;QACD,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;IAC9C,CAAC;IA/Fa,mBAAQ,yBACjB,4BAAe,CAAC,QAAQ,KAC3B,UAAU,EAAE,QAAQ,EACpB,SAAS,EAAE,CAAC,IACZ;IA6FJ,iBAAC;CAAA,AAtGD,CAAgC,4BAAe,GAsG9C;AAtGY,gCAAU"}
|
||||
8
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/maligngroup.d.ts
generated
vendored
Normal file
8
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/maligngroup.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { PropertyList } from '../../Tree/Node.js';
|
||||
import { AbstractMmlLayoutNode, AttributeList } from '../MmlNode.js';
|
||||
export declare class MmlMaligngroup extends AbstractMmlLayoutNode {
|
||||
static defaults: PropertyList;
|
||||
get kind(): string;
|
||||
get isSpacelike(): boolean;
|
||||
protected setChildInheritedAttributes(attributes: AttributeList, display: boolean, level: number, prime: boolean): void;
|
||||
}
|
||||
59
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/maligngroup.js
generated
vendored
Normal file
59
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/maligngroup.js
generated
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
"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 __());
|
||||
};
|
||||
})();
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MmlMaligngroup = void 0;
|
||||
var MmlNode_js_1 = require("../MmlNode.js");
|
||||
var Attributes_js_1 = require("../Attributes.js");
|
||||
var MmlMaligngroup = (function (_super) {
|
||||
__extends(MmlMaligngroup, _super);
|
||||
function MmlMaligngroup() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
Object.defineProperty(MmlMaligngroup.prototype, "kind", {
|
||||
get: function () {
|
||||
return 'maligngroup';
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MmlMaligngroup.prototype, "isSpacelike", {
|
||||
get: function () {
|
||||
return true;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
MmlMaligngroup.prototype.setChildInheritedAttributes = function (attributes, display, level, prime) {
|
||||
attributes = this.addInheritedAttributes(attributes, this.attributes.getAllAttributes());
|
||||
_super.prototype.setChildInheritedAttributes.call(this, attributes, display, level, prime);
|
||||
};
|
||||
MmlMaligngroup.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlLayoutNode.defaults), { groupalign: Attributes_js_1.INHERIT });
|
||||
return MmlMaligngroup;
|
||||
}(MmlNode_js_1.AbstractMmlLayoutNode));
|
||||
exports.MmlMaligngroup = MmlMaligngroup;
|
||||
//# sourceMappingURL=maligngroup.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/maligngroup.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/maligngroup.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"maligngroup.js","sourceRoot":"","sources":["../../../../ts/core/MmlTree/MmlNodes/maligngroup.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,4CAAmE;AACnE,kDAAyC;AAOzC;IAAoC,kCAAqB;IAAzD;;IAkCA,CAAC;IArBC,sBAAW,gCAAI;aAAf;YACE,OAAO,aAAa,CAAC;QACvB,CAAC;;;OAAA;IAMD,sBAAW,uCAAW;aAAtB;YACE,OAAO,IAAI,CAAC;QACd,CAAC;;;OAAA;IAMS,oDAA2B,GAArC,UAAsC,UAAyB,EAAE,OAAgB,EAAE,KAAa,EAAE,KAAc;QAC9G,UAAU,GAAG,IAAI,CAAC,sBAAsB,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAC,CAAC;QACzF,iBAAM,2BAA2B,YAAC,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACvE,CAAC;IA3Ba,uBAAQ,yBACjB,kCAAqB,CAAC,QAAQ,KACjC,UAAU,EAAE,uBAAO,IACnB;IA0BJ,qBAAC;CAAA,AAlCD,CAAoC,kCAAqB,GAkCxD;AAlCY,wCAAc"}
|
||||
8
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/malignmark.d.ts
generated
vendored
Normal file
8
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/malignmark.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { PropertyList } from '../../Tree/Node.js';
|
||||
import { AbstractMmlNode } from '../MmlNode.js';
|
||||
export declare class MmlMalignmark extends AbstractMmlNode {
|
||||
static defaults: PropertyList;
|
||||
get kind(): string;
|
||||
get arity(): number;
|
||||
get isSpacelike(): boolean;
|
||||
}
|
||||
61
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/malignmark.js
generated
vendored
Normal file
61
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/malignmark.js
generated
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
"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 __());
|
||||
};
|
||||
})();
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MmlMalignmark = void 0;
|
||||
var MmlNode_js_1 = require("../MmlNode.js");
|
||||
var MmlMalignmark = (function (_super) {
|
||||
__extends(MmlMalignmark, _super);
|
||||
function MmlMalignmark() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
Object.defineProperty(MmlMalignmark.prototype, "kind", {
|
||||
get: function () {
|
||||
return 'malignmark';
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MmlMalignmark.prototype, "arity", {
|
||||
get: function () {
|
||||
return 0;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MmlMalignmark.prototype, "isSpacelike", {
|
||||
get: function () {
|
||||
return true;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
MmlMalignmark.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlNode.defaults), { edge: 'left' });
|
||||
return MmlMalignmark;
|
||||
}(MmlNode_js_1.AbstractMmlNode));
|
||||
exports.MmlMalignmark = MmlMalignmark;
|
||||
//# sourceMappingURL=malignmark.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/malignmark.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/malignmark.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"malignmark.js","sourceRoot":"","sources":["../../../../ts/core/MmlTree/MmlNodes/malignmark.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,4CAA8C;AAO9C;IAAmC,iCAAe;IAAlD;;IAiCA,CAAC;IApBC,sBAAW,+BAAI;aAAf;YACE,OAAO,YAAY,CAAC;QACtB,CAAC;;;OAAA;IAMD,sBAAW,gCAAK;aAAhB;YACE,OAAO,CAAC,CAAC;QACX,CAAC;;;OAAA;IAMD,sBAAW,sCAAW;aAAtB;YACE,OAAO,IAAI,CAAC;QACd,CAAC;;;OAAA;IA1Ba,sBAAQ,yBACjB,4BAAe,CAAC,QAAQ,KAC3B,IAAI,EAAE,MAAM,IACZ;IAyBJ,oBAAC;CAAA,AAjCD,CAAmC,4BAAe,GAiCjD;AAjCY,sCAAa"}
|
||||
8
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/math.d.ts
generated
vendored
Normal file
8
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/math.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { PropertyList } from '../../Tree/Node.js';
|
||||
import { AbstractMmlLayoutNode, AttributeList } from '../MmlNode.js';
|
||||
export declare class MmlMath extends AbstractMmlLayoutNode {
|
||||
static defaults: PropertyList;
|
||||
get kind(): string;
|
||||
get linebreakContainer(): boolean;
|
||||
protected setChildInheritedAttributes(attributes: AttributeList, display: boolean, level: number, prime: boolean): void;
|
||||
}
|
||||
66
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/math.js
generated
vendored
Normal file
66
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/math.js
generated
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
"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 __());
|
||||
};
|
||||
})();
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MmlMath = void 0;
|
||||
var MmlNode_js_1 = require("../MmlNode.js");
|
||||
var MmlMath = (function (_super) {
|
||||
__extends(MmlMath, _super);
|
||||
function MmlMath() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
Object.defineProperty(MmlMath.prototype, "kind", {
|
||||
get: function () {
|
||||
return 'math';
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MmlMath.prototype, "linebreakContainer", {
|
||||
get: function () {
|
||||
return true;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
MmlMath.prototype.setChildInheritedAttributes = function (attributes, display, level, prime) {
|
||||
if (this.attributes.get('mode') === 'display') {
|
||||
this.attributes.setInherited('display', 'block');
|
||||
}
|
||||
attributes = this.addInheritedAttributes(attributes, this.attributes.getAllAttributes());
|
||||
display = (!!this.attributes.get('displaystyle') ||
|
||||
(!this.attributes.get('displaystyle') && this.attributes.get('display') === 'block'));
|
||||
this.attributes.setInherited('displaystyle', display);
|
||||
level = (this.attributes.get('scriptlevel') ||
|
||||
this.constructor.defaults['scriptlevel']);
|
||||
_super.prototype.setChildInheritedAttributes.call(this, attributes, display, level, prime);
|
||||
};
|
||||
MmlMath.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlLayoutNode.defaults), { mathvariant: 'normal', mathsize: 'normal', mathcolor: '', mathbackground: 'transparent', dir: 'ltr', scriptlevel: 0, displaystyle: false, display: 'inline', maxwidth: '', overflow: 'linebreak', altimg: '', 'altimg-width': '', 'altimg-height': '', 'altimg-valign': '', alttext: '', cdgroup: '', scriptsizemultiplier: 1 / Math.sqrt(2), scriptminsize: '8px', infixlinebreakstyle: 'before', lineleading: '1ex', linebreakmultchar: '\u2062', indentshift: 'auto', indentalign: 'auto', indenttarget: '', indentalignfirst: 'indentalign', indentshiftfirst: 'indentshift', indentalignlast: 'indentalign', indentshiftlast: 'indentshift' });
|
||||
return MmlMath;
|
||||
}(MmlNode_js_1.AbstractMmlLayoutNode));
|
||||
exports.MmlMath = MmlMath;
|
||||
//# sourceMappingURL=math.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/math.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/math.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"math.js","sourceRoot":"","sources":["../../../../ts/core/MmlTree/MmlNodes/math.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,4CAAmE;AAOnE;IAA6B,2BAAqB;IAAlD;;IAwEA,CAAC;IAhCC,sBAAW,yBAAI;aAAf;YACE,OAAO,MAAM,CAAC;QAChB,CAAC;;;OAAA;IAMD,sBAAW,uCAAkB;aAA7B;YACE,OAAO,IAAI,CAAC;QACd,CAAC;;;OAAA;IASS,6CAA2B,GAArC,UAAsC,UAAyB,EAAE,OAAgB,EAAE,KAAa,EAAE,KAAc;QAC9G,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,SAAS,EAAE;YAC7C,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;SAClD;QACD,UAAU,GAAG,IAAI,CAAC,sBAAsB,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC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Y,EAAE,EAAE,EAChB,gBAAgB,EAAE,aAAa,EAC/B,gBAAgB,EAAE,aAAa,EAC/B,eAAe,EAAG,aAAa,EAC/B,eAAe,EAAG,aAAa,IAC/B;IAqCJ,cAAC;CAAA,AAxED,CAA6B,kCAAqB,GAwEjD;AAxEY,0BAAO"}
|
||||
9
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mathchoice.d.ts
generated
vendored
Normal file
9
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mathchoice.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { PropertyList } from '../../Tree/Node.js';
|
||||
import { AbstractMmlBaseNode, AttributeList } from '../MmlNode.js';
|
||||
export declare class MathChoice extends AbstractMmlBaseNode {
|
||||
static defaults: PropertyList;
|
||||
get kind(): string;
|
||||
get arity(): number;
|
||||
get notParent(): boolean;
|
||||
setInheritedAttributes(attributes: AttributeList, display: boolean, level: number, prime: boolean): void;
|
||||
}
|
||||
67
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mathchoice.js
generated
vendored
Normal file
67
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mathchoice.js
generated
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
"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 __());
|
||||
};
|
||||
})();
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MathChoice = void 0;
|
||||
var MmlNode_js_1 = require("../MmlNode.js");
|
||||
var MathChoice = (function (_super) {
|
||||
__extends(MathChoice, _super);
|
||||
function MathChoice() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
Object.defineProperty(MathChoice.prototype, "kind", {
|
||||
get: function () {
|
||||
return 'MathChoice';
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MathChoice.prototype, "arity", {
|
||||
get: function () {
|
||||
return 4;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MathChoice.prototype, "notParent", {
|
||||
get: function () {
|
||||
return true;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
MathChoice.prototype.setInheritedAttributes = function (attributes, display, level, prime) {
|
||||
var selection = (display ? 0 : Math.max(0, Math.min(level, 2)) + 1);
|
||||
var child = this.childNodes[selection] || this.factory.create('mrow');
|
||||
this.parent.replaceChild(child, this);
|
||||
child.setInheritedAttributes(attributes, display, level, prime);
|
||||
};
|
||||
MathChoice.defaults = __assign({}, MmlNode_js_1.AbstractMmlBaseNode.defaults);
|
||||
return MathChoice;
|
||||
}(MmlNode_js_1.AbstractMmlBaseNode));
|
||||
exports.MathChoice = MathChoice;
|
||||
//# sourceMappingURL=mathchoice.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mathchoice.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mathchoice.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"mathchoice.js","sourceRoot":"","sources":["../../../../ts/core/MmlTree/MmlNodes/mathchoice.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,4CAAiE;AAUjE;IAAgC,8BAAmB;IAAnD;;IA6CA,CAAC;IAjCC,sBAAW,4BAAI;aAAf;YACE,OAAO,YAAY,CAAC;QACtB,CAAC;;;OAAA;IAMD,sBAAW,6BAAK;aAAhB;YACE,OAAO,CAAC,CAAC;QACX,CAAC;;;OAAA;IAMD,sBAAW,iCAAS;aAApB;YACE,OAAO,IAAI,CAAC;QACd,CAAC;;;OAAA;IAQM,2CAAsB,GAA7B,UAA8B,UAAyB,EAAE,OAAgB,EAAE,KAAa,EAAE,KAAc;QACtG,IAAM,SAAS,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACtE,IAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACxE,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACtC,KAAK,CAAC,sBAAsB,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClE,CAAC;IAtCa,mBAAQ,gBACjB,gCAAmB,CAAC,QAAQ,EAC/B;IAsCJ,iBAAC;CAAA,AA7CD,CAAgC,gCAAmB,GA6ClD;AA7CY,gCAAU"}
|
||||
10
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/menclose.d.ts
generated
vendored
Normal file
10
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/menclose.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { PropertyList } from '../../Tree/Node.js';
|
||||
import { MmlNode, AbstractMmlNode } from '../MmlNode.js';
|
||||
export declare class MmlMenclose extends AbstractMmlNode {
|
||||
static defaults: PropertyList;
|
||||
protected texclass: number;
|
||||
get kind(): string;
|
||||
get arity(): number;
|
||||
get linebreakContininer(): boolean;
|
||||
setTeXclass(prev: MmlNode): MmlNode;
|
||||
}
|
||||
68
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/menclose.js
generated
vendored
Normal file
68
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/menclose.js
generated
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
"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 __());
|
||||
};
|
||||
})();
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MmlMenclose = void 0;
|
||||
var MmlNode_js_1 = require("../MmlNode.js");
|
||||
var MmlMenclose = (function (_super) {
|
||||
__extends(MmlMenclose, _super);
|
||||
function MmlMenclose() {
|
||||
var _this = _super !== null && _super.apply(this, arguments) || this;
|
||||
_this.texclass = MmlNode_js_1.TEXCLASS.ORD;
|
||||
return _this;
|
||||
}
|
||||
Object.defineProperty(MmlMenclose.prototype, "kind", {
|
||||
get: function () {
|
||||
return 'menclose';
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MmlMenclose.prototype, "arity", {
|
||||
get: function () {
|
||||
return -1;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MmlMenclose.prototype, "linebreakContininer", {
|
||||
get: function () {
|
||||
return true;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
MmlMenclose.prototype.setTeXclass = function (prev) {
|
||||
prev = this.childNodes[0].setTeXclass(prev);
|
||||
this.updateTeXclass(this.childNodes[0]);
|
||||
return prev;
|
||||
};
|
||||
MmlMenclose.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlNode.defaults), { notation: 'longdiv' });
|
||||
return MmlMenclose;
|
||||
}(MmlNode_js_1.AbstractMmlNode));
|
||||
exports.MmlMenclose = MmlMenclose;
|
||||
//# sourceMappingURL=menclose.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/menclose.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/menclose.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"menclose.js","sourceRoot":"","sources":["../../../../ts/core/MmlTree/MmlNodes/menclose.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,4CAAiE;AAOjE;IAAiC,+BAAe;IAAhD;QAAA,qEAgDC;QAnCW,cAAQ,GAAG,qBAAQ,CAAC,GAAG,CAAC;;IAmCpC,CAAC;IA7BC,sBAAW,6BAAI;aAAf;YACE,OAAO,UAAU,CAAC;QACpB,CAAC;;;OAAA;IAMD,sBAAW,8BAAK;aAAhB;YACE,OAAO,CAAC,CAAC,CAAC;QACZ,CAAC;;;OAAA;IAMD,sBAAW,4CAAmB;aAA9B;YACE,OAAO,IAAI,CAAC;QACd,CAAC;;;OAAA;IAKM,iCAAW,GAAlB,UAAmB,IAAa;QAC9B,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC5C,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;QACxC,OAAO,IAAI,CAAC;IACd,CAAC;IAzCa,oBAAQ,yBACjB,4BAAe,CAAC,QAAQ,KAC3B,QAAQ,EAAE,SAAS,IACnB;IAwCJ,kBAAC;CAAA,AAhDD,CAAiC,4BAAe,GAgD/C;AAhDY,kCAAW"}
|
||||
9
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/merror.d.ts
generated
vendored
Normal file
9
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/merror.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { PropertyList } from '../../Tree/Node.js';
|
||||
import { AbstractMmlNode } from '../MmlNode.js';
|
||||
export declare class MmlMerror extends AbstractMmlNode {
|
||||
static defaults: PropertyList;
|
||||
protected texclass: number;
|
||||
get kind(): string;
|
||||
get arity(): number;
|
||||
get linebreakContainer(): boolean;
|
||||
}
|
||||
63
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/merror.js
generated
vendored
Normal file
63
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/merror.js
generated
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
"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 __());
|
||||
};
|
||||
})();
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MmlMerror = void 0;
|
||||
var MmlNode_js_1 = require("../MmlNode.js");
|
||||
var MmlMerror = (function (_super) {
|
||||
__extends(MmlMerror, _super);
|
||||
function MmlMerror() {
|
||||
var _this = _super !== null && _super.apply(this, arguments) || this;
|
||||
_this.texclass = MmlNode_js_1.TEXCLASS.ORD;
|
||||
return _this;
|
||||
}
|
||||
Object.defineProperty(MmlMerror.prototype, "kind", {
|
||||
get: function () {
|
||||
return 'merror';
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MmlMerror.prototype, "arity", {
|
||||
get: function () {
|
||||
return -1;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MmlMerror.prototype, "linebreakContainer", {
|
||||
get: function () {
|
||||
return true;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
MmlMerror.defaults = __assign({}, MmlNode_js_1.AbstractMmlNode.defaults);
|
||||
return MmlMerror;
|
||||
}(MmlNode_js_1.AbstractMmlNode));
|
||||
exports.MmlMerror = MmlMerror;
|
||||
//# sourceMappingURL=merror.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/merror.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/merror.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"merror.js","sourceRoot":"","sources":["../../../../ts/core/MmlTree/MmlNodes/merror.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,4CAAwD;AAOxD;IAA+B,6BAAe;IAA9C;QAAA,qEAqCC;QAzBW,cAAQ,GAAG,qBAAQ,CAAC,GAAG,CAAC;;IAyBpC,CAAC;IApBC,sBAAW,2BAAI;aAAf;YACE,OAAO,QAAQ,CAAC;QAClB,CAAC;;;OAAA;IAMD,sBAAW,4BAAK;aAAhB;YACE,OAAO,CAAC,CAAC,CAAC;QACZ,CAAC;;;OAAA;IAMD,sBAAW,yCAAkB;aAA7B;YACE,OAAO,IAAI,CAAC;QACd,CAAC;;;OAAA;IA9Ba,kBAAQ,gBACjB,4BAAe,CAAC,QAAQ,EAC3B;IA8BJ,gBAAC;CAAA,AArCD,CAA+B,4BAAe,GAqC7C;AArCY,8BAAS"}
|
||||
14
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mfenced.d.ts
generated
vendored
Normal file
14
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mfenced.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import { PropertyList } from '../../Tree/Node.js';
|
||||
import { MmlNode, AbstractMmlNode, AttributeList } from '../MmlNode.js';
|
||||
export declare class MmlMfenced extends AbstractMmlNode {
|
||||
static defaults: PropertyList;
|
||||
protected texclass: number;
|
||||
separators: MmlNode[];
|
||||
open: MmlNode;
|
||||
close: MmlNode;
|
||||
get kind(): string;
|
||||
setTeXclass(prev: MmlNode): MmlNode;
|
||||
protected setChildInheritedAttributes(attributes: AttributeList, display: boolean, level: number, prime: boolean): void;
|
||||
protected addFakeNodes(): void;
|
||||
protected fakeNode(c: string, properties?: PropertyList, texClass?: number): MmlNode;
|
||||
}
|
||||
148
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mfenced.js
generated
vendored
Normal file
148
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mfenced.js
generated
vendored
Normal file
@@ -0,0 +1,148 @@
|
||||
"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 __());
|
||||
};
|
||||
})();
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
var __values = (this && this.__values) || function(o) {
|
||||
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
||||
if (m) return m.call(o);
|
||||
if (o && typeof o.length === "number") return {
|
||||
next: function () {
|
||||
if (o && i >= o.length) o = void 0;
|
||||
return { value: o && o[i++], done: !o };
|
||||
}
|
||||
};
|
||||
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MmlMfenced = void 0;
|
||||
var MmlNode_js_1 = require("../MmlNode.js");
|
||||
var MmlMfenced = (function (_super) {
|
||||
__extends(MmlMfenced, _super);
|
||||
function MmlMfenced() {
|
||||
var _this = _super !== null && _super.apply(this, arguments) || this;
|
||||
_this.texclass = MmlNode_js_1.TEXCLASS.INNER;
|
||||
_this.separators = [];
|
||||
_this.open = null;
|
||||
_this.close = null;
|
||||
return _this;
|
||||
}
|
||||
Object.defineProperty(MmlMfenced.prototype, "kind", {
|
||||
get: function () {
|
||||
return 'mfenced';
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
MmlMfenced.prototype.setTeXclass = function (prev) {
|
||||
this.getPrevClass(prev);
|
||||
if (this.open) {
|
||||
prev = this.open.setTeXclass(prev);
|
||||
}
|
||||
if (this.childNodes[0]) {
|
||||
prev = this.childNodes[0].setTeXclass(prev);
|
||||
}
|
||||
for (var i = 1, m = this.childNodes.length; i < m; i++) {
|
||||
if (this.separators[i - 1]) {
|
||||
prev = this.separators[i - 1].setTeXclass(prev);
|
||||
}
|
||||
if (this.childNodes[i]) {
|
||||
prev = this.childNodes[i].setTeXclass(prev);
|
||||
}
|
||||
}
|
||||
if (this.close) {
|
||||
prev = this.close.setTeXclass(prev);
|
||||
}
|
||||
this.updateTeXclass(this.open);
|
||||
return prev;
|
||||
};
|
||||
MmlMfenced.prototype.setChildInheritedAttributes = function (attributes, display, level, prime) {
|
||||
var e_1, _a;
|
||||
this.addFakeNodes();
|
||||
try {
|
||||
for (var _b = __values([this.open, this.close].concat(this.separators)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var child = _c.value;
|
||||
if (child) {
|
||||
child.setInheritedAttributes(attributes, display, level, prime);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_1) throw e_1.error; }
|
||||
}
|
||||
_super.prototype.setChildInheritedAttributes.call(this, attributes, display, level, prime);
|
||||
};
|
||||
MmlMfenced.prototype.addFakeNodes = function () {
|
||||
var e_2, _a;
|
||||
var _b = this.attributes.getList('open', 'close', 'separators'), open = _b.open, close = _b.close, separators = _b.separators;
|
||||
open = open.replace(/[ \t\n\r]/g, '');
|
||||
close = close.replace(/[ \t\n\r]/g, '');
|
||||
separators = separators.replace(/[ \t\n\r]/g, '');
|
||||
if (open) {
|
||||
this.open = this.fakeNode(open, { fence: true, form: 'prefix' }, MmlNode_js_1.TEXCLASS.OPEN);
|
||||
}
|
||||
if (separators) {
|
||||
while (separators.length < this.childNodes.length - 1) {
|
||||
separators += separators.charAt(separators.length - 1);
|
||||
}
|
||||
var i = 0;
|
||||
try {
|
||||
for (var _c = __values(this.childNodes.slice(1)), _d = _c.next(); !_d.done; _d = _c.next()) {
|
||||
var child = _d.value;
|
||||
if (child) {
|
||||
this.separators.push(this.fakeNode(separators.charAt(i++)));
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
||||
}
|
||||
finally { if (e_2) throw e_2.error; }
|
||||
}
|
||||
}
|
||||
if (close) {
|
||||
this.close = this.fakeNode(close, { fence: true, form: 'postfix' }, MmlNode_js_1.TEXCLASS.CLOSE);
|
||||
}
|
||||
};
|
||||
MmlMfenced.prototype.fakeNode = function (c, properties, texClass) {
|
||||
if (properties === void 0) { properties = {}; }
|
||||
if (texClass === void 0) { texClass = null; }
|
||||
var text = this.factory.create('text').setText(c);
|
||||
var node = this.factory.create('mo', properties, [text]);
|
||||
node.texClass = texClass;
|
||||
node.parent = this;
|
||||
return node;
|
||||
};
|
||||
MmlMfenced.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlNode.defaults), { open: '(', close: ')', separators: ',' });
|
||||
return MmlMfenced;
|
||||
}(MmlNode_js_1.AbstractMmlNode));
|
||||
exports.MmlMfenced = MmlMfenced;
|
||||
//# sourceMappingURL=mfenced.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mfenced.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mfenced.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"mfenced.js","sourceRoot":"","sources":["../../../../ts/core/MmlTree/MmlNodes/mfenced.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,4CAA0F;AAO1F;IAAgC,8BAAe;IAA/C;QAAA,qEAqIC;QAtHW,cAAQ,GAAG,qBAAQ,CAAC,KAAK,CAAC;QAK7B,gBAAU,GAAc,EAAE,CAAC;QAI3B,UAAI,GAAY,IAAI,CAAC;QAIrB,WAAK,GAAY,IAAI,CAAC;;IAyG/B,CAAC;IApGC,sBAAW,4BAAI;aAAf;YACE,OAAO,SAAS,CAAC;QACnB,CAAC;;;OAAA;IAQM,gCAAW,GAAlB,UAAmB,IAAa;QAC9B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QACxB,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;SACpC;QACD,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;YACtB,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;SAC7C;QACD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;YACtD,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE;gBAC1B,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;aACjD;YACD,IAAI,IAAI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,IAAI,EAAE,UAAU,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;QACzD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,OAAO,IAAI,CAAC;IACd,CAAC;IA9Ha,mBAAQ,yBACjB,4BAAe,CAAC,QAAQ,KAC3B,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,GAAG,EACV,UAAU,EAAE,GAAG,IACf;IA2HJ,iBAAC;CAAA,AArID,CAAgC,4BAAe,GAqI9C;AArIY,gCAAU"}
|
||||
10
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mfrac.d.ts
generated
vendored
Normal file
10
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mfrac.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { PropertyList } from '../../Tree/Node.js';
|
||||
import { MmlNode, AbstractMmlBaseNode, AttributeList } from '../MmlNode.js';
|
||||
export declare class MmlMfrac extends AbstractMmlBaseNode {
|
||||
static defaults: PropertyList;
|
||||
get kind(): string;
|
||||
get arity(): number;
|
||||
get linebreakContainer(): boolean;
|
||||
setTeXclass(prev: MmlNode): this;
|
||||
protected setChildInheritedAttributes(attributes: AttributeList, display: boolean, level: number, prime: boolean): void;
|
||||
}
|
||||
97
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mfrac.js
generated
vendored
Normal file
97
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mfrac.js
generated
vendored
Normal file
@@ -0,0 +1,97 @@
|
||||
"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 __());
|
||||
};
|
||||
})();
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
var __values = (this && this.__values) || function(o) {
|
||||
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
||||
if (m) return m.call(o);
|
||||
if (o && typeof o.length === "number") return {
|
||||
next: function () {
|
||||
if (o && i >= o.length) o = void 0;
|
||||
return { value: o && o[i++], done: !o };
|
||||
}
|
||||
};
|
||||
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MmlMfrac = void 0;
|
||||
var MmlNode_js_1 = require("../MmlNode.js");
|
||||
var MmlMfrac = (function (_super) {
|
||||
__extends(MmlMfrac, _super);
|
||||
function MmlMfrac() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
Object.defineProperty(MmlMfrac.prototype, "kind", {
|
||||
get: function () {
|
||||
return 'mfrac';
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MmlMfrac.prototype, "arity", {
|
||||
get: function () {
|
||||
return 2;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MmlMfrac.prototype, "linebreakContainer", {
|
||||
get: function () {
|
||||
return true;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
MmlMfrac.prototype.setTeXclass = function (prev) {
|
||||
var e_1, _a;
|
||||
this.getPrevClass(prev);
|
||||
try {
|
||||
for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var child = _c.value;
|
||||
child.setTeXclass(null);
|
||||
}
|
||||
}
|
||||
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
||||
}
|
||||
finally { if (e_1) throw e_1.error; }
|
||||
}
|
||||
return this;
|
||||
};
|
||||
MmlMfrac.prototype.setChildInheritedAttributes = function (attributes, display, level, prime) {
|
||||
if (!display || level > 0) {
|
||||
level++;
|
||||
}
|
||||
this.childNodes[0].setInheritedAttributes(attributes, false, level, prime);
|
||||
this.childNodes[1].setInheritedAttributes(attributes, false, level, true);
|
||||
};
|
||||
MmlMfrac.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlBaseNode.defaults), { linethickness: 'medium', numalign: 'center', denomalign: 'center', bevelled: false });
|
||||
return MmlMfrac;
|
||||
}(MmlNode_js_1.AbstractMmlBaseNode));
|
||||
exports.MmlMfrac = MmlMfrac;
|
||||
//# sourceMappingURL=mfrac.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mfrac.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mfrac.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"mfrac.js","sourceRoot":"","sources":["../../../../ts/core/MmlTree/MmlNodes/mfrac.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,4CAA0E;AAO1E;IAA8B,4BAAmB;IAAjD;;IA4DA,CAAC;IA5CC,sBAAW,0BAAI;aAAf;YACE,OAAO,OAAO,CAAC;QACjB,CAAC;;;OAAA;IAMD,sBAAW,2BAAK;aAAhB;YACE,OAAO,CAAC,CAAC;QACX,CAAC;;;OAAA;IAMD,sBAAW,wCAAkB;aAA7B;YACE,OAAO,IAAI,CAAC;QACd,CAAC;;;OAAA;IAMM,8BAAW,GAAlB,UAAmB,IAAa;;QAC9B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;;YACxB,KAAoB,IAAA,KAAA,SAAA,IAAI,CAAC,UAAU,CAAA,gBAAA,4BAAE;gBAAhC,IAAM,KAAK,WAAA;gBACd,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;aACzB;;;;;;;;;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAMS,8CAA2B,GAArC,UAAsC,UAAyB,EAAE,OAAgB,EAAE,KAAa,EAAE,KAAc;QAC9G,IAAI,CAAC,OAAO,IAAI,KAAK,GAAG,CAAC,EAAE;YACzB,KAAK,EAAE,CAAC;SACT;QACD,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,sBAAsB,CAAC,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;QAC3E,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,sBAAsB,CAAC,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;IArDa,iBAAQ,yBACjB,gCAAmB,CAAC,QAAQ,KAC/B,aAAa,EAAE,QAAQ,EACvB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,QAAQ,EACpB,QAAQ,EAAE,KAAK,IACf;IAiDJ,eAAC;CAAA,AA5DD,CAA8B,gCAAmB,GA4DhD;AA5DY,4BAAQ"}
|
||||
8
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mglyph.d.ts
generated
vendored
Normal file
8
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mglyph.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { PropertyList } from '../../Tree/Node.js';
|
||||
import { AbstractMmlTokenNode } from '../MmlNode.js';
|
||||
export declare class MmlMglyph extends AbstractMmlTokenNode {
|
||||
static defaults: PropertyList;
|
||||
protected texclass: number;
|
||||
get kind(): string;
|
||||
verifyAttributes(options: PropertyList): void;
|
||||
}
|
||||
58
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mglyph.js
generated
vendored
Normal file
58
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mglyph.js
generated
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
"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 __());
|
||||
};
|
||||
})();
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MmlMglyph = void 0;
|
||||
var MmlNode_js_1 = require("../MmlNode.js");
|
||||
var MmlMglyph = (function (_super) {
|
||||
__extends(MmlMglyph, _super);
|
||||
function MmlMglyph() {
|
||||
var _this = _super !== null && _super.apply(this, arguments) || this;
|
||||
_this.texclass = MmlNode_js_1.TEXCLASS.ORD;
|
||||
return _this;
|
||||
}
|
||||
Object.defineProperty(MmlMglyph.prototype, "kind", {
|
||||
get: function () {
|
||||
return 'mglyph';
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
MmlMglyph.prototype.verifyAttributes = function (options) {
|
||||
var _a = this.attributes.getList('src', 'fontfamily', 'index'), src = _a.src, fontfamily = _a.fontfamily, index = _a.index;
|
||||
if (src === '' && (fontfamily === '' || index === '')) {
|
||||
this.mError('mglyph must have either src or fontfamily and index attributes', options, true);
|
||||
}
|
||||
else {
|
||||
_super.prototype.verifyAttributes.call(this, options);
|
||||
}
|
||||
};
|
||||
MmlMglyph.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlTokenNode.defaults), { alt: '', src: '', index: '', width: 'auto', height: 'auto', valign: '0em' });
|
||||
return MmlMglyph;
|
||||
}(MmlNode_js_1.AbstractMmlTokenNode));
|
||||
exports.MmlMglyph = MmlMglyph;
|
||||
//# sourceMappingURL=mglyph.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mglyph.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mglyph.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"mglyph.js","sourceRoot":"","sources":["../../../../ts/core/MmlTree/MmlNodes/mglyph.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,4CAA6D;AAO7D;IAA+B,6BAAoB;IAAnD;QAAA,qEAuCC;QArBW,cAAQ,GAAG,qBAAQ,CAAC,GAAG,CAAC;;IAqBpC,CAAC;IAhBC,sBAAW,2BAAI;aAAf;YACE,OAAO,QAAQ,CAAC;QAClB,CAAC;;;OAAA;IAKM,oCAAgB,GAAvB,UAAwB,OAAqB;QACrC,IAAA,KAA2B,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,EAAE,YAAY,EAAE,OAAO,CAAC,EAA/E,GAAG,SAAA,EAAE,UAAU,gBAAA,EAAE,KAAK,WAAyD,CAAC;QACvF,IAAI,GAAG,KAAK,EAAE,IAAI,CAAC,UAAU,KAAK,EAAE,IAAI,KAAK,KAAK,EAAE,CAAC,EAAE;YACrD,IAAI,CAAC,MAAM,CAAC,gEAAgE,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;SAC9F;aAAM;YACL,iBAAM,gBAAgB,YAAC,OAAO,CAAC,CAAC;SACjC;IACH,CAAC;IAhCa,kBAAQ,yBACjB,iCAAoB,CAAC,QAAQ,KAChC,GAAG,EAAE,EAAE,EACP,GAAG,EAAE,EAAE,EACP,KAAK,EAAE,EAAE,EACT,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,KAAK,IACb;IA0BJ,gBAAC;CAAA,AAvCD,CAA+B,iCAAoB,GAuClD;AAvCY,8BAAS"}
|
||||
11
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mi.d.ts
generated
vendored
Normal file
11
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mi.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import { PropertyList } from '../../Tree/Node.js';
|
||||
import { AbstractMmlTokenNode, AbstractMmlNode, AttributeList } from '../MmlNode.js';
|
||||
export declare class MmlMi extends AbstractMmlTokenNode {
|
||||
static defaults: PropertyList;
|
||||
static operatorName: RegExp;
|
||||
static singleCharacter: RegExp;
|
||||
protected texclass: number;
|
||||
get kind(): string;
|
||||
setInheritedAttributes(attributes?: AttributeList, display?: boolean, level?: number, prime?: boolean): void;
|
||||
setTeXclass(prev: AbstractMmlNode): this;
|
||||
}
|
||||
74
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mi.js
generated
vendored
Normal file
74
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mi.js
generated
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
"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 __());
|
||||
};
|
||||
})();
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MmlMi = void 0;
|
||||
var MmlNode_js_1 = require("../MmlNode.js");
|
||||
var MmlMi = (function (_super) {
|
||||
__extends(MmlMi, _super);
|
||||
function MmlMi() {
|
||||
var _this = _super !== null && _super.apply(this, arguments) || this;
|
||||
_this.texclass = MmlNode_js_1.TEXCLASS.ORD;
|
||||
return _this;
|
||||
}
|
||||
Object.defineProperty(MmlMi.prototype, "kind", {
|
||||
get: function () {
|
||||
return 'mi';
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
MmlMi.prototype.setInheritedAttributes = function (attributes, display, level, prime) {
|
||||
if (attributes === void 0) { attributes = {}; }
|
||||
if (display === void 0) { display = false; }
|
||||
if (level === void 0) { level = 0; }
|
||||
if (prime === void 0) { prime = false; }
|
||||
_super.prototype.setInheritedAttributes.call(this, attributes, display, level, prime);
|
||||
var text = this.getText();
|
||||
if (text.match(MmlMi.singleCharacter) && !attributes.mathvariant) {
|
||||
this.attributes.setInherited('mathvariant', 'italic');
|
||||
}
|
||||
};
|
||||
MmlMi.prototype.setTeXclass = function (prev) {
|
||||
this.getPrevClass(prev);
|
||||
var name = this.getText();
|
||||
if (name.length > 1 && name.match(MmlMi.operatorName) &&
|
||||
this.attributes.get('mathvariant') === 'normal' &&
|
||||
this.getProperty('autoOP') === undefined &&
|
||||
this.getProperty('texClass') === undefined) {
|
||||
this.texClass = MmlNode_js_1.TEXCLASS.OP;
|
||||
this.setProperty('autoOP', true);
|
||||
}
|
||||
return this;
|
||||
};
|
||||
MmlMi.defaults = __assign({}, MmlNode_js_1.AbstractMmlTokenNode.defaults);
|
||||
MmlMi.operatorName = /^[a-z][a-z0-9]*$/i;
|
||||
MmlMi.singleCharacter = /^[\uD800-\uDBFF]?.[\u0300-\u036F\u1AB0-\u1ABE\u1DC0-\u1DFF\u20D0-\u20EF]*$/;
|
||||
return MmlMi;
|
||||
}(MmlNode_js_1.AbstractMmlTokenNode));
|
||||
exports.MmlMi = MmlMi;
|
||||
//# sourceMappingURL=mi.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mi.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mi.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"mi.js","sourceRoot":"","sources":["../../../../ts/core/MmlTree/MmlNodes/mi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,4CAA6F;AAO7F;IAA2B,yBAAoB;IAA/C;QAAA,qEAgEC;QA1CW,cAAQ,GAAG,qBAAQ,CAAC,GAAG,CAAC;;IA0CpC,CAAC;IArCC,sBAAW,uBAAI;aAAf;YACE,OAAO,IAAI,CAAC;QACd,CAAC;;;OAAA;IAQM,sCAAsB,GAA7B,UAA8B,UAA8B,EAC9B,OAAwB,EAAE,KAAiB,EAAE,KAAsB;QADnE,2BAAA,EAAA,eAA8B;QAC9B,wBAAA,EAAA,eAAwB;QAAE,sBAAA,EAAA,SAAiB;QAAE,sBAAA,E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
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import { PropertyList } from '../../Tree/Node.js';
|
||||
import { AbstractMmlNode, AttributeList } from '../MmlNode.js';
|
||||
import { MmlMsubsup } from './msubsup.js';
|
||||
export declare class MmlMmultiscripts extends MmlMsubsup {
|
||||
static defaults: PropertyList;
|
||||
get kind(): string;
|
||||
get arity(): number;
|
||||
protected setChildInheritedAttributes(attributes: AttributeList, display: boolean, level: number, prime: boolean): void;
|
||||
protected verifyChildren(options: PropertyList): void;
|
||||
}
|
||||
export declare class MmlMprescripts extends AbstractMmlNode {
|
||||
static defaults: PropertyList;
|
||||
get kind(): string;
|
||||
get arity(): number;
|
||||
verifyTree(options: PropertyList): void;
|
||||
}
|
||||
export declare class MmlNone extends AbstractMmlNode {
|
||||
static defaults: PropertyList;
|
||||
get kind(): string;
|
||||
get arity(): number;
|
||||
verifyTree(options: PropertyList): void;
|
||||
}
|
||||
162
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mmultiscripts.js
generated
vendored
Normal file
162
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mmultiscripts.js
generated
vendored
Normal file
@@ -0,0 +1,162 @@
|
||||
"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 __());
|
||||
};
|
||||
})();
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MmlNone = exports.MmlMprescripts = exports.MmlMmultiscripts = void 0;
|
||||
var MmlNode_js_1 = require("../MmlNode.js");
|
||||
var msubsup_js_1 = require("./msubsup.js");
|
||||
var MmlMmultiscripts = (function (_super) {
|
||||
__extends(MmlMmultiscripts, _super);
|
||||
function MmlMmultiscripts() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
Object.defineProperty(MmlMmultiscripts.prototype, "kind", {
|
||||
get: function () {
|
||||
return 'mmultiscripts';
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MmlMmultiscripts.prototype, "arity", {
|
||||
get: function () {
|
||||
return 1;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
MmlMmultiscripts.prototype.setChildInheritedAttributes = function (attributes, display, level, prime) {
|
||||
this.childNodes[0].setInheritedAttributes(attributes, display, level, prime);
|
||||
var prescripts = false;
|
||||
for (var i = 1, n = 0; i < this.childNodes.length; i++) {
|
||||
var child = this.childNodes[i];
|
||||
if (child.isKind('mprescripts')) {
|
||||
if (!prescripts) {
|
||||
prescripts = true;
|
||||
if (i % 2 === 0) {
|
||||
var mrow = this.factory.create('mrow');
|
||||
this.childNodes.splice(i, 0, mrow);
|
||||
mrow.parent = this;
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
var primestyle = prime || (n % 2 === 0);
|
||||
child.setInheritedAttributes(attributes, false, level + 1, primestyle);
|
||||
n++;
|
||||
}
|
||||
}
|
||||
if (this.childNodes.length % 2 === (prescripts ? 1 : 0)) {
|
||||
this.appendChild(this.factory.create('mrow'));
|
||||
this.childNodes[this.childNodes.length - 1].setInheritedAttributes(attributes, false, level + 1, prime);
|
||||
}
|
||||
};
|
||||
MmlMmultiscripts.prototype.verifyChildren = function (options) {
|
||||
var prescripts = false;
|
||||
var fix = options['fixMmultiscripts'];
|
||||
for (var i = 0; i < this.childNodes.length; i++) {
|
||||
var child = this.childNodes[i];
|
||||
if (child.isKind('mprescripts')) {
|
||||
if (prescripts) {
|
||||
child.mError(child.kind + ' can only appear once in ' + this.kind, options, true);
|
||||
}
|
||||
else {
|
||||
prescripts = true;
|
||||
if (i % 2 === 0 && !fix) {
|
||||
this.mError('There must be an equal number of prescripts of each type', options);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.childNodes.length % 2 === (prescripts ? 1 : 0) && !fix) {
|
||||
this.mError('There must be an equal number of scripts of each type', options);
|
||||
}
|
||||
_super.prototype.verifyChildren.call(this, options);
|
||||
};
|
||||
MmlMmultiscripts.defaults = __assign({}, msubsup_js_1.MmlMsubsup.defaults);
|
||||
return MmlMmultiscripts;
|
||||
}(msubsup_js_1.MmlMsubsup));
|
||||
exports.MmlMmultiscripts = MmlMmultiscripts;
|
||||
var MmlMprescripts = (function (_super) {
|
||||
__extends(MmlMprescripts, _super);
|
||||
function MmlMprescripts() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
Object.defineProperty(MmlMprescripts.prototype, "kind", {
|
||||
get: function () {
|
||||
return 'mprescripts';
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MmlMprescripts.prototype, "arity", {
|
||||
get: function () {
|
||||
return 0;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
MmlMprescripts.prototype.verifyTree = function (options) {
|
||||
_super.prototype.verifyTree.call(this, options);
|
||||
if (this.parent && !this.parent.isKind('mmultiscripts')) {
|
||||
this.mError(this.kind + ' must be a child of mmultiscripts', options, true);
|
||||
}
|
||||
};
|
||||
MmlMprescripts.defaults = __assign({}, MmlNode_js_1.AbstractMmlNode.defaults);
|
||||
return MmlMprescripts;
|
||||
}(MmlNode_js_1.AbstractMmlNode));
|
||||
exports.MmlMprescripts = MmlMprescripts;
|
||||
var MmlNone = (function (_super) {
|
||||
__extends(MmlNone, _super);
|
||||
function MmlNone() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
Object.defineProperty(MmlNone.prototype, "kind", {
|
||||
get: function () {
|
||||
return 'none';
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MmlNone.prototype, "arity", {
|
||||
get: function () {
|
||||
return 0;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
MmlNone.prototype.verifyTree = function (options) {
|
||||
_super.prototype.verifyTree.call(this, options);
|
||||
if (this.parent && !this.parent.isKind('mmultiscripts')) {
|
||||
this.mError(this.kind + ' must be a child of mmultiscripts', options, true);
|
||||
}
|
||||
};
|
||||
MmlNone.defaults = __assign({}, MmlNode_js_1.AbstractMmlNode.defaults);
|
||||
return MmlNone;
|
||||
}(MmlNode_js_1.AbstractMmlNode));
|
||||
exports.MmlNone = MmlNone;
|
||||
//# sourceMappingURL=mmultiscripts.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mmultiscripts.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mmultiscripts.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"mmultiscripts.js","sourceRoot":"","sources":["../../../../ts/core/MmlTree/MmlNodes/mmultiscripts.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,4CAA6D;AAC7D,2CAAwC;AAOxC;IAAsC,oCAAU;IAAhD;;IAsFA,CAAC;IA1EC,sBAAW,kCAAI;aAAf;YACE,OAAO,eAAe,CAAC;QACzB,CAAC;;;OAAA;IAMD,sBAAW,mCA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;IA5Ba,gBAAQ,gBACjB,4BAAe,CAAC,QAAQ,EAC3B;IA4BJ,cAAC;CAAA,AAnCD,CAA6B,4BAAe,GAmC3C;AAnCY,0BAAO"}
|
||||
7
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mn.d.ts
generated
vendored
Normal file
7
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mn.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { PropertyList } from '../../Tree/Node.js';
|
||||
import { AbstractMmlTokenNode } from '../MmlNode.js';
|
||||
export declare class MmlMn extends AbstractMmlTokenNode {
|
||||
static defaults: PropertyList;
|
||||
protected texclass: number;
|
||||
get kind(): string;
|
||||
}
|
||||
49
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mn.js
generated
vendored
Normal file
49
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mn.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 __());
|
||||
};
|
||||
})();
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MmlMn = void 0;
|
||||
var MmlNode_js_1 = require("../MmlNode.js");
|
||||
var MmlMn = (function (_super) {
|
||||
__extends(MmlMn, _super);
|
||||
function MmlMn() {
|
||||
var _this = _super !== null && _super.apply(this, arguments) || this;
|
||||
_this.texclass = MmlNode_js_1.TEXCLASS.ORD;
|
||||
return _this;
|
||||
}
|
||||
Object.defineProperty(MmlMn.prototype, "kind", {
|
||||
get: function () {
|
||||
return 'mn';
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
MmlMn.defaults = __assign({}, MmlNode_js_1.AbstractMmlTokenNode.defaults);
|
||||
return MmlMn;
|
||||
}(MmlNode_js_1.AbstractMmlTokenNode));
|
||||
exports.MmlMn = MmlMn;
|
||||
//# sourceMappingURL=mn.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mn.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mn.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"mn.js","sourceRoot":"","sources":["../../../../ts/core/MmlTree/MmlNodes/mn.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,4CAA6D;AAO7D;IAA2B,yBAAoB;IAA/C;QAAA,qEAqBC;QATW,cAAQ,GAAG,qBAAQ,CAAC,GAAG,CAAC;;IASpC,CAAC;IAJC,sBAAW,uBAAI;aAAf;YACE,OAAO,IAAI,CAAC;QACd,CAAC;;;OAAA;IAda,cAAQ,gBACjB,iCAAoB,CAAC,QAAQ,EAChC;IAcJ,YAAC;CAAA,AArBD,CAA2B,iCAAoB,GAqB9C;AArBY,sBAAK"}
|
||||
37
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mo.d.ts
generated
vendored
Normal file
37
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mo.d.ts
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
import { PropertyList } from '../../Tree/Node.js';
|
||||
import { AbstractMmlTokenNode, MmlNode, AttributeList } from '../MmlNode.js';
|
||||
import { OperatorList } from '../OperatorDictionary.js';
|
||||
export declare class MmlMo extends AbstractMmlTokenNode {
|
||||
static defaults: PropertyList;
|
||||
static MMLSPACING: number[][];
|
||||
static OPTABLE: {
|
||||
[form: string]: OperatorList;
|
||||
};
|
||||
static pseudoScripts: RegExp;
|
||||
protected static primes: RegExp;
|
||||
protected static remapPrimes: {
|
||||
[n: number]: number;
|
||||
};
|
||||
protected static mathaccents: RegExp;
|
||||
_texClass: number;
|
||||
get texClass(): number;
|
||||
set texClass(value: number);
|
||||
lspace: number;
|
||||
rspace: number;
|
||||
get kind(): string;
|
||||
get isEmbellished(): boolean;
|
||||
get hasNewLine(): boolean;
|
||||
coreParent(): MmlNode;
|
||||
coreText(parent: MmlNode): string;
|
||||
hasSpacingAttributes(): boolean;
|
||||
get isAccent(): boolean;
|
||||
setTeXclass(prev: MmlNode): MmlNode;
|
||||
adjustTeXclass(prev: MmlNode): MmlNode;
|
||||
setInheritedAttributes(attributes?: AttributeList, display?: boolean, level?: number, prime?: boolean): void;
|
||||
protected checkOperatorTable(mo: string): void;
|
||||
getForms(): [string, string, string];
|
||||
protected handleExplicitForm(forms: string[]): string[];
|
||||
protected checkPseudoScripts(mo: string): void;
|
||||
protected checkPrimes(mo: string): void;
|
||||
protected checkMathAccent(mo: string): void;
|
||||
}
|
||||
383
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mo.js
generated
vendored
Normal file
383
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mo.js
generated
vendored
Normal file
@@ -0,0 +1,383 @@
|
||||
"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 __());
|
||||
};
|
||||
})();
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
var __read = (this && this.__read) || function (o, n) {
|
||||
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
||||
if (!m) return o;
|
||||
var i = m.call(o), r, ar = [], e;
|
||||
try {
|
||||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
||||
}
|
||||
catch (error) { e = { error: error }; }
|
||||
finally {
|
||||
try {
|
||||
if (r && !r.done && (m = i["return"])) m.call(i);
|
||||
}
|
||||
finally { if (e) throw e.error; }
|
||||
}
|
||||
return ar;
|
||||
};
|
||||
var __values = (this && this.__values) || function(o) {
|
||||
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
||||
if (m) return m.call(o);
|
||||
if (o && typeof o.length === "number") return {
|
||||
next: function () {
|
||||
if (o && i >= o.length) o = void 0;
|
||||
return { value: o && o[i++], done: !o };
|
||||
}
|
||||
};
|
||||
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MmlMo = void 0;
|
||||
var MmlNode_js_1 = require("../MmlNode.js");
|
||||
var OperatorDictionary_js_1 = require("../OperatorDictionary.js");
|
||||
var string_js_1 = require("../../../util/string.js");
|
||||
var MmlMo = (function (_super) {
|
||||
__extends(MmlMo, _super);
|
||||
function MmlMo() {
|
||||
var _this = _super !== null && _super.apply(this, arguments) || this;
|
||||
_this._texClass = null;
|
||||
_this.lspace = 5 / 18;
|
||||
_this.rspace = 5 / 18;
|
||||
return _this;
|
||||
}
|
||||
Object.defineProperty(MmlMo.prototype, "texClass", {
|
||||
get: function () {
|
||||
if (this._texClass === null) {
|
||||
var mo = this.getText();
|
||||
var _a = __read(this.handleExplicitForm(this.getForms()), 3), form1 = _a[0], form2 = _a[1], form3 = _a[2];
|
||||
var OPTABLE_1 = this.constructor.OPTABLE;
|
||||
var def = OPTABLE_1[form1][mo] || OPTABLE_1[form2][mo] || OPTABLE_1[form3][mo];
|
||||
return def ? def[2] : MmlNode_js_1.TEXCLASS.REL;
|
||||
}
|
||||
return this._texClass;
|
||||
},
|
||||
set: function (value) {
|
||||
this._texClass = value;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MmlMo.prototype, "kind", {
|
||||
get: function () {
|
||||
return 'mo';
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MmlMo.prototype, "isEmbellished", {
|
||||
get: function () {
|
||||
return true;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MmlMo.prototype, "hasNewLine", {
|
||||
get: function () {
|
||||
return this.attributes.get('linebreak') === 'newline';
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
MmlMo.prototype.coreParent = function () {
|
||||
var embellished = this;
|
||||
var parent = this;
|
||||
var math = this.factory.getNodeClass('math');
|
||||
while (parent && parent.isEmbellished && parent.coreMO() === this && !(parent instanceof math)) {
|
||||
embellished = parent;
|
||||
parent = parent.parent;
|
||||
}
|
||||
return embellished;
|
||||
};
|
||||
MmlMo.prototype.coreText = function (parent) {
|
||||
if (!parent) {
|
||||
return '';
|
||||
}
|
||||
if (parent.isEmbellished) {
|
||||
return parent.coreMO().getText();
|
||||
}
|
||||
while ((((parent.isKind('mrow') ||
|
||||
(parent.isKind('TeXAtom') && parent.texClass !== MmlNode_js_1.TEXCLASS.VCENTER) ||
|
||||
parent.isKind('mstyle') ||
|
||||
parent.isKind('mphantom')) && parent.childNodes.length === 1) ||
|
||||
parent.isKind('munderover')) && parent.childNodes[0]) {
|
||||
parent = parent.childNodes[0];
|
||||
}
|
||||
return (parent.isToken ? parent.getText() : '');
|
||||
};
|
||||
MmlMo.prototype.hasSpacingAttributes = function () {
|
||||
return this.attributes.isSet('lspace') ||
|
||||
this.attributes.isSet('rspace');
|
||||
};
|
||||
Object.defineProperty(MmlMo.prototype, "isAccent", {
|
||||
get: function () {
|
||||
var accent = false;
|
||||
var node = this.coreParent().parent;
|
||||
if (node) {
|
||||
var key = (node.isKind('mover') ?
|
||||
(node.childNodes[node.over].coreMO() ?
|
||||
'accent' : '') :
|
||||
node.isKind('munder') ?
|
||||
(node.childNodes[node.under].coreMO() ?
|
||||
'accentunder' : '') :
|
||||
node.isKind('munderover') ?
|
||||
(this === node.childNodes[node.over].coreMO() ?
|
||||
'accent' :
|
||||
this === node.childNodes[node.under].coreMO() ?
|
||||
'accentunder' : '') :
|
||||
'');
|
||||
if (key) {
|
||||
var value = node.attributes.getExplicit(key);
|
||||
accent = (value !== undefined ? accent : this.attributes.get('accent'));
|
||||
}
|
||||
}
|
||||
return accent;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
MmlMo.prototype.setTeXclass = function (prev) {
|
||||
var _a = this.attributes.getList('form', 'fence'), form = _a.form, fence = _a.fence;
|
||||
if (this.getProperty('texClass') === undefined &&
|
||||
(this.attributes.isSet('lspace') || this.attributes.isSet('rspace'))) {
|
||||
return null;
|
||||
}
|
||||
if (fence && this.texClass === MmlNode_js_1.TEXCLASS.REL) {
|
||||
if (form === 'prefix') {
|
||||
this.texClass = MmlNode_js_1.TEXCLASS.OPEN;
|
||||
}
|
||||
if (form === 'postfix') {
|
||||
this.texClass = MmlNode_js_1.TEXCLASS.CLOSE;
|
||||
}
|
||||
}
|
||||
return this.adjustTeXclass(prev);
|
||||
};
|
||||
MmlMo.prototype.adjustTeXclass = function (prev) {
|
||||
var texClass = this.texClass;
|
||||
var prevClass = this.prevClass;
|
||||
if (texClass === MmlNode_js_1.TEXCLASS.NONE) {
|
||||
return prev;
|
||||
}
|
||||
if (prev) {
|
||||
if (prev.getProperty('autoOP') && (texClass === MmlNode_js_1.TEXCLASS.BIN || texClass === MmlNode_js_1.TEXCLASS.REL)) {
|
||||
prevClass = prev.texClass = MmlNode_js_1.TEXCLASS.ORD;
|
||||
}
|
||||
prevClass = this.prevClass = (prev.texClass || MmlNode_js_1.TEXCLASS.ORD);
|
||||
this.prevLevel = this.attributes.getInherited('scriptlevel');
|
||||
}
|
||||
else {
|
||||
prevClass = this.prevClass = MmlNode_js_1.TEXCLASS.NONE;
|
||||
}
|
||||
if (texClass === MmlNode_js_1.TEXCLASS.BIN &&
|
||||
(prevClass === MmlNode_js_1.TEXCLASS.NONE || prevClass === MmlNode_js_1.TEXCLASS.BIN || prevClass === MmlNode_js_1.TEXCLASS.OP ||
|
||||
prevClass === MmlNode_js_1.TEXCLASS.REL || prevClass === MmlNode_js_1.TEXCLASS.OPEN || prevClass === MmlNode_js_1.TEXCLASS.PUNCT)) {
|
||||
this.texClass = MmlNode_js_1.TEXCLASS.ORD;
|
||||
}
|
||||
else if (prevClass === MmlNode_js_1.TEXCLASS.BIN &&
|
||||
(texClass === MmlNode_js_1.TEXCLASS.REL || texClass === MmlNode_js_1.TEXCLASS.CLOSE || texClass === MmlNode_js_1.TEXCLASS.PUNCT)) {
|
||||
prev.texClass = this.prevClass = MmlNode_js_1.TEXCLASS.ORD;
|
||||
}
|
||||
else if (texClass === MmlNode_js_1.TEXCLASS.BIN) {
|
||||
var child = this;
|
||||
var parent_1 = this.parent;
|
||||
while (parent_1 && parent_1.parent && parent_1.isEmbellished &&
|
||||
(parent_1.childNodes.length === 1 ||
|
||||
(!parent_1.isKind('mrow') && parent_1.core() === child))) {
|
||||
child = parent_1;
|
||||
parent_1 = parent_1.parent;
|
||||
}
|
||||
if (parent_1.childNodes[parent_1.childNodes.length - 1] === child) {
|
||||
this.texClass = MmlNode_js_1.TEXCLASS.ORD;
|
||||
}
|
||||
}
|
||||
return this;
|
||||
};
|
||||
MmlMo.prototype.setInheritedAttributes = function (attributes, display, level, prime) {
|
||||
if (attributes === void 0) { attributes = {}; }
|
||||
if (display === void 0) { display = false; }
|
||||
if (level === void 0) { level = 0; }
|
||||
if (prime === void 0) { prime = false; }
|
||||
_super.prototype.setInheritedAttributes.call(this, attributes, display, level, prime);
|
||||
var mo = this.getText();
|
||||
this.checkOperatorTable(mo);
|
||||
this.checkPseudoScripts(mo);
|
||||
this.checkPrimes(mo);
|
||||
this.checkMathAccent(mo);
|
||||
};
|
||||
MmlMo.prototype.checkOperatorTable = function (mo) {
|
||||
var e_1, _a;
|
||||
var _b = __read(this.handleExplicitForm(this.getForms()), 3), form1 = _b[0], form2 = _b[1], form3 = _b[2];
|
||||
this.attributes.setInherited('form', form1);
|
||||
var OPTABLE = this.constructor.OPTABLE;
|
||||
var def = OPTABLE[form1][mo] || OPTABLE[form2][mo] || OPTABLE[form3][mo];
|
||||
if (def) {
|
||||
if (this.getProperty('texClass') === undefined) {
|
||||
this.texClass = def[2];
|
||||
}
|
||||
try {
|
||||
for (var _c = __values(Object.keys(def[3] || {})), _d = _c.next(); !_d.done; _d = _c.next()) {
|
||||
var name_1 = _d.value;
|
||||
this.attributes.setInherited(name_1, def[3][name_1]);
|
||||
}
|
||||
}
|
||||
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
||||
}
|
||||
finally { if (e_1) throw e_1.error; }
|
||||
}
|
||||
this.lspace = (def[0] + 1) / 18;
|
||||
this.rspace = (def[1] + 1) / 18;
|
||||
}
|
||||
else {
|
||||
var range = (0, OperatorDictionary_js_1.getRange)(mo);
|
||||
if (range) {
|
||||
if (this.getProperty('texClass') === undefined) {
|
||||
this.texClass = range[2];
|
||||
}
|
||||
var spacing = this.constructor.MMLSPACING[range[2]];
|
||||
this.lspace = (spacing[0] + 1) / 18;
|
||||
this.rspace = (spacing[1] + 1) / 18;
|
||||
}
|
||||
}
|
||||
};
|
||||
MmlMo.prototype.getForms = function () {
|
||||
var core = this;
|
||||
var parent = this.parent;
|
||||
var Parent = this.Parent;
|
||||
while (Parent && Parent.isEmbellished) {
|
||||
core = parent;
|
||||
parent = Parent.parent;
|
||||
Parent = Parent.Parent;
|
||||
}
|
||||
if (parent && parent.isKind('mrow') && parent.nonSpaceLength() !== 1) {
|
||||
if (parent.firstNonSpace() === core) {
|
||||
return ['prefix', 'infix', 'postfix'];
|
||||
}
|
||||
if (parent.lastNonSpace() === core) {
|
||||
return ['postfix', 'infix', 'prefix'];
|
||||
}
|
||||
}
|
||||
return ['infix', 'prefix', 'postfix'];
|
||||
};
|
||||
MmlMo.prototype.handleExplicitForm = function (forms) {
|
||||
if (this.attributes.isSet('form')) {
|
||||
var form_1 = this.attributes.get('form');
|
||||
forms = [form_1].concat(forms.filter(function (name) { return (name !== form_1); }));
|
||||
}
|
||||
return forms;
|
||||
};
|
||||
MmlMo.prototype.checkPseudoScripts = function (mo) {
|
||||
var PSEUDOSCRIPTS = this.constructor.pseudoScripts;
|
||||
if (!mo.match(PSEUDOSCRIPTS))
|
||||
return;
|
||||
var parent = this.coreParent().Parent;
|
||||
var isPseudo = !parent || !(parent.isKind('msubsup') && !parent.isKind('msub'));
|
||||
this.setProperty('pseudoscript', isPseudo);
|
||||
if (isPseudo) {
|
||||
this.attributes.setInherited('lspace', 0);
|
||||
this.attributes.setInherited('rspace', 0);
|
||||
}
|
||||
};
|
||||
MmlMo.prototype.checkPrimes = function (mo) {
|
||||
var PRIMES = this.constructor.primes;
|
||||
if (!mo.match(PRIMES))
|
||||
return;
|
||||
var REMAP = this.constructor.remapPrimes;
|
||||
var primes = (0, string_js_1.unicodeString)((0, string_js_1.unicodeChars)(mo).map(function (c) { return REMAP[c]; }));
|
||||
this.setProperty('primes', primes);
|
||||
};
|
||||
MmlMo.prototype.checkMathAccent = function (mo) {
|
||||
var parent = this.Parent;
|
||||
if (this.getProperty('mathaccent') !== undefined || !parent || !parent.isKind('munderover'))
|
||||
return;
|
||||
var base = parent.childNodes[0];
|
||||
if (base.isEmbellished && base.coreMO() === this)
|
||||
return;
|
||||
var MATHACCENT = this.constructor.mathaccents;
|
||||
if (mo.match(MATHACCENT)) {
|
||||
this.setProperty('mathaccent', true);
|
||||
}
|
||||
};
|
||||
MmlMo.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlTokenNode.defaults), { form: 'infix', fence: false, separator: false, lspace: 'thickmathspace', rspace: 'thickmathspace', stretchy: false, symmetric: false, maxsize: 'infinity', minsize: '0em', largeop: false, movablelimits: false, accent: false, linebreak: 'auto', lineleading: '1ex', linebreakstyle: 'before', indentalign: 'auto', indentshift: '0', indenttarget: '', indentalignfirst: 'indentalign', indentshiftfirst: 'indentshift', indentalignlast: 'indentalign', indentshiftlast: 'indentshift' });
|
||||
MmlMo.MMLSPACING = OperatorDictionary_js_1.MMLSPACING;
|
||||
MmlMo.OPTABLE = OperatorDictionary_js_1.OPTABLE;
|
||||
MmlMo.pseudoScripts = new RegExp([
|
||||
'^["\'*`',
|
||||
'\u00AA',
|
||||
'\u00B0',
|
||||
'\u00B2-\u00B4',
|
||||
'\u00B9',
|
||||
'\u00BA',
|
||||
'\u2018-\u201F',
|
||||
'\u2032-\u2037\u2057',
|
||||
'\u2070\u2071',
|
||||
'\u2074-\u207F',
|
||||
'\u2080-\u208E',
|
||||
']+$'
|
||||
].join(''));
|
||||
MmlMo.primes = new RegExp([
|
||||
'^["\'`',
|
||||
'\u2018-\u201F',
|
||||
']+$'
|
||||
].join(''));
|
||||
MmlMo.remapPrimes = {
|
||||
0x0022: 0x2033,
|
||||
0x0027: 0x2032,
|
||||
0x0060: 0x2035,
|
||||
0x2018: 0x2035,
|
||||
0x2019: 0x2032,
|
||||
0x201A: 0x2032,
|
||||
0x201B: 0x2035,
|
||||
0x201C: 0x2036,
|
||||
0x201D: 0x2033,
|
||||
0x201E: 0x2033,
|
||||
0x201F: 0x2036,
|
||||
};
|
||||
MmlMo.mathaccents = new RegExp([
|
||||
'^[',
|
||||
'\u00B4\u0301\u02CA',
|
||||
'\u0060\u0300\u02CB',
|
||||
'\u00A8\u0308',
|
||||
'\u007E\u0303\u02DC',
|
||||
'\u00AF\u0304\u02C9',
|
||||
'\u02D8\u0306',
|
||||
'\u02C7\u030C',
|
||||
'\u005E\u0302\u02C6',
|
||||
'\u2192\u20D7',
|
||||
'\u02D9\u0307',
|
||||
'\u02DA\u030A',
|
||||
'\u20DB',
|
||||
'\u20DC',
|
||||
']$'
|
||||
].join(''));
|
||||
return MmlMo;
|
||||
}(MmlNode_js_1.AbstractMmlTokenNode));
|
||||
exports.MmlMo = MmlMo;
|
||||
//# sourceMappingURL=mo.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mo.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mo.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
6
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mpadded.d.ts
generated
vendored
Normal file
6
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mpadded.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import { PropertyList } from '../../Tree/Node.js';
|
||||
import { AbstractMmlLayoutNode } from '../MmlNode.js';
|
||||
export declare class MmlMpadded extends AbstractMmlLayoutNode {
|
||||
static defaults: PropertyList;
|
||||
get kind(): string;
|
||||
}
|
||||
47
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mpadded.js
generated
vendored
Normal file
47
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mpadded.js
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
"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 __());
|
||||
};
|
||||
})();
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MmlMpadded = void 0;
|
||||
var MmlNode_js_1 = require("../MmlNode.js");
|
||||
var MmlMpadded = (function (_super) {
|
||||
__extends(MmlMpadded, _super);
|
||||
function MmlMpadded() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
Object.defineProperty(MmlMpadded.prototype, "kind", {
|
||||
get: function () {
|
||||
return 'mpadded';
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
MmlMpadded.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlLayoutNode.defaults), { width: '', height: '', depth: '', lspace: 0, voffset: 0 });
|
||||
return MmlMpadded;
|
||||
}(MmlNode_js_1.AbstractMmlLayoutNode));
|
||||
exports.MmlMpadded = MmlMpadded;
|
||||
//# sourceMappingURL=mpadded.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mpadded.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mpadded.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"mpadded.js","sourceRoot":"","sources":["../../../../ts/core/MmlTree/MmlNodes/mpadded.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,4CAAoD;AAOpD;IAAgC,8BAAqB;IAArD;;IAqBA,CAAC;IAJC,sBAAW,4BAAI;aAAf;YACE,OAAO,SAAS,CAAC;QACnB,CAAC;;;OAAA;IAda,mBAAQ,yBACjB,kCAAqB,CAAC,QAAQ,KACjC,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,CAAC,EACT,OAAO,EAAE,CAAC,IACV;IASJ,iBAAC;CAAA,AArBD,CAAgC,kCAAqB,GAqBpD;AArBY,gCAAU"}
|
||||
7
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mphantom.d.ts
generated
vendored
Normal file
7
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mphantom.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { PropertyList } from '../../Tree/Node.js';
|
||||
import { AbstractMmlLayoutNode } from '../MmlNode.js';
|
||||
export declare class MmlMphantom extends AbstractMmlLayoutNode {
|
||||
static defaults: PropertyList;
|
||||
protected texclass: number;
|
||||
get kind(): string;
|
||||
}
|
||||
49
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mphantom.js
generated
vendored
Normal file
49
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mphantom.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 __());
|
||||
};
|
||||
})();
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MmlMphantom = void 0;
|
||||
var MmlNode_js_1 = require("../MmlNode.js");
|
||||
var MmlMphantom = (function (_super) {
|
||||
__extends(MmlMphantom, _super);
|
||||
function MmlMphantom() {
|
||||
var _this = _super !== null && _super.apply(this, arguments) || this;
|
||||
_this.texclass = MmlNode_js_1.TEXCLASS.ORD;
|
||||
return _this;
|
||||
}
|
||||
Object.defineProperty(MmlMphantom.prototype, "kind", {
|
||||
get: function () {
|
||||
return 'mphantom';
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
MmlMphantom.defaults = __assign({}, MmlNode_js_1.AbstractMmlLayoutNode.defaults);
|
||||
return MmlMphantom;
|
||||
}(MmlNode_js_1.AbstractMmlLayoutNode));
|
||||
exports.MmlMphantom = MmlMphantom;
|
||||
//# sourceMappingURL=mphantom.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mphantom.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mphantom.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"mphantom.js","sourceRoot":"","sources":["../../../../ts/core/MmlTree/MmlNodes/mphantom.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,4CAA8D;AAO9D;IAAiC,+BAAqB;IAAtD;QAAA,qEAqBC;QATW,cAAQ,GAAG,qBAAQ,CAAC,GAAG,CAAC;;IASpC,CAAC;IAJC,sBAAW,6BAAI;aAAf;YACE,OAAO,UAAU,CAAC;QACpB,CAAC;;;OAAA;IAda,oBAAQ,gBACjB,kCAAqB,CAAC,QAAQ,EACjC;IAcJ,kBAAC;CAAA,AArBD,CAAiC,kCAAqB,GAqBrD;AArBY,kCAAW"}
|
||||
10
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mroot.d.ts
generated
vendored
Normal file
10
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mroot.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { PropertyList } from '../../Tree/Node.js';
|
||||
import { MmlNode, AbstractMmlNode, AttributeList } from '../MmlNode.js';
|
||||
export declare class MmlMroot extends AbstractMmlNode {
|
||||
static defaults: PropertyList;
|
||||
protected texclass: number;
|
||||
get kind(): string;
|
||||
get arity(): number;
|
||||
setTeXclass(prev: MmlNode): this;
|
||||
protected setChildInheritedAttributes(attributes: AttributeList, display: boolean, level: number, prime: boolean): void;
|
||||
}
|
||||
66
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mroot.js
generated
vendored
Normal file
66
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mroot.js
generated
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
"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 __());
|
||||
};
|
||||
})();
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MmlMroot = void 0;
|
||||
var MmlNode_js_1 = require("../MmlNode.js");
|
||||
var MmlMroot = (function (_super) {
|
||||
__extends(MmlMroot, _super);
|
||||
function MmlMroot() {
|
||||
var _this = _super !== null && _super.apply(this, arguments) || this;
|
||||
_this.texclass = MmlNode_js_1.TEXCLASS.ORD;
|
||||
return _this;
|
||||
}
|
||||
Object.defineProperty(MmlMroot.prototype, "kind", {
|
||||
get: function () {
|
||||
return 'mroot';
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MmlMroot.prototype, "arity", {
|
||||
get: function () {
|
||||
return 2;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
MmlMroot.prototype.setTeXclass = function (prev) {
|
||||
this.getPrevClass(prev);
|
||||
this.childNodes[0].setTeXclass(null);
|
||||
this.childNodes[1].setTeXclass(null);
|
||||
return this;
|
||||
};
|
||||
MmlMroot.prototype.setChildInheritedAttributes = function (attributes, display, level, prime) {
|
||||
this.childNodes[0].setInheritedAttributes(attributes, display, level, true);
|
||||
this.childNodes[1].setInheritedAttributes(attributes, false, level + 2, prime);
|
||||
};
|
||||
MmlMroot.defaults = __assign({}, MmlNode_js_1.AbstractMmlNode.defaults);
|
||||
return MmlMroot;
|
||||
}(MmlNode_js_1.AbstractMmlNode));
|
||||
exports.MmlMroot = MmlMroot;
|
||||
//# sourceMappingURL=mroot.js.map
|
||||
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mroot.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mroot.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"mroot.js","sourceRoot":"","sources":["../../../../ts/core/MmlTree/MmlNodes/mroot.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,4CAAgF;AAOhF;IAA8B,4BAAe;IAA7C;QAAA,qEAoDC;QAxCW,cAAQ,GAAG,qBAAQ,CAAC,GAAG,CAAC;;IAwCpC,CAAC;IAnCC,sBAAW,0BAAI;aAAf;YACE,OAAO,OAAO,CAAC;QACjB,CAAC;;;OAAA;IAMD,sBAAW,2BAAK;aAAhB;YACE,OAAO,CAAC,CAAC;QACX,CAAC;;;OAAA;IAQM,8BAAW,GAAlB,UAAmB,IAAa;QAC9B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QACxB,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACrC,OAAO,IAAI,CAAC;IACd,CAAC;IAOS,8CAA2B,GAArC,UAAsC,UAAyB,EAAE,OAAgB,EAAE,KAAa,EAAE,KAAc;QAC9G,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,sBAAsB,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;QAC5E,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,sBAAsB,CAAC,UAAU,EAAE,KAAK,EAAE,KAAK,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC;IACjF,CAAC;IA7Ca,iBAAQ,gBACjB,4BAAe,CAAC,QAAQ,EAC3B;IA6CJ,eAAC;CAAA,AApDD,CAA8B,4BAAe,GAoD5C;AApDY,4BAAQ"}
|
||||
22
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mrow.d.ts
generated
vendored
Normal file
22
node_modules/mathjax-full/js/core/MmlTree/MmlNodes/mrow.d.ts
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import { PropertyList } from '../../Tree/Node.js';
|
||||
import { MmlNode, AbstractMmlNode } from '../MmlNode.js';
|
||||
export declare class MmlMrow extends AbstractMmlNode {
|
||||
static defaults: PropertyList;
|
||||
protected _core: number;
|
||||
get kind(): string;
|
||||
get isSpacelike(): boolean;
|
||||
get isEmbellished(): boolean;
|
||||
core(): MmlNode;
|
||||
coreMO(): MmlNode;
|
||||
nonSpaceLength(): number;
|
||||
firstNonSpace(): MmlNode | null;
|
||||
lastNonSpace(): MmlNode | null;
|
||||
setTeXclass(prev: MmlNode): MmlNode;
|
||||
}
|
||||
export declare class MmlInferredMrow extends MmlMrow {
|
||||
static defaults: PropertyList;
|
||||
get kind(): string;
|
||||
get isInferred(): boolean;
|
||||
get notParent(): boolean;
|
||||
toString(): string;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user