trac/htdocs/js/workflow_graph.js
Function drawEdge
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function drawEdge(ctx, edge) {
var p = [{x: edge.source.bx + edge.source.bw * 2 / 3,
y: edge.source.by - 1,
dx: 0, dy: -1},
{x: edge.source.bx + edge.source.bw / 3,
Function computeBoundsAndJustify
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function computeBoundsAndJustify(ctx, nodes, width, height) {
var borderx = 20, bordery = 20, r = 7, h = 13;
ctx.font = '13px Arial';
var bws = [], xs = [], ys = [];
$.each(nodes, function (index, node) {
Function evalBezierCurve
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function evalBezierCurve(p1, p2, p3, p4, t) {