label: fixing text

This commit is contained in:
Michael Sokol 2012-03-23 14:26:45 +01:00
parent cd89680700
commit 1a1a2bad3d

View File

@ -221,7 +221,8 @@ jQuery.fn.springy = function(params) {
// label
if (text = typeof(edge.data.label) !== 'undefined') {
if (typeof(edge.data.label) !== 'undefined') {
text = edge.data.label
ctx.save();
ctx.textAlign = "center";
ctx.textBaseline = "top";