Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property '0' of undefined #59

Open
renambot opened this issue Oct 30, 2024 · 1 comment
Open

TypeError: Cannot read property '0' of undefined #59

renambot opened this issue Oct 30, 2024 · 1 comment

Comments

@renambot
Copy link

renambot commented Oct 30, 2024

Sorry to re-open an old issue. It happens often in my code.
I had to add a try/catch to try and resolve it (picking corners of the boxes)

For instance:

getBoxToBoxArrow( 1505567, 1501081, 600, 400, 1506577, 1501418, 600, 400,
 {bow: 0.1, padStart: 20, padEnd: 40, stretch: 0.5, stretchMin: 40, stretchMax: 300}
 )
@renambot
Copy link
Author

renambot commented Nov 4, 2024

Also, if I put padStart and padEnd to zero, it seems to work. I believe the roundRect-ray intersection might be the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant