Let user delete a selected fabric js object

后端 未结 5 773
青春惊慌失措
青春惊慌失措 2021-02-05 02:03

I have a simple fabric js based application where I will let users add shapes connect them and animate them.

Following is my JS

var canvas; 
window.newA         


        
5条回答
  •  忘了有多久
    2021-02-05 03:00

    Since new version of fabric.js was released - you should use:

    canvas.remove(canvas.getActiveObject());
    

提交回复
热议问题