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

Programmatic, flexible API access #50

Open
GregJohnStewart opened this issue Jan 27, 2025 · 1 comment
Open

Programmatic, flexible API access #50

GregJohnStewart opened this issue Jan 27, 2025 · 1 comment

Comments

@GregJohnStewart
Copy link

GregJohnStewart commented Jan 27, 2025

Hello, this tool looks amazing and handles general map/image tasks great, but I am looking to make some custom controls around it, as opposed to using the default set.

I was wondering if an API could be made to fill the functions of the generated sidebar, and prevent that ui from being generated?

My usecase has me working on making an imageMap, to map out specific regions to associate with other datas. I could make the ui around the canvas, but the tool doesn't lend itself to being accessed in a programmatic way.

It looks like it is currently hackable though.... one can remove the ui element manually fine, and the main imageMapCreator object is open and easy enough to work with when it comes to reading off what areas are drawn.

That being said, it would be lovely to have:

  • ability to turn off sidebar UI, disabling right click functionality
  • functions for performing sidebar functionalities
  • callbacks for "map area added/deleted"
  • callbacks for "map area modified"
  • function to load/return map data
  • function to set image
@n-peugnet
Copy link
Owner

Hi, thanks for your interest and sorry for the slow reply.

It looks like it is currently hackable though.... one can remove the ui element manually fine, and the main imageMapCreator object is open and easy enough to work with when it comes to reading off what areas are drawn.

Yes, this is mostly the way I intended it to be. I didn't really thought of an API and will probably not add one myself. But if you end up doing one, I will probably merge it.

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