getCloseEdge.d.ts 837 B

1234567891011121314151617181920212223
  1. import { CloseEdgeEnum, ReachTypeEnum, TouchStartEnum } from '../types';
  2. /**
  3. * 接触左边/上边 或 右边/下边边缘
  4. * @param position - x/y
  5. * @param scale
  6. * @param size - width/height
  7. * @param innerSize - innerWidth/innerHeight
  8. * @return CloseEdgeEnum
  9. */
  10. export declare function getClosedEdge(position: number, scale: number, size: number, innerSize: number): CloseEdgeEnum;
  11. /**
  12. * 获取接触边缘类型
  13. * @param initialTouchState
  14. * @param horizontalCloseEdge
  15. * @param verticalCloseEdge
  16. * @param reachState
  17. */
  18. export declare function getReachType({ initialTouchState, horizontalCloseEdge, verticalCloseEdge, reachState, }: {
  19. initialTouchState: TouchStartEnum;
  20. horizontalCloseEdge: CloseEdgeEnum;
  21. verticalCloseEdge: CloseEdgeEnum;
  22. reachState: ReachTypeEnum;
  23. }): ReachTypeEnum;