Module
Signal.DOM
- Package
- purescript-signal
- Repository
- bodil/purescript-signal
#CoordinatePair Source
type CoordinatePair = { x :: Int, y :: Int }
#DimensionPair Source
type DimensionPair = { h :: Int, w :: Int }
#mousePos Source
mousePos :: forall e. Eff (dom :: DOM | e) (Signal CoordinatePair)
A signal containing the current mouse position.
#animationFrame Source
animationFrame :: forall e. Eff (dom :: DOM, timer :: TIMER | e) (Signal Time)
A signal which yields the current time, as determined by now
, on every
animation frame (see [https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame]).
#windowDimensions Source
windowDimensions :: forall e. Eff (dom :: DOM | e) (Signal DimensionPair)
A signal which contains the document window's current width and height.
- Modules
- Signal
- Signal.
Channel - Signal.
DOM - Signal.
Time