marcuscalidus-svg-panel icon indicating copy to clipboard operation
marcuscalidus-svg-panel copied to clipboard

Click to Map Feature

Open acedrew opened this issue 4 years ago • 2 comments

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

acedrew avatar May 16 '20 16:05 acedrew

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.

MarcusCalidus avatar Jun 20 '20 07:06 MarcusCalidus

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

acedrew avatar Jun 20 '20 15:06 acedrew