UNPKG

graphdb-workbench

Version:
2 lines 1.38 kB
export const __webpack_id__=5548;export const __webpack_ids__=[5548,6425];export const __webpack_modules__={5548:(e,r,t)=>{t.r(r),t(82493),t(5687),t(25222),t(76933),t(18301),t(6425),angular.module("graphdb.framework.jmx.resources",["toastr","ui.bootstrap","graphdb.framework.jmx.resources.controllers","graphdb.framework.core.services.repositories","graphdb.framework.core.directives","graphdb.framework.resources.directives"])},6425:(e,r,t)=>{t.r(r);var a=t(18301);angular.module("graphdb.framework.resources.directives",[]).directive("chart",["$rootScope",function(e){return{restrict:"AE",scope:{chart:"="},link:function(r,t){let o;const s=e.$on("$translateChangeSuccess",()=>{r.chart.translateLabels(),o.setOption(r.chart.chartOptions)});function n(){o.setOption(r.chart.chartOptions),r.chart.updateRange(r.chart.dataHolder),o.hideLoading()}function c(e){r.chart.setSelectedSeries(e.selected)}function i(){o.resize()}r.$watch("chart",function(){o=a.Ts(t[0],null,{renderer:"svg"}),o.setOption(r.chart.chartOptions),o.showLoading(),o.on("legendselectchanged",c),r.chart.registerRefreshHandler(n),r.chart.translateLabels(),window.addEventListener("resize",i)}),r.$on("$destroy",function(){o.on("legendselectchanged"),o.dispose(),r.chart.unregisterRefreshHandler(n),s(),window.removeEventListener("resize",i)})}}}])}}; //# sourceMappingURL=5548.2eff601e1b3efbaeed0e.bundle.js.map