I have been playing around with the 'Visual Style' demo but the application is not displaying the node color or text outline. Here are the modifications I have made:
I have replaced the node and edges with my variables but left the format the same, e.g. id, name, weight, faveColor and faveShape. The colors were changed as were the shapes. When run against IE, FF, and GC, I get a fault pointing to: the Cytoscape.js file:
if( !flatProp ){ printMappingErr(); }
flatProp.mapping = prop; // keep a reference to the mapping
prop = flatProp; // the flattened (mapped) property is the one we want
break;
The error message states:
Unhandled exception at line 5764, column 7 in http://localhost:52970/javascript/cytoscape.js
0x800a138f - JavaScript runtime error: Unable to set property 'mapping' of undefined or null reference
When I comment the css for (node) width, background-color, text-outline-color, and color, the application execute in the fashion expected. I may be doing something wrong but can't figure out what it is. The concept works in Cytoscape and Cytoscape Web. Code listed below:
I have been playing around with the 'Visual Style' demo but the application is not displaying the node color or text outline. Here are the modifications I have made:
I have replaced the node and edges with my variables but left the format the same, e.g. id, name, weight, faveColor and faveShape. The colors were changed as were the shapes. When run against IE, FF, and GC, I get a fault pointing to: the Cytoscape.js file:
if( !flatProp ){ printMappingErr(); } flatProp.mapping = prop; // keep a reference to the mapping prop = flatProp; // the flattened (mapped) property is the one we want break;
The error message states:
Unhandled exception at line 5764, column 7 in http://localhost:52970/javascript/cytoscape.js 0x800a138f - JavaScript runtime error: Unable to set property 'mapping' of undefined or null reference
When I comment the css for (node) width, background-color, text-outline-color, and color, the application execute in the fashion expected. I may be doing something wrong but can't figure out what it is. The concept works in Cytoscape and Cytoscape Web. Code listed below: