Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shapes: Arc through #273

Merged
merged 3 commits into from
Dec 4, 2023
Merged

shapes: Arc through #273

merged 3 commits into from
Dec 4, 2023

Conversation

johannes-wolf
Copy link
Member

Fixes #206. Thanks to @matthew-e-brown for the initial implementation!

@fenjalien fenjalien linked an issue Oct 23, 2023 that may be closed by this pull request
@johannes-wolf johannes-wolf added this to the 0.2 milestone Oct 30, 2023
@johannes-wolf johannes-wolf force-pushed the cetz-206-arc-through branch 2 times, most recently from ec7e67b to 4feddf4 Compare November 20, 2023 07:09
@johannes-wolf
Copy link
Member Author

johannes-wolf commented Nov 20, 2023

Rebased. We need to either merge #275 into this or onto 0.2.0 before merging this.

@johannes-wolf johannes-wolf force-pushed the cetz-206-arc-through branch 2 times, most recently from f44cba2 to 2cafd29 Compare November 22, 2023 18:41
Copy link
Member

@fenjalien fenjalien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens when a b c are in a striaght line? I'm guessing a divide by 0 happens somewhere, but could we have the panic message more verbose that it was arc-through? A check might need to be added before calculate-circle-center-3pt.

Update the changelog too

src/draw/shapes.typ Outdated Show resolved Hide resolved
@@ -304,6 +304,52 @@
},)
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add documentation but maybe wait until #320 is merged

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added documentation + explanation of the calculation.

src/draw/shapes.typ Outdated Show resolved Hide resolved
@johannes-wolf johannes-wolf force-pushed the cetz-206-arc-through branch 2 times, most recently from 82c074e to fa8a9db Compare November 24, 2023 09:45
@johannes-wolf johannes-wolf merged commit 9303e08 into 0.2.0 Dec 4, 2023
2 checks passed
@johannes-wolf johannes-wolf deleted the cetz-206-arc-through branch December 4, 2023 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

arc: Add a function arc-through
2 participants