调整创建项目
This commit is contained in:
@@ -96,6 +96,9 @@ class myCanvas {
|
||||
this.canvas.on("object:modified", ()=>{
|
||||
this.updateCanvasState('')
|
||||
});
|
||||
this.canvas.on("mouse:up",()=>{
|
||||
if(this.canvas.freeDrawingBrush.isEraser)this.updateCanvasState()
|
||||
});
|
||||
|
||||
this.canvasKeyDown = this.canvasKeyDown.bind(this);
|
||||
this.canvasKeyUp = this.canvasKeyUp.bind(this);
|
||||
|
||||
@@ -1295,6 +1295,14 @@ class MyCanvas {
|
||||
imgUrl = data.designOutfitUrl;
|
||||
}
|
||||
let imgWidth = await this.setImageWidth(key,img);
|
||||
if(imgUrl?.split('?')){
|
||||
// let url = imgUrl.split('?')[0]
|
||||
// var match = url.match(/^(?:https?:\/\/[^\/]+)\/(.*)/);
|
||||
// minioUrl = match[1]
|
||||
const { pathname } = new URL(imgUrl);
|
||||
const result = pathname.slice(1);
|
||||
minioUrl = result
|
||||
}
|
||||
let proportion = img.height / img.width; //计算图形宽高比例
|
||||
let scaleWH = imgWidth / img.width; //计算放到画布上缩小倍率
|
||||
let scale = {
|
||||
|
||||
Reference in New Issue
Block a user