package toffee
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
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