web-interface.assets.7d64980faff5b041a461fd0ba3e2f3f5.js Maven / Gradle / Ivy
(()=>{var R=(i,s)=>()=>(s||i((s={exports:{}}).exports,s),s.exports);var O=R((b,E)=>{ace.define("ace/ext/code_lens",["require","exports","module","ace/line_widgets","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/editor","ace/config"],function(i,s,P){"use strict";var _=i("../line_widgets").LineWidgets,W=i("../lib/event"),H=i("../lib/lang"),$=i("../lib/dom");function T(e){var t=e.$textLayer,n=t.$lenses;n&&n.forEach(function(o){o.remove()}),t.$lenses=null}function C(e,t){var n=e&t.CHANGE_LINES||e&t.CHANGE_FULL||e&t.CHANGE_SCROLL||e&t.CHANGE_TEXT;if(n){var o=t.session,c=t.session.lineWidgets,v=t.$textLayer,a=v.$lenses;if(!c){a&&T(t);return}var g=t.$textLayer.$lines.cells,l=t.layerConfig,p=t.$padding;a||(a=v.$lenses=[]);for(var d=0,m=0;m2*u-1;)r.lastChild.remove();var A=t.$cursorLayer.getPixelPosition({row:f,column:0},!0).top-l.lineHeight*L.rowsAbove-l.offset;r.style.top=A+"px";var y=t.gutterWidth,x=o.getLine(f).search(/\S|$/);x==-1&&(x=0),y+=x*l.characterWidth,r.style.paddingLeft=p+y+"px"}}for(;d1)){var m=n.documentToScreenRow(a),f=e.renderer.layerConfig.lineHeight,L=n.getScrollTop()+(m-g)*f;p==0&&l-f/4&&(L=-f),n.setScrollTop(L)}}};var t=H.delayedCall(e.$updateLenses);e.$updateLensesOnInput=function(){t.delay(250)},e.on("input",e.$updateLensesOnInput)}function M(e){e.off("input",e.$updateLensesOnInput),e.renderer.off("afterRender",C),e.$codeLensClickHandler&&e.container.removeEventListener("click",e.$codeLensClickHandler)}s.registerCodeLensProvider=function(e,t){e.setOption("enableCodeLens",!0),e.codeLensProviders.push(t),e.$updateLensesOnInput()},s.clear=function(e){s.setLenses(e,null)};var S=i("../editor").Editor;i("../config").defineOptions(S.prototype,"editor",{enableCodeLens:{set:function(e){e?N(this):M(this)}}}),$.importCssString(`
.ace_codeLens {
position: absolute;
color: #aaa;
font-size: 88%;
background: inherit;
width: 100%;
display: flex;
align-items: flex-end;
pointer-events: none;
}
.ace_codeLens > a {
cursor: pointer;
pointer-events: auto;
}
.ace_codeLens > a:hover {
color: #0000ff;
text-decoration: underline;
}
.ace_dark > .ace_codeLens > a:hover {
color: #4e94ce;
}
`,"codelense.css",!1)});(function(){ace.require(["ace/ext/code_lens"],function(i){typeof E=="object"&&typeof b=="object"&&E&&(E.exports=i)})})()});O();})();
//# sourceMappingURL=7d64980faff5b041a461fd0ba3e2f3f5.js.map
© 2015 - 2024 Weber Informatics LLC | Privacy Policy