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/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