package toffee
All checked builds pass 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/Min_max/index.html
Module Toffee_geometry.Min_maxSource
Generic container for minimum and maximum constraint values.
A min-max pair represents a constraint range used throughout the layout engine for size bounds, such as min-width/max-width or min-height/max-height in CSS. The type parameters 'min and 'max allow for different types, enabling flexible constraint representations.
('min, 'max) t is a container holding a minimum value of type 'min and a maximum value of type 'max.
The separate type parameters allow for heterogeneous constraints, such as {min = Some 100.0; max = None} to represent a minimum bound without a maximum bound.
Creation
Transformations
map f min_max applies f to both the min and max values.
map_min f min_max applies f to the min value only, preserving the max value unchanged.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page