summaryrefslogtreecommitdiff
path: root/src/layout/image.rs
AgeCommit message (Collapse)Author
2021-10-31Reorganize modulesLaurenz
Instead of separating functionality into layout and library, everything lives in the library now. This way, related things live side by side and there are no duplicate file names in the two directories.
2021-10-26Simplify node constructionLaurenz
2021-10-23Introduce page / block / inline levelsLaurenz
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-05Refactor a bitLaurenz
2021-10-05Don't fit images to remaining heightLaurenz
Makes them really small if there's only little space left ...
2021-09-10Reimplement `Debug` for layout nodesLaurenz
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-19Refactor layouting a bitLaurenz
Notably: - Handle aspect ratio in fixed node - Inline constraint inflation into pad node
2021-07-21Main context structLaurenz
2021-07-10Reference-count complex valuesLaurenz
Rename some nodes types
2021-07-08Add lots of Eq implsLaurenz
2021-06-29Put incremental compilation behind featureMartin Haug
2021-06-26Cleanse libraryLaurenz
- Remove doc-comments for Typst functions from library - Reduce number of library source files