class type options = object ... end
class type date = object ... end
class type text = object ... end
class type 'a data = object ... end
type timeline_cs
= (Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t -> Js_of_ocaml.Js.Unsafe.any -> options Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef -> timeline Js_of_ocaml.Js.t) Js_of_ocaml.Js.constr
val timeline_cs : timeline_cs
val options : ?debug:bool -> ?height:int -> ?width:int -> ?is_embed:bool -> ?hash_bookmark:bool -> ?default_bg_color:string -> ?scale_factor:int -> ?initial_zoom:float -> ?zoom_sequence:float list -> ?timenav_position:string -> ?optimal_tick_width:int -> ?base_class:string -> ?timenav_height:int -> ?timenav_height_percentage:int -> ?timenav_mobile_height_percentage:int -> ?timenav_height_min:int -> ?marker_height_min:int -> ?marker_width_min:int -> ?marker_padding:int -> ?start_at_slide:int -> ?menubar_height:int -> ?use_bc:bool -> ?duration:int -> ?ease:string -> ?dragging:bool -> ?trackResize:bool -> ?slide_padding:int -> ?slide_default_fade:string -> ?language:string -> ?ga_property_id:string -> ?track_events:string list -> ?script_path:string -> unit -> options Js_of_ocaml.Js.t
type json_source
=
| SUrl of string |
| SStr of string |
val make : ?options:options Js_of_ocaml.Js.t -> string -> json_source -> unit
val optdef : ('a -> 'b) -> 'a option -> 'b Js_of_ocaml.Js.optdef
val make_date : ?month:int -> ?day:int -> ?hour:int -> ?minute:int -> ?second:int -> ?millisecond:int -> ?format:string -> ?display_text:string -> int -> date Js_of_ocaml.Js.t
val make_media : ?caption:string -> ?credit:string -> ?thumbnail:string -> string -> media Js_of_ocaml.Js.t
val make_text : ?headline:string -> string -> text Js_of_ocaml.Js.t
val make_event : ?end_date:date Js_of_ocaml.Js.t -> ?media:media Js_of_ocaml.Js.t -> ?id:string -> text Js_of_ocaml.Js.t -> date Js_of_ocaml.Js.t -> date Js_of_ocaml.Js.t event_data Js_of_ocaml.Js.t
val add_event : ?end_date:date Js_of_ocaml.Js.t -> ?media:media Js_of_ocaml.Js.t -> ?id:string -> text Js_of_ocaml.Js.t -> date Js_of_ocaml.Js.t -> timeline Js_of_ocaml.Js.t -> unit