How to zoom in on individual elements of canvas?
问题 I'm trying to implement a feature in my canvas using fabricjs that will allow me to zoom in/out an individual image thats been uploaded by a user and the watermark which I'm adding with it but not having the WHOLE canvas zoom both objects at the same time. uploadImage = event => { let file = event.target.files[0]; this.state.canvas.clear(); let URL; const reader = new FileReader(); reader.addEventListener( "load", () => { URL = reader.result; fabric.Image.fromURL(URL, myImg => { let img1 =