mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
- 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
18 lines
411 B
XML
18 lines
411 B
XML
// Test the `ellipse` function.
|
|
|
|
---
|
|
100% rect in 100% ellipse in fixed rect. \
|
|
#rect(width: 3cm, height: 2cm, fill: rgb("2a631a"),
|
|
ellipse(width: 100%, height: 100%, fill: forest,
|
|
rect(width: 100%, height: 100%, fill: conifer)[
|
|
#align(center, center)
|
|
Stuff inside an ellipse!
|
|
]
|
|
)
|
|
)
|
|
|
|
Auto-sized ellipse. \
|
|
#ellipse(fill: conifer)[
|
|
But, soft! what light through yonder window breaks?
|
|
]
|