Liferay.Loader.define("portal-search-web$codemirror@5.62.0/addon/display/rulers",["module","exports","require","../../lib/codemirror"],(function(e,r,t){window,function(e){"use strict";function r(r){r.state.rulerDiv.textContent="";var t=r.getOption("rulers"),l=r.defaultCharWidth(),i=r.charCoords(e.Pos(r.firstLine(),0),"div").left;r.state.rulerDiv.style.minHeight=r.display.scroller.offsetHeight+30+"px";for(var o=0;o<t.length;o++){var s=document.createElement("div");s.className="CodeMirror-ruler";var a,n=t[o];"number"==typeof n?a=n:(a=n.column,n.className&&(s.className+=" "+n.className),n.color&&(s.style.borderColor=n.color),n.lineStyle&&(s.style.borderLeftStyle=n.lineStyle),n.width&&(s.style.borderLeftWidth=n.width)),s.style.left=i+a*l+"px",r.state.rulerDiv.appendChild(s)}}e.defineOption("rulers",!1,(function(e,t){e.state.rulerDiv&&(e.state.rulerDiv.parentElement.removeChild(e.state.rulerDiv),e.state.rulerDiv=null,e.off("refresh",r)),t&&t.length&&(e.state.rulerDiv=e.display.lineSpace.parentElement.insertBefore(document.createElement("div"),e.display.lineSpace),e.state.rulerDiv.className="CodeMirror-rulers",r(e),e.on("refresh",r))}))}("object"==typeof r&&"object"==typeof e?t("../../lib/codemirror"):CodeMirror)}));
//# sourceMappingURL=rulers.js.map