package cairo2
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
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
exception Error of status
val status_to_string : status -> string
module Matrix : sig ... end
module Glyph : sig ... end
module Font_options : sig ... end
module Font_face : sig ... end
module Scaled_font : 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 Surface : sig ... end
module Image : sig ... end
module PDF : sig ... end
module PNG : sig ... end
module PS : sig ... end
module SVG : sig ... end
module Recording : sig ... end
module Pattern : sig ... end
val save : context -> unit
val restore : context -> unit
module Group : sig ... end
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_dash : context -> ?ofs:float -> float array -> unit
val get_dash : context -> float array * float
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_tolerance : context -> float -> unit
val get_tolerance : context -> float
val clip : context -> unit
val clip_preserve : context -> unit
val clip_reset : context -> unit
val fill : context -> unit
val fill_preserve : context -> unit
val in_fill : context -> x:float -> y:float -> bool
val paint : ?alpha:float -> context -> unit
val stroke : context -> unit
val stroke_preserve : context -> unit
val in_stroke : context -> x:float -> y:float -> bool
val copy_page : context -> unit
val show_page : 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
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>