|
@@ -933,9 +933,19 @@
|
|
|
|
|
|
let newWidth = curSpace.spaceWidth * sizeScale;
|
|
let newWidth = curSpace.spaceWidth * sizeScale;
|
|
let newHeight = curSpace.spaceHeight * sizeScale;
|
|
let newHeight = curSpace.spaceHeight * sizeScale;
|
|
|
|
+
|
|
|
|
+ if(isZoomIn){
|
|
|
|
+ newWidth = Math.min(newWidth, curSpace.spaceWidthMax)
|
|
|
|
+ newHeight = Math.min(newHeight, curSpace.spaceHeightMax)
|
|
|
|
+ }else{
|
|
|
|
+ newWidth = Math.max(newWidth, curSpace.spaceWidthMin)
|
|
|
|
+ newHeight = Math.max(newHeight, curSpace.spaceHeightMin)
|
|
|
|
+ }
|
|
|
|
+
|
|
let changeWidth = Math.abs(newWidth - curSpace.spaceWidth)
|
|
let changeWidth = Math.abs(newWidth - curSpace.spaceWidth)
|
|
let changeHeight = Math.abs(newHeight - curSpace.spaceHeight)
|
|
let changeHeight = Math.abs(newHeight - curSpace.spaceHeight)
|
|
|
|
|
|
|
|
+ console.log("变化的尺寸", newWidth, newHeight, data, sizeScale);
|
|
console.log("变化的尺寸", changeWidth, changeHeight, data, curSpace.spaceWidth, curSpace.spaceHeight);
|
|
console.log("变化的尺寸", changeWidth, changeHeight, data, curSpace.spaceWidth, curSpace.spaceHeight);
|
|
|
|
|
|
if(curSpace.quadrant == 1){
|
|
if(curSpace.quadrant == 1){
|