package toffee
Build not yet 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.3.0.tbz
sha256=a92cbbcbe016fb19fb0a749222da0e459a9567aef3f4c7340d9bd6b71c53ed6f
sha512=6a7ab054605538bb31a2b73a1a6d093981a2704c9f0af5852221c05735290d74aca7c7282298c4d0f91e86a800e2ccd94b4918af883cd963449c758eb6b272b3
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