detail更新
This commit is contained in:
@@ -176,7 +176,10 @@ fabric.BaseBrush.prototype.convertToImg = function() {
|
||||
left:((xy.x)/pixelRatio-pointerX)/this.canvas.getZoom(),
|
||||
top:((xy.y)/pixelRatio-pointerY)/this.canvas.getZoom(),
|
||||
'scaleX':1/pixelRatio/this.canvas.getZoom(),
|
||||
'scaleY':1/pixelRatio/this.canvas.getZoom()
|
||||
'scaleY':1/pixelRatio/this.canvas.getZoom(),
|
||||
custom:{
|
||||
type:'pencil'
|
||||
}
|
||||
}).setCoords();
|
||||
this.canvas.add(img).clearContext(this.canvas.contextTop);
|
||||
this.canvas.clearContext(this.canvas.contextTop);
|
||||
|
||||
Reference in New Issue
Block a user