@soumyajit wrote:
I am using React with go-js.
I have also setup an inspector like in the gojs-basic-react example for which I am adding event listener to the diagram using
addDiagramListener
event.subject.first()forChangedSelectionevent seems to have the right values for the two way bound attributes likelocand others.But in case of
PartResizedevent the attributes seem to be missing.In the model I have setup two-way binding for the shape size as such
new go.Binding('desiredSize', 'size', go.Size.parse).makeTwoWay(go.Size.stringify).Any tips on how I should keep my React state updated with the resizing? I also need to keep the selectedData bit in sync.
`
Posts: 6
Participants: 2