001121f6a0881a69a404b95071730eaa35d4748de4392b508ed33ec77433a2f7.json 24 KB

1
  1. {"ast":null,"code":"\"use strict\";\n\nvar __extends = this && this.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SVGmaction = void 0;\nvar Wrapper_js_1 = require(\"../Wrapper.js\");\nvar maction_js_1 = require(\"../../common/Wrappers/maction.js\");\nvar maction_js_2 = require(\"../../common/Wrappers/maction.js\");\nvar maction_js_3 = require(\"../../../core/MmlTree/MmlNodes/maction.js\");\nvar SVGmaction = function (_super) {\n __extends(SVGmaction, _super);\n function SVGmaction() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n SVGmaction.prototype.toSVG = function (parent) {\n var svg = this.standardSVGnode(parent);\n var child = this.selected;\n var _a = child.getOuterBBox(),\n h = _a.h,\n d = _a.d,\n w = _a.w;\n this.adaptor.append(this.element, this.svg('rect', {\n width: this.fixed(w),\n height: this.fixed(h + d),\n y: this.fixed(-d),\n fill: 'none',\n 'pointer-events': 'all'\n }));\n child.toSVG(svg);\n var bbox = child.getOuterBBox();\n if (child.element) {\n child.place(bbox.L * bbox.rscale, 0);\n }\n this.action(this, this.data);\n };\n SVGmaction.prototype.setEventHandler = function (type, handler) {\n this.element.addEventListener(type, handler);\n };\n SVGmaction.kind = maction_js_3.MmlMaction.prototype.kind;\n SVGmaction.styles = {\n '[jax=\"SVG\"] mjx-tool': {\n display: 'inline-block',\n position: 'relative',\n width: 0,\n height: 0\n },\n '[jax=\"SVG\"] mjx-tool > mjx-tip': {\n position: 'absolute',\n top: 0,\n left: 0\n },\n 'mjx-tool > mjx-tip': {\n display: 'inline-block',\n padding: '.2em',\n border: '1px solid #888',\n 'font-size': '70%',\n 'background-color': '#F8F8F8',\n color: 'black',\n 'box-shadow': '2px 2px 5px #AAAAAA'\n },\n 'g[data-mml-node=\"maction\"][data-toggle]': {\n cursor: 'pointer'\n },\n 'mjx-status': {\n display: 'block',\n position: 'fixed',\n left: '1em',\n bottom: '1em',\n 'min-width': '25%',\n padding: '.2em .4em',\n border: '1px solid #888',\n 'font-size': '90%',\n 'background-color': '#F8F8F8',\n color: 'black'\n }\n };\n SVGmaction.actions = new Map([['toggle', [function (node, _data) {\n node.adaptor.setAttribute(node.element, 'data-toggle', node.node.attributes.get('selection'));\n var math = node.factory.jax.math;\n var document = node.factory.jax.document;\n var mml = node.node;\n node.setEventHandler('click', function (event) {\n if (!math.end.node) {\n math.start.node = math.end.node = math.typesetRoot;\n math.start.n = math.end.n = 0;\n }\n mml.nextToggleSelection();\n math.rerender(document);\n event.stopPropagation();\n });\n }, {}]], ['tooltip', [function (node, data) {\n var tip = node.childNodes[1];\n if (!tip) return;\n var rect = node.firstChild();\n if (tip.node.isKind('mtext')) {\n var text = tip.node.getText();\n node.adaptor.insert(node.svg('title', {}, [node.text(text)]), rect);\n } else {\n var adaptor_1 = node.adaptor;\n var container_1 = node.jax.container;\n var math = node.node.factory.create('math', {}, [node.childNodes[1].node]);\n var tool_1 = node.html('mjx-tool', {}, [node.html('mjx-tip')]);\n var hidden_1 = adaptor_1.append(rect, node.svg('foreignObject', {\n style: {\n display: 'none'\n }\n }, [tool_1]));\n node.jax.processMath(math, adaptor_1.firstChild(tool_1));\n node.childNodes[1].node.parent = node.node;\n node.setEventHandler('mouseover', function (event) {\n data.stopTimers(node, data);\n data.hoverTimer.set(node, setTimeout(function () {\n adaptor_1.setStyle(tool_1, 'left', '0');\n adaptor_1.setStyle(tool_1, 'top', '0');\n adaptor_1.append(container_1, tool_1);\n var tbox = adaptor_1.nodeBBox(tool_1);\n var nbox = adaptor_1.nodeBBox(node.element);\n var dx = (nbox.right - tbox.left) / node.metrics.em + node.dx;\n var dy = (nbox.bottom - tbox.bottom) / node.metrics.em + node.dy;\n adaptor_1.setStyle(tool_1, 'left', node.px(dx));\n adaptor_1.setStyle(tool_1, 'top', node.px(dy));\n }, data.postDelay));\n event.stopPropagation();\n });\n node.setEventHandler('mouseout', function (event) {\n data.stopTimers(node, data);\n var timer = setTimeout(function () {\n return adaptor_1.append(hidden_1, tool_1);\n }, data.clearDelay);\n data.clearTimer.set(node, timer);\n event.stopPropagation();\n });\n }\n }, maction_js_2.TooltipData]], ['statusline', [function (node, data) {\n var tip = node.childNodes[1];\n if (!tip) return;\n if (tip.node.isKind('mtext')) {\n var adaptor_2 = node.adaptor;\n var text_1 = tip.node.getText();\n adaptor_2.setAttribute(node.element, 'data-statusline', text_1);\n node.setEventHandler('mouseover', function (event) {\n if (data.status === null) {\n var body = adaptor_2.body(adaptor_2.document);\n data.status = adaptor_2.append(body, node.html('mjx-status', {}, [node.text(text_1)]));\n }\n event.stopPropagation();\n });\n node.setEventHandler('mouseout', function (event) {\n if (data.status) {\n adaptor_2.remove(data.status);\n data.status = null;\n }\n event.stopPropagation();\n });\n }\n }, {\n status: null\n }]]]);\n return SVGmaction;\n}((0, maction_js_1.CommonMactionMixin)(Wrapper_js_1.SVGWrapper));\nexports.SVGmaction = SVGmaction;","map":{"version":3,"names":["__extends","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","TypeError","String","__","constructor","create","defineProperty","exports","value","SVGmaction","Wrapper_js_1","require","maction_js_1","maction_js_2","maction_js_3","_super","apply","arguments","toSVG","parent","svg","standardSVGnode","child","selected","_a","getOuterBBox","h","w","adaptor","append","element","width","fixed","height","y","fill","bbox","place","L","rscale","action","data","setEventHandler","type","handler","addEventListener","kind","MmlMaction","styles","display","position","top","left","padding","border","color","cursor","bottom","actions","Map","node","_data","setAttribute","attributes","get","math","factory","jax","document","mml","event","end","start","typesetRoot","n","nextToggleSelection","rerender","stopPropagation","tip","childNodes","rect","firstChild","isKind","text","getText","insert","adaptor_1","container_1","container","tool_1","html","hidden_1","style","processMath","stopTimers","hoverTimer","set","setTimeout","setStyle","tbox","nodeBBox","nbox","dx","right","metrics","em","dy","px","postDelay","timer","clearDelay","clearTimer","TooltipData","adaptor_2","text_1","status","body","remove","CommonMactionMixin","SVGWrapper"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/mathjax-full/js/output/svg/Wrappers/maction.js"],"sourcesContent":["\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SVGmaction = void 0;\nvar Wrapper_js_1 = require(\"../Wrapper.js\");\nvar maction_js_1 = require(\"../../common/Wrappers/maction.js\");\nvar maction_js_2 = require(\"../../common/Wrappers/maction.js\");\nvar maction_js_3 = require(\"../../../core/MmlTree/MmlNodes/maction.js\");\nvar SVGmaction = (function (_super) {\n __extends(SVGmaction, _super);\n function SVGmaction() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n SVGmaction.prototype.toSVG = function (parent) {\n var svg = this.standardSVGnode(parent);\n var child = this.selected;\n var _a = child.getOuterBBox(), h = _a.h, d = _a.d, w = _a.w;\n this.adaptor.append(this.element, this.svg('rect', {\n width: this.fixed(w), height: this.fixed(h + d), y: this.fixed(-d),\n fill: 'none', 'pointer-events': 'all'\n }));\n child.toSVG(svg);\n var bbox = child.getOuterBBox();\n if (child.element) {\n child.place(bbox.L * bbox.rscale, 0);\n }\n this.action(this, this.data);\n };\n SVGmaction.prototype.setEventHandler = function (type, handler) {\n this.element.addEventListener(type, handler);\n };\n SVGmaction.kind = maction_js_3.MmlMaction.prototype.kind;\n SVGmaction.styles = {\n '[jax=\"SVG\"] mjx-tool': {\n display: 'inline-block',\n position: 'relative',\n width: 0, height: 0\n },\n '[jax=\"SVG\"] mjx-tool > mjx-tip': {\n position: 'absolute',\n top: 0, left: 0\n },\n 'mjx-tool > mjx-tip': {\n display: 'inline-block',\n padding: '.2em',\n border: '1px solid #888',\n 'font-size': '70%',\n 'background-color': '#F8F8F8',\n color: 'black',\n 'box-shadow': '2px 2px 5px #AAAAAA'\n },\n 'g[data-mml-node=\"maction\"][data-toggle]': {\n cursor: 'pointer'\n },\n 'mjx-status': {\n display: 'block',\n position: 'fixed',\n left: '1em',\n bottom: '1em',\n 'min-width': '25%',\n padding: '.2em .4em',\n border: '1px solid #888',\n 'font-size': '90%',\n 'background-color': '#F8F8F8',\n color: 'black'\n }\n };\n SVGmaction.actions = new Map([\n ['toggle', [function (node, _data) {\n node.adaptor.setAttribute(node.element, 'data-toggle', node.node.attributes.get('selection'));\n var math = node.factory.jax.math;\n var document = node.factory.jax.document;\n var mml = node.node;\n node.setEventHandler('click', function (event) {\n if (!math.end.node) {\n math.start.node = math.end.node = math.typesetRoot;\n math.start.n = math.end.n = 0;\n }\n mml.nextToggleSelection();\n math.rerender(document);\n event.stopPropagation();\n });\n }, {}]],\n ['tooltip', [function (node, data) {\n var tip = node.childNodes[1];\n if (!tip)\n return;\n var rect = node.firstChild();\n if (tip.node.isKind('mtext')) {\n var text = tip.node.getText();\n node.adaptor.insert(node.svg('title', {}, [node.text(text)]), rect);\n }\n else {\n var adaptor_1 = node.adaptor;\n var container_1 = node.jax.container;\n var math = node.node.factory.create('math', {}, [node.childNodes[1].node]);\n var tool_1 = node.html('mjx-tool', {}, [node.html('mjx-tip')]);\n var hidden_1 = adaptor_1.append(rect, node.svg('foreignObject', { style: { display: 'none' } }, [tool_1]));\n node.jax.processMath(math, adaptor_1.firstChild(tool_1));\n node.childNodes[1].node.parent = node.node;\n node.setEventHandler('mouseover', function (event) {\n data.stopTimers(node, data);\n data.hoverTimer.set(node, setTimeout(function () {\n adaptor_1.setStyle(tool_1, 'left', '0');\n adaptor_1.setStyle(tool_1, 'top', '0');\n adaptor_1.append(container_1, tool_1);\n var tbox = adaptor_1.nodeBBox(tool_1);\n var nbox = adaptor_1.nodeBBox(node.element);\n var dx = (nbox.right - tbox.left) / node.metrics.em + node.dx;\n var dy = (nbox.bottom - tbox.bottom) / node.metrics.em + node.dy;\n adaptor_1.setStyle(tool_1, 'left', node.px(dx));\n adaptor_1.setStyle(tool_1, 'top', node.px(dy));\n }, data.postDelay));\n event.stopPropagation();\n });\n node.setEventHandler('mouseout', function (event) {\n data.stopTimers(node, data);\n var timer = setTimeout(function () { return adaptor_1.append(hidden_1, tool_1); }, data.clearDelay);\n data.clearTimer.set(node, timer);\n event.stopPropagation();\n });\n }\n }, maction_js_2.TooltipData]],\n ['statusline', [function (node, data) {\n var tip = node.childNodes[1];\n if (!tip)\n return;\n if (tip.node.isKind('mtext')) {\n var adaptor_2 = node.adaptor;\n var text_1 = tip.node.getText();\n adaptor_2.setAttribute(node.element, 'data-statusline', text_1);\n node.setEventHandler('mouseover', function (event) {\n if (data.status === null) {\n var body = adaptor_2.body(adaptor_2.document);\n data.status = adaptor_2.append(body, node.html('mjx-status', {}, [node.text(text_1)]));\n }\n event.stopPropagation();\n });\n node.setEventHandler('mouseout', function (event) {\n if (data.status) {\n adaptor_2.remove(data.status);\n data.status = null;\n }\n event.stopPropagation();\n });\n }\n }, {\n status: null\n }]]\n ]);\n return SVGmaction;\n}((0, maction_js_1.CommonMactionMixin)(Wrapper_js_1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