Skip to content

Commit

Permalink
Fix logo issues due to generic scripting selector use (apache#11028)
Browse files Browse the repository at this point in the history
Resolves apache#11025
  • Loading branch information
ryanahamilton authored Sep 19, 2020
1 parent 980aa39 commit d7f1666
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions airflow/www/templates/airflow/circles.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1>Airflow 404 = lots of circles</h1>
id="div_svg"
class="centered text-center"
style="border: 1px solid #ccc;padding:0;margin:0;">
<svg></svg>
<svg id="circles-svg"></svg>

</div>
<script src="{{ url_for_asset('d3.min.js') }}"></script>
Expand Down Expand Up @@ -68,7 +68,7 @@ <h1>Airflow 404 = lots of circles</h1>
sclx = d3.scale.linear().domain([-1, points]).range([0, width]);
scly = d3.scale.linear().domain([-1, points]).range([0, height]);

circles = d3.select("svg")
circles = d3.select("#circles-svg")
.attr('width', "100%")

.attr('height', height)
Expand Down
6 changes: 3 additions & 3 deletions airflow/www/templates/airflow/graph.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
</button>
<div id="svg_container">

<svg width="{{ width }}" height="{{ height }}">
<svg id="graph-svg" width="{{ width }}" height="{{ height }}">
<g id='dig' transform="translate(20,20)"></g>
<filter id="blur-effect-1">
<feGaussianBlur stdDeviation="3"></feGaussianBlur>
Expand Down Expand Up @@ -155,8 +155,8 @@
.setDefaultEdgeLabel(function() { return { lineInterpolate: 'basis' } });

var render = dagreD3.render(),
svg = d3.select("svg"),
innerSvg = d3.select("svg g");
svg = d3.select("#graph-svg"),
innerSvg = d3.select("#graph-svg g");

// Update the page to show the latest DAG.
function draw() {
Expand Down
8 changes: 4 additions & 4 deletions airflow/www/templates/airflow/tree.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<hr/>
<div id="svg_container">
<img id='loading' width="50" src="{{ url_for('static', filename='loading.gif') }}">
<svg class='tree' width="100%">
<svg id="tree-svg" class='tree' width="100%">
<filter id="blur-effect-1">
<feGaussianBlur stdDeviation="3"></feGaussianBlur>
</filter>
Expand Down Expand Up @@ -183,7 +183,7 @@
return toolTipHtml;
});

var svg = d3.select("svg")
var svg = d3.select("#tree-svg")
//.attr("width", width + margin.left + margin.right)
.append("g")
.attr("class", "level")
Expand All @@ -208,7 +208,7 @@
(num_square * square_size) + ((num_square-1) * square_spacing) - (square_size/2)
]);

d3.select("svg")
d3.select("#tree-svg")
.insert("g")
.attr("transform",
"translate("+ (square_x + margin.left) +", " + axisHeight + ")")
Expand Down Expand Up @@ -245,7 +245,7 @@

var height = Math.max(500, nodes.length * barHeight + margin.top + margin.bottom);
var width = square_x + (num_square * (square_size + square_spacing)) + margin.left + margin.right + 50;
d3.select("svg").transition()
d3.select("#tree-svg").transition()
.duration(duration)
.attr("height", height)
.attr("width", width);
Expand Down

0 comments on commit d7f1666

Please sign in to comment.