Skip to content

Commit

Permalink
obeying the commands of mighty jshint
Browse files Browse the repository at this point in the history
  • Loading branch information
strathausen committed Aug 26, 2014
1 parent 6970301 commit 8859d59
Show file tree
Hide file tree
Showing 5 changed files with 313 additions and 288 deletions.
3 changes: 3 additions & 0 deletions .jshintrc
@@ -0,0 +1,3 @@
{
"expr": true
}
5 changes: 4 additions & 1 deletion Gruntfile.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions lib/dracula_graffle.js
Expand Up @@ -104,25 +104,25 @@ Raphael.fn.connection = function Connection(obj1, obj2, style) {
/* function to be used for moving existent path(s), e.g. animate() or attr() */
var move = "attr";
/* applying path(s) */
edge.fg && edge.fg[move]({path:path})
|| (edge.fg = selfRef.path(path)
edge.fg && edge.fg[move]({path:path}) ||
(edge.fg = selfRef.path(path)
.attr({ stroke: style && style.stroke || "#000", fill: "none" })
.toBack());
edge.bg && edge.bg[move]({path:path})
|| style && style.fill && (edge.bg = style.fill.split
&& selfRef.path(path)
edge.bg && edge.bg[move]({path:path}) ||
style && style.fill && (edge.bg = style.fill.split &&
selfRef.path(path)
.attr({ stroke: style.fill.split("|")[0], fill: "none",
"stroke-width": style.fill.split("|")[1] || 3 }).toBack());
/* setting label */
style && style.label
&& (edge.label && edge.label.attr({x:(x1+x4)/2, y:(y1+y4)/2})
|| (edge.label = selfRef.text((x1+x4)/2, (y1+y4)/2, style.label)
style && style.label &&
(edge.label && edge.label.attr({x:(x1+x4)/2, y:(y1+y4)/2}) ||
(edge.label = selfRef.text((x1+x4)/2, (y1+y4)/2, style.label)
.attr({fill: "#000", "font-size": style["font-size"] || "12px"})));
style && style.label && style["label-style"] && edge.label
&& edge.label.attr(style["label-style"]);
style && style.label && style["label-style"] && edge.label &&
edge.label.attr(style["label-style"]);
style && style.callback && style.callback(edge);
}
}
};
edge.draw();
return edge;
};

0 comments on commit 8859d59

Please sign in to comment.