I am trying to create a format bar that can change a node's properties. I'd like to be able to:
1) Drag a node to the canvas
2) Select the node
3) Use the format bars control to change things about the node (size, border, color, etc)
The below code is my attempt to get this working. I am able to change properties (attributes?) on the selected node. However, after doing so, the node doesn't actually change.
(side note: I used Renato's Logossim project as a playground to learn about React Diagrams)
In the NodeWidget code below, I am trying to base the height of the node on the value of the node model. Then, I try to set
node model height value from my diagram engine code. I think I'm missing something fundamental about how this is all supposed
to work :)
I am trying to create a format bar that can change a node's properties. I'd like to be able to:
1) Drag a node to the canvas 2) Select the node 3) Use the format bars control to change things about the node (size, border, color, etc)
The below code is my attempt to get this working. I am able to change properties (attributes?) on the selected node. However, after doing so, the node doesn't actually change.
(side note: I used Renato's Logossim project as a playground to learn about React Diagrams)
In the NodeWidget code below, I am trying to base the height of the node on the value of the node model. Then, I try to set node model height value from my diagram engine code. I think I'm missing something fundamental about how this is all supposed to work :)
NodeWidget:
App.js File:
App.js File: