package ocsigen-toolkit

  1. Overview
  2. Docs
type orientation =
  1. | Portrait
  2. | Landscape
val get_screen_size : unit -> int * int
val get_screen_orientation : unit -> orientation
val get_size : < clientHeight : < get : int.. > Js_of_ocaml.Js.gen_prop ; clientWidth : < get : int.. > Js_of_ocaml.Js.gen_prop.. > Js_of_ocaml.Js.t -> int * int
val get_document_size : unit -> int * int
val width_height : (int * int) React.signal
val width : int React.signal
val height : int React.signal
val update_width_height : unit -> unit
val set_adaptative_width : Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> (int -> int) -> unit
val set_adaptative_height : Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> (int -> int) -> unit
val height_to_bottom : int -> Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> int
val client_top : ?with_margin:bool -> Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> float
val client_bottom : ?with_margin:bool -> Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> float
val client_left : ?with_margin:bool -> Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> float
val client_right : ?with_margin:bool -> Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> float
val client_height : ?with_margin:bool -> Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> float
val client_width : ?with_margin:bool -> Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> float
val client_page_top : ?with_margin:bool -> Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> float
val client_page_left : ?with_margin:bool -> Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> float
val client_page_bottom : ?with_margin:bool -> Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> float
val client_page_right : ?with_margin:bool -> Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> float
val pageYOffset : unit -> int
OCaml

Innovation. Community. Security.