Add radius parameter to block #12

Merged
HEL merged 3 commits from Shmerlard/circuiteria:main into dev 2025-08-17 12:36:04 +00:00
Contributor

this PR is just for adding support for variable radius for block elements, and added the option to set the font as an arguement like

#circuiteria.circuit(
    length: 3em,
    font: "JetBrains Mono",
    {
    import circuiteria: *
    ...
})

its my first PR so i'd like to know how to improve

this PR is just for adding support for variable radius for `block` elements, and added the option to set the font as an arguement like ``` #circuiteria.circuit( length: 3em, font: "JetBrains Mono", { import circuiteria: * ... }) ``` its my first PR so i'd like to know how to improve
Shmerlard added 2 commits 2025-08-17 11:37:52 +00:00
now in `block.typ` the radius is optional
and the font can be set in the canvas
HEL added the
enhancement
label 2025-08-17 12:18:36 +00:00
HEL changed title from main to Add radius parameter to block 2025-08-17 12:19:27 +00:00
HEL changed target branch from main to dev 2025-08-17 12:19:33 +00:00
Owner

Hi ! 👋 Thank you for your contribution !
The radius parameter is a great addition 👍
Regarding the font, I think it would simply be better not to set it in the diagram an let the user set it from outside via a show for example.
Could you revert that change and make a separate PR ?

Hi ! 👋 Thank you for your contribution ! The radius parameter is a great addition 👍 Regarding the font, I think it would simply be better not to set it in the diagram an let the user set it from outside via a show for example. Could you revert that change and make a separate PR ?
HEL requested changes 2025-08-17 12:24:51 +00:00
Dismissed
src/circuit.typ Outdated
@@ -11,2 +11,2 @@
#let circuit(body, length: 2em) = {
set text(font: "Source Sans 3")
#let circuit(body, length: 2em, font: "Source Sans 3") = {
set text(font: font)
Owner

Would be better not to set the font at all

Would be better not to set the font at all
Shmerlard added 1 commit 2025-08-17 12:27:24 +00:00
Shmerlard force-pushed main from 5eed5db6d8 to 1a0a659ace 2025-08-17 12:33:05 +00:00 Compare
HEL approved these changes 2025-08-17 12:35:20 +00:00
Owner

Perfect, thank you 👍

Perfect, thank you 👍
HEL merged commit 94fef0a245 into dev 2025-08-17 12:36:04 +00:00
Author
Contributor

does the pdf manual also needs to be updated or is it is done automatically or something?

does the pdf manual also needs to be updated or is it is done automatically or something?
Owner

Yes, it needs to be updated manually, but I can do that later
I'll create an issue to remember

Yes, it needs to be updated manually, but I can do that later I'll create an issue to remember
Sign in to join this conversation.
No description provided.