Idris2Doc : Web.MVC.Animate

Web.MVC.Animate

(source)
Utilities not (yet) available from idris2-dom

Definitions

currentTime : HasIOio=>ioInteger
  Get the current time in milliseconds since 1970/01/01.

Visibility: export
timed : (Integer->e) ->Cmde->Cmde
  Determine the time taken to setup a command and wrap it in an
event that will be fired synchronously.

Visibility: export
dataIntervalID : Type
  ID used to identify and cancel a running timer.

Totality: total
Visibility: public export
every : e->Bits32->Cmde
  Fires the given event every `n` milliseconds.

Note: Use `animate` for smoothly running animations.

Visibility: export
everyWithCleanup : (IO () ->e) ->e->Bits32->Cmde
  Fires the given event every `n` milliseconds.

In addition, this synchronously fires an event with a wrapped
handle for stopping the timer.

Visibility: export
DTime : Type
  Alias for a time delta in milliseconds

Visibility: public export
animate : (DTime->e) ->Cmde
  Repeatedly fires the given event holding the time delta in
milliseconds since the last animation step.

Visibility: export
animateWithCleanup : (IO () ->e) -> (DTime->e) ->Cmde
  Repeatedly fires the given event holding the time delta in
milliseconds since the last animation step.

In addition, synchronously fires an event with a wrapped
handle for stopping the animation.

Visibility: export