package toffee
Build not checked sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
CSS layout engine for OCaml (Flexbox, Grid, Block)
Install
dune-project
Dependency
Authors
Maintainers
Sources
mosaic-0.2.0.tbz
sha256=ab48bc02082f9c1deea0769a13c2935df529536630745ec3a3d718f59656109b
sha512=c0f3c490e13ca60217d9d59c9bfdf3ada12e1565f04fe2a623e7c94298d519393eabe404e2317726712bf5e7fa860780a07494e77994ac05032e71f535c56910
doc/toffee.geometry/Toffee_geometry/Rectf/index.html
Module Toffee_geometry.RectfSource
Rectangles of floats.
A t holds four edges in floats, flat, as Sizef.t holds a size: layout computes its padding, borders and margins as ts. Rect remains for rectangles of other values, such as lengths or optional floats.
Four edges.
Constants and creation
make ~left ~right ~top ~bottom is { left; right; top; bottom }.
Arithmetic
sum_axes rect is the horizontal sum as the width and the vertical sum as the height.
grid_axis_sum axis rect is the horizontal sum for Horizontal and the vertical sum for Vertical.
Conversions
Comparison and formatting
compare a b orders by left, right, top, then bottom, as Float.compare.
pp formats a rectangle as to_string.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page