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

Is it possible to write our own custom implementation of CE.getNearest? #115

Open
Arrow7000 opened this issue May 12, 2022 · 1 comment
Open

Comments

@Arrow7000
Copy link

Arrow7000 commented May 12, 2022

As far as I can tell it seems like it's not possible to create our own implementation of functions of type:

customFunc : Remodel (One data Any) (Item result) -> Decoder data (List (Item result))

which is what CE.onMouseMove expects for its 2nd parameter, because both Remodel and Decoder don't have their constructors exposed.

So if I want to write a custom implementation of CE.getNearest, e.g. one that can return the n nearest items instead of just the single nearest one, how would I do that?

@terezka
Copy link
Owner

terezka commented Dec 7, 2023

Hi! I'm adding both a default option to return nearest items and an option to customize your own decoder in the next version. Thanks!

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