Commit 8617dc64 authored by Philippe Bardou's avatar Philippe Bardou
Browse files

Display name

parent 382753fa
......@@ -13888,7 +13888,6 @@ var cytoscape;
context.beginPath();
context.arc(x, y, 30, 0, 2 * Math.PI, false);
var my_gradient = context.createLinearGradient(0,0,0,40);
console.log(node);
if(node[0].css('border-width') == '0.8px') {
context.shadowColor = 'darkgrey';
context.shadowBlur = 3;
......
......@@ -191,14 +191,14 @@
if(data.nodes[i].type == "input" || data.nodes[i].type == "inputs") {
nodes.push({ data: {
id: data.nodes[i].name,
name: data.nodes[i].name,
name: data.nodes[i].display_name,
type: data.nodes[i].type }
});
}
else if(data.nodes[i].type == "component") {
nodes.push({ data: {
id: data.nodes[i].name,
name: data.nodes[i].name,
name: data.nodes[i].display_name,
type: data.nodes[i].type,
err: components[data.nodes[i].name].err,
wai: components[data.nodes[i].name].wai,
......@@ -244,7 +244,7 @@
.css({
'width': '80px',
'height': '80px',
'content': 'data(id)',
'content': 'data(name)',
'pie-size': '100%',
'pie-1-background-color': 'lightgrey', //Error
'pie-1-background-size': 'mapData(err, 0, 100, 0, 100)',
......@@ -267,7 +267,7 @@
.css({
'width': '62px',
'height': '62px',
'content': 'data(id)',
'content': 'data(name)',
'text-valign': 'bottom',
'color': 'black',
'font-family': '"Trebuchet MS",Verdana,"Lucida Grande", Tahoma, Helvetica, sans-serif',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment