Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

fix: evenly distribute inputs and center gate content#183

Open
weiserhase wants to merge 4 commits intol0uisgrange:mainfrom
weiserhase:feat/logic-input-alignment
Open

fix: evenly distribute inputs and center gate content#183
weiserhase wants to merge 4 commits intol0uisgrange:mainfrom
weiserhase:feat/logic-input-alignment

Conversation

@weiserhase
Copy link
Copy Markdown
Contributor

This PR refines logic for the gate layout and anchor placement.

Changes

  • Evenly distribute input anchors across the gate height
  • Center the gate content propperly for all gate sizes
  • Support centered single input gates (e.g LNOT)

Before:
0
After:
0

@l0uisgrange
Copy link
Copy Markdown
Owner

l0uisgrange commented Mar 22, 2026

Hey @weiserhase 👋,
Thanks, looks way better! Sorry for the delay, could you

  • add a test for logic with multiple inputs
  • remove the example (examples are supposed to be only the ones used on the README.md)

Will merge right after.

@weiserhase weiserhase force-pushed the feat/logic-input-alignment branch from 35a2be4 to cba07a3 Compare March 24, 2026 15:40
@weiserhase
Copy link
Copy Markdown
Contributor Author

@l0uisgrange Thank you for pointing this issue out! I removed the examples and added 4 tests.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants