1.4.5 • Published 3 years ago

svg-canvas-editor-tool v1.4.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

svg-workflow-canvas

React component to for workflow building using an SVG based canvas

Alt text

NPM

Install

yarn add svg-workflow-canvas

Usage

See the example folder for how to use this component. Below is just a very simple example.

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

1.4.5

3 years ago

1.4.4

3 years ago

1.3.7

3 years ago

1.3.6

3 years ago

1.3.5

3 years ago

1.4.3

3 years ago

1.3.4

3 years ago

1.4.2

3 years ago

1.3.3

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.9

3 years ago

1.3.8

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.9

3 years ago

1.2.8

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago