diff --git a/src/c3nav/editor/static/editor/js/editor.js b/src/c3nav/editor/static/editor/js/editor.js index 06edd3ad..3b831a97 100644 --- a/src/c3nav/editor/static/editor/js/editor.js +++ b/src/c3nav/editor/static/editor/js/editor.js @@ -2286,7 +2286,6 @@ editor = { } else { height = Math.min(...ys) - ys[0] } - //console.log(xs, ys, base_length, height) lines = [{p1: { x: xs[0], y: ys[0] }, p2: { x: xs[1], y: ys[1] }}] for (i = 1; i < num_stairs; ++i) { @@ -2299,7 +2298,6 @@ editor = { x1 = xs[j] x2 = xs[(j+1)%n] if ((y1 > y && y2 > y) || (y1 < y && y2 < y)) { - //console.log("disconnected", y, j, x1,y1, x2,y2, xs, ys) continue } @@ -2311,11 +2309,9 @@ editor = { m = (y2 - y1) / (x2 - x1) q = y2 - m * x2 - //console.log("connected", y, j, x1,y1, x2,y2, m, q, xs, ys) inters_xs.push((y - q) / m) } - //console.log("inters_xs", inters_xs) if (inters_xs.length < 2) { continue } @@ -2325,13 +2321,11 @@ editor = { lines.push({p1: {x: min_xs-2, y: y}, p2: {x: max_xs+2, y: y}}) } - //console.log("untransformed lines", lines) lines = lines.map(l => ({ p1: editor._transform_point_for_staircase(l.p1, p0, cos_a, -sin_a), p2: editor._transform_point_for_staircase(l.p2, p0, cos_a, -sin_a), })) - //console.log(lines) return lines }, @@ -2370,7 +2364,6 @@ editor = { space = form.attr('space') lines = editor._get_staircase_lines() - console.log("hereeeeeee", csrfmiddlewaretoken, import_tag, space, lines) Promise.all(lines.map(l => fetch("/editor/spaces/" + space + "/stairs/create", { method: "POST",