slideToPosition.d.ts 382 B

1234567891011121314151617
  1. /**
  2. * 适应到合适的图片偏移量
  3. */
  4. export default function slideToPosition({ x, y, lastX, lastY, width, height, scale, rotate, touchedTime, }: {
  5. x: number;
  6. y: number;
  7. lastX: number;
  8. lastY: number;
  9. width: number;
  10. height: number;
  11. scale: number;
  12. rotate: number;
  13. touchedTime: number;
  14. }): {
  15. x: number;
  16. y: number;
  17. };