Interface.uts 461 B

123456789101112131415161718192021
  1. export type ChartsEvent = () => void
  2. export type TouchPosition = {
  3. x : number;
  4. y : number;
  5. }
  6. export class ChartScrollOption {
  7. currentOffset : number = 0
  8. startTouchX : number = 0
  9. distance : number = 0
  10. lastMoveTime : number = 0
  11. position : string = ''
  12. moveCount : number = 0
  13. }
  14. export type ChartAnimationOption = {
  15. canvasContext : CanvasContext,
  16. timing : string
  17. duration : number
  18. onProcess : (process : number) => void
  19. onAnimationFinish : () => void
  20. }