I am getting the following in my GOJS code:
Error: Non-real measuredBounds has been set. Object Picture()#1159, measuredBounds: Rect(NaN,NaN,NaN,NaN)
What is strange is the error went away after a couple times going to the same HTML view. But now it is back, but nothing in my code has changed.
I thought it was maybe called when I was drawing the images from the generateImages
function that i call to do a makeSvg
call. However, this is what happens when I make alerts to assert that certain things have executed.
The error is being thrown between setting the Diagram.model
to array of JSON objects describing each Node
and InitialLayoutCompleted
being triggered. Any ideas? Help much appreciated!
Thanks,
Ryan.