a super simple, no-nonsense diagramming library written in react that just works
a super simple, no-nonsense diagramming library written in react that just works
DEMO: http://projectstorm.cloud/react-diagrams
DOCS (wip) https://projectstorm.gitbook.io/react-diagrams
Docs are currently being worked on, along with a migration path.
A flow & process orientated diagramming library inspired by Blender, Labview and Unreal engine.
Example implementation using custom models: (Dylan's personal code)
Get started with the default models right out of the box:
For all the bells and whistles:
yarn add @projectstorm/react-diagramsThis includes all the packages listed below (and works (mostly and conceptually) like it used to in version 5.0)
This library now has a more modular design and you can import just the core (contains no default factories or routing)
yarn add @projectstorm/react-diagrams-corethis is built ontop of the evolving react-canvas-core library
yarn add @projectstorm/react-canvas-corewhich makes use of
yarn add @projectstorm/geometryand of course, you can add some extras:
yarn add @projectstorm/react-diagrams-defaults
yarn add @projectstorm/react-diagrams-routingBefore running any of the examples, please run pnpm build in the root. This project is a monorepo, and the packages (including the demos) require the packages to first be built.
Take a look at the diagram demos
or
Take a look at the demo project which contains an example for ES6 as well as Typescript
or
After running pnpm install and pnpm build, you must then run: cd diagrams-demo-gallery && pnpm run start
Simply run pnpm then pnpm build or pnpm build:prod in the root directory and it will spit out the transpiled code and typescript definitions into the dist directory as a single file.
Do you have an interesting project built with react-diagrams? PR it into this section for others to see.
eemeli/yaml is included and is subject to CVE-2023-2251, can you upgrade bable-plugin-macros to remove that venerable dependency
TypeError: Cannot read property 'offsetWidth' of null
React duplicate key error in DefaultLinkSegmentWidget
Multi-link selection remains active after switching browser tabs without holding Shift
Clicking on port creates stray edge
Debouncing in the engine sometimes locks pan in the CanvasWidget
Broken Rendering with Redux + Model Serialization/De-Serialization
"Cannot read property 'x' of undefined" error when use smart-routing
Label not at correct position while using right-angle links
The `@emotion/core` package has been renamed to `@emotion/react`