# svg-workflow-canvas

> Generic workflow builder react component using an SVG canvas

Latest version **1.2.1** (published 2020-02-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install svg-workflow-canvas
pnpm add svg-workflow-canvas
yarn add svg-workflow-canvas
bun add svg-workflow-canvas
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2020-02-20 |
| First published | 2020-01-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=8 |
| Dependencies | 1 |
| Unpacked size | 2.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 43 |
| Author | Alex Stanciu |
| Maintainers | astanciu |
| Keywords | workflow, workflow component, workflow builder, workflow designer, pipeline, component, ui, svg, react |

## Links

- npm: https://www.npmjs.com/package/svg-workflow-canvas
- Repository: https://github.com/astanciu/svg-workflow-canvas
- Homepage: https://astanciu.github.io/svg-workflow-canvas
- Issues: https://github.com/astanciu/svg-workflow-canvas/issues
- npm.io page: https://npm.io/package/svg-workflow-canvas

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.17.15

## Alternatives

- [@progress/kendo-ooxml](https://npm.io/package/@progress/kendo-ooxml.md) — 152.1K weekly downloads
- [@progress/kendo-react-ripple](https://npm.io/package/@progress/kendo-react-ripple.md) — 8.0K weekly downloads
- [@progress/kendo-react-orgchart](https://npm.io/package/@progress/kendo-react-orgchart.md) — 4.3K weekly downloads
- [@praxisui/dynamic-fields](https://npm.io/package/@praxisui/dynamic-fields.md) — 2.4K weekly downloads
- [@progress/kendo-vue-listbox](https://npm.io/package/@progress/kendo-vue-listbox.md) — 932 weekly downloads

## Recent versions

- 1.2.1 (latest) — 2020-02-20
- 1.2.0 — 2020-02-03
- 1.1.0 — 2020-02-01
- 1.0.1 — 2020-01-31
- 1.0.0 — 2020-01-31

## README

# svg-workflow-canvas

> React component to for workflow building using an SVG based canvas

![Alt text](/images/image.png "Optional Title")

[![NPM](https://img.shields.io/npm/v/svg-workflow-canvas.svg)](https://www.npmjs.com/package/svg-workflow-canvas)

## Install

```bash
yarn add svg-workflow-canvas
```

## Usage

```tsx
import React from "react";
import { Workflow } from "svg-workflow-canvas";

export default () => {
  const w1 = {
    nodes: [
      { name: 'add-new-item', id: '1', icon: 'plus-circle', position: { x: 3, y: 7 } },
      { name: 'create-user', id: '2', icon: 'user', position: { x: 254, y: 130 } },
      { name: 'upload-stuff', id: '3', icon: 'home', position: { x: -137, y: -32 } },
      { name: 'train-jedi', id: '4', icon: 'jedi', position: { x: 254, y: -105 } }
    ],
    connections: [{ from: '1', to: '2', id: '1' }]
  };

  return (
    <div style={{ width: '100vw', height: '100vh' }}>
      <Workflow workflow={w1} scale={1} snapToGrid />
    </div>
  );
};

```

## License

MIT © [astanciu](https://github.com/astanciu)

---
_Source: https://npm.io/package/svg-workflow-canvas · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
