Add diameter arg to arc and tangentialArc (#7247)

Both these functions previously took a `radius`. If you previously used
the radius arg, you can keep using it, or you can use `diameter` instead.
This commit is contained in:
Adam Chalmers
2025-05-28 16:05:37 -05:00
committed by GitHub
parent aaff027830
commit 5c6d4fbf5a
6 changed files with 3281 additions and 41 deletions

View File

@ -1048,7 +1048,7 @@ mod tests {
let snippet = arc_fn.to_autocomplete_snippet().unwrap();
assert_eq!(
snippet,
r#"arc(${0:%}, angleStart = ${1:3.14}, angleEnd = ${2:3.14}, radius = ${3:3.14})"#
r#"arc(${0:%}, angleStart = ${1:3.14}, angleEnd = ${2:3.14}, diameter = ${3:3.14})"#
);
}