summaryrefslogtreecommitdiff
path: root/src/layout
AgeCommit message (Collapse)Author
2021-10-31More useful `Spec` helpersLaurenz
2021-10-31Fix panic in pad nodeLaurenz
2021-10-26Simplify node constructionLaurenz
2021-10-26Fr in stack and parLaurenz
2021-10-23Simplify decorationsLaurenz
2021-10-23Introduce page / block / inline levelsLaurenz
2021-10-23Remove directions from gridLaurenz
2021-10-23Revise block node contractLaurenz
Frames produced by block nodes are now always treated as exactly one per given region and a frame must not be larger than its respective region. Any overflow must be handled internally. This means that stack and grid don't need to search for fitting regions anymore, since the child has already does that for them. This commit further moves stack spacing into a new `SpacingNode`.
2021-10-23New `ShapeNode`Laurenz
Replaces `BackgroundNode` and `FixedNode`
2021-10-23Remove inline alignment from stackLaurenz
The current inline alignment is very broken and leads to lots of subtle weirdness. Getting rid of it simplifies the stack's interface a lot. At a later point either: - inline alignment will be added back in a better way, or - all nodes will be able to expand or align themselves, meaning that the stack's children take care of their alignment
2021-10-10Rename `State` to `Style` and move it into its own moduleLaurenz
2021-10-10Move paint and colors into `geom`Laurenz
2021-10-05Refactor a bitLaurenz
2021-10-05Don't fit images to remaining heightLaurenz
Makes them really small if there's only little space left ...
2021-10-02Fix panic in grid due to empty auto rowLaurenz
2021-09-28Allow linear values for text edgesLaurenz
2021-09-27Refactor line reordering from callback to iteratorLaurenz
2021-09-27Fix panic due to bad alignments in stack functionLaurenz
2021-09-27More useful incremental checksLaurenz
Co-Authored-By: Martin <mhaug@live.de>
2021-09-27Expand all but last region for broken up auto rowsLaurenz
2021-09-27Fix paragraph constraintsLaurenz
Co-Authored-By: Martin <mhaug@live.de>
2021-09-26Simplify decoration handlingLaurenz
2021-09-26More useful `Debug` implsLaurenz
2021-09-25Prevent paragraph from overflowing due to trailing linebreakLaurenz
2021-09-15Bugfix and tidyingLaurenz
2021-09-10Reimplement `Debug` for layout nodesLaurenz
2021-09-10Set the correct base for grid cellsLaurenz
2021-09-10Fix fr rows in infinite regionLaurenz
2021-08-24Switch from state to decorations for underline/strikethrough/overlineLaurenz
2021-08-23Links! (#43)Martin
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2021-08-23Kerned PDF outputLaurenz
2021-08-21Shorter/clearer field name for geometry typesLaurenz
Size { width, height } => Size { w, h } Spec { horizontal, vertical } => Spec { x, y } Gen { cross, main } => Gen { inline, block }
2021-08-21Prune derivesLaurenz
2021-08-21Make better use of existing variables in gridLaurenz
2021-08-21Turn backlog into iteratorLaurenz
2021-08-19Refactor layouting a bitLaurenz
Notably: - Handle aspect ratio in fixed node - Inline constraint inflation into pad node
2021-08-19Pattern properties (#42)Martin
Included in this package are: * Code review I: The unnamed review. * Code Review II: How I met your review. * Code Review III: Code, the final frontier. These are the voyages of the USS Review ...
2021-08-17Library functions behave more imperativelyLaurenz
- Templates scope state changes - State-modifying function operate in place instead of returning a template - Internal template representation contains actual owned nodes instead of a pointer to a syntax tree + an expression map - No more wide calls
2021-08-17More logical ordering and namingLaurenz
2021-08-17Make percentages for h and v relative to area instead of font sizeLaurenz
2021-08-14Separate type for string valuesLaurenz
2021-08-09New source loading architectureLaurenz
2021-08-01Pretty-printed diagnostics with tracebackLaurenz
2021-07-29Change derive orderLaurenz
2021-07-29Refactor stateLaurenz
2021-07-29Move EcoString and OptionExt into utilLaurenz
2021-07-26Slightly more expressive method nameLaurenz
2021-07-26No more excessive region cloningLaurenz
2021-07-26Move incremental test into separate functionLaurenz
2021-07-25Merge font and par state into text stateLaurenz