diff options
Diffstat (limited to 'client/js/controllers/home/home.js')
| -rwxr-xr-x | client/js/controllers/home/home.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/client/js/controllers/home/home.js b/client/js/controllers/home/home.js index c64fc6d..98c1b61 100755 --- a/client/js/controllers/home/home.js +++ b/client/js/controllers/home/home.js @@ -9,6 +9,10 @@ mainApp.controller('homeCtrl', ['$scope', 'Compute', '$rootScope', 'Loading', 'I $rootScope.$broadcast("showMachineCreationEvent", Compute.getData().axioms); }; var displayMachine = function () { + + + + var machineNames = []; var i = 0; $.each(Compute.getData().machines, function () { @@ -43,8 +47,8 @@ mainApp.controller('homeCtrl', ['$scope', 'Compute', '$rootScope', 'Loading', 'I }, joint.shapes.basic.Rect.prototype.defaults) }); - var graph = new joint.dia.Graph; - var paper = new joint.dia.Paper({ + var graph = new joint.dia.Graph; + var paper = new joint.dia.Paper({ el: $('#graphHolder'), width: $('#graphHolder').width(), //height: test.height, @@ -138,7 +142,7 @@ mainApp.controller('homeCtrl', ['$scope', 'Compute', '$rootScope', 'Loading', 'I // On user login $scope.$on('updateGraphEvent', function () { - // call update graph + displayMachine() }); //Return a new link linking the parent and child elements with the interfaces names given in parameters function makeLink(parentElementLabel, childElementLabel, Iparent, Ichild) { |
