Skip to content

Commit 75b8a55

Browse files
committed
smartart: update manual
1 parent 83162e3 commit 75b8a55

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

manual.pdf

2.11 KB
Binary file not shown.

src/smartart/cycle.typ

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@
8282
/// - ccw (boolean): If true, steps are laid out counter-clockwise. If false, they're placed clockwise. The center of the cycle is always placed at (0, 0)
8383
/// - radius (number, length): The radius of the cycle
8484
/// - offset-angle (angle): Offset of the starting angle
85+
/// - step-angles (none,angle,array): Angles between the steps.
86+
/// - none: Steps are spaced evenly.
87+
/// - angle: Space between the steps, with the last angle (between the last step and the first one) completing the full circle.
88+
/// - array: An array of angles between the steps. For n steps, the array must contain n-1 angles. The last angle is automatically computed to complete the full circle.
8589
#let basic(
8690
steps,
8791
arrow-style: auto,
@@ -149,7 +153,7 @@
149153
)
150154
step-angles + (360deg - step-angles.sum(default: 0deg),)
151155
} else {
152-
panic("step-angles must be an angle, an array or null, got " + repr(type(step-angles)))
156+
panic("step-angles must be an angle, an array or none, got " + repr(type(step-angles)))
153157
}
154158
if not ccw {
155159
step-angles = step-angles.map(x => x * -1)

0 commit comments

Comments
 (0)