Commit c8ae1921 authored by leoborn's avatar leoborn
Browse files

[vissuite] fixed bug that colors were incorrect after mapping node types

parent f7911c0e
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -504,8 +504,8 @@ angular
                        edges.update(edges.get());

                        angular.forEach(nodes.get(), function(nodeVal, nodeKey){
                            if( nodeVal.label in $scope.node_shape_mapping ){
                                var color = $scope.node_color_mapping[nodeVal.label];
                            if( nodeVal.label_original in $scope.node_shape_mapping ){
                                var color = $scope.node_color_mapping[nodeVal.label_original];
                                nodeVal.color.background = color.background;
                            }
                            else{
@@ -575,8 +575,8 @@ angular
                        nodeVal.color.background = "#cccccc";
                    }
                    else{
                        if( nodeVal.label in $scope.node_color_mapping ){
                            var color = $scope.node_color_mapping[nodeVal.label];
                        if( nodeVal.label_original in $scope.node_color_mapping ){
                            var color = $scope.node_color_mapping[nodeVal.label_original];
                            nodeVal.color.background = color.background;
                        }
                        else{
@@ -853,8 +853,8 @@ angular
                edges.update(edges.get());

                angular.forEach(nodes.get(), function(nodeVal, nodeKey){
                    if( nodeVal.label == node_type_label ){
                        var color = $scope.node_color_mapping[nodeVal.label];
                    if( nodeVal.label_original == node_type_label ){
                        var color = $scope.node_color_mapping[nodeVal.label_original];
                        nodeVal.color.background = color.background;
                    }
                    else{