Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • 07:56
    vincenzagiunco commented #95
  • 07:51
    vincenzagiunco commented #95
  • Jul 02 12:30
    tkrafael commented #400
  • Jul 02 12:29
    tkrafael commented #400
  • Jul 01 22:02
    tkrafael commented #866
  • Jun 30 14:40
    dincho-kostadinov edited #953
  • Jun 30 14:39
    dincho-kostadinov opened #953
  • Jun 30 14:29
    dincho-kostadinov commented #926
  • Jun 23 11:08
    CodeMaven commented #929
  • Jun 16 05:43
    dwjohnston opened #952
  • Jun 15 19:06
    staminna opened #951
  • Jun 15 04:48
    herbiel opened #950
  • Jun 14 16:16
    wevek commented #700
  • Jun 10 17:04
    dylanvorster commented #912
  • Jun 10 16:07
    dimanik94 commented #912
  • Jun 10 16:05
    dimanik94 commented #912
  • Jun 08 09:46
    flashoop opened #949
  • Jun 08 06:13
    akichim21 commented #929
  • Jun 07 08:59
    Speed0309 edited #948
  • Jun 07 08:58
    Speed0309 opened #948
Aaron Michaux

So... when I add repaintDebounceMs to the engine options, it sometimes disables panning the CanvasWidget.

  const engine = createEngine({
    registerDefaultDeleteItemsAction: false,
    repaintDebounceMs: 50

Anyone else seen this?

Aaron Michaux
For anyone out there, the problem went away when I patched engine.repaintCanvas, so that debouncing happens on the leading edge of the timeout.
Sinan Yaman
Hey fellow developers, does anyone know if there is a way to get the ids of the visible ports (i.e. not zoomed out or dragged out of view from canvas)?
Hey folks, I'm just getting started with react-diagrams. I'm following the demo project for custom node widget/model/factory. I've written a custom node model, extending NodeModel, and in overriding the deserialize function I'd like to provide the type for the event parameter - but auto imports aren't working for some reason. So, where can I import the DeserializeEvent from? And should I use it like this:
deserialize(event: DeserializeEvent<CustomNodeModel>) {...}
Malav Shah
Hi Guys, I have integrated this lib in my project which builds using vite and is monorepo. Now facing issue in building production build.
Any help will be appreciated. Thanks in advance.
your problem is when trying to assign null the variable in your declaration, try:
var node: DefaultNodeModel;
I'm sure it will work for you!
Andrii Zhyvchyn
hi all!
Does someone know how I can change target port with mouse?
I tied to .setTargetPort(null) on link, but this not attach link to mouse movements
K Wood
Hello everyone!
I'm trying to get the diamond node model demo working, but it gives me an error using it as written when running it through create-react-app's npm start script
Error: Cannot find factory with type [diamond]
More specifically I'm trying to use this with the drag and drop demo, and I've got it showing up in the tray on the left hand side, but when I drag it on to the canvas I get the error
How do you let your app know how to find the factory for it?
K Wood
Got it! Instead of defining engine as new CreateEngine, I needed to use this.props.app.getDiagramEngine()
Hey there - it seems like the repo has quite a few open issues and hasnt been updated in 20 days - is this project dying? Not trying to be negative, but is project storm working on this anymore?
Dylan Vorster
i work on it when i get time
I have a project coming up shortly that will see it have some activity soon
Jeremy Kuhnash
does anyone have working directions on how to build a standalone project?
Hi I am new room. has anyone have any experience creating only one link between two nodes. Currently it’s creating multiple link between two nodes. How can I make changes so that it will create single link between two nodes?
Hi everyone,
How's it going?
is it(react-diagrams) run on mobile?
if you have any way, please let me know.
Daniel McQuillen
@dylanvorster @renato-bohler If either of you have some consulting hours available wondering if you're available and interested in adding an enhanced change-detection feature to the latest version, if possible. Pinging @renato-bohler because you tried to explain to me what to do but I'm just too slow (projectstorm/react-diagrams#819) and @dylanvorster because well gosh you made this awesome thing.
Hi Guys, Does anyone know how to update the position of ports after dynamically adding/removing ports to a node? I saw some mention of calling the recalculatePortsVisually method on the DiagramEngine but I cannot find any such method. I have also tried calling port.reportPosition() but does not seem to update the ports position either. I am using v6.6.1 of the library.
how to remove all node and link in model ?
1 reply
Malav Shah
Hi, I am facing huge performance issue while dragging link in smart routing. Any solution for that?
Igor Levdansky

Try to run simple example and get:

Uncaught TypeError: a.default is not a constructor
    at l.componentDidMount (index.umd.js:16:687)
    at commitLifeCycles (react-dom.development.js:20664:24)

Any ideas?

Neil Glenister
Hey all, does anyone know how to change the node draggable area? At the moment the whole node is draggable which is causing an issue if you want to highlight text on it. Ideally we'd disable the drag event when you're selecting text on the node, or set the drag event to a specific part of the node (e.g. a toolbar). Has anyone tried something similar?
1 reply
Jonathan Nachman
hi all , just started playing around with the examples. is there a way to automatically place the nodes , or would i have to move them around,e.g like a auto sort and space them out? thanks
Andrii Zhyvchyn
hi all!
how I can trigger rerender of label widget if related link were changed?
Troy Peterson
Hi all, any idea if we can expect an update to make it work with React 18 any time soon?
2 replies
Hi all,
How I can drag and drop port?
Ejiro Lennox A.
Hi everyone where can i find info on how to clone/duplicate a node?