{# Cytoscape.js DAG visualization component. Usage: {% from "components/dag.html" import dag_container, dag_scripts, dag_legend %} {# In head block #} {{ dag_scripts() }} {# In content #} {{ dag_container(id="plan-dag", height="400px") }} {{ dag_legend() }} {# In scripts block #} #} {% macro dag_scripts() %} {% endmacro %} {% macro dag_container(id="dag-container", height="400px", class="") %}
{% endmacro %} {% macro dag_legend(node_types=None) %} {% set types = node_types or ["SOURCE", "EFFECT", "_LIST"] %}