type 'a image =
| Number : float image
| ImageData : Webapi__Dom__Image.t image
val scale : x:float -> y:float -> t -> unit
val rotate : float -> t -> unit
val translate : x:float -> y:float -> t -> unit
val globalAlpha : t -> float -> unit
val lineWidth : t -> float -> unit
val miterLimit : t -> float -> unit
val setStrokeStyle : t -> 'a style -> 'a -> unit
val setFillStyle : t -> 'a style -> 'a -> unit
val reifyStyle : 'a -> 'a0 style * 'a0
val fillStyle : t -> 'a style * 'a
val strokeStyle : t -> 'a style * 'a
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 ->
[ `repeat | `repeatX | `repeatY | `noRepeat ] ->
pattern
val beginPath : t -> unit
val closePath : t -> unit
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 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