feat(components): add invert support to mcu component#179
feat(components): add invert support to mcu component#179WangHaoZhengMing wants to merge 3 commits intol0uisgrange:mainfrom
Conversation
- Added an `invert` parameter and `invert-radius` style support to `stub`, allowing it to render an inverting circle for active-low representations. - Updated MCU test vectors (`tests/mcu/test.typ`) to utilize the new invert feature in mcu, demonstrating how to draw an active-low 74LS138 IC. - Updated reference test images for the mcu component. - Updated docs
|
Hey @WangHaoZhengMing 👋, Thank you for the feature 🫶! If you have more time, would it be possible to also bring support for the arrow inverter? Here's an example. This is already implemented in the logic symbols if you want to have a template ( If not, I will merge this PR 😇 |
|
Ok, I will implement it as soon as possible. |
|
Hi, I had a quick question about the use of the triangle-style arrow to represent inversion. Is there a particular reason or reference behind choosing this form? I tried looking into common standards (like IEEE and IEC), and it seems that inversion is usually represented with a bubble (small circle). I didn’t come across the triangle form in those specifications, so I was wondering if this is more of a stylistic or DSL-driven choice. If so, would it make sense in the future to separate the inversion semantics from the visual style (e.g., allowing both triangle and bubble as rendering options)? Just curious about your design considerations here. |
|
Hey, no worries I had the same question in #182. I found this article this morning that states:
Therefore, since it seems to have different meaning, it shouldn't be on the styling system. The wedge seems to be used in specific cases, but most of the time the bubble is the correct one. |
|
It it correct, thanks! Oh, and could you also format your code and fix the checks please (check the CONTRIBUTING.md if needed)? 😇 |
|
Got it! I'll sync up the wedge styling with the existing logic and run the formatting/linting fixes. |



invertparameter andinvert-radiusstyle support tostub, allowing it to render an inverting circle for active-low representations.tests/mcu/test.typ) to utilize the new invert feature in mcu, demonstrating how to draw an active-low 74LS138 IC.