1 |
- {"version":3,"file":"ext-linking-884a62c0.js","sources":["../../node_modules/ace-builds/src-noconflict/ext-linking.js"],"sourcesContent":["ace.define(\"ace/ext/linking\",[\"require\",\"exports\",\"module\",\"ace/editor\",\"ace/config\"], function(require, exports, module){var Editor = require(\"../editor\").Editor;\nrequire(\"../config\").defineOptions(Editor.prototype, \"editor\", {\n enableLinking: {\n set: function (val) {\n if (val) {\n this.on(\"click\", onClick);\n this.on(\"mousemove\", onMouseMove);\n }\n else {\n this.off(\"click\", onClick);\n this.off(\"mousemove\", onMouseMove);\n }\n },\n value: false\n }\n});\nexports.previousLinkingHover = false;\nfunction onMouseMove(e) {\n var editor = e.editor;\n var ctrl = e.getAccelKey();\n if (ctrl) {\n var editor = e.editor;\n var docPos = e.getDocumentPosition();\n var session = editor.session;\n var token = session.getTokenAt(docPos.row, docPos.column);\n if (exports.previousLinkingHover && exports.previousLinkingHover != token) {\n editor._emit(\"linkHoverOut\");\n }\n editor._emit(\"linkHover\", { position: docPos, token: token });\n exports.previousLinkingHover = token;\n }\n else if (exports.previousLinkingHover) {\n editor._emit(\"linkHoverOut\");\n exports.previousLinkingHover = false;\n }\n}\nfunction onClick(e) {\n var ctrl = e.getAccelKey();\n var button = e.getButton();\n if (button == 0 && ctrl) {\n var editor = e.editor;\n var docPos = e.getDocumentPosition();\n var session = editor.session;\n var token = session.getTokenAt(docPos.row, docPos.column);\n editor._emit(\"linkClick\", { position: docPos, token: token });\n }\n}\n\n}); (function() {\n ace.require([\"ace/ext/linking\"], function(m) {\n if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n module.exports = m;\n }\n });\n })();\n "],"names":["require","exports","module","Editor","val","onClick","onMouseMove","e","editor","ctrl","docPos","session","token","button","m"],"mappings":"gaAAA,IAAI,OAAO,kBAAkB,CAAC,UAAU,UAAU,SAAS,aAAa,YAAY,EAAG,SAASA,EAASC,EAASC,EAAO,CAAC,IAAIC,EAASH,EAAQ,WAAW,EAAE,OAC5JA,EAAQ,WAAW,E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