Update D3 and D3-DAG library

This commit is contained in:
Gregory Trullemans 2022-10-15 09:13:13 +02:00
parent f0e785993f
commit 05650b210f
3 changed files with 2 additions and 34 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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));
}