I
I
iscander2020-11-22 21:36:34
JavaScript
iscander, 2020-11-22 21:36:34

How to hook events to arbitrary HTML canvas shapes?

Hello. How to hook events to arbitrary HTML canvas shapes? And please advise if you know good libraries for working with 2d graphics in JS. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pashenka, 2020-11-22
@kraken32

The figures on the canvas are not something tangible, so that they can be hung on them, whether it be events or something else. They cannot be "touched" like nodes in a DOM tree. On the canvas, you only have a coordinate system, and navigate along it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question