Module Byo_toplayer.Offset

type t = {
  1. main_axis : float;
  2. cross_axis : float;
}

Allows controlling how far the floating element is positioned away from the anchor. Usually, you don't want to set cross_axis.

include Sexplib0.Sexpable.S with type t := t
include Sexplib0.Sexpable.Of_sexp with type t := t
val t_of_sexp : Sexplib0.Sexp.t -> t
include Sexplib0.Sexpable.Sexp_of with type t := t
val sexp_of_t : t -> Sexplib0.Sexp.t
val t_sexp_grammar : t Sexplib0.Sexp_grammar.t @@ portable
include Ppx_compare_lib.Equal.S with type t := t
val equal : t -> t -> bool
include Ppx_compare_lib.Comparable.S with type t := t
val compare : t -> t -> int
val zero : t

Apply no offset.