package js_of_ocaml
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Compiler from OCaml bytecode to Javascript
Install
dune-project
Dependency
Authors
Maintainers
Sources
js_of_ocaml-3.6.0.tbz
sha256=51eaa89c83ef3168ef270bf7997cbc35a747936d3f51aa6fac58fb0323b4cbb0
sha512=a2171a2583e9a1be6b4a87c9958aa2b4936b1f19030f09d787c4824d04db864773dd1da10d0dd56822f279309c8217093552b94e2e93c8b01eba5f432afc7718
doc/js_of_ocaml/Js_of_ocaml/ResizeObserver/index.html
Module Js_of_ocaml.ResizeObserver
ResizeObserver API
A code example:
if (ResizeObserver.is_supported ()) then
let doc = Dom_html.document in
let target =
Js.Opt.get (doc##getElementById (Js.string "observed"))
(fun () -> assert false)
in
let node = (target :> Dom.node Js.t) in
let f entries observer =
Firebug.console##debug entries;
Firebug.console##debug observer
in
ResizeObserver.observe ~node ~f
~box:(Js.string "content-box")
()class type resizeObserverSize = object ... endclass type resizeObserverEntry = object ... endclass type resizeObserverOptions = object ... endclass type resizeObserver = object ... endval empty_resize_observer_options : unit -> resizeObserverOptions Js.tval resizeObserver :
((resizeObserverEntry Js.t Js.js_array Js.t ->
resizeObserver Js.t ->
unit)
Js.callback ->
resizeObserver Js.t)
Js.constrval observe :
node:Dom.node Js.t ->
f:(resizeObserverEntry Js.t Js.js_array Js.t -> resizeObserver Js.t -> unit) ->
?box:Js.js_string Js.t ->
unit ->
resizeObserver Js.tHelper to create a new observer and connect it to a node.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>