top | item 36052149 (no title) joeldo | 2 years ago For vector style graphics (like in the article) - You can achieve this quite simply on the web with SVG DOM.You can add event listeners to the SVG's paths/groups and apply fill when clicked. discuss order hn newest yuchi|2 years ago Even better, you can just use a single listener and on click verify the element under the cursor with document.elementFromPoint
yuchi|2 years ago Even better, you can just use a single listener and on click verify the element under the cursor with document.elementFromPoint
yuchi|2 years ago