package server-reason-react

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
type gradient
type pattern
type measureText
module type CompositeType = sig ... end
module type LineCapType = sig ... end
module type LineJoinType = sig ... end
type 'a image =
  1. | Number : float image
  2. | ImageData : Webapi__Dom__Image.t image
type _ style =
  1. | String : string style
  2. | Gradient : gradient style
  3. | Pattern : pattern style
val save : unit -> t
val restore : unit -> t
val scale : x:float -> y:float -> t -> unit
val rotate : float -> t -> unit
val translate : x:float -> y:float -> t -> unit
val transform : m11:float -> m12:float -> m21:float -> m22:float -> dx:float -> dy:float -> t -> unit
val setTransform : m11:float -> m12:float -> m21:float -> m22:float -> dx:float -> dy:float -> t -> unit
val globalAlpha : t -> float -> unit
val globalCompositeOperation : t -> Composite.t -> unit
val lineWidth : t -> float -> unit
val lineCap : t -> LineCap.t -> unit
val lineJoin : t -> LineJoin.t -> unit
val miterLimit : t -> float -> unit
val setStrokeStyle : t -> 'a style -> 'a -> unit
val setFillStyle : t -> 'a style -> 'a -> unit
val reifyStyle : 'a -> 'b
val fillStyle : 'a -> 'b
val strokeStyle : 'a -> 'b
val shadowOffsetX : t -> float -> unit
val shadowOffsetY : t -> float -> unit
val shadowBlur : t -> float -> unit
val shadowColor : t -> string -> unit
val createLinearGradient : x0:float -> y0:float -> x1:float -> y1:float -> t -> gradient
val createRadialGradient : x0:float -> y0:float -> x1:float -> y1:float -> r0:float -> r1:float -> t -> gradient
val addColorStop : float -> string -> gradient -> unit
val createPattern : t -> Dom.element -> [ `noRepeat | `repeat | `repeatX | `repeatY ] -> pattern
val beginPath : unit -> t
val closePath : unit -> t
val fill : unit -> t
val stroke : unit -> t
val clip : unit -> t
val moveTo : x:float -> y:float -> t -> unit
val lineTo : x:float -> y:float -> t -> unit
val quadraticCurveTo : cp1x:float -> cp1y:float -> x:float -> y:float -> t -> unit
val bezierCurveTo : cp1x:float -> cp1y:float -> cp2x:float -> cp2y:float -> x:float -> y:float -> t -> unit
val arcTo : x1:float -> y1:float -> x2:float -> y2:float -> r:float -> t -> unit
val arc : x:float -> y:float -> r:float -> startAngle:float -> endAngle:float -> anticw:bool -> t -> unit
val rect : x:float -> y:float -> w:float -> h:float -> t -> unit
val isPointInPath : x:float -> y:float -> t -> bool
val font : t -> string -> unit
val textAlign : t -> string -> unit
val textBaseline : t -> string -> unit
val fillText : string -> x:float -> y:float -> ?maxWidth:float -> t -> unit
val strokeText : string -> x:float -> y:float -> ?maxWidth:float -> t -> unit
val measureText : string -> t -> measureText
val width : measureText -> float
val fillRect : x:float -> y:float -> w:float -> h:float -> t -> unit
val strokeRect : x:float -> y:float -> w:float -> h:float -> t -> unit
val clearRect : x:float -> y:float -> w:float -> h:float -> t -> unit
val createImageDataCoords : t -> width:float -> height:float -> Webapi__Dom__Image.t
val createImageDataFromImage : t -> Webapi__Dom__Image.t -> Webapi__Dom__Image.t
val getImageData : t -> sx:float -> sy:float -> sw:float -> sh:float -> Webapi__Dom__Image.t
val putImageData : t -> imageData:Webapi__Dom__Image.t -> dx:float -> dy:float -> unit
val putImageDataWithDirtyRect : t -> imageData:Webapi__Dom__Image.t -> dx:float -> dy:float -> dirtyX:float -> dirtyY:float -> dirtyWidth:float -> dirtyHeight:float -> unit
OCaml

Innovation. Community. Security.