You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My implementation works sometimes but since I want to do Lloyd's relaxation, I really need the compute method to work all the time. I copied the code in the demo and I was expecting to have good results. But no matter how hard I try or the input, I still get this error Cannot read property 'rbRed' of null. Sometimes it's Cannot read property 'rbLeft' of null.
I'm using random numbers to generate the sites. And it seems the more sites I have, the less likely I am to have a working diagram. Can you please tell me if there's a fix? I already tried replacing the sibling var with sibling?: that way I'm checking if the var is null before referencing a property. But I got another error.
Many thanks.
EDIT: this bug doesn't happen when I use the code with Node. It only happens when I generate the map in a browser
The text was updated successfully, but these errors were encountered:
My implementation works sometimes but since I want to do Lloyd's relaxation, I really need the compute method to work all the time. I copied the code in the demo and I was expecting to have good results. But no matter how hard I try or the input, I still get this error
Cannot read property 'rbRed' of null
. Sometimes it'sCannot read property 'rbLeft' of null
.I'm using random numbers to generate the sites. And it seems the more sites I have, the less likely I am to have a working diagram. Can you please tell me if there's a fix? I already tried replacing the
sibling
var withsibling?
: that way I'm checking if the var is null before referencing a property. But I got another error.Many thanks.
EDIT: this bug doesn't happen when I use the code with Node. It only happens when I generate the map in a browser
The text was updated successfully, but these errors were encountered: