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

Click to Map Feature #47

Open
acedrew opened this issue May 16, 2020 · 2 comments
Open

Click to Map Feature #47

acedrew opened this issue May 16, 2020 · 2 comments

Comments

@acedrew
Copy link

acedrew commented May 16, 2020

This is a feature request/request for input. I'm working on feature that will allow you to click on elements in the SVG to identify them. Right now, my plan is to create fields for each ID you click, allowing you to provide names, those names will get js vars initialized as Snap objects with the underlying SVG ID. This should remove the need for a lot of boilerplate code, and manual renaming of SVG components to semantic names. Any comments on this approach, and/or additional capabilities I should consider?

Here's the click functionality working, just to clarify what I'm talking about.
https://youtu.be/31q7Vf3sb9Y

@MarcusCalidus
Copy link
Owner

Sorry for my late reply.
This is amazing. Thank you for sharing. I'm really looking forward for your PR on this. As of now I don't have additional input to give.

@acedrew
Copy link
Author

acedrew commented Jun 20, 2020

Well... I can definitely file a PR for the work I did get done, but I've actually sort of started over with the React API and the SVG.js library.
I haven't published it yet, but everything is working so far.
https://github.com/ACE-IoT-Solutions/ace-svg-react

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