如何在保存图像之前停用Fabric.js中的所有对象?
function rasterize() {
if (!myscript.Canvas.supports('toDataURL')) {
alert('This browser doesn\'t provide means to serialize canvas to an image');
}
else {
/*i want to deactivate all object here*/
window.open(canvas.toDataURL('png'));
}
}
Run Code Online (Sandbox Code Playgroud)