How to Make Canvas Text Selectable?

后端 未结 9 1432
北荒
北荒 2020-12-02 13:46

Any suggestion is highly appreciated.

9条回答
  •  一个人的身影
    2020-12-02 14:24

    FabricJS now has the ability to interact with objects outside the canvas element - eg this demo shows a button that is linked to an image loaded in a canvas element.

    The same approach can be used in other libs such as Raphael by hooking any move event, getting the bounding box of the element and re-positioning the HTML element.

提交回复
热议问题