Like Baidu, how is it realized at the front end of this function with toolbars and tagged pictures?

clipboard.png
Baidu"s custom character recognition can be selected in the box. How is it done with canvas? Is there a library like this that can be called

Apr.07,2021

there are many similar avatar upload libraries with box selection

Menu