graphdb-workbench
Version:
The web application for GraphDB APIs
2 lines • 2.71 kB
JavaScript
export const __webpack_id__=3559;export const __webpack_ids__=[3559];export const __webpack_modules__={19935:(t,n,e)=>{e.d(n,{A:()=>c}),e(62979);var o=e(93462);const r={dispatch:o.dispatch,pointer:o.pointer};var i=i||{};i.Text=function(){function t(t,n,e,o){e=e||10;var r=n/3;return"string"==typeof t?(r*=10/(t.substring(0,n/3).length+1.5),r+=1,t.match(/[\u0900-\u0DFF\u1100-\u11FF\u2E80-\u2EFF\u3000-\u9FFF]/)&&(r*=.6),r<e&&(r=e),Math.round(r)):(r<e&&(r=e),Math.round(r))}return{calcFontSizeRaw:t,calcFontSize:function(n,e,o,r){return t(n,e,o)+"px"},getTextWithElipsisIfNeeded:function(t,n){return"string"==typeof t&&t.length>n?t.substring(0,n-3)+"...":t}}}(),i.Transition={fadeIn:function(t,n){t.style("opacity",0).transition().duration(n).style("opacity",1)},fadeOut:function(t,n){t.style("opacity",1).transition().duration(n).style("opacity",0)}},i.Click=function(){function t(t,n,e){return function(){var o=e.apply(n,arguments);return o===n?t:o}}return{delayDblClick:function(){var n=r.dispatch("click","dblclick");return function(n,e){let o,r=1,i=arguments.length;for(;++r<i;)o=arguments[r],n[o]=t(n,e,e[o]);return n}(function(t){var e,o=null;t.on("mousedown",function(){e=r.pointer(document.body),new Date}),t.on("mouseup",function(t,i){var c,u,a;u=e,a=r.pointer(document.body),Math.sqrt(Math.pow(u[0]-a[0],2),Math.pow(u[1]-a[1],2))>5||(o?(window.clearTimeout(o),o=null,n.call("dblclick",t,t,i)):o=window.setTimeout((c=t,function(){n.call("click",c,c,i),o=null}),250))})},n,"on")}}}();const c=i},62979:(t,n,e)=>{var o,r;o=[e(93462)],void 0===(r=function(t){function n(t,n){return t.each(function(){var t=n.apply(this,arguments),e=select(this);for(var o in t)e.attr(o,t[o])})}function o(t,n){for(var e in n)t.attr(e,n[e]);return t}return void 0===t&&(t=e(93462)),t.selection.prototype.attrs=function(t){return("function"==typeof t?n:o)(this,t)},t.selection.prototype.moveToFront=function(){return this.each(function(){t.select(this.parentNode.appendChild(this))})},t.selection.prototype.moveToBack=function(){return this.each(function(){const t=this.parentNode.firstChild;t&&this.parentNode.insertBefore(this,t)})},t}.apply(n,o))||(t.exports=r)},88141:(t,n,e)=>{e.d(n,{A:()=>i}),e(62979);const o={selectAll:e(93462).selectAll};var r=r||{};r.Export={getCSSRules:function(t){const n=$('link[href="'+t+'"]')[0].sheet.rules;let e="";return _.each(n,function(t){e+=t.cssText}),e},generateBase64ImageSource:function(t){t||(t="svg");const n=o.selectAll(t).attr("version","1.1").attr("xmlns","http://www.w3.org/2000/svg").node().parentNode.innerHTML;return"data:image/svg+xml;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(n)))}};const i=r}};
//# sourceMappingURL=3559.75290b3599772fa7b6df.bundle.js.map