Byo_toplayer_private_floating.Anchorval sexp_of_t : t -> Sexplib0.Sexp.tval of_element : Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> tAn element in the dom relative to which the floating element will be positioned.
val of_bounding_box :
relative_to:[ `Viewport | `Document ] ->
top:float ->
left:float ->
bottom:float ->
right:float ->
ttop, bottom, and left, right are the # of pixels down and right from the top left corner to form the (top, bottom), and (left, right) borders of the virtual bounding box.
relative_to defaults to `Viewport, and determines whether the coordinates you provide should be in terms of "Client" or "Page" coordinate systems: https://developer.mozilla.org/en-US/docs/Web/CSS/CSSOM_view/Coordinate_systems
val of_coordinate :
relative_to:[ `Viewport | `Document ] ->
x:float ->
y:float ->
tx and y are the # of pixels right/down from the top left corner.
relative_to defaults to `Viewport, and determines whether the coordinates you provide should be in terms of "Client" or "Page" coordinate systems: https://developer.mozilla.org/en-US/docs/Web/CSS/CSSOM_view/Coordinate_systems