CWL-SVG
CWL-SVG is a Typescript library for visualization of Common Workflow Language workflows
Usage
import "./assets/styles/style.scss";
import {WorkflowFactory} from "cwlts/models";
import {Workflow} from "./graph/workflow";
const wf = WorkflowFactory.from({
label: "Whole Genome Analysis",
class: "Workflow",
outputs: ...
inputs: ...
steps: ...
});
const svgRoot = document.getElementById("svg") as SVGSVGElement;
const workflow = new Workflow(svgRoot, wf);
workflow.fitToViewport();
workflow.arrange();
Todo
- Create a CLI interface for generating images from CWL files directly
- Compile a bundle usable without module loaders
- Make it more theming-friendly
Preview
Overview

Selection

Movement

Connection
