Module
Gesso.Canvas
- Package
- purescript-gesso
- Repository
- smilack/purescript-gesso
Gesso Canvas is a Halogen component that handles creating a canvas element,
calling requestAnimationFrame, attaching events, and running render and
update functions.
#CanvasInput Source
data CanvasInput input aUsed to wrap Queries from a parent Halogen component. The component's input
type is defined by the InputReceiver in the
Gesso.Application.AppSpec.
Constructors
CanvasInput input a
#CanvasOutput Source
newtype CanvasOutput ouputUsed to wrap Output to a parent Halogen component. The component's output
type is defined by the OutputProducer in the
Gesso.Application.AppSpec.
Constructors
CanvasOutput ouput
#Slot Source
type Slot input output slot = Slot (CanvasInput input) (CanvasOutput output) slotA Halogen slot type for the Canvas component, which is used to include it inside another Halogen component.
#_gessoCanvas Source
_gessoCanvas :: Proxy @Symbol "gessoCanvas"A proxy type for Canvas for use with Slot.
#component Source
component :: forall state input output m. MonadAff m => Component (CanvasInput input) (AppSpec state input output) (CanvasOutput output) mDefinition of the Canvas component. Can be used to slot the canvas into a parent Halogen component.