cwl-svg-expand
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

CWL SVG Expand

Introduction

CWL SVG Expand is a plugin for the typescript library CWL SVG, for rendering CWL workflows on web pages. This plugin adds functionality to these visualisations, allowing the user to zoom into and out of sub-workflows.

Installation

To use this plugin with CWL SVG, first install it:

npm install cwl-svg-expand --save-dev

Setup

To add this plugin to your CWL Workflow, simply create a new instance of the plugin and pass it into the CWL SVG constructor:

import {Workflow} from "cwl-svg";
import ExpansionPlugin from 'cwl-svg-expand';
const workflow = new Workflow({
    ...,
    plugins: [
        new ExpansionPlugin(),
    ]
});

For a more detailed usage example, refer to the demo source code.

Usage

Now everything is setup, simply double click a sub-workflow node in your CWL visualization to expand it, and press backspace to return to the parent workflow.

Future Improvements

  • Allow customizable shortcuts for expanding/collapsing
  • Interactive demo

Readme

Keywords

none

Package Sidebar

Install

npm i cwl-svg-expand

Weekly Downloads

4

Version

1.0.3

License

ISC

Unpacked Size

2 MB

Total Files

23

Last publish

Collaborators

  • tmiguelt