Styles on links

This commit is contained in:
knsv
2014-11-26 20:47:22 +01:00
parent 8e591c0494
commit d52224194c
8 changed files with 239 additions and 205 deletions

View File

@@ -62,8 +62,9 @@ exports.addLink = function (start, end, type, linktext) {
* @param style
*/
exports.updateLink = function (pos, style) {
console.log('Updating '+pos+'link:'+style);
var position = pos.substr(1);
edges[position].style = style;
edges[pos].style = style;
};
exports.addClass = function (id, style) {