message: fix: fix dist x, y size
diff: @@ -167,7 +167,10 @@ export default {
  datas.minSize = minSize;
  },
  setMax: (maxSize: number[]) => {
  - datas.maxSize = maxSize;
  + datas.maxSize = [
  + maxSize[0] || Infinity,
  + maxSize[1] || Infinity,
  + ];
  },
  setRatio,
  setFixedDirection,
  @@ -274,7 +277,6 @@ export default {
  const size = getDistSize([distWidth, distHeight]);
  const signSize = Math.cos(rad - standardRad) * size;
  - console.log("prev", distWidth, distHeight);
  if (!sizeDirection[0]) {
  // top, bottom
  distHeight = signSize;
  @@ -285,12 +287,15 @@ export default {
  distHeight = distWidth * ratio;
  } else {
  // two-way
  + const startWidthSize = sizeDirection[0] * 2 * startOffsetWidth;
  + const startHeightSize = sizeDirection[1] * 2 * startOffsetHeight;
  + const distSize = getDistSize([startWidthSize + dist[0], startHeightSize + dist[1]])
  + - getDistSize([startWidthSize, startHeightSize]);
  const ratioRad = getRad([0, 0], [ratio, 1]);
  - distWidth = Math.cos(ratioRad) * (signSize < 0 ? -size : size);
  - distHeight = Math.sin(ratioRad) * (signSize < 0 ? -size : size);
  + distWidth = Math.cos(ratioRad) * distSize;
  + distHeight = Math.sin(ratioRad) * distSize;
  }
  - console.log("next", distWidth, distHeight, size);
  } else if (!keepRatio) {
  const nextDirection = [...direction];
  