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