Update D3 and D3-DAG library
This commit is contained in:
parent
f0e785993f
commit
05650b210f
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -29,7 +29,7 @@
|
|||
|
||||
{% block footerscript %}
|
||||
<script src="{% static "js/plugins/D3-dag/d3_7.6.1.min.js" %}"></script>
|
||||
<script src="{% static "js/plugins/D3-dag/d3-dag_0.8.2.min.js" %}"></script>
|
||||
<script src="{% static "js/plugins/D3-dag/d3-dag_0.11.1.min.js" %}"></script>
|
||||
<script>
|
||||
function compute_font_size(string)
|
||||
{
|
||||
|
@ -120,7 +120,7 @@
|
|||
const steps = dag.size();
|
||||
const interp = d3.interpolateRainbow;
|
||||
const colorMap = new Map();
|
||||
for (const [i, node] of dag.idescendants().entries()) {
|
||||
for (const [i, node] of [...dag].entries()) {
|
||||
colorMap.set(node.data.id, interp(i / steps));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue