filesbox/web/dist/56532.668a92ee.async.js
2024-07-26 14:10:54 +08:00

2 lines
1.1 KiB
JavaScript

(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[56532],{56532:function(v,g,f){v=f.nmd(v),ace.define("ace/ext/linking",["require","exports","module","ace/editor","ace/config"],function(u,n,p){var k=u("../editor").Editor;u("../config").defineOptions(k.prototype,"editor",{enableLinking:{set:function(i){i?(this.on("click",a),this.on("mousemove",s)):(this.off("click",a),this.off("mousemove",s))},value:!1}}),n.previousLinkingHover=!1;function s(i){var e=i.editor,c=i.getAccelKey();if(c){var e=i.editor,o=i.getDocumentPosition(),t=e.session,r=t.getTokenAt(o.row,o.column);n.previousLinkingHover&&n.previousLinkingHover!=r&&e._emit("linkHoverOut"),e._emit("linkHover",{position:o,token:r}),n.previousLinkingHover=r}else n.previousLinkingHover&&(e._emit("linkHoverOut"),n.previousLinkingHover=!1)}function a(i){var e=i.getAccelKey(),c=i.getButton();if(c==0&&e){var o=i.editor,t=i.getDocumentPosition(),r=o.session,l=r.getTokenAt(t.row,t.column);o._emit("linkClick",{position:t,token:l})}}}),function(){ace.require(["ace/ext/linking"],function(u){v&&(v.exports=u)})}()}}]);