优化
This commit is contained in:
parent
644a5e4238
commit
36f66440ac
|
|
@ -1746,6 +1746,7 @@ const changeFabricPosition = (value: number, str: string): void => {
|
|||
break;
|
||||
case "width":
|
||||
case "height":
|
||||
maxRect.set(str, value);
|
||||
if (str === "width") {
|
||||
maxRect.set("left", value / 2 - value);
|
||||
currentFabric.value.target.set(str, value);
|
||||
|
|
|
|||
Loading…
Reference in New Issue