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

What happened to 'delete' function? #32

Open
erotavlas opened this issue Aug 2, 2017 · 1 comment
Open

What happened to 'delete' function? #32

erotavlas opened this issue Aug 2, 2017 · 1 comment

Comments

@erotavlas
Copy link

erotavlas commented Aug 2, 2017

The examples show how to use delete function

###Usage:
•Deletes all object that touch the 10x10 rectangle starting at position 10x10:
• var myDelCount = myRTree.delete({x:10, y:10, w:10, h:10});
•Delete only specific object if it touches the 10x10 rectangle starting at position 10x10:
• var myDelCount = myRTree.delete({x:10, y:10, w:10, h:10}, specific_object);

But no such function appears to be defined.

@buck
Copy link

buck commented Nov 20, 2017

Seems delete was renamed to remove, see actual docs just above your quoted example.

Also, the test/deletion.test.js test passes, using the remove function.

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

2 participants