simulator.d.ts 860B

1234567891011121314151617181920212223
  1. export declare class Simulate {
  2. private index;
  3. private points;
  4. timedelta: number;
  5. static from(x: any, y?: number): Simulate;
  6. reset(): Simulate;
  7. start(x: any, y?: number): Simulate;
  8. to(x: any, y?: number): Simulate;
  9. delta(x: any, y?: number): Simulate;
  10. deltaPolar(angle: number, distance: number): Simulate;
  11. toPolar(angle: number, distance: number): Simulate;
  12. duration(duration: number): Simulate;
  13. velocity(vel: number): Simulate;
  14. swipeRight(maxAngle: number, distance: number): Simulate;
  15. swipeLeft(maxAngle: number, distance: number): Simulate;
  16. swipeTop(maxAngle: number, distance: number): Simulate;
  17. swipeBottom(maxAngle: number, distance: number): Simulate;
  18. run(callback: Function): this;
  19. private newPoint(coord, duration);
  20. private getLastPoint();
  21. private getPreviousPoint();
  22. }