Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ToProgress

Index

Constructors

constructor

Methods

decrease

  • decrease(i: number): Promise<void>
  • Parameters

    • i: number

      Amount to decrement progress

    Returns Promise<void>

    Promise which resolves after animation completes

destroy

  • destroy(): void

finish

  • finish(): Promise<void>
  • Transition to 100%, hide, and reset

    Returns Promise<void>

    Promise which resolves after progress bar has been reset

getProgress

  • getProgress(): number
  • Note, because .start() uses a single CSS transition, this will not accurately reflect the position on the screen

    Returns number

    Current progress

hide

  • hide(): void

increase

  • increase(i: number): Promise<void>
  • Parameters

    • i: number

      Amount to increment progress

    Returns Promise<void>

    Promise which resolves after animation completes

reset

  • reset(): Promise<void>
  • Set progress to 0 and show after transition completes

    Returns Promise<void>

    Promise which resolves after progress bar has been reset

setProgress

  • setProgress(progress: number): Promise<void>
  • Parameters

    • progress: number

      0-100

    Returns Promise<void>

    Promise which resolves after transition animation completes

show

  • show(): void

start

  • start(duration?: number, easing?: string): Promise<void>
  • Parameters

    • Default value duration: number = 30

      Max amount of time to animate. Larger values = slower moving bar.

    • Default value easing: string = "cubic-bezier(0.05, 0.45, 0.05, 0.95)"

      CSS transition easing

    Returns Promise<void>

    Promise which resolves after timeout or .finish()

stop

  • stop(): void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc