mirror of
https://github.com/typst/typst
synced 2025-08-13 14:47:54 +08:00
Compare commits
2 Commits
4a78a7d082
...
59569cbf61
Author | SHA1 | Date | |
---|---|---|---|
|
59569cbf61 | ||
|
d04f014fc6 |
@ -284,6 +284,7 @@ impl<'a> CurveBuilder<'a> {
|
||||
self.last_point = point;
|
||||
self.last_control_from = point;
|
||||
self.is_started = true;
|
||||
self.is_empty = true;
|
||||
}
|
||||
|
||||
/// Add a line segment.
|
||||
|
@ -56,7 +56,7 @@ requirements with examples.
|
||||
Typst's default page size is A4 paper. Depending on your region and your use
|
||||
case, you will want to change this. You can do this by using the
|
||||
[`{page}`]($page) set rule and passing it a string argument to use a common page
|
||||
size. Options include the complete ISO 216 series (e.g. `"iso-a4"`, `"iso-c2"`),
|
||||
size. Options include the complete ISO 216 series (e.g. `"a4"` and `"iso-c2"`),
|
||||
customary US formats like `"us-legal"` or `"us-letter"`, and more. Check out the
|
||||
reference for the [page's paper argument]($page.paper) to learn about all
|
||||
available options.
|
||||
|
BIN
tests/ref/curve-multiple-non-closed.png
Normal file
BIN
tests/ref/curve-multiple-non-closed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 85 B |
@ -38,6 +38,16 @@
|
||||
curve.close(mode: "smooth"),
|
||||
)
|
||||
|
||||
--- curve-multiple-non-closed ---
|
||||
#curve(
|
||||
stroke: 2pt,
|
||||
curve.line((20pt, 0pt)),
|
||||
curve.move((0pt, 10pt)),
|
||||
curve.line((20pt, 10pt)),
|
||||
curve.move((0pt, 20pt)),
|
||||
curve.line((20pt, 20pt)),
|
||||
)
|
||||
|
||||
--- curve-line ---
|
||||
#curve(
|
||||
fill: purple,
|
||||
|
Loading…
x
Reference in New Issue
Block a user