summaryrefslogtreecommitdiff
path: root/src/library/elements.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-25Replace `..` syntax with `range` functionLaurenz
2021-10-23New `ShapeNode`Laurenz
Replaces `BackgroundNode` and `FixedNode`
2021-10-10Rename `State` to `Style` and move it into its own moduleLaurenz
2021-10-10Move paint and colors into `geom`Laurenz
2021-10-05Rename `length` to `size` in `square()`Laurenz
2021-09-10Rename `Arguments` to `Args`Laurenz
2021-08-19Refactor layouting a bitLaurenz
Notably: - Handle aspect ratio in fixed node - Inline constraint inflation into pad node
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-14Separate type for string valuesLaurenz
2021-08-13Add file information to spansLaurenz
2021-08-10Minor refactoringsLaurenz
- Reorder parser methods and use `Pos` everywhere - Remove tab special handling for columns and adapt heading/list/enum indent handling - Don't panic when a file has an empty path
2021-08-09New source loading architectureLaurenz
2021-07-30Fatal errorsLaurenz
- Makes errors fatal, so that a phase is only reached when all previous phases were error-free - Parsing still recovers and can produce multiple errors - Evaluation fails fast and can thus produce only a single error (except for parse errors due to an import) - The single error that could occur during execution is removed for now - Removes Value::Error variant
2021-07-29Move font family and refactor alignmentLaurenz
2021-07-21Main context structLaurenz
2021-07-20FileId instead of Path + FileHashLaurenz
2021-07-10Remove warnings from parsing and castingLaurenz
2021-07-10Reference-count complex valuesLaurenz
Rename some nodes types
2021-07-10Eco string 🌱Laurenz
2021-07-08Rename Fill to PaintLaurenz
2021-06-26Remove unused template name fieldLaurenz
2021-06-26Cleanse libraryLaurenz
- Remove doc-comments for Typst functions from library - Reduce number of library source files