Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

desiredSize binding causing issue with PartResized event

$
0
0

@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() for ChangedSelection event seems to have the right values for the two way bound attributes like loc and others.

But in case of PartResized event 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

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles