언어 설정

Menu
Sites
Language
how to get canvas sub-element location point

how to get canvas sub-element location point . circular, square, line

 

thanks

Responses

1 댓글
AVSukhov

Hello,

As i known, graphics drawn on an HTML5 canvas is drawn in immediate mode. Immediate mode means, that as soon as you have drawn a shape on the canvas, the canvas no longer knows anything about that shape. The shape is visible, but you cannot manipulate that shape individually.

You can try to create your own array with all element on canvas with coordinate, or you can create separate canvas for each figure, but it is bad practice.