UNPKG

graphdb-workbench

Version:
2 lines 1.38 kB
export const __webpack_esm_id__=5548;export const __webpack_esm_ids__=[5548,6425];export const __webpack_esm_modules__={5548:(e,r,t)=>{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)=>{var s=t(18301);angular.module("graphdb.framework.resources.directives",[]).directive("chart",["$rootScope",function(e){return{restrict:"AE",scope:{chart:"="},link:function(r,t){let a;const o=e.$on("$translateChangeSuccess",()=>{r.chart.translateLabels(),a.setOption(r.chart.chartOptions)});function n(){a.setOption(r.chart.chartOptions),r.chart.updateRange(r.chart.dataHolder),a.hideLoading()}function c(e){r.chart.setSelectedSeries(e.selected)}function i(){a.resize()}r.$watch("chart",function(){a=s.Ts(t[0],null,{renderer:"svg"}),a.setOption(r.chart.chartOptions),a.showLoading(),a.on("legendselectchanged",c),r.chart.registerRefreshHandler(n),r.chart.translateLabels(),window.addEventListener("resize",i)}),r.$on("$destroy",function(){a.on("legendselectchanged"),a.dispose(),r.chart.unregisterRefreshHandler(n),o(),window.removeEventListener("resize",i)})}}}])}}; //# sourceMappingURL=5548.1cd54951bfed43413ab1.bundle.js.map