package JsOfOCairo
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
module type S = sig ... end
module Mock : sig ... end
include S
type status =
| INVALID_RESTORE
| INVALID_POP_GROUP
| NO_CURRENT_POINT
| INVALID_MATRIX
| INVALID_STATUS
| NULL_POINTER
| INVALID_STRING
| INVALID_PATH_DATA
| READ_ERROR
| WRITE_ERROR
| SURFACE_FINISHED
| SURFACE_TYPE_MISMATCH
| PATTERN_TYPE_MISMATCH
| INVALID_CONTENT
| INVALID_FORMAT
| INVALID_VISUAL
| FILE_NOT_FOUND
| INVALID_DASH
| INVALID_DSC_COMMENT
| INVALID_INDEX
| CLIP_NOT_REPRESENTABLE
| TEMP_FILE_ERROR
| INVALID_STRIDE
| FONT_TYPE_MISMATCH
| USER_FONT_IMMUTABLE
| USER_FONT_ERROR
| NEGATIVE_COUNT
| INVALID_CLUSTERS
| INVALID_SLANT
| INVALID_WEIGHT
| INVALID_SIZE
| USER_FONT_NOT_IMPLEMENTED
| DEVICE_TYPE_MISMATCH
| DEVICE_ERROR
| INVALID_MESH_CONSTRUCTION
| DEVICE_FINISHED
| JBIG2_GLOBAL_MISSING
exception Error of status
val status_to_string : status -> string
module Matrix : sig ... end
val set_font_size : context -> float -> unit
val show_text : context -> string -> unit
val font_extents : context -> font_extents
val text_extents : context -> string -> text_extents
module Pattern : sig ... end
val save : context -> unit
val restore : context -> unit
val set_source_rgb : context -> r:float -> g:float -> b:float -> unit
val set_source_rgba :
context ->
r:float ->
g:float ->
b:float ->
a:float ->
unit
val get_source : context -> Pattern.any
val set_line_width : context -> float -> unit
val get_line_width : context -> float
val set_miter_limit : context -> float -> unit
val get_miter_limit : context -> float
val set_dash : context -> ?ofs:float -> float array -> unit
val get_dash : context -> float array * float
val clip : context -> unit
val clip_preserve : context -> unit
val fill : context -> unit
val fill_preserve : context -> unit
val paint : ?alpha:float -> context -> unit
val stroke : context -> unit
val stroke_preserve : context -> unit
module Path : sig ... end
val arc :
context ->
x:float ->
y:float ->
r:float ->
a1:float ->
a2:float ->
unit
val arc_negative :
context ->
x:float ->
y:float ->
r:float ->
a1:float ->
a2:float ->
unit
val curve_to :
context ->
x1:float ->
y1:float ->
x2:float ->
y2:float ->
x3:float ->
y3:float ->
unit
val line_to : context -> x:float -> y:float -> unit
val move_to : context -> x:float -> y:float -> unit
val rectangle : context -> x:float -> y:float -> w:float -> h:float -> unit
val rel_curve_to :
context ->
x1:float ->
y1:float ->
x2:float ->
y2:float ->
x3:float ->
y3:float ->
unit
val rel_line_to : context -> x:float -> y:float -> unit
val rel_move_to : context -> x:float -> y:float -> unit
val translate : context -> x:float -> y:float -> unit
val scale : context -> x:float -> y:float -> unit
val rotate : context -> angle:float -> unit
val identity_matrix : context -> unit
val user_to_device : context -> x:float -> y:float -> float * float
val user_to_device_distance : context -> x:float -> y:float -> float * float
val device_to_user : context -> x:float -> y:float -> float * float
val device_to_user_distance : context -> x:float -> y:float -> float * float
val create : unit -> context
val calls : context -> string list
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>