{"version":3,"sources":["jsdelivr-header.js","/npm/angular-d3-hierarchy@1.0.0/angular-d3-hierarchy.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,QAAQ,OAAO,uBAAwB,IACtC,UAAU,eAAe,WACzB,MAAO,CACN,MAAO,CACN,YAAa,IACb,MAAO,KACP,OAAQ,KACR,MAAO,MAER,SAAU,KACV,WAAY,SAAS,EAAQ,GAC5B,EAAO,QAAU,WAChB,EAAO,MACN,EAAO,IAAI,MAAM,eAEhB,QAAO,SAAS,GAAK,OAAI,EAAE,KAAgB,KAAK,IAAI,EAAE,MAAsB,CAAK,IACjF,SAAS,CAAC,GAAK,IACf,YAAY,EAAO,OAAS,GAK9B,EAAO,MAAM,KAAK,EAAO,YAC1B,EAEA,EAAO,OAAO,cAAe,EAAO,QACrC,EACA,KAAM,SAAS,EAAQ,GACtB,EAAS,SAAS,eAClB,EAAO,IAAM,GAAG,OAAO,EAAS,IAAI,OAAO,OACzC,KAAK,QAAS,EAAO,OAAS,KAC9B,KAAK,SAAU,EAAO,QAAU,IACnC,EAEF","file":"/npm/angular-d3-hierarchy@1.0.0/angular-d3-hierarchy.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/angular-d3-hierarchy@1.0.0/angular-d3-hierarchy.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","angular.module('angular-d3-hierarchy', [])\n.directive('d3Hierarchy', function() {\n\treturn {\n\t\tscope: {\n\t\t\td3Hierarchy: '=',\n\t\t\twidth: '=?',\n\t\t\theight: '=?',\n\t\t\tdepth: '=?'\n\t\t},\n\t\trestrict: 'AE',\n\t\tcontroller: function($scope, $element) {\n\t\t\t$scope.refresh = function() {\n\t\t\t\t$scope.chart =\n\t\t\t\t\t$scope.svg.chart(\"tree.radial\")\n\t\t\t\t\t//.diameter(500)\n\t\t\t\t\t.radius(function(d) { if( d.size ) { return Math.log(d.size) } else { return 5 }; })\n\t\t\t\t\t.zoomable([0.1, 3])\n\t\t\t\t\t.collapsible($scope.depth || 1)\n\t\t\t\t\t//.duration(200)\n\t\t\t\t\t//.sortable(\"_ASC\") \n\t\t\t\t\t;\n\n\t\t\t\t$scope.chart.draw($scope.d3Hierarchy);\n\t\t\t};\n\n\t\t\t$scope.$watch('d3Hierarchy', $scope.refresh);\n\t\t},\n\t\tlink: function($scope, $element) {\n\t\t\t$element.addClass('d3Hierarchy');\n\t\t\t$scope.svg = d3.select($element[0]).append(\"svg\")\n\t\t\t\t.attr('width', $scope.width || 800)\n\t\t\t\t.attr('height', $scope.height || 800);\n\t\t}\n\t}\n});\n"]}