Lines Matching refs:t

2     var s = c.config.menuSettings, r = {}, t = MathJax.Ajax.config.path;  variable
3 t.a11y || (t.a11y = c.config.root + "/extensions/a11y");
10 Enable: function(t, e) {
12 t && c.Queue([ "Reprocess", c ], [ "CollapseWideMath", this ]);
14 Disable: function(t, e) {
20 t && c.Queue([ "Rerender", c ]);
22 Dependent: function(t) {
23 this.dependents.push(t);
26 var t = MathJax.Extension.collapsible; variable
27 t && t.Dependent(this), c.postInputHooks.Add([ "Filter", l ], 150), c.Queue(function() {
31 Filter: function(t, e, n) {
32t.enriched && !this.config.disabled && ("block" === t.root.Get("display") || n.parentNode.childNod…
33 action: this.Actions(t.root)
36 Actions: function(t) {
38 return this.getActions(t, 0, e), this.sortActions(e);
40 getActions: function(t, e, n) {
41 if (!t.isToken && t.data) {
43 for (var o, i = 0, a = t.data.length; i < a; i++) {
44 t.data[i] && ((o = t.data[i]).collapsible ? (n[e] || (n[e] = []), n[e].push(o),
49 sortActions: function(t) {
50 …for (var e = [], n = 0, o = t.length; n < o; n++) t[n] && (e = e.concat(t[n].sort(this.sortActions…
53 sortActionsBy: function(t, e) {
54 return (t = t.data[1].complexity) < (e = e.data[1].complexity) ? -1 : e < t ? 1 : 0;
56 CollapseWideMath: function(t) {
58 this.GetContainerWidths(t);
59 var e = c.getAllJax(t), n = {
69 collapseState: function(t) {
70 for (var e = t.collapse; t.i < t.m; ) {
71 var n = t.jax[t.i], o = n.root.SRE;
72 if (t.changed = !1, o && o.action.length && (o.cwidth < o.m || o.cwidth > o.M)) {
73 var i = this.getActionWidths(n, t);
75 this.collapseActions(o, t), t.changed && e.push(n.SourceElement());
77 t.i++;
81 collapseActions: function(t, e) {
82 for (var n = t.width, o = n, i = 1e6, a = t.action.length - 1; 0 <= a; a--) {
83 var s = t.action[a], r = s.selection;
84 … n > t.cwidth ? (s.selection = 1, o = s.SREwidth, i = n) : s.selection = 2, n = s.SREwidth,
85t.DOMupdate ? document.getElementById(s.id).setAttribute("selection", s.selection) : s.selection !…
87 t.m = o, t.M = i;
89 getActionWidths: function(t, e) {
90 if (!t.root.SRE.actionWidths) {
91 MathJax.OutputJax[t.outputJax].getMetrics(t);
93 this.computeActionWidths(t);
94 } catch (t) {
95 if (!t.restart) throw t;
96 return MathJax.Callback.After([ "collapseState", this, e ], t.restart);
102 computeActionWidths: function(t) {
103 var e, n = t.root.SRE, o = n.action, i = {};
104 for (n.width = t.sreGetRootWidth(i), e = o.length - 1; 0 <= e; e--) o[e].selection = 2;
107 null == a.SREwidth && (a.selection = 1, a.SREwidth = t.sreGetActionWidth(i, a));
111 GetContainerWidths: function(t) {
112 for (var e, n, o, i = c.getAllJax(t), a = MathJax.HTML.Element("span", {
127 resizeHandler: function(t) {
145 …var t, e = MathJax.Menu.ITEM, n = MathJax.Menu.menu, o = e.CHECKBOX([ "AutoCollapse", "Auto Collap…
146 action: function(t) { argument
150 …i ? null !== (t = i.IndexOfId("AutoCollapse")) ? i.items[t] = o : (t = i.IndexOfId("CollapsibleMat…
151 … i.items.splice(t + 1, 0, o)) : (t = n.IndexOfId("CollapsibleMath"), n.items.splice(t + 1, 0, o));
162 sreGetRootWidth: function(t) { argument
163 return MathJax.OutputJax[this.outputJax].sreGetRootWidth(this, t);
165 sreGetActionWidth: function(t, e) { argument
166 return MathJax.OutputJax[this.outputJax].sreGetActionWidth(this, t, e);
170 sreGetMetrics: function(t, e) { argument
173 sreGetRootWidth: function(t, e) { argument
176 sreGetActionWidth: function(t, e, n) { argument
181 sreGetMetrics: function(t, e) { argument
182 …e.width = t.root.data[0].HTMLspanElement().parentNode.bbox.w, e.em = 1 / t.HTMLCSS.em / t.HTMLCSS.…
184 sreGetRootWidth: function(t, e) { argument
185 var n = t.root.data[0].HTMLspanElement();
188 sreGetActionWidth: function(t, e, n) { argument
189 return t.root.data[0].toHTML(e.box).bbox.w;
194 getMetrics: function(t) { argument
195 this.em = MathJax.ElementJax.mml.mbase.prototype.em = t.SVG.em, this.ex = t.SVG.ex,
196 this.linebreakWidth = t.SVG.lineWidth, this.cwidth = t.SVG.cwidth;
198 sreGetMetrics: function(t, e) { argument
199 e.width = t.root.SVGdata.w / 1e3, e.em = 1 / t.SVG.em;
201 sreGetRootWidth: function(t, e) { argument
202 return e.span = document.getElementById(t.inputID + "-Frame"), t.root.SVGdata.w / 1e3;
204 sreGetActionWidth: function(t, e, n) { argument
207 t.root.data[0].toSVG();
208 } catch (t) {
209 var o = t;
212 return t.root.data[0].SVGdata.w / 1e3;
217 sreGetMetrics: function(t, e) { argument
218 e.width = t.root.CHTML.w, e.em = 1 / t.CHTML.em / t.CHTML.scale;
220 sreGetRootWidth: function(t, e) { argument
221 …return e.span = document.getElementById(t.inputID + "-Frame").firstChild, e.tmp = document.createE…
222 e.tmp.className = e.span.className, t.root.CHTML.w / t.CHTML.scale;
224 sreGetActionWidth: function(t, e, n) { argument
227 t.root.data[0].toCommonHTML(e.tmp);
228 } catch (t) {
229 var o = t;
232 return t.root.data[0].CHTML.w / t.CHTML.scale;
237 sreGetMetrics: function(t, e) { argument
238 var n = document.getElementById(t.inputID + "-Frame");
241 sreGetRootWidth: function(t, e) { argument
242 … return e.span = document.getElementById(t.inputID + "-Frame").firstChild, e.span.offsetWidth;
244 sreGetActionWidth: function(t, e, n) { argument